Caliper: some nonconformant function type conversion needs -fpermissive to compile (#8549)#8558
Caliper: some nonconformant function type conversion needs -fpermissive to compile (#8549)#8558twang15 wants to merge 4 commits intospack:developfrom
Conversation
| args.append('-DMPI_CXX_COMPILER=%s' % spec['mpi'].mpicxx) | ||
|
|
||
| # allow some nonconforming code to compile | ||
| compile_flags = "-O3 -fpermissive" |
There was a problem hiding this comment.
These flags will only work for GCC, not other compilers.
There was a problem hiding this comment.
I restrict it to gcc only now.
|
|
||
| # allow some nonconforming code to compile | ||
| compile_flags = "-O3 -fpermissive" | ||
| args.append('-DCMAKE_CXX_FLAGS=%s' % compile_flags) |
There was a problem hiding this comment.
See #8543 for an example of a more robust way to handle this.
|
@twang15 which compiler gave you that error and in which file? |
|
|
@daboehme So the compiler is GCC. |
|
Oh, you're building 1.6.0. Unfortunately we made a bit of a mistake there with our GOTCHA integration. Caliper 1.6.0 is downloading a now-incompatible GOTCHA version, which will likely produce this compile error. The |
Do you mean that the Spack |
|
Yes, in 1.6 Caliper did download gotcha during its installation process. In 1.7 there's an option to use a pre-installed gotcha. I can change the Caliper spack package so that it uses gotcha as a spack dependency. |
|
Superseded by #8572. |
Fixes #8549