Skip to content

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

Open
@andruo

Description

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions