Skip to content

Unable to Compile on Ubuntu: Hunter error #111

Open
@hilga007

Description

@hilga007

Here is the entire process from clone to error. Please see bottom for hunter-related errors.

eric@eric-b550-aorus:/Downloads$ git clone https://github.com/RavenCommunity/kawpowminer.git
Cloning into 'kawpowminer'...
remote: Enumerating objects: 82513, done.
remote: Counting objects: 100% (93/93), done.
remote: Compressing objects: 100% (73/73), done.
remote: Total 82513 (delta 37), reused 42 (delta 20), pack-reused 82420
Receiving objects: 100% (82513/82513), 54.35 MiB | 16.98 MiB/s, done.
Resolving deltas: 100% (61160/61160), done.
eric@eric-b550-aorus:
/Downloads$ git submodule update --init --recursive
fatal: not a git repository (or any of the parent directories): .git
eric@eric-b550-aorus:/Downloads$ cd kawpowminer
eric@eric-b550-aorus:
/Downloads/kawpowminer$ git submodule update --init --recursive
Submodule 'cmake/Hunter/disabled-mode' (https://github.com/hunter-packages/disabled-mode) registered for path 'cmake/Hunter/disabled-mode'
Submodule 'cmake/cable' (https://github.com/ethereum/cable) registered for path 'cmake/cable'
Cloning into '/home/eric/Downloads/kawpowminer/cmake/Hunter/disabled-mode'...
Cloning into '/home/eric/Downloads/kawpowminer/cmake/cable'...
Submodule path 'cmake/Hunter/disabled-mode': checked out '5f88a3d7565e8e2d61f7d2a3247068a9a9fe2c4b'
Submodule path 'cmake/cable': checked out '3e54f9751f50a3b6265c22402dcd5ae85ef701d4'
eric@eric-b550-aorus:/Downloads/kawpowminer$ mkdir build && cd build
eric@eric-b550-aorus:
/Downloads/kawpowminer/build$ cmake .. -DETHASHCUDA=ON -DETHASHCL=ON -DAPICORE=ON
-- [cable ] Cable 0.2.14 initialized
-- The C compiler identification is GNU 11.2.0
-- The CXX compiler identification is GNU 11.2.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /usr/bin/gcc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/g++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- [cable ] Build type: Release
-- [hunter] Calculating Toolchain-SHA1
-- [hunter] Calculating Config-SHA1
-- [hunter] HUNTER_ROOT: /home/eric/.hunter
-- [hunter] [ Hunter-ID: e14bc15 | Toolchain-ID: 7ee1f28 | Config-ID: e6a953b ]
-- [hunter] BOOST_ROOT: /home/eric/.hunter/_Base/e14bc15/7ee1f28/e6a953b/Install (ver.: 1.70.0-p0)
-- [hunter] BOOST_ROOT: /home/eric/.hunter/_Base/e14bc15/7ee1f28/e6a953b/Install (ver.: 1.70.0-p0)
-- [hunter] BOOST_ROOT: /home/eric/.hunter/_Base/e14bc15/7ee1f28/e6a953b/Install (ver.: 1.70.0-p0)
-- [hunter] BOOST_ROOT: /home/eric/.hunter/_Base/e14bc15/7ee1f28/e6a953b/Install (ver.: 1.70.0-p0)
-- [hunter] Building Boost (component: thread)
loading initial cache file /home/eric/.hunter/_Base/e14bc15/7ee1f28/e6a953b/cache.cmake
loading initial cache file /home/eric/.hunter/_Base/e14bc15/7ee1f28/e6a953b/Build/Boost/__thread/args.cmake
-- The C compiler identification is GNU 11.2.0
-- The CXX compiler identification is GNU 11.2.0
-- Check for working C compiler: /usr/bin/gcc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /usr/bin/g++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Configuring done
-- Generating done
-- Build files have been written to: /home/eric/.hunter/_Base/e14bc15/7ee1f28/e6a953b/Build/Boost/__thread/Build
[ 12%] Creating directories for 'Boost-thread'
[ 25%] Performing download step (download, verify and extract) for 'Boost-thread'
-- verifying file...
file='/home/eric/.hunter/_Base/Download/Boost/1.70.0-p0/e6bb97b/v1.70.0-p0.tar.gz'
-- File already exists and hash match (skip download):
file='/home/eric/.hunter/_Base/Download/Boost/1.70.0-p0/e6bb97b/v1.70.0-p0.tar.gz'
SHA1='e6bb97b5109c7c15ea459cf2b1a9d52cbf88a89e'
-- extracting...
src='/home/eric/.hunter/_Base/Download/Boost/1.70.0-p0/e6bb97b/v1.70.0-p0.tar.gz'
dst='/home/eric/.hunter/_Base/e14bc15/7ee1f28/e6a953b/Build/Boost/__thread/Source'
-- extracting... [tar xfz]
-- extracting... [analysis]
-- extracting... [rename]
-- extracting... [clean up]
-- extracting... done
[ 37%] Performing update step for 'Boost-thread'
[ 50%] No patch step for 'Boost-thread'
[ 62%] Performing configure step for 'Boost-thread'
Dummy patch command
Building Boost.Build engine with toolset gcc... tools/build/src/engine/bin.linuxx86_64/b2
Unicode/ICU support for Boost.Regex?... /usr
Generating Boost.Build configuration in project-config.jam for gcc...

Bootstrapping is done. To build, run:

./b2

To generate header files, run:

./b2 headers

To adjust configuration, edit 'project-config.jam'.
Further information:

[ 75%] Performing build step for 'Boost-thread'
Performing configuration checks

- default address-model    : 64-bit
- default architecture     : x86

Building the Boost C++ Libraries.

- lockfree boost::atomic_flag : yes

Component configuration:

- atomic                   : not building
- chrono                   : not building
- container                : not building
- context                  : not building
- contract                 : not building
- coroutine                : not building
- date_time                : not building
- exception                : not building
- fiber                    : not building
- filesystem               : not building
- graph                    : not building
- graph_parallel           : not building
- headers                  : not building
- iostreams                : not building
- locale                   : not building
- log                      : not building
- math                     : not building
- mpi                      : not building
- program_options          : not building
- python                   : not building
- random                   : not building
- regex                    : not building
- serialization            : not building
- stacktrace               : not building
- system                   : not building
- test                     : not building
- thread                   : building
- timer                    : not building
- type_erasure             : not building
- wave                     : not building

...patience...
...found 1277 targets...
...updating 25 targets...
gcc.compile.c++ bin.v2/libs/thread/build/gcc-11.2.0/release/link-static/threadapi-pthread/threading-multi/visibility-hidden/pthread/once.o
gcc.compile.c++ bin.v2/libs/thread/build/gcc-11.2.0/debug/link-static/threadapi-pthread/threading-multi/visibility-hidden/pthread/once.o
gcc.compile.c++ bin.v2/libs/thread/build/gcc-11.2.0/debug/link-static/threadapi-pthread/threading-multi/visibility-hidden/future.o
gcc.compile.c++ bin.v2/libs/thread/build/gcc-11.2.0/release/link-static/threadapi-pthread/threading-multi/visibility-hidden/future.o
gcc.compile.c++ bin.v2/libs/thread/build/gcc-11.2.0/debug/link-static/threadapi-pthread/threading-multi/visibility-hidden/pthread/thread.o
In file included from /usr/x86_64-linux-gnu/include/pthread.h:33,
from /usr/include/x86_64-linux-gnu/c++/11/bits/gthr-default.h:35,
from /usr/include/x86_64-linux-gnu/c++/11/bits/gthr.h:148,
from /usr/include/c++/11/ext/atomicity.h:35,
from /usr/include/c++/11/bits/basic_string.h:39,
from /usr/include/c++/11/string:55,
from ./boost/thread/exceptions.hpp:20,
from ./boost/thread/pthread/thread_data.hpp:10,
from ./boost/thread/thread_only.hpp:17,
from libs/thread/src/pthread/thread.cpp:11:
./boost/thread/pthread/thread_data.hpp:60:5: error: missing binary operator before token "("
60 | #if PTHREAD_STACK_MIN > 0
| ^~~~~~~~~~~~~~~~~

"/usr/bin/g++" "-std=c++11"   -fvisibility-inlines-hidden -m64 -pthread -O0 -fno-inline -Wall -g -fvisibility=hidden -Wextra -Wno-long-long -Wno-unused-parameter -Wunused-function -pedantic -DBOOST_ALL_NO_LIB=1 -DBOOST_THREAD_BUILD_LIB=1 -DBOOST_THREAD_DONT_USE_CHRONO -DBOOST_THREAD_POSIX  -I"." -c -o "bin.v2/libs/thread/build/gcc-11.2.0/debug/link-static/threadapi-pthread/threading-multi/visibility-hidden/pthread/thread.o" "libs/thread/src/pthread/thread.cpp"

...failed gcc.compile.c++ bin.v2/libs/thread/build/gcc-11.2.0/debug/link-static/threadapi-pthread/threading-multi/visibility-hidden/pthread/thread.o...
...skipped <pbin.v2/libs/thread/build/gcc-11.2.0/debug/link-static/threadapi-pthread/threading-multi/visibility-hidden>libboost_thread-mt-d-x64.a(clean) for lack of <pbin.v2/libs/thread/build/gcc-11.2.0/debug/link-static/threadapi-pthread/threading-multi/visibility-hidden>pthread/thread.o...
...skipped <pbin.v2/libs/thread/build/gcc-11.2.0/debug/link-static/threadapi-pthread/threading-multi/visibility-hidden>libboost_thread-mt-d-x64.a for lack of <pbin.v2/libs/thread/build/gcc-11.2.0/debug/link-static/threadapi-pthread/threading-multi/visibility-hidden>pthread/thread.o...
...skipped <p/home/eric/.hunter/_Base/e14bc15/7ee1f28/e6a953b/Build/Boost/__thread/Source/stage/lib>libboost_thread-mt-d-x64.a for lack of <pbin.v2/libs/thread/build/gcc-11.2.0/debug/link-static/threadapi-pthread/threading-multi/visibility-hidden>libboost_thread-mt-d-x64.a...
gcc.compile.c++ bin.v2/libs/thread/build/gcc-11.2.0/release/link-static/threadapi-pthread/threading-multi/visibility-hidden/pthread/thread.o
In file included from /usr/x86_64-linux-gnu/include/pthread.h:33,
from /usr/include/x86_64-linux-gnu/c++/11/bits/gthr-default.h:35,
from /usr/include/x86_64-linux-gnu/c++/11/bits/gthr.h:148,
from /usr/include/c++/11/ext/atomicity.h:35,
from /usr/include/c++/11/bits/basic_string.h:39,
from /usr/include/c++/11/string:55,
from ./boost/thread/exceptions.hpp:20,
from ./boost/thread/pthread/thread_data.hpp:10,
from ./boost/thread/thread_only.hpp:17,
from libs/thread/src/pthread/thread.cpp:11:
./boost/thread/pthread/thread_data.hpp:60:5: error: missing binary operator before token "("
60 | #if PTHREAD_STACK_MIN > 0
| ^~~~~~~~~~~~~~~~~

"/usr/bin/g++" "-std=c++11"   -fvisibility-inlines-hidden -m64 -pthread -O3 -finline-functions -Wno-inline -Wall -fvisibility=hidden -Wextra -Wno-long-long -Wno-unused-parameter -Wunused-function -pedantic -DBOOST_ALL_NO_LIB=1 -DBOOST_THREAD_BUILD_LIB=1 -DBOOST_THREAD_DONT_USE_CHRONO -DBOOST_THREAD_POSIX -DNDEBUG  -I"." -c -o "bin.v2/libs/thread/build/gcc-11.2.0/release/link-static/threadapi-pthread/threading-multi/visibility-hidden/pthread/thread.o" "libs/thread/src/pthread/thread.cpp"

...failed gcc.compile.c++ bin.v2/libs/thread/build/gcc-11.2.0/release/link-static/threadapi-pthread/threading-multi/visibility-hidden/pthread/thread.o...
...skipped <pbin.v2/libs/thread/build/gcc-11.2.0/release/link-static/threadapi-pthread/threading-multi/visibility-hidden>libboost_thread-mt-x64.a(clean) for lack of <pbin.v2/libs/thread/build/gcc-11.2.0/release/link-static/threadapi-pthread/threading-multi/visibility-hidden>pthread/thread.o...
...skipped <pbin.v2/libs/thread/build/gcc-11.2.0/release/link-static/threadapi-pthread/threading-multi/visibility-hidden>libboost_thread-mt-x64.a for lack of <pbin.v2/libs/thread/build/gcc-11.2.0/release/link-static/threadapi-pthread/threading-multi/visibility-hidden>pthread/thread.o...
...skipped <p/home/eric/.hunter/_Base/e14bc15/7ee1f28/e6a953b/Build/Boost/__thread/Source/stage/lib>libboost_thread-mt-x64.a for lack of <pbin.v2/libs/thread/build/gcc-11.2.0/release/link-static/threadapi-pthread/threading-multi/visibility-hidden>libboost_thread-mt-x64.a...
...failed updating 2 targets...
...skipped 6 targets...
...updated 17 targets...
gmake[2]: *** [CMakeFiles/Boost-thread.dir/build.make:86: Boost-thread-prefix/src/Boost-thread-stamp/Boost-thread-build] Error 1
gmake[1]: *** [CMakeFiles/Makefile2:83: CMakeFiles/Boost-thread.dir/all] Error 2
gmake: *** [Makefile:91: all] Error 2

[hunter ** FATAL ERROR **] Build step failed (dir: /home/eric/.hunter/_Base/e14bc15/7ee1f28/e6a953b/Build/Boost/__thread
[hunter ** FATAL ERROR **] [Directory:/home/eric/.hunter/_Base/Download/Hunter/0.23.214/e14bc15/Unpacked/cmake/projects/Boost/thread]

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

CMake Error at /home/eric/.hunter/_Base/Download/Hunter/0.23.214/e14bc15/Unpacked/cmake/modules/hunter_error_page.cmake:12 (message):
Call Stack (most recent call first):
/home/eric/.hunter/_Base/Download/Hunter/0.23.214/e14bc15/Unpacked/cmake/modules/hunter_fatal_error.cmake:20 (hunter_error_page)
/home/eric/.hunter/_Base/Download/Hunter/0.23.214/e14bc15/Unpacked/cmake/modules/hunter_download.cmake:617 (hunter_fatal_error)
/home/eric/.hunter/_Base/Download/Hunter/0.23.214/e14bc15/Unpacked/cmake/projects/Boost/thread/hunter.cmake:16 (hunter_download)
/home/eric/.hunter/_Base/Download/Hunter/0.23.214/e14bc15/Unpacked/cmake/modules/hunter_add_package.cmake:62 (include)
CMakeLists.txt:56 (hunter_add_package)

-- Configuring incomplete, errors occurred!
See also "/home/eric/Downloads/kawpowminer/build/CMakeFiles/CMakeOutput.log".

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions