ethereum / aleth

Aleth – Ethereum C++ client, tools and libraries
GNU General Public License v3.0
3.97k stars 2.17k forks source link

release 1.6.0 build error #5787

Open unegare opened 5 years ago

unegare commented 5 years ago
-- [cable ] Cable 0.4.2 initialized
-- The C compiler identification is GNU 7.4.0
-- The CXX compiler identification is GNU 7.4.0
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
CMake Error at cmake/cable/CableBuildType.cmake:14 (message):
  cable_set_build_type() can be used before project()
Call Stack (most recent call first):
  CMakeLists.txt:50 (cable_set_build_type)

-- Configuring incomplete, errors occurred!
moneroexamples commented 5 years ago

What OS?

unegare commented 5 years ago

ubuntu 18.04 cmake version 3.10.2

moneroexamples commented 5 years ago

Yes, I see the issue. I have no solution for now. Have you considered using latest version of alth, from its master branch. v.1.6.0 is from April and I don't how it relates to current eth.

unegare commented 5 years ago

It is also impossible

-- Build files have been written to: /home/user/.hunter/_Base/c022f0c/af070fb/02f0220/Build/cryptopp/Build/cryptopp-Release-prefix/src/cryptopp-Release-build
[ 75%] Performing build step for 'cryptopp-Release'
Scanning dependencies of target cryptopp-static
[  1%] Building CXX object CMakeFiles/cryptopp-static.dir/cryptlib.cpp.o
[  1%] Building CXX object CMakeFiles/cryptopp-static.dir/3way.cpp.o
[  1%] Building CXX object CMakeFiles/cryptopp-static.dir/integer.cpp.o
[  2%] Building CXX object CMakeFiles/cryptopp-static.dir/cpu.cpp.o
[  2%] Building CXX object CMakeFiles/cryptopp-static.dir/adler32.cpp.o
[  3%] Building CXX object CMakeFiles/cryptopp-static.dir/algebra.cpp.o
[  4%] Building CXX object CMakeFiles/cryptopp-static.dir/algparam.cpp.o
In file included from /usr/include/c++/7/bits/char_traits.h:39:0,
                 from /usr/include/c++/7/string:40,
                 from /home/user/.hunter/_Base/c022f0c/af070fb/02f0220/Build/cryptopp/Source/stdcpp.h:14,
                 from /home/user/.hunter/_Base/c022f0c/af070fb/02f0220/Build/cryptopp/Source/cryptlib.h:106,
                 from /home/user/.hunter/_Base/c022f0c/af070fb/02f0220/Build/cryptopp/Source/algparam.h:10,
                 from /home/user/.hunter/_Base/c022f0c/af070fb/02f0220/Build/cryptopp/Source/algparam.cpp:7:
/usr/include/c++/7/bits/stl_algobase.h:64:10: fatal error: /usr/include/c++/7/bits/stl_pair.h: Operation not permitted
compilation terminated.
CMakeFiles/cryptopp-static.dir/build.make:206: recipe for target 'CMakeFiles/cryptopp-static.dir/algparam.cpp.o' failed
make[5]: *** [CMakeFiles/cryptopp-static.dir/algparam.cpp.o] Error 1
make[5]: *** Waiting for unfinished jobs....
as: error while loading shared libraries: libbfd-2.30-system.so: cannot open shared object file: Operation not permitted
CMakeFiles/cryptopp-static.dir/build.make:62: recipe for target 'CMakeFiles/cryptopp-static.dir/cryptlib.cpp.o' failed
make[5]: *** [CMakeFiles/cryptopp-static.dir/cryptlib.cpp.o] Error 1
[  4%] Building CXX object CMakeFiles/cryptopp-static.dir/arc4.cpp.o
In file included from /usr/include/stdint.h:27:0,
                 from /usr/lib/gcc/x86_64-linux-gnu/7/include/stdint.h:9,
                 from /usr/include/c++/7/cstdint:41,
                 from /usr/include/c++/7/bits/char_traits.h:501,
                 from /usr/include/c++/7/string:40,
                 from /home/user/.hunter/_Base/c022f0c/af070fb/02f0220/Build/cryptopp/Source/stdcpp.h:14,
                 from /home/user/.hunter/_Base/c022f0c/af070fb/02f0220/Build/cryptopp/Source/cryptlib.h:106,
                 from /home/user/.hunter/_Base/c022f0c/af070fb/02f0220/Build/cryptopp/Source/arc4.h:10,
                 from /home/user/.hunter/_Base/c022f0c/af070fb/02f0220/Build/cryptopp/Source/arc4.cpp:11:
/usr/include/x86_64-linux-gnu/bits/types.h:27:10: fatal error: /usr/include/x86_64-linux-gnu/bits/wordsize.h: Operation not permitted
 #include <bits/wordsize.h>
          ^~~~~~~~~~~~~~~~~
compilation terminated.
CMakeFiles/cryptopp-static.dir/build.make:230: recipe for target 'CMakeFiles/cryptopp-static.dir/arc4.cpp.o' failed
make[5]: *** [CMakeFiles/cryptopp-static.dir/arc4.cpp.o] Error 1
CMakeFiles/Makefile2:99: recipe for target 'CMakeFiles/cryptopp-static.dir/all' failed
make[4]: *** [CMakeFiles/cryptopp-static.dir/all] Error 2
Makefile:140: recipe for target 'all' failed
make[3]: *** [all] Error 2
CMakeFiles/cryptopp-Release.dir/build.make:114: recipe for target 'cryptopp-Release-prefix/src/cryptopp-Release-stamp/cryptopp-Release-build' failed
make[2]: *** [cryptopp-Release-prefix/src/cryptopp-Release-stamp/cryptopp-Release-build] Error 2
CMakeFiles/Makefile2:67: recipe for target 'CMakeFiles/cryptopp-Release.dir/all' failed
make[1]: *** [CMakeFiles/cryptopp-Release.dir/all] Error 2
Makefile:83: recipe for target 'all' failed
make: *** [all] Error 2

[hunter ** FATAL ERROR **] Build step failed (dir: /home/user/.hunter/_Base/c022f0c/af070fb/02f0220/Build/cryptopp
[hunter ** FATAL ERROR **] [Directory:/home/user/.hunter/_Base/Download/Hunter/0.23.211/c022f0c/Unpacked/cmake/projects/cryptopp]

------------------------------ ERROR -----------------------------
    https://docs.hunter.sh/en/latest/reference/errors/error.external.build.failed.html
------------------------------------------------------------------

CMake Error at /home/user/.hunter/_Base/Download/Hunter/0.23.211/c022f0c/Unpacked/cmake/modules/hunter_error_page.cmake:12 (message):
Call Stack (most recent call first):
  /home/user/.hunter/_Base/Download/Hunter/0.23.211/c022f0c/Unpacked/cmake/modules/hunter_fatal_error.cmake:20 (hunter_error_page)
  /home/user/.hunter/_Base/Download/Hunter/0.23.211/c022f0c/Unpacked/cmake/modules/hunter_download.cmake:617 (hunter_fatal_error)
  /home/user/.hunter/_Base/Download/Hunter/0.23.211/c022f0c/Unpacked/cmake/projects/cryptopp/hunter.cmake:63 (hunter_download)
  /home/user/.hunter/_Base/Download/Hunter/0.23.211/c022f0c/Unpacked/cmake/modules/hunter_add_package.cmake:62 (include)
  CMakeLists.txt:74 (hunter_add_package)

-- Configuring incomplete, errors occurred!
See also "/home/user/aleth/build/CMakeFiles/CMakeOutput.log".
See also "/home/user/aleth/build/CMakeFiles/CMakeError.log".
unegare commented 5 years ago

but ... out of my perspective ... it is at least a strange behaviour to build within cmake, not make

moneroexamples commented 5 years ago

Building current master works. Must be something on your side. Maybe try pulling and compiling aleth from scratch using its master branch?

aleth uses hunter for its dependencies. so what you seen when you run cmake is hunter pulling and compiling dependencies, such as boost.