Skip to content

Fix compilation issue, using Intel OneAPI on Linux#1506

Merged
andrew-platt merged 2 commits into
OpenFAST:devfrom
pablo-benito:fix/CompileWithLinuxIntel
Apr 10, 2023
Merged

Fix compilation issue, using Intel OneAPI on Linux#1506
andrew-platt merged 2 commits into
OpenFAST:devfrom
pablo-benito:fix/CompileWithLinuxIntel

Conversation

@pablo-benito

Copy link
Copy Markdown
Contributor

Feature or improvement description

On Linux, using the Intel OneAPI compilers, the compilation process fails with this message:

ld: ../map/libmapcpplib.a(mapinit.c.o): relocation R_X86_64_32S against `.rodata.str1.1' can not be used when making a shared object; recompile con -fPIC
/usr/bin/ld: failed to set dynamic section sizes: bad value
make[2]: *** [modules/openfast-library/CMakeFiles/openfastlib.dir/build.make:128: modules/openfast-library/libopenfastlib.so] Error 1

The -fPIC flag is needed on Unix platforms, regardless the compiler used (GNU or Intel).

Related issue, if one exists

None

Impacted areas of the software

None

Additional supporting information

Test results, if applicable

None

pablo-benito and others added 2 commits March 29, 2023 09:56
Adds the '-fPIC' flag when using Intel OneAPI compilers on non Windows platforms
The flag '-fPIC' is needed on Unix platforms, for all supported compilers: GNU and Intel
@andrew-platt andrew-platt added this to the v3.5.0 milestone Apr 10, 2023
@andrew-platt andrew-platt merged commit c6cbb54 into OpenFAST:dev Apr 10, 2023
@pablo-benito pablo-benito deleted the fix/CompileWithLinuxIntel branch April 12, 2023 06:55
@andrew-platt andrew-platt mentioned this pull request May 12, 2023
19 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants