Skip to content
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:relocation R_X86_64_32 against `.rodata' can not be used when making a PIE object; recompile with -fPIE #236

Open
NoobPythoner opened this issue Jun 19, 2024 · 1 comment

Comments

@NoobPythoner
Copy link

I encountered the following issue while compiling the code:
#68 94.61 /usr/bin/ld: /usr/local/lib/libgmock.a(gmock-all.cc.o): relocation R_X86_64_32 against `.rodata' can not be used when making a PIE object; recompile with -fPIE
#68 94.61 /usr/bin/ld: failed to set dynamic section sizes: bad value
#68 94.62 collect2: error: ld returned 1 exit status
#68 94.63 make[2]: *** [CMakeFiles/ConnectionManagerTest.dir/build.make:148:bin/ConnectionManagerTest] 错误 1
#68 94.63 make[1]: *** [CMakeFiles/Makefile2:139:CMakeFiles/ConnectionManagerTest.dir/all] 错误 2
#68 94.63 make: *** [Makefile:166:all] 错误 2

How I can solve it?

@NoobPythoner
Copy link
Author

Can anyone provide help?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant