CryptoGoblin
CryptoGoblin copied to clipboard
Build error "/usr/bin/ld: invalid common page size `209715'"
I get the following build error and am pretty clueless. You got any ideas?
[ 93%] Linking CXX shared library bin/libCryptoGoblin_opencl.so
/usr/bin/ld: invalid common page size `209715'
collect2: error: ld returned 1 exit status
CMakeFiles/CryptoGoblin_opencl.dir/build.make:178: recipe for target 'bin/libCryptoGoblin_opencl.so' failed
make[2]: *** [bin/libCryptoGoblin_opencl.so] Error 1
CMakeFiles/Makefile2:217: recipe for target 'CMakeFiles/CryptoGoblin_opencl.dir/all' failed
make[1]: *** [CMakeFiles/CryptoGoblin_opencl.dir/all] Error 2
Huh, that is indeed a bug. Search for "common-page-size=209715," in CMakeLists.txt and change the number to 2097152. Somehow the 2 is missing.
ok thanks I changed that (was on line 175 in case you're interested) and now i'm getting:
[100%] Linking CXX shared library bin/libCryptoGoblin_cuda.so
{standard input}: Assembler messages:
{standard input}:279427: Error: symbol `fatbinData' is already defined
lto-wrapper: fatal error: /usr/bin/c++ returned 1 exit status
compilation terminated.
/usr/bin/ld: error: lto-wrapper failed
collect2: error: ld returned 1 exit status
CMakeFiles/CryptoGoblin_cuda.dir/build.make:178: recipe for target 'bin/libCryptoGoblin_cuda.so' failed
any thoughts?
Hmm, I have not seen that one before. But it looks LTO-related, so you should try disabling LTO in build.sh.