-
Notifications
You must be signed in to change notification settings - Fork 3.8k
Build on Ubuntu 17.04 (amd64) breaking. #413
Comments
My system is also ubuntu17.04, but compiled in ubuntu16.04, OK |
Your cmake log indicates that g++ is being used for compiling.
Set clang-4 as your preferred compiler before running cmake
or use the build.sh script as indicated in the README.md
|
@elmato I tried build.sh on ubuntu 17.04 - still failing at the same stage. Attaching my run of script's build.txt (zipped) here build.txt.zip script ~/build.txt Also, added a small fix to build.sh here fix |
@elmato @bytemaster please re-open this issue as there seems to be a genuine issue here. It seems that wasm's llvm is not compiled with cmake's -DLLVM_ENABLE_RTTI=ON option both on Linux and macOS. I have added a fix here. Once this issue reopens - I will initiate a pull request for the same. |
Ref #466 @siginfo I have successfully built the project using the current build.sh as it is now. The Ubuntu packages from https://apt.llvm.org have rtti enabled (those are the ones installed by install_dependecies.sh). You can check that using llvm-config --has-rtti
|
@elmato are you sure that https://github.com/llvm-mirror/llvm.git and https://github.com/llvm-mirror/clang.git (because that is what is referenced in scripts/install_dependencies.sh) has the RTTI CMAKE switch 'ON'? I tried it on my macOS - same issue with linking errors. But then when I added RTTI switch back - the build on macOS went fine. I am now trying to build a new ubuntu-amd64-16.10 virtual machine to see if something I am not doing correctly. |
hi @elmato, @siginfo, how long does it take to build? i have been doing it for a while now. More than 3hrs |
@minimizeTrustLess it took around 1:30 hrs before it failed on my machine (same as your setup). Check the build logs here. |
@siginfo thanks for the comment, Failed as i had suspected.i left it running all night lol, thought my laptop is 8 years old...i did not do a std output or std err...not sure if this build shell script actually writes log to something....i got tired and let my laptop run all night. woke up to see the below make[2]: *** [contracts/test_api/test_api.wast] Error 127 i see below too... not sure when this shows up in the build info.... |
@elmato @minimizeTrustLess I was successfully able to build on my fresh ubuntu (amd64) 17.04 machine via build.sh. I guess my clang on ubuntu was stale which was missing rtti support. |
@siginfo i am trying a new one in a brand new fast laptop. |
@minimizeTrustLess @elmato build on my fresh macOS Sierra (10.12.6) went well with |
@siginfo it failed like this.... -- Configuring incomplete, errors occurred! |
@minimizeTrustLess do this: $ script ~/build.txt
$ ./build.sh ubuntu
$ exit send the gist of the ~/build.txt file note: don't forget to pull submodules |
@siginfo. Thank you much for the info. I am doing a fresh pull and all over again....staring now :)
|
@siginfo @elmato looks like it finally built? if so great :D |
@siginfo @elmato Awesome sauce.. I was able to build finally. Now time for experimenting with true decentralization...
|
DLLVM_ENABLE_RTTI=1 |
I was trying to build eos on ubuntu 17.04 (amd64) and followed the instructions mentioned in the README.md.
EOS environment
gcc/g++ version
I exported following variables from bashrc, namely
environment variables
The build failure logs are located in this gist
Am I missing something?
The text was updated successfully, but these errors were encountered: