public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/36309] New: gfrotran and cc1 error
@ 2008-05-23 10:07 kih at mail dot nerc-essc dot ac dot uk
2008-05-23 16:39 ` [Bug fortran/36309] " rguenth at gcc dot gnu dot org
` (6 more replies)
0 siblings, 7 replies; 8+ messages in thread
From: kih at mail dot nerc-essc dot ac dot uk @ 2008-05-23 10:07 UTC (permalink / raw)
To: gcc-bugs
When invoking gfortran to compile some fortran code with C preprocessor
commands in it and using the .F file extension to ensure that the code is
passed though the C pre-processor and error occurs with cc1
The command is:
gfortran -c -g -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -fno-underscoring
-DNOUNIRAS -DNONAMELISTS -I../f77_param filterpl.F
and the error is:
cc1: error: unrecognized command line option "-fno-underscoring"
This error did not occur when using an older gfortran version. cpp won't
recognise "-fno-underscoring" but the old gfortran presumably did not pass
this to cpp whereas the newer version does.
I have a workround which involves invoking cpp seperately on the file excluding
the "-fno-underscoring" and the compiling the output from this but it would be
good to have the old functionality back.
Kevin
--
Summary: gfrotran and cc1 error
Product: gcc
Version: 4.2.1
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: fortran
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: kih at mail dot nerc-essc dot ac dot uk
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36309
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug fortran/36309] gfrotran and cc1 error
2008-05-23 10:07 [Bug fortran/36309] New: gfrotran and cc1 error kih at mail dot nerc-essc dot ac dot uk
@ 2008-05-23 16:39 ` rguenth at gcc dot gnu dot org
2008-05-23 17:50 ` burnus at gcc dot gnu dot org
` (5 subsequent siblings)
6 siblings, 0 replies; 8+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2008-05-23 16:39 UTC (permalink / raw)
To: gcc-bugs
------- Comment #1 from rguenth at gcc dot gnu dot org 2008-05-23 16:39 -------
Works with 4.3.
--
rguenth at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Known to work| |4.3.0
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36309
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug fortran/36309] gfrotran and cc1 error
2008-05-23 10:07 [Bug fortran/36309] New: gfrotran and cc1 error kih at mail dot nerc-essc dot ac dot uk
2008-05-23 16:39 ` [Bug fortran/36309] " rguenth at gcc dot gnu dot org
@ 2008-05-23 17:50 ` burnus at gcc dot gnu dot org
2008-05-23 20:46 ` [Bug fortran/36309] gfortran " kih at mail dot nerc-essc dot ac dot uk
` (4 subsequent siblings)
6 siblings, 0 replies; 8+ messages in thread
From: burnus at gcc dot gnu dot org @ 2008-05-23 17:50 UTC (permalink / raw)
To: gcc-bugs
------- Comment #2 from burnus at gcc dot gnu dot org 2008-05-23 17:49 -------
Could you provide some more details, especially about your gfortran version.
The problem is that using:
$ gfortran-4.1 -fno-underscoring aa.F
$ gfortran-4.2 -fno-underscoring aa.F
$ gfortran-4.3 -fno-underscoring aa.F
$ gfortran -fno-underscoring aa.F # 4.4.0 of today
all work. Where did you obtain gfortran and GCC? Which system are you on?
If I call gcc (4.1 to 4.4) with -fno-underscoring then I get the warning:
cc1: warning: command line option "-fno-underscoring" is valid for Fortran but
not for C
Therefore, I wonder whether you are either using an ancient version of gfortran
or that for some reason your new gfortran calls an older version of gcc.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36309
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug fortran/36309] gfortran and cc1 error
2008-05-23 10:07 [Bug fortran/36309] New: gfrotran and cc1 error kih at mail dot nerc-essc dot ac dot uk
2008-05-23 16:39 ` [Bug fortran/36309] " rguenth at gcc dot gnu dot org
2008-05-23 17:50 ` burnus at gcc dot gnu dot org
@ 2008-05-23 20:46 ` kih at mail dot nerc-essc dot ac dot uk
2008-05-23 20:53 ` kih at mail dot nerc-essc dot ac dot uk
` (3 subsequent siblings)
6 siblings, 0 replies; 8+ messages in thread
From: kih at mail dot nerc-essc dot ac dot uk @ 2008-05-23 20:46 UTC (permalink / raw)
To: gcc-bugs
------- Comment #3 from kih at mail dot nerc-essc dot ac dot uk 2008-05-23 20:45 -------
Subject: RE: gfrotran and cc1 error
Hi
Thanks for the response. I was actually installing software on someone
else's system (with their permission) which was an apple machine. I will
check the version of gcc and the rest of the installation.
Cheers
Kevin
-----Original Message-----
From: burnus at gcc dot gnu dot org [mailto:gcc-bugzilla@gcc.gnu.org]
Sent: 23 May 2008 18:49
To: kih@mail.nerc-essc.ac.uk
Subject: [Bug fortran/36309] gfrotran and cc1 error
------- Comment #2 from burnus at gcc dot gnu dot org 2008-05-23 17:49
-------
Could you provide some more details, especially about your gfortran version.
The problem is that using:
$ gfortran-4.1 -fno-underscoring aa.F
$ gfortran-4.2 -fno-underscoring aa.F
$ gfortran-4.3 -fno-underscoring aa.F
$ gfortran -fno-underscoring aa.F # 4.4.0 of today
all work. Where did you obtain gfortran and GCC? Which system are you on?
If I call gcc (4.1 to 4.4) with -fno-underscoring then I get the warning:
cc1: warning: command line option "-fno-underscoring" is valid for Fortran
but
not for C
Therefore, I wonder whether you are either using an ancient version of
gfortran
or that for some reason your new gfortran calls an older version of gcc.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36309
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug fortran/36309] gfortran and cc1 error
2008-05-23 10:07 [Bug fortran/36309] New: gfrotran and cc1 error kih at mail dot nerc-essc dot ac dot uk
` (2 preceding siblings ...)
2008-05-23 20:46 ` [Bug fortran/36309] gfortran " kih at mail dot nerc-essc dot ac dot uk
@ 2008-05-23 20:53 ` kih at mail dot nerc-essc dot ac dot uk
2008-05-26 15:45 ` fxcoudert at gcc dot gnu dot org
` (2 subsequent siblings)
6 siblings, 0 replies; 8+ messages in thread
From: kih at mail dot nerc-essc dot ac dot uk @ 2008-05-23 20:53 UTC (permalink / raw)
To: gcc-bugs
------- Comment #4 from kih at mail dot nerc-essc dot ac dot uk 2008-05-23 20:52 -------
Subject: RE: gfrotran and cc1 error
Hi
'gfortran -v' and 'gcc -v' report:
gfortran -v
Using built-in specs.
Target: powerpc-apple-darwin8
Configured with: /Builds/apple/gcc_42-5531/obj/src/configure
--disable-checking -enable-werror --prefix=/usr --mandir=/usr/share/man
--enable-languages=c,objc,c++,obj-c++,fortran
--program-transform-name=/^[cg][^.-]*$/s/$/-4.2/
--with-gxx-include-dir=/usr/include/c++/4.0.0 --with-slibdir=/usr/lib
--build=i686-apple-darwin8 --program-prefix= --host=powerpc-apple-darwin8
--target=powerpc-apple-darwin8
Thread model: posix
gcc version 4.2.1 (Apple Inc. build 5531)
gcc -v
Using built-in specs.
Target: powerpc-apple-darwin8
Configured with: /Builds/apple/gcc_42-5531/obj/src/configure
--disable-checking -enable-werror --prefix=/usr --mandir=/usr/share/man
--enable-languages=c,objc,c++,obj-c++
--program-transform-name=/^[cg][^.-]*$/s/$/-4.2/
--with-gxx-include-dir=/usr/include/c++/4.0.0 --with-slibdir=/usr/lib
--build=i686-apple-darwin8 --program-prefix= --host=powerpc-apple-darwin8
--target=powerpc-apple-darwin8
Thread model: posix
gcc version 4.2.1 (Apple Inc. build 5531)
Kevin
-----Original Message-----
From: burnus at gcc dot gnu dot org [mailto:gcc-bugzilla@gcc.gnu.org]
Sent: 23 May 2008 18:49
To: kih@mail.nerc-essc.ac.uk
Subject: [Bug fortran/36309] gfrotran and cc1 error
------- Comment #2 from burnus at gcc dot gnu dot org 2008-05-23 17:49
-------
Could you provide some more details, especially about your gfortran version.
The problem is that using:
$ gfortran-4.1 -fno-underscoring aa.F
$ gfortran-4.2 -fno-underscoring aa.F
$ gfortran-4.3 -fno-underscoring aa.F
$ gfortran -fno-underscoring aa.F # 4.4.0 of today
all work. Where did you obtain gfortran and GCC? Which system are you on?
If I call gcc (4.1 to 4.4) with -fno-underscoring then I get the warning:
cc1: warning: command line option "-fno-underscoring" is valid for Fortran
but
not for C
Therefore, I wonder whether you are either using an ancient version of
gfortran
or that for some reason your new gfortran calls an older version of gcc.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36309
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug fortran/36309] gfortran and cc1 error
2008-05-23 10:07 [Bug fortran/36309] New: gfrotran and cc1 error kih at mail dot nerc-essc dot ac dot uk
` (3 preceding siblings ...)
2008-05-23 20:53 ` kih at mail dot nerc-essc dot ac dot uk
@ 2008-05-26 15:45 ` fxcoudert at gcc dot gnu dot org
2008-05-27 19:58 ` kih at mail dot nerc-essc dot ac dot uk
2008-05-28 8:28 ` pinskia at gcc dot gnu dot org
6 siblings, 0 replies; 8+ messages in thread
From: fxcoudert at gcc dot gnu dot org @ 2008-05-26 15:45 UTC (permalink / raw)
To: gcc-bugs
------- Comment #5 from fxcoudert at gcc dot gnu dot org 2008-05-26 15:45 -------
(In reply to comment #4)
> 'gfortran -v' and 'gcc -v' report
Those look like Apple build (I didn't know they had Fortran in official
builds); did you install them or do they come with the system?
Otherwise, it looks like an issue specific to Apple builds if that's what they
are.
--
fxcoudert at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |fxcoudert at gcc dot gnu dot
| |org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36309
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug fortran/36309] gfortran and cc1 error
2008-05-23 10:07 [Bug fortran/36309] New: gfrotran and cc1 error kih at mail dot nerc-essc dot ac dot uk
` (4 preceding siblings ...)
2008-05-26 15:45 ` fxcoudert at gcc dot gnu dot org
@ 2008-05-27 19:58 ` kih at mail dot nerc-essc dot ac dot uk
2008-05-28 8:28 ` pinskia at gcc dot gnu dot org
6 siblings, 0 replies; 8+ messages in thread
From: kih at mail dot nerc-essc dot ac dot uk @ 2008-05-27 19:58 UTC (permalink / raw)
To: gcc-bugs
------- Comment #6 from kih at mail dot nerc-essc dot ac dot uk 2008-05-27 19:57 -------
Subject: RE: gfortran and cc1 error
The distribution came from:
http://r.research.att.com/tools/
so I guess I should take it up with them.
Regards
Kevin
-----Original Message-----
From: fxcoudert at gcc dot gnu dot org [mailto:gcc-bugzilla@gcc.gnu.org]
Sent: 26 May 2008 16:45
To: kih@mail.nerc-essc.ac.uk
Subject: [Bug fortran/36309] gfortran and cc1 error
------- Comment #5 from fxcoudert at gcc dot gnu dot org 2008-05-26 15:45
-------
(In reply to comment #4)
> 'gfortran -v' and 'gcc -v' report
Those look like Apple build (I didn't know they had Fortran in official
builds); did you install them or do they come with the system?
Otherwise, it looks like an issue specific to Apple builds if that's what
they
are.
--
fxcoudert at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |fxcoudert at gcc dot gnu
dot
| |org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36309
------- You are receiving this mail because: -------
You reported the bug, or are watching the reporter.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36309
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug fortran/36309] gfortran and cc1 error
2008-05-23 10:07 [Bug fortran/36309] New: gfrotran and cc1 error kih at mail dot nerc-essc dot ac dot uk
` (5 preceding siblings ...)
2008-05-27 19:58 ` kih at mail dot nerc-essc dot ac dot uk
@ 2008-05-28 8:28 ` pinskia at gcc dot gnu dot org
6 siblings, 0 replies; 8+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2008-05-28 8:28 UTC (permalink / raw)
To: gcc-bugs
------- Comment #7 from pinskia at gcc dot gnu dot org 2008-05-28 08:27 -------
What the issue is that the C compiler was not configured with fortran compiler
so they don't ignore the fortran options but then the fortran compiler was
configured separately. So this is invalid and really an issue with how cc1 was
built.
--
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution| |INVALID
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36309
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2008-05-28 8:28 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-05-23 10:07 [Bug fortran/36309] New: gfrotran and cc1 error kih at mail dot nerc-essc dot ac dot uk
2008-05-23 16:39 ` [Bug fortran/36309] " rguenth at gcc dot gnu dot org
2008-05-23 17:50 ` burnus at gcc dot gnu dot org
2008-05-23 20:46 ` [Bug fortran/36309] gfortran " kih at mail dot nerc-essc dot ac dot uk
2008-05-23 20:53 ` kih at mail dot nerc-essc dot ac dot uk
2008-05-26 15:45 ` fxcoudert at gcc dot gnu dot org
2008-05-27 19:58 ` kih at mail dot nerc-essc dot ac dot uk
2008-05-28 8:28 ` pinskia at gcc dot gnu dot org
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).