-
-
Notifications
You must be signed in to change notification settings - Fork 88
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
when run "make -j 8 tests", something went wrong,seems like the "PIE object" problem. #101
Comments
Might need For any compilation of hostside LLVM IR ( |
Similar issue here: [ 1%] Built target clew |
I'm trying this in an AMD machine. If that helps. Any guess, @hughperkins ? |
I have a similar issue but prompted "recompile with -fPIC": |
same issue |
[ 2%] Built target cocl_gtest
[ 2%] Built target clew
[ 8%] Built target easycl
[ 13%] Built target patch_hostside
[ 50%] Built target cocl
[ 55%] Linking CXX executable test_char
[ 55%] Linking CXX executable longname
[ 55%] Linking CXX executable test_floatstarstar
[ 55%] Linking CXX executable testpartialcopy
[ 55%] Linking CXX executable test_ZeroCudaMalloc
[ 56%] Linking CXX executable test_devices
[ 57%] Linking CXX executable test_types
[ 58%] Linking CXX executable test_bitcast
/usr/bin/ld: test_types.d/test_types.cu.o: relocation R_X86_64_32 against symbol
_ZSt4cout@@GLIBCXX_3.4' can not be used when making a PIE object; recompile with -fPIE collect2: error: ld returned 1 exit status make[3]: *** [test/endtoend/CMakeFiles/test_types.dir/build.make:223:test/endtoend/test_types] 错误 1 make[2]: *** [CMakeFiles/Makefile2:1196:test/endtoend/CMakeFiles/test_types.dir/all] 错误 2 make[2]: *** 正在等待未完成的任务.... /usr/bin/ld: test_char.d/test_char.cu.o: relocation R_X86_64_32 against symbol
s___devicell_sourcecodetest_char.d/test_char-device.ll__Z8setValuePcic' can not be used when making a PIE object; recompile with -fPIEcollect2: error: ld returned 1 exit status
make[3]: *** [test/endtoend/CMakeFiles/test_char.dir/build.make:223:test/endtoend/test_char] 错误 1
make[2]: *** [CMakeFiles/Makefile2:827:test/endtoend/CMakeFiles/test_char.dir/all] 错误 2
/usr/bin/ld: test_ZeroCudaMalloc.d/test_ZeroCudaMalloc.cu.o: relocation R_X86_64_32 against symbol
_ZSt4cout@@GLIBCXX_3.4' can not be used when making a PIE object; recompile with -fPIE collect2: error: ld returned 1 exit status make[3]: *** [test/endtoend/CMakeFiles/test_ZeroCudaMalloc.dir/build.make:223:test/endtoend/test_ZeroCudaMalloc] 错误 1 make[2]: *** [CMakeFiles/Makefile2:627:test/endtoend/CMakeFiles/test_ZeroCudaMalloc.dir/all] 错误 2 /usr/bin/ld: test_floatstarstar.d/test_floatstarstar.cu.o: relocation R_X86_64_32 against symbol
s___devicell_sourcecodetest_floatstarstar.d/test_floatstarstar-device.ll__Z4wipePii' can not be used when making a PIE object; recompile with -fPIEcollect2: error: ld returned 1 exit status
/usr/bin/ld: testpartialcopy.d/testpartialcopy.cu.o: relocation R_X86_64_32 against symbol
_ZSt4cout@@GLIBCXX_3.4' can not be used when making a PIE object; recompile with -fPIE collect2: error: ld returned 1 exit status make[3]: *** [test/endtoend/CMakeFiles/test_floatstarstar.dir/build.make:223:test/endtoend/test_floatstarstar] 错误 1 make[2]: *** [CMakeFiles/Makefile2:685:test/endtoend/CMakeFiles/test_floatstarstar.dir/all] 错误 2 make[3]: *** [test/endtoend/CMakeFiles/testpartialcopy.dir/build.make:223:test/endtoend/testpartialcopy] 错误 1 make[2]: *** [CMakeFiles/Makefile2:3261:test/endtoend/CMakeFiles/testpartialcopy.dir/all] 错误 2 /usr/bin/ld: longname.d/longname.cu.o: relocation R_X86_64_32 against symbol
s___devicell_sourcecodelongname.d/longname-device.ll__Z46setValueSomestupidlylongnamefoobarfoobarfoobarPfif' can not be used when making a PIE object; recompile with -fPIEcollect2: error: ld returned 1 exit status
/usr/bin/ld: test_devices.d/test_devices.cu.o: relocation R_X86_64_32 against symbol
_ZSt4cout@@GLIBCXX_3.4' can not be used when making a PIE object; recompile with -fPIE collect2: error: ld returned 1 exit status /usr/bin/ld: test_bitcast.d/test_bitcast.cu.o: relocation R_X86_64_32 against symbol
s___devicell_sourcecodetest_bitcast.d/test_bitcast-device.ll__Z8mykernelPiPfS_' can not be used when making a PIE object; recompile withmake[3]: *** [test/endtoend/CMakeFiles/longname.dir/build.make:223:test/endtoend/longname] 错误 1-fPIE
collect2: error: ld returned 1 exit status
make[2]: *** [CMakeFiles/Makefile2:885:test/endtoend/CMakeFiles/longname.dir/all] 错误 2
make[3]: *** [test/endtoend/CMakeFiles/test_devices.dir/build.make:223:test/endtoend/test_devices] 错误 1
make[2]: *** [CMakeFiles/Makefile2:1026:test/endtoend/CMakeFiles/test_devices.dir/all] 错误 2
make[3]: *** [test/endtoend/CMakeFiles/test_bitcast.dir/build.make:223:test/endtoend/test_bitcast] 错误 1
make[2]: *** [CMakeFiles/Makefile2:1281:test/endtoend/CMakeFiles/test_bitcast.dir/all] 错误 2
make[1]: *** [CMakeFiles/Makefile2:348:CMakeFiles/tests.dir/rule] 错误 2
make: *** [Makefile:216:tests] 错误 2
The text was updated successfully, but these errors were encountered: