-
Notifications
You must be signed in to change notification settings - Fork 29
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error building ROCmBinaries.cpp #32
Comments
I can't reproduce this error. Can you give me an operating system, a compiler and its version and a CPU? |
Yes, thanks for your help: OS: OS X 10.12.6, Darwin Kernel Version 16.7.0
CPU: Intel(R) Xeon(R) CPU E5-1680 v2 @ 3.00GHz |
I committed some changes in ROCmBinaries in that line with issue. Maybe issue doesn't exists in latest commit. Please, report about it status. |
Thanks @matszpk that issue did go away. Some others did come up though. Linking [ 51%] Linking CXX shared library libCLRXAmdBin.dylib
Undefined symbols for architecture x86_64:
"std::__1::vector<CLRX::ROCmSymbolInput, std::__1::allocator<CLRX::ROCmSymbolInp
ut> >::~vector()", referenced from:
CLRX::ROCmBinGenerator::ROCmBinGenerator(CLRX::GPUDeviceType, unsigned int,
unsigned int, unsigned long, unsigned char const*, unsigned long, unsigned char co
nst*, std::__1::vector<CLRX::ROCmSymbolInput, std::__1::allocator<CLRX::ROCmSymbol
Input> > const&) in ROCmBinaries.cpp.o
CLRX::ROCmBinGenerator::ROCmBinGenerator(CLRX::GPUDeviceType, unsigned int,
unsigned int, unsigned long, unsigned char const*, unsigned long, unsigned char co
nst*, std::__1::vector<CLRX::ROCmSymbolInput, std::__1::allocator<CLRX::ROCmSymbol
Input> >&&) in ROCmBinaries.cpp.o
CLRX::ROCmInput::~ROCmInput() in ROCmBinaries.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]: *** [amdbin/libCLRXAmdBin.0.1.9.dylib] Error 1
make[1]: *** [amdbin/CMakeFiles/CLRXAmdBin.dir/all] Error 2 Then the [ 63%] Linking CXX static library libCLRXAmdAsm.a
[ 63%] Built target CLRXAmdAsmStatic
make: *** [all] Error 2
[mac:~/CLRX-mirror/build] user% |
The building under Linux and Windows didn't report such errors. Some sources (nlohmann/json#285) suggest to change compiler from clang to clang++. Maybe that can help. To change compiler, use CXX environment variable (call CXX=clang++ cmake .. ...) or change in cmake-gui variable CMAKE_CXX_COMPILER. |
Thanks @matszpk I think it didn't like using clang for the c compiler as well. I just used gcc 6.5 in both cases and it compiled without any complaints. |
The make build call gets to 20% then dies on building ROCmBinaries.cpp:
using Make 3.81
The text was updated successfully, but these errors were encountered: