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

Compilation fails with “relocation R_X86_64_32 against `.rodata.str1.8' can not be used when making a shared object #30

Open
andruo opened this issue May 28, 2017 · 0 comments

Comments

@andruo
Copy link

andruo commented May 28, 2017

Hello,
When I try to compile 'Genius-TCAD-Open' with waf, I get an error:

[653/655] cxxprogram: ...
/usr/bin/ld: //usr/local/lib/libcgns.a(cgnslib.o): Compilation fails with “relocation R_X86_64_32 against `.rodata.str1.8' can not be used when making a shared object; recompile with -fPIC
//usr/local/lib/libcgns.a: error adding symbols: Bad value
collect2: error: ld returned 1 exit status

Is anybody know where needs to add the flag -fPIC in the wscript?
Regard, Andrey Osykin

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