[ET Trac] [Einstein Toolkit] #1382: Cactus should disable collapse sections automatically for C _and_ Fortran
Einstein Toolkit
trac-noreply at einsteintoolkit.org
Tue Jun 11 22:54:31 CDT 2013
#1382: Cactus should disable collapse sections automatically for C _and_ Fortran
---------------------+------------------------------------------------------
Reporter: knarf | Owner:
Type: defect | Status: review
Priority: minor | Milestone:
Component: Cactus | Version: ET_2013_05
Resolution: | Keywords: openmp flesh ET_2013_05
---------------------+------------------------------------------------------
Comment (by rhaas):
I'd love to see this particular compile time error go away since it is
rather unintuitive how to fix it.
My recollection of why it is detected so late was that there is not way to
detect the Fortran compiler version. We cannot even assume that Fortran
files run through the "real" C preprocessor since Cactus supplies a mini-
preprocessor in cpp.pl of its own. So I think the test right now works
such that in a C source file we detect whether a faulty C compiler is
found and if so, check that option that will cause them to be disabled in
the fortran compiler are found. Writing this down, it should be possible
to do this test in autoconf, should it? Of course we would still assume
that a user uses "matching" C and Fortran compilers and not eg icc paired
with gfortran.
I believe that the patch as proposed would not be safe to apply, however
that it could be turned into a autoconf test for the buggy compiler
versions where we could indeed just look at the output of $F90 -V and base
our decision on this.
--
Ticket URL: <https://trac.einsteintoolkit.org/ticket/1382#comment:2>
Einstein Toolkit <http://einsteintoolkit.org>
The Einstein Toolkit
More information about the Trac
mailing list