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

Compiling with icc-2018.1.163-GCC-6.4.0-2.28 clashes with system libraries #5

Open
stevenvdb opened this issue Apr 26, 2023 · 0 comments
Assignees
Labels
manualfix We now how to fix, but this has to be done manually

Comments

@stevenvdb
Copy link
Collaborator

stevenvdb commented Apr 26, 2023

When compiling software with icc from icc/2018.1.163-GCC-6.4.0-2.28, there are errors because it is not compatible with newer versions of for example the system math headers. To work around this, the following lines can be added to the top of EBROOT_ICC/compilers_and_libraries_2018.1.163/linux/compiler/include/math.h:

#define __PURE_INTEL_C99_HEADERS__

#ifndef M_PI
#define M_PI 3.14159265358979323846
#endif
#ifndef M_PI_2
#define M_PI_2 1.57079632679489661923
#endif
#ifndef M_PI_4
#define M_PI_4 0.785398163397448309616
#endif
#ifndef M_2_PI
#define M_2_PI 0.636619772367581343076
#endif
#ifndef M_LOG2E
#define M_LOG2E 1.44269504088896340736
#endif

For now this is done manually afterwards, not using EasyBuild.

@stevenvdb stevenvdb self-assigned this Apr 26, 2023
@stevenvdb stevenvdb added the manualfix We now how to fix, but this has to be done manually label Apr 26, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
manualfix We now how to fix, but this has to be done manually
Projects
None yet
Development

No branches or pull requests

1 participant