Ethminer boost

Comment

Author: Admin | 2025-04-28

Describe the bugI had an error when I tried to compile ethminer.To Reproducerun command:$ cd build$ cmake .. -DETHASHCL=OFF -DAPICORE=OFF -DBINKERN=OFF -DETHDBUS=OFF$ cmake --build ., std::allocator >, std::allocator, std::allocator > > > const&)':Farm.cpp:(.text._ZN3dev3eth4Farm21spawn_file_in_bin_dirEPKcRKSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaISA_EE+0x8a): undefined reference to `boost::filesystem::detail::read_symlink(boost::filesystem::path const&, boost::system::error_code*)'Farm.cpp:(.text._ZN3dev3eth4Farm21spawn_file_in_bin_dirEPKcRKSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaISA_EE+0xd8): undefined reference to `boost::filesystem::path::parent_path() const'Farm.cpp:(.text._ZN3dev3eth4Farm21spawn_file_in_bin_dirEPKcRKSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaISA_EE+0x20f): undefined reference to `boost::filesystem::detail::status(boost::filesystem::path const&, boost::system::error_code*)'Farm.cpp:(.text._ZN3dev3eth4Farm21spawn_file_in_bin_dirEPKcRKSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaISA_EE+0x2b5): undefined reference to `boost::filesystem::detail::file_size(boost::filesystem::path const&, boost::system::error_code*)'../libhwmon/libhwmon.a(wrapamdsysfs.cpp.o): In function `boost::detail::sp_counted_impl_p::dispose()':wrapamdsysfs.cpp:(.text._ZN5boost6detail17sp_counted_impl_pINS_10filesystem6detail11dir_itr_impEE7disposeEv[_ZN5boost6detail17sp_counted_impl_pINS_10filesystem6detail11dir_itr_impEE7disposeEv]+0x13): undefined reference to `boost::filesystem::detail::dir_itr_close(void*&, void*&)'../libhwmon/libhwmon.a(wrapamdsysfs.cpp.o): In function `boost::filesystem::directory_iterator::directory_iterator(boost::filesystem::path const&)':wrapamdsysfs.cpp:(.text._ZN5boost10filesystem18directory_iteratorC2ERKNS0_4pathE[_ZN5boost10filesystem18directory_iteratorC5ERKNS0_4pathE]+0xab): undefined reference to `boost::filesystem::detail::directory_iterator_construct(boost::filesystem::directory_iterator&, boost::filesystem::path const&, boost::system::error_code*)'wrapamdsysfs.cpp:(.text._ZN5boost10filesystem18directory_iteratorC2ERKNS0_4pathE[_ZN5boost10filesystem18directory_iteratorC5ERKNS0_4pathE]+0x100): undefined reference to `boost::filesystem::detail::dir_itr_close(void*&, void*&)'../libhwmon/libhwmon.a(wrapamdsysfs.cpp.o): In function `wrap_amdsysfs_create()':wrapamdsysfs.cpp:(.text._Z20wrap_amdsysfs_createv+0x79): undefined reference to `boost::filesystem::detail::status(boost::filesystem::path const&, boost::system::error_code*)'wrapamdsysfs.cpp:(.text._Z20wrap_amdsysfs_createv+0x9e): undefined reference to `boost::filesystem::detail::status(boost::filesystem::path const&, boost::system::error_code*)'wrapamdsysfs.cpp:(.text._Z20wrap_amdsysfs_createv+0x36f): undefined reference to `boost::filesystem::detail::status(boost::filesystem::path const&, boost::system::error_code*)'wrapamdsysfs.cpp:(.text._Z20wrap_amdsysfs_createv+0x387): undefined reference to `boost::filesystem::detail::directory_iterator_increment(boost::filesystem::directory_iterator&, boost::system::error_code*)'wrapamdsysfs.cpp:(.text._Z20wrap_amdsysfs_createv+0x53c): undefined reference to `boost::filesystem::path::filename() const'wrapamdsysfs.cpp:(.text._Z20wrap_amdsysfs_createv+0x5df): undefined reference to `boost::filesystem::path::filename() const'wrapamdsysfs.cpp:(.text._Z20wrap_amdsysfs_createv+0x7bb): undefined reference to `boost::filesystem::detail::status(boost::filesystem::path const&, boost::system::error_code*)'wrapamdsysfs.cpp:(.text._Z20wrap_amdsysfs_createv+0x7d7): undefined reference to `boost::filesystem::detail::status(boost::filesystem::path const&, boost::system::error_code*)'wrapamdsysfs.cpp:(.text._Z20wrap_amdsysfs_createv+0x8fb): undefined reference to `boost::filesystem::detail::status(boost::filesystem::path const&, boost::system::error_code*)'wrapamdsysfs.cpp:(.text._Z20wrap_amdsysfs_createv+0x919): undefined reference to `boost::filesystem::detail::status(boost::filesystem::path const&, boost::system::error_code*)'wrapamdsysfs.cpp:(.text._Z20wrap_amdsysfs_createv+0xaeb): undefined reference to `boost::filesystem::detail::status(boost::filesystem::path const&, boost::system::error_code*)'wrapamdsysfs.cpp:(.text._Z20wrap_amdsysfs_createv+0xb05): undefined reference to `boost::filesystem::detail::directory_iterator_increment(boost::filesystem::directory_iterator&, boost::system::error_code*)'wrapamdsysfs.cpp:(.text._Z20wrap_amdsysfs_createv+0xbc4): undefined reference to `boost::filesystem::detail::status(boost::filesystem::path const&, boost::system::error_code*)'wrapamdsysfs.cpp:(.text._Z20wrap_amdsysfs_createv+0xbe2): undefined reference to `boost::filesystem::detail::status(boost::filesystem::path const&, boost::system::error_code*)'wrapamdsysfs.cpp:(.text._Z20wrap_amdsysfs_createv+0xc24): undefined reference to `boost::filesystem::path::filename() const'wrapamdsysfs.cpp:(.text._Z20wrap_amdsysfs_createv+0xcc0): undefined reference to `boost::filesystem::path::filename() const'collect2: error: ld returned 1 exit statusethminer/CMakeFiles/ethminer.dir/build.make:113: recipe for target 'ethminer/ethminer' failedmake[2]: *** [ethminer/ethminer] Error 1CMakeFiles/Makefile2:435: recipe for target 'ethminer/CMakeFiles/ethminer.dir/all' failedmake[1]: *** [ethminer/CMakeFiles/ethminer.dir/all] Error 2Makefile:151: recipe for target 'all' failed">$ cmake --build .Scanning dependencies of target ethminer-buildinfo-git[ 0%] Built target ethminer-buildinfo-git[ 3%] Updating ethminer-buildinfo: Project Version: 0.19.0-17+commit.ce52c740.dirty (prerelease) System Name: linux System Processor: x86_64 Compiler ID: gnu Compiler Version: 7.5.0 Build Type: release Git Info: 0.19.0 17 ce52c74021b6fbaaddea3c3c52f64f24e39ea3e9 (dirty) Timestamp: 2021-03-21T13:48:57Scanning dependencies of target ethminer-buildinfo[ 7%] Building C object CMakeFiles/ethminer-buildinfo.dir/ethminer/buildinfo.c.o[ 10%] Linking C static library ethminer/libethminer-buildinfo.a[ 10%] Built target ethminer-buildinfoScanning dependencies of target devcore[ 14%] Building CXX object libdevcore/CMakeFiles/devcore.dir/CommonData.cpp.o[ 17%] Building CXX object libdevcore/CMakeFiles/devcore.dir/FixedHash.cpp.o[ 21%] Building CXX object libdevcore/CMakeFiles/devcore.dir/Log.cpp.o[ 25%] Building CXX object libdevcore/CMakeFiles/devcore.dir/Worker.cpp.o[ 28%] Linking CXX static library libdevcore.a[ 28%] Built target devcoreScanning dependencies of target hwmon[ 32%] Building CXX object libhwmon/CMakeFiles/hwmon.dir/wraphelper.cpp.o[ 35%] Building CXX object libhwmon/CMakeFiles/hwmon.dir/wrapnvml.cpp.o[ 39%] Building CXX object libhwmon/CMakeFiles/hwmon.dir/wrapadl.cpp.o[ 42%] Building CXX object libhwmon/CMakeFiles/hwmon.dir/wrapamdsysfs.cpp.o[ 46%] Linking CXX static library libhwmon.a[ 46%] Built target hwmon[ 50%] Building NVCC (Device) object libethash-cuda/CMakeFiles/ethash-cuda.dir/ethash-cuda_generated_ethash_cuda_miner_kernel.cu.optxas info : 0 bytes gmem, 264 bytes cmem[3]ptxas info : Compiling entry function '_Z25ethash_calculate_dag_itemj' for 'sm_30'ptxas info : Function properties for _Z25ethash_calculate_dag_itemj 416 bytes stack frame, 668 bytes spill stores, 416 bytes spill loadsptxas info : Used 63 registers, 324 bytes cmem[0], 36 bytes cmem[2]ptxas info : Compiling entry function '_Z13ethash_searchPV14Search_resultsm' for 'sm_30'ptxas info : Function properties for _Z13ethash_searchPV14Search_resultsm 80 bytes stack frame, 216

Add Comment