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

Fix compilation issue, using Intel OneAPI on Linux #1506

Merged
merged 2 commits into from
Apr 10, 2023

Conversation

pablo-benito
Copy link
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