k-nuth / kth

High performance Bitcoin development platform

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Linking error (std::filesystem) GCC8 on Debian10

gasull opened this issue · comments

$ conan install kth/0.X@kth/stable -o currency=BCH
Configuration:
[settings]
arch=x86_64
arch_build=x86_64
build_type=Release
compiler=gcc
compiler.libcxx=libstdc++
compiler.version=8
os=Linux
os_build=Linux
[options]
currency=BCH
[build_requires]
[env]

[...]

CMake Warning:
  Manually-specified variables were not used by the project:

    CMAKE_EXPORT_NO_PACKAGE_REGISTRY
    CMAKE_INSTALL_BINDIR
    CMAKE_INSTALL_DATAROOTDIR
    CMAKE_INSTALL_INCLUDEDIR
    CMAKE_INSTALL_LIBDIR
    CMAKE_INSTALL_LIBEXECDIR
    CMAKE_INSTALL_OLDINCLUDEDIR
    CMAKE_INSTALL_SBINDIR
    ENABLE_POSITION_INDEPENDENT_CODE
    ENABLE_SHARED


-- Build files have been written to: /home/user/.conan/data/kth/0.3.2/kth/staging/build/9d2b433e501e646b8173fb4b364d4658e90e2b12
Scanning dependencies of target kth-node-exe
[ 25%] Building CXX object CMakeFiles/kth-node-exe.dir/console/executor.cpp.o
[ 50%] Building CXX object CMakeFiles/kth-node-exe.dir/console/main.cpp.o
[ 75%] Building CXX object CMakeFiles/kth-node-exe.dir/console/user_agent.cpp.o
[100%] Linking CXX executable bin/kth
/usr/bin/ld: CMakeFiles/kth-node-exe.dir/console/executor.cpp.o: in function `kth::node_exe::executor::verify_directory()':
executor.cpp:(.text+0x145a): undefined reference to `std::filesystem::status(std::filesystem::__cxx11::path const&, std::error_code&)'
/usr/bin/ld: CMakeFiles/kth-node-exe.dir/console/executor.cpp.o: in function `kth::node_exe::executor::do_initchain()':
executor.cpp:(.text+0x2303): undefined reference to `std::filesystem::create_directories(std::filesystem::__cxx11::path const&, std::error_code&)'
/usr/bin/ld: /home/user/.conan/data/node/0.3.2/kth/staging/package/961250ccdcbf13d556cb9ab840620bc774782121/lib/libkth-node.a(parser.cpp.o): in function `kth::node::parser::parse(int, char const**, std::ostream&)':
parser.cpp:(.text+0x1dd2): undefined reference to `std::filesystem::__cxx11::path::_M_split_cmpts()'
/usr/bin/ld: /home/user/.conan/data/node/0.3.2/kth/staging/package/961250ccdcbf13d556cb9ab840620bc774782121/lib/libkth-node.a(parser.cpp.o): in function `kth::node::parser::parse_from_file(std::filesystem::__cxx11::path const&, std::ostream&)':
parser.cpp:(.text+0x24b3): undefined reference to `std::filesystem::__cxx11::path::_M_split_cmpts()'
/usr/bin/ld: /home/user/.conan/data/node/0.3.2/kth/staging/package/961250ccdcbf13d556cb9ab840620bc774782121/lib/libkth-node.a(parser.cpp.o): in function `kth::domain::config::parser<kth::node::parser>::load_configuration_variables_path(boost::program_options::variables_map&, std::filesystem::__cxx11::path const&)':
parser.cpp:(.text._ZN3kth6domain6config6parserINS_4node6parserEE33load_configuration_variables_pathERN5boost15program_options13variables_mapERKNSt10filesystem7__cxx114pathE[_ZN3kth6domain6config6parserINS_4node6parserEE33load_configuration_variables_pathERN5boost15program_options13variables_mapERKNSt10filesystem7__cxx114pathE]+0x50): undefined reference to `std::filesystem::status(std::filesystem::__cxx11::path const&, std::error_code&)'
/usr/bin/ld: /home/user/.conan/data/node/0.3.2/kth/staging/package/961250ccdcbf13d556cb9ab840620bc774782121/lib/libkth-node.a(parser.cpp.o): in function `std::basic_istream<char, std::char_traits<char> >& std::filesystem::__cxx11::operator>><char, std::char_traits<char> >(std::basic_istream<char, std::char_traits<char> >&, std::filesystem::__cxx11::path&)':
parser.cpp:(.text._ZNSt10filesystem7__cxx11rsIcSt11char_traitsIcEEERSt13basic_istreamIT_T0_ES8_RNS0_4pathE[_ZNSt10filesystem7__cxx11rsIcSt11char_traitsIcEEERSt13basic_istreamIT_T0_ES8_RNS0_4pathE]+0xe3): undefined reference to `std::filesystem::__cxx11::path::_M_split_cmpts()'
/usr/bin/ld: parser.cpp:(.text._ZNSt10filesystem7__cxx11rsIcSt11char_traitsIcEEERSt13basic_istreamIT_T0_ES8_RNS0_4pathE[_ZNSt10filesystem7__cxx11rsIcSt11char_traitsIcEEERSt13basic_istreamIT_T0_ES8_RNS0_4pathE]+0x1ee): undefined reference to `std::filesystem::__cxx11::path::_M_split_cmpts()'
/usr/bin/ld: /home/user/.conan/data/node/0.3.2/kth/staging/package/961250ccdcbf13d556cb9ab840620bc774782121/lib/libkth-node.a(parser.cpp.o): in function `void boost::program_options::validate<std::filesystem::__cxx11::path, char>(boost::any&, std::vector<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::allocator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > > > const&, std::filesystem::__cxx11::path*, long) [clone .constprop.807]':
parser.cpp:(.text._ZN5boost15program_options8validateINSt10filesystem7__cxx114pathEcEEvRNS_3anyERKSt6vectorINSt7__cxx1112basic_stringIT0_St11char_traitsISA_ESaISA_EEESaISE_EEPT_l.constprop.807[_ZNK5boost15program_options11typed_valueINSt10filesystem7__cxx114pathEcE6xparseERNS_3anyERKSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaISE_EE]+0x3af): undefined reference to `std::filesystem::__cxx11::path::_M_split_cmpts()'
/usr/bin/ld: parser.cpp:(.text._ZN5boost15program_options8validateINSt10filesystem7__cxx114pathEcEEvRNS_3anyERKSt6vectorINSt7__cxx1112basic_stringIT0_St11char_traitsISA_ESaISA_EEESaISE_EEPT_l.constprop.807[_ZNK5boost15program_options11typed_valueINSt10filesystem7__cxx114pathEcE6xparseERNS_3anyERKSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaISE_EE]+0x3ce): undefined reference to `std::filesystem::__cxx11::path::_M_split_cmpts()'
/usr/bin/ld: /home/user/.conan/data/network/0.3.2/kth/staging/package/7f0c3440b8800b8860ca196a75c4199c8535c561/lib/libkth-network.a(settings.cpp.o): in function `kth::network::settings::settings()':
settings.cpp:(.text+0x150): undefined reference to `std::filesystem::__cxx11::path::_M_split_cmpts()'
/usr/bin/ld: /home/user/.conan/data/network/0.3.2/kth/staging/package/7f0c3440b8800b8860ca196a75c4199c8535c561/lib/libkth-network.a(settings.cpp.o):settings.cpp:(.text+0x22c): more undefined references to `std::filesystem::__cxx11::path::_M_split_cmpts()' follow
/usr/bin/ld: /home/user/.conan/data/database/0.3.4/kth/staging/package/555009dae4960317e5523b40fe8ff4c416469ea7/lib/libkth-database.a(data_base.cpp.o): in function `kth::database::internal_database_basis<std::chrono::_V2::system_clock>::create()':
data_base.cpp:(.text._ZN3kth8database23internal_database_basisINSt6chrono3_V212system_clockEE6createEv[_ZN3kth8database23internal_database_basisINSt6chrono3_V212system_clockEE6createEv]+0x2f): undefined reference to `std::filesystem::create_directories(std::filesystem::__cxx11::path const&, std::error_code&)'
/usr/bin/ld: /home/user/.conan/data/database/0.3.4/kth/staging/package/555009dae4960317e5523b40fe8ff4c416469ea7/lib/libkth-database.a(settings.cpp.o): in function `kth::database::settings::settings()':
settings.cpp:(.text+0x47): undefined reference to `std::filesystem::__cxx11::path::_M_split_cmpts()'
/usr/bin/ld: /home/user/.conan/data/database/0.3.4/kth/staging/package/555009dae4960317e5523b40fe8ff4c416469ea7/lib/libkth-database.a(store.cpp.o): in function `kth::database::store::store(std::filesystem::__cxx11::path const&, bool, bool)':
store.cpp:(.text+0x79): undefined reference to `std::filesystem::__cxx11::path::_M_split_cmpts()'
/usr/bin/ld: store.cpp:(.text+0x182): undefined reference to `std::filesystem::__cxx11::path::has_root_directory() const'
/usr/bin/ld: store.cpp:(.text+0x254): undefined reference to `std::filesystem::__cxx11::path::has_filename() const'
/usr/bin/ld: store.cpp:(.text+0x2c1): undefined reference to `std::filesystem::__cxx11::path::_M_split_cmpts()'
/usr/bin/ld: store.cpp:(.text+0x381): undefined reference to `std::filesystem::__cxx11::path::_M_split_cmpts()'
collect2: error: ld returned 1 exit status
make[2]: *** [CMakeFiles/kth-node-exe.dir/build.make:114: bin/kth] Error 1
make[1]: *** [CMakeFiles/Makefile2:73: CMakeFiles/kth-node-exe.dir/all] Error 2
make: *** [Makefile:130: all] Error 2
kth/0.3.2@kth/staging: 
kth/0.3.2@kth/staging: ERROR: Package '9d2b433e501e646b8173fb4b364d4658e90e2b12' build failed
kth/0.3.2@kth/staging: WARN: Build folder /home/user/.conan/data/kth/0.3.2/kth/staging/build/9d2b433e501e646b8173fb4b364d4658e90e2b12
ERROR: kth/0.3.2@kth/staging: Error in build() method, line 171
	cmake.build()
	ConanException: Error 2 while executing cmake --build '/home/user/.conan/data/kth/0.3.2/kth/staging/build/9d2b433e501e646b8173fb4b364d4658e90e2b12' '--' '-j2'
$ cat /etc/*release
PRETTY_NAME="Debian GNU/Linux 10 (buster)"
NAME="Debian GNU/Linux"
VERSION_ID="10"
VERSION="10 (buster)"
VERSION_CODENAME=buster
ID=debian
HOME_URL="https://www.debian.org/"
SUPPORT_URL="https://www.debian.org/support"
BUG_REPORT_URL="https://bugs.debian.org/"
cmake --version
cmake version 3.13.4

CMake suite maintained and supported by Kitware (kitware.com/cmake).
$ cat /etc/debian_version 
10.5

@gasull thanks for reporting this issue.
The fix will be included in the next version of the node (v0.4.0).