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
avoid warnings being treated as errors when installing imkl-FFTW with Intel OneAPI compilers and RPATH linking #2912
base: develop
Are you sure you want to change the base?
Conversation
Test report by @bedroge Overview of tested easyconfigs (in order)
Build succeeded for 1 out of 1 (1 easyconfigs in total) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
Test report by @boegel Overview of tested easyconfigs (in order)
Build succeeded for 3 out of 3 (3 easyconfigs in total) |
Test report by @boegel Overview of tested easyconfigs (in order)
Build succeeded for 0 out of 1 (1 easyconfigs in total) edit: tested with |
@bedroge My last test report with
edit: hmm, not sure this actually explains what's going on, because the changing of permissions triggered by using |
Ugh, I did:
Builds were succesful, but failed at uploading test report: I'll retrigger the build, it should take about 90 minutes or so. See if it uploads succesfully then... |
Test report by @casparvl Overview of tested easyconfigs (in order)
Build succeeded for 8 out of 8 (8 easyconfigs in total) |
# Here, we patch the makefiles and add -Wno-unused-command-line-argument to avoid these warnings alltogether. | ||
if get_software_root('intel-compilers') and build_option('rpath'): | ||
if self.toolchain.options.get('oneapi') or self.toolchain.options.get('oneapi_c_cxx'): | ||
regex_icx_subs = [('-Werror', '-Werror -Wno-unused-command-line-argument')] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe it makes more sense to replace -Wall
than -Werror
, since the order of options may matter.
When replacing -Werror
, I think we assume that -Wall
is listed earlier, so -Wno-unused-*
can disable the warning.
When replacing -Wall
to inject -Wno-unused-*
, we're disabling that specific warning right after enabling all warnings (and before -Werror
which enables all warnings to be treated as errors kicks in).
This may make this fix a bit more robust w.r.t. changes to the makefile
being patched
regex_icx_subs = [('-Wall', '-Wall -Wno-unused-command-line-argument')]
After looking at this again with @casparvl, I now understand this better. The patching of the The changes in this PR don't cause that, but they do point out a problem with the With that in mind, I think we shouldn't merge this PR as is yet, we should tackle that problem first (to avoid making a bad situation worse). |
Fixes #2910.