Open Davcg5 opened 6 years ago
hey) I'm writing this 3 years later, but nevermind
I have a similar problem. After make
it stops at Linking CXX executable darknet, but the messages are different:
ld: warning: ignoring file ../darknet_cl/clBLAS/libclBLAS.so, building for macOS-x86_64 but attempting to link with file built for unknown-unsupported file format ( 0x7F 0x45 0x4C 0x46 0x02 0x01 0x01 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 ) Undefined symbols for architecture x86_64: "_clblasSetup", referenced from: CLWarpper::CLWarpper(int) in cl_warpper.cpp.o CLWarpper::CLWarpper(int) in cl_warpper.cpp.o CLWarpper::CLWarpper() in cl_warpper.cpp.o CLWarpper::CLWarpper() in cl_warpper.cpp.o CLWarpper::CLWarpper(_cl_platform_id*, _cl_device_id*) in cl_warpper.cpp.o CLWarpper::CLWarpper(_cl_platform_id*, _cl_device_id*) in cl_warpper.cpp.o CLWarpper::createForIndexedGpu(int) in cl_warpper.cpp.o ... "_clblasSgemm", referenced from: gemm_gpu(int, int, int, int, int, float, CLArray, int, CLArray, int, float, CLArray, int) in gemm.cpp.o "_clblasTeardown", referenced from: CLWarpper::~CLWarpper() in cl_warpper.cpp.o ld: symbol(s) not found for architecture x86_64 clang: error: linker command failed with exit code 1 (use -v to see invocation) make[2]: *** [darknet] Error 1 make[1]: *** [CMakeFiles/darknet.dir/all] Error 2 make: *** [all] Error 2
Does anybody know what to do with that?
When I enter make It stops working at: Linking CXX executable darknet
The output is: ../darknet_cl/clBLAS/libclBLAS.so: undefined reference to, std::allocator >::operator=(std:: cxx11::basic_string<char, std::char_traits, std::allocator > const&)@GLIBCXX_3.4.21'
../darknet_cl/clBLAS/libclBLAS.so: undefined reference to , std::allocator >::~basic_string()@GLIBCXX_3.4.21'
../darknet_cl/clBLAS/libclBLAS.so: undefined reference to cxx11::basic_string<char, std::char_traits, std::allocator >::basic_string(std::cxx11::basic_string<char, std::char_traits, std::allocator > const&)@GLIBCXX_3.4.21'
../darknet_cl/clBLAS/libclBLAS.so: undefined reference to `std:: cxx11::basic_stringstream<char, std::char_traits, std::allocator >::basic_stringstream(std::_Ios_Openmode)@GLIBCXX_3.4.21'
../darknet_cl/clBLAS/libclBLAS.so: undefined reference to , std::allocator >::~basic_stringstream()@GLIBCXX_3.4.21'
../darknet_cl/clBLAS/libclBLAS.so: undefined reference to , std::allocator >::basic_string(std:: cxx11::basic_string<char, std::char_traits, std::allocator >&&)@GLIBCXX_3.4.21'
../darknet_cl/clBLAS/libclBLAS.so: undefined reference to , std::allocator >::insert(unsigned long, char const*)@GLIBCXX_3.4.21'
../darknet_cl/clBLAS/libclBLAS.so: undefined reference to `std:: cxx11::basic_string<char, std::char_traits, std::allocator >::append(std::cxx11::basic_string<char, std::char_traits, std::allocator > const&)@GLIBCXX_3.4.21'
../darknet_cl/clBLAS/libclBLAS.so: undefined reference to `std:: cxx11::basic_stringstream<char, std::char_traits, std::allocator >::str() const@GLIBCXX_3.4.21'
../darknet_cl/clBLAS/libclBLAS.so: undefined reference to , std::allocator >::basic_string()@GLIBCXX_3.4.21'
../darknet_cl/clBLAS/libclBLAS.so: undefined reference to , std::allocator >::operator=(char const*)@GLIBCXX_3.4.21'
collect2: error: ld returned 1 exit status
make[2]: [darknet] Error 1
make[1]: [CMakeFiles/darknet.dir/all] Error 2
make: *** [all] Error 2
std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::size() const@GLIBCXX_3.4.21' ../darknet_cl/clBLAS/libclBLAS.so: undefined reference to
std::cxx11::basic_string<char, std::char_traitsstd::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::operator+=(char const*)@GLIBCXX_3.4.21' ../darknet_cl/clBLAS/libclBLAS.so: undefined reference to
std::cxx11::basic_string<char, std::char_traitsstd::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::c_str() const@GLIBCXX_3.4.21' ../darknet_cl/clBLAS/libclBLAS.so: undefined reference to
std::std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::append(char const*)@GLIBCXX_3.4.21' ../darknet_cl/clBLAS/libclBLAS.so: undefined reference to
std::cxx11::basic_stringstream<char, std::char_traitsstd::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::compare(char const*) const@GLIBCXX_3.4.21' ../darknet_cl/clBLAS/libclBLAS.so: undefined reference to
std::__cxx11::basic_string<char, std::char_traitsstd::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::basic_string(char const*, std::allocator<char> const&)@GLIBCXX_3.4.21' ../darknet_cl/clBLAS/libclBLAS.so: undefined reference to
std::cxx11::basic_string<char, std::char_traitsstd::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::operator=(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&&)@GLIBCXX_3.4.21' ../darknet_cl/clBLAS/libclBLAS.so: undefined reference to
std::__cxx11::basic_string<char, std::char_traitsstd::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::compare(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&) const@GLIBCXX_3.4.21' ../darknet_cl/clBLAS/libclBLAS.so: undefined reference to
std::__cxx11::basic_string<char, std::char_traits