ethereum-mining / ethminer

Ethereum miner with OpenCL, CUDA and stratum support
GNU General Public License v3.0
5.96k stars 2.28k forks source link

make error on power #1880

Open thsitthisak opened 5 years ago

thsitthisak commented 5 years ago

15/4/19

VERBOSE=1 cmake .. -DETHASHCUDA=ON -DETHASHCL=OFF -DCOMPUTE=61

error sudo make

[100%] Linking CXX executable ethminer ../libethcore/libethcore.a(Farm.cpp.o): In function dev::eth::Farm::spawn_file_in_bin_dir(char const*, std::vector<std::__cxx11::basic_stri ng<char, std::char_traits<char>, std::allocator<char> >, std::allocator<std::__cxx11::basic_string<char, std::char_traits<char>, std::alloca tor<char> > > > const&)': Farm.cpp:(.text._ZN3dev3eth4Farm21spawn_file_in_bin_dirEPKcRKSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaISA_EE+0x80): u ndefined reference toboost::filesystem::detail::read_symlink(boost::filesystem::path const&, boost::system::error_code)' Farm.cpp:(.text._ZN3dev3eth4Farm21spawn_file_in_bin_dirEPKcRKSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaISA_EE+0xdc): u ndefined reference to boost::filesystem::path::parent_path() const' Farm.cpp:(.text._ZN3dev3eth4Farm21spawn_file_in_bin_dirEPKcRKSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaISA_EE+0x190): undefined reference toboost::filesystem::detail::status(boost::filesystem::path const&, boost::system::error_code)' Farm.cpp:(.text._ZN3dev3eth4Farm21spawn_file_in_bin_dirEPKcRKSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaISA_EE+0x1d8): undefined reference to `boost::filesystem::detail::file_size(boost::filesystem::path const&, boost::system::error_code*)' collect2: error: ld returned 1 exit status ethminer/CMakeFiles/ethminer.dir/build.make:102: recipe for target 'ethminer/ethminer' failed make[2]: [ethminer/ethminer] Error 1 CMakeFiles/Makefile2:440: recipe for target 'ethminer/CMakeFiles/ethminer.dir/all' failed make[1]: [ethminer/CMakeFiles/ethminer.dir/all] Error 2 Makefile:151: recipe for target 'all' failed make: *** [all] Error 2 sith@ubuntuSrv:~/ethminer/build$

qinghuannn commented 3 years ago

I have the same issue. Anyone knows how to solve it?

[100%] Linking CXX executable ethminer
../libethcore/libethcore.a(Farm.cpp.o): In function `dev::eth::Farm::spawn_file_in_bin_dir(char const*, std::vector<std::__cxx11::basic_string<char, st
d::char_traits<char>, std::allocator<char> >, std::allocator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > > > const&
)':
Farm.cpp:(.text._ZN3dev3eth4Farm21spawn_file_in_bin_dirEPKcRKSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaISA_EE+0x8a): undefined re
ference 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 re
ference to `boost::filesystem::path::parent_path() const'
Farm.cpp:(.text._ZN3dev3eth4Farm21spawn_file_in_bin_dirEPKcRKSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaISA_EE+0x20f): undefined r
eference 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 r
eference 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<boost::filesystem::detail::dir_itr_imp>::dispose()':
wrapamdsysfs.cpp:(.text._ZN5boost6detail17sp_counted_impl_pINS_10filesystem6detail11dir_itr_impEE7disposeEv[_ZN5boost6detail17sp_counted_impl_pINS_10fi
lesystem6detail11dir_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): undef
ined reference to `boost::filesystem::detail::directory_iterator_construct(boost::filesystem::directory_iterator&, boost::filesystem::path const&, boos
t::system::error_code*)'
wrapamdsysfs.cpp:(.text._ZN5boost10filesystem18directory_iteratorC2ERKNS0_4pathE[_ZN5boost10filesystem18directory_iteratorC5ERKNS0_4pathE]+0x100): unde
fined 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&, boos
t::system::error_code*)'
wrapamdsysfs.cpp:(.text._Z20wrap_amdsysfs_createv+0x9e): undefined reference to `boost::filesystem::detail::status(boost::filesystem::path const&, boos
t::system::error_code*)'
wrapamdsysfs.cpp:(.text._Z20wrap_amdsysfs_createv+0x36f): undefined reference to `boost::filesystem::detail::status(boost::filesystem::path const&, boo
st::system::error_code*)'
wrapamdsysfs.cpp:(.text._Z20wrap_amdsysfs_createv+0x387): undefined reference to `boost::filesystem::detail::directory_iterator_increment(boost::filesy
stem::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&, boo
st::system::error_code*)'
wrapamdsysfs.cpp:(.text._Z20wrap_amdsysfs_createv+0x7d7): undefined reference to `boost::filesystem::detail::status(boost::filesystem::path const&, boo
st::system::error_code*)'
wrapamdsysfs.cpp:(.text._Z20wrap_amdsysfs_createv+0x8fb): undefined reference to `boost::filesystem::detail::status(boost::filesystem::path const&, boo
st::system::error_code*)'
wrapamdsysfs.cpp:(.text._Z20wrap_amdsysfs_createv+0x919): undefined reference to `boost::filesystem::detail::status(boost::filesystem::path const&, boo
st::system::error_code*)'
wrapamdsysfs.cpp:(.text._Z20wrap_amdsysfs_createv+0xaeb): undefined reference to `boost::filesystem::detail::status(boost::filesystem::path const&, boo
st::system::error_code*)'
wrapamdsysfs.cpp:(.text._Z20wrap_amdsysfs_createv+0xb05): undefined reference to `boost::filesystem::detail::directory_iterator_increment(boost::filesy
stem::directory_iterator&, boost::system::error_code*)'
wrapamdsysfs.cpp:(.text._Z20wrap_amdsysfs_createv+0xbc4): undefined reference to `boost::filesystem::detail::status(boost::filesystem::path const&, boo
st::system::error_code*)'
wrapamdsysfs.cpp:(.text._Z20wrap_amdsysfs_createv+0xbe2): undefined reference to `boost::filesystem::detail::status(boost::filesystem::path const&, boo
st::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 status
ethminer/CMakeFiles/ethminer.dir/build.make:113: recipe for target 'ethminer/ethminer' failed
make[2]: *** [ethminer/ethminer] Error 1