-
Notifications
You must be signed in to change notification settings - Fork 574
Unable to build tests #567
Comments
Those errors are usually because the wrong version EOSIO is being used. For the latest contract release EOSIO 2.0.x is required to build the tests. |
Thank you. The current EOSIO that is built from source using instructions given on the EOSIO website is 2.1. The CMakeLists.txt file was adjusted to use 2.1 and not 2.0. Is there a specific header file where these can be found for closer inspection, or perhaps a directory to add to a path/library variable that might help? |
|
Although it does seem like there are less issues after re-installing EOSIO. I don't see the allice111111 errors where it is not used as a string ("allice111111"), but it still complains about the N(...) |
I believe the |
Thank you for the specific link. I will build that one. |
With your help, I made some progress. It now seems like there is a compiler flag or something needed. Do you perhaps have any insight on how to get past this? This is on Ubuntu 18.0.4
|
Adding
to the tests' CMakeLists.txt made the error go away, but caused a lot of other errors from EOSIO. I noticed this issue: It does not seem like the 'pthread' flag was added to the repo. It is not clear if I am on the right path with this. |
Did you build eosio or did you just install it? |
I built it from the source you sent (checked out the commit in your link). It built 2.0 and then I installed it with the command provided after the build. I also rebuilt it after adding the pthread flag as mentioned in issue #7490 that I referred to above. |
Couple of additional questions: What OS are you on? |
Ubuntu 18.04
(I copied the eos/bin/* to /usr/local/bin/ |
Well there is something off with the build environment for sure. Any chance you have the log of the command You should be able to call the build script for eosio and then build the tests without modifying cmake files. |
Before you built 2.0.12 did you call |
Yes, all submodules are updated. The build script warns if that wasn't done. What version of GCC is recommended? |
Just to confirm, I made a clean clone of both eosio, and eosio.contracts and didn't make any changes to any file, script, or makefile. I checked out 32a47e396a13b948263b1dc9762a6e2292a2c2ef on eosio, and it built successfully and I installed it using the install script provided. I then built eosio.contracts using
|
It started building successfully. Unfortunately, I'm not exactly sure what caused the fix. Amongst other things and trying things over and over, I also installed gcc-8 g++-8 and clang-8, but I'm not sure if this made the difference. https://gist.github.com/orenyomtov/7dc59d121d8405f710711e6008cfa1bb |
That is likely the fix. Closing this for now. Please re-open if additional issues crop up. |
Does anyone perhaps know which dependencies are missing or what prerequisites there are to build the tests?
I am running into a bunch of 'undeclared identifier' errors as shown below. I am also not sure where 'N' is defined and what it does as I can't find anything about it.
etc.
In other repos, "alice1111111" is used as a string. It is not clear, for example, what data type it is supposed to be here.
Any help or advice on this will be much appreciated.
The text was updated successfully, but these errors were encountered: