CryptoGoblin icon indicating copy to clipboard operation
CryptoGoblin copied to clipboard

Build error "/usr/bin/ld: invalid common page size `209715'"

Open manwithtwowatches opened this issue 6 years ago • 3 comments

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

manwithtwowatches avatar Apr 02 '19 15:04 manwithtwowatches

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.

Dead2 avatar Apr 02 '19 17:04 Dead2

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?

manwithtwowatches avatar Apr 03 '19 07:04 manwithtwowatches

Hmm, I have not seen that one before. But it looks LTO-related, so you should try disabling LTO in build.sh.

Dead2 avatar Apr 03 '19 13:04 Dead2