So I run into this occasionally and it's still not clear to me. In this specific case I'm trying to build nanomq[1] and I get the following error:
/usr/bin/ld: CMakeFiles/nano_test.dir/test.c.o: relocation R_X86_64_32 against `.rodata' can not be used when making a PIE object; recompile with -fPIE
/usr/bin/ld: CMakeFiles/nano_test.dir/test_hash.c.o: relocation R_X86_64_32 against `.rodata' can not be used when making a PIE object; recompile with -fPIE
[ 36%] Building C object nng/CMakeFiles/nng.dir/src/sp/protocol/reqrep0/rep.c.o
/usr/bin/ld: CMakeFiles/nano_test.dir/test_dbtree.c.o: relocation R_X86_64_32 against symbol `topic0' can not be used when making a PIE object; recompile with -fPIE
/usr/bin/ld: CMakeFiles/nano_test.dir/test_hash.c.o: relocation R_X86_64_32 against `.rodata' can not be used when making a PIE object; recompile with -fPIE
[ 36%] Building C object nng/CMakeFiles/nng.dir/src/sp/protocol/reqrep0/rep.c.o
/usr/bin/ld: CMakeFiles/nano_test.dir/test_dbtree.c.o: relocation R_X86_64_32 against symbol `topic0' can not be used when making a PIE object; recompile with -fPIE
Any hints are appreciated.
Thanks,
Richard
_______________________________________________ devel mailing list -- devel@xxxxxxxxxxxxxxxxxxxxxxx To unsubscribe send an email to devel-leave@xxxxxxxxxxxxxxxxxxxxxxx Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/ List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines List Archives: https://lists.fedoraproject.org/archives/list/devel@xxxxxxxxxxxxxxxxxxxxxxx Do not reply to spam on the list, report it: https://pagure.io/fedora-infrastructure