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

-fmax-errors not support by clang #315

Open
pbrady opened this issue Oct 20, 2023 · 10 comments
Open

-fmax-errors not support by clang #315

pbrady opened this issue Oct 20, 2023 · 10 comments
Assignees
Labels
build Something to do with the build system help wanted Extra attention is needed Testing Additions/changes to the testing infrastruture

Comments

@pbrady
Copy link
Member

pbrady commented Oct 20, 2023

https://github.com/lanl/singularity-eos/blob/main/CMakeLists.txt#L449 unconditionally adds -fmax-errors=3 which leads to the following warning:

clang: warning: argument unused during compilation: '-fmax-errors=3' [-Wunused-command-line-argument]
@Yurlungur Yurlungur added help wanted Extra attention is needed Testing Additions/changes to the testing infrastruture build Something to do with the build system labels Oct 22, 2023
@Yurlungur
Copy link
Collaborator

Good catch---we should add a clang build to our CI... In the meantime, @mauneyc-LANL, @rbberger and/or @dholladay00 maybe we add that in with a generator expression for non-clang builds only?

@mauneyc-LANL
Copy link
Collaborator

This is my fault. Usually when developing I put this in so that I have a reasonable shot of locating the compiler error before my terminal burns through main memory printing out 1000s of incomplete template noise.

We should really just remove it altogether; any objections? @Yurlungur @dholladay00 @rbberger

@Yurlungur
Copy link
Collaborator

None---let's just remove it. Thanks, @mauneyc-LANL

@mauneyc-LANL
Copy link
Collaborator

Good catch---we should add a clang build to our CI... In the meantime, @mauneyc-LANL, @rbberger and/or @dholladay00 maybe we add that in with a generator expression for non-clang builds only?

We should use the intel compilers in our CI if we arn't already, too

@Yurlungur
Copy link
Collaborator

Yeah @dholladay00 brought that up recently. I think he's working on making that happen.

@dholladay00
Copy link
Collaborator

Yeah @dholladay00 brought that up recently. I think he's working on making that happen.

I am fixing some issues with intel builds, but I haven't put in an intel build in our CI. I think that would require additional spacks buildouts and interacting with the project space in ways I am not very familiar with. Perhaps @ktsai7 or @rbberger could look into adding such a thing to our CI or replacing a current gnu build with an intel.

@ktsai7
Copy link
Contributor

ktsai7 commented Oct 30, 2023

@dholladay00 sure, we can add an intel CI job, but do we want a new CI job or replace an existing one? Which intel compiler?

@dholladay00
Copy link
Collaborator

@ktsai7 I'm looking and there are several gnu Skylake tests. I'd say replace test_gnu_skylake with an intel test that turns on all of the bells and whistles (fortran, closure, kokkos and kernels, eospac, spiner), but I could be convinced to just add this in addition.

@ktsai7
Copy link
Contributor

ktsai7 commented Nov 9, 2023

I'm fine with either way, but I do need to know which intel compiler do you want to use?

@mauneyc-LANL
Copy link
Collaborator

@ktsai7 @dholladay00 we should be using the oneAPI compilers (classic intel C/C++ compilers are losing support), but there's still broad downstream use of classic compilers.

The oneAPI compilers use a clang frontend, so having a compile with just a clang++ would be good to be out in front of the eventual changeover.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
build Something to do with the build system help wanted Extra attention is needed Testing Additions/changes to the testing infrastruture
Projects
None yet
Development

No branches or pull requests

6 participants