public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/23460] New: g77 unable to locate fortran INCLUDE files when preprocessed
@ 2005-08-18 15:40 douglas dot vechinski at dynetics dot com
  2005-08-18 19:14 ` [Bug fortran/23460] [3.4 Regression] " pinskia at gcc dot gnu dot org
  2005-08-31 21:05 ` tobi at gcc dot gnu dot org
  0 siblings, 2 replies; 5+ messages in thread
From: douglas dot vechinski at dynetics dot com @ 2005-08-18 15:40 UTC (permalink / raw)
  To: gcc-bugs

First, as requested the output of gcc -v

Reading specs from /usr/lib/gcc/i386-redhat-linux/3.4.2/specs
Configured with: ../configure --prefix=/usr --mandir=/usr/share/man
--infodir=/usr/share/info --enable-shared --enable-threads=posix
--disable-checking --with-system-zlib --enable-__cxa_atexit
--disable-libunwind-exceptions --enable-java-awt=gtk --host=i386-redhat-linux
Thread model: posix
gcc version 3.4.2 20041017 (Red Hat 3.4.2-6.fc3)

command line that triggers:

  g77 -o example example.F

Error messages:

example.F:2:
         include 'example.par'
         ^
Unable to open INCLUDE file `example.par' at (^)

I'm unable to send the preprocessed file (*.i*) that is requested as none was
generated when I used the -save-temps flag.  In fact, when I add the -save-temps
flag it compiles with no problem.  (I know the site says not to send source code
but I see no other choice, plus it is small.)

So, here is the source file example.F:

      include 'example.par'

      do i=1,nmax
        write(6,*)'i = ',i
      enddo
      stop
      end

and the include file example.par

      parameter (nmax=10)

Note, while this example does not have any preprocessing directives in it, I
discovered the problem in a code that did.  I shrank it down to this small
example.  I submitted the problem to the fortran@gcc.gnu.org mail list on Aug
16, 2005.  If I include a -pipe or a -I. on the command line it compiles. 
Apparently the problem is that when the preprocessor processes the *.F file, it
creates a temp file in a different directory which it then tries to compile. 
But the file to be included via the standard Fortran INCLUDE directive is not
located in this temporary location and can not find it.

-- 
           Summary: g77 unable to locate fortran INCLUDE files when
                    preprocessed
           Product: gcc
           Version: 3.4.2
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: fortran
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: douglas dot vechinski at dynetics dot com
                CC: gcc-bugs at gcc dot gnu dot org


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23460


^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Bug fortran/23460] [3.4 Regression] g77 unable to locate fortran INCLUDE files when preprocessed
  2005-08-18 15:40 [Bug fortran/23460] New: g77 unable to locate fortran INCLUDE files when preprocessed douglas dot vechinski at dynetics dot com
@ 2005-08-18 19:14 ` pinskia at gcc dot gnu dot org
  2005-08-31 21:05 ` tobi at gcc dot gnu dot org
  1 sibling, 0 replies; 5+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-08-18 19:14 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2005-08-18 19:12 -------
Confirmed, this is a regression from 3.3.3 where this works.

Gfortran works as expected.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|                            |1
           Keywords|                            |rejects-valid
      Known to fail|                            |3.4.0
      Known to work|                            |3.3.3 2.95.3 3.0.4 3.2.3
   Last reconfirmed|0000-00-00 00:00:00         |2005-08-18 19:12:57
               date|                            |
            Summary|g77 unable to locate fortran|[3.4 Regression] g77 unable
                   |INCLUDE files when          |to locate fortran INCLUDE
                   |preprocessed                |files when preprocessed
   Target Milestone|---                         |3.4.5


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23460


^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Bug fortran/23460] [3.4 Regression] g77 unable to locate fortran INCLUDE files when preprocessed
  2005-08-18 15:40 [Bug fortran/23460] New: g77 unable to locate fortran INCLUDE files when preprocessed douglas dot vechinski at dynetics dot com
  2005-08-18 19:14 ` [Bug fortran/23460] [3.4 Regression] " pinskia at gcc dot gnu dot org
@ 2005-08-31 21:05 ` tobi at gcc dot gnu dot org
  1 sibling, 0 replies; 5+ messages in thread
From: tobi at gcc dot gnu dot org @ 2005-08-31 21:05 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From tobi at gcc dot gnu dot org  2005-08-31 21:04 -------
(In reply to comment #1)
> Gfortran works as expected.

Depends on your definition of 'as expected', see PR20811, as pointed out by Paul
Brook here: http://gcc.gnu.org/ml/fortran/2005-08/msg00310.html

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
OtherBugsDependingO|20774                       |
              nThis|                            |


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23460


^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Bug fortran/23460] [3.4 Regression] g77 unable to locate fortran INCLUDE files when preprocessed
       [not found] <bug-23460-11190@http.gcc.gnu.org/bugzilla/>
  2005-10-07  4:10 ` gdr at gcc dot gnu dot org
@ 2005-11-01 21:24 ` tobi at gcc dot gnu dot org
  1 sibling, 0 replies; 5+ messages in thread
From: tobi at gcc dot gnu dot org @ 2005-11-01 21:24 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #3 from tobi at gcc dot gnu dot org  2005-11-01 21:24 -------
This is really the same as PR 20811: we don't take the (original) location of
the source file into account.

*** This bug has been marked as a duplicate of 20811 ***


-- 

tobi at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |tobi at gcc dot gnu dot org
             Status|NEW                         |RESOLVED
         Resolution|                            |DUPLICATE


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23460


^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Bug fortran/23460] [3.4 Regression] g77 unable to locate fortran INCLUDE files when preprocessed
       [not found] <bug-23460-11190@http.gcc.gnu.org/bugzilla/>
@ 2005-10-07  4:10 ` gdr at gcc dot gnu dot org
  2005-11-01 21:24 ` tobi at gcc dot gnu dot org
  1 sibling, 0 replies; 5+ messages in thread
From: gdr at gcc dot gnu dot org @ 2005-10-07  4:10 UTC (permalink / raw)
  To: gcc-bugs



-- 

gdr at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|3.4.5                       |3.4.6


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23460


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2005-11-01 21:24 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-08-18 15:40 [Bug fortran/23460] New: g77 unable to locate fortran INCLUDE files when preprocessed douglas dot vechinski at dynetics dot com
2005-08-18 19:14 ` [Bug fortran/23460] [3.4 Regression] " pinskia at gcc dot gnu dot org
2005-08-31 21:05 ` tobi at gcc dot gnu dot org
     [not found] <bug-23460-11190@http.gcc.gnu.org/bugzilla/>
2005-10-07  4:10 ` gdr at gcc dot gnu dot org
2005-11-01 21:24 ` tobi 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).