public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/32155]  New: Unresolved external __gfortran_os_error in program that manipulates strings
@ 2007-05-30 13:41 KnowlesPJ at Cardiff dot ac dot uk
  2007-05-30 13:43 ` [Bug fortran/32155] " KnowlesPJ at Cardiff dot ac dot uk
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: KnowlesPJ at Cardiff dot ac dot uk @ 2007-05-30 13:41 UTC (permalink / raw)
  To: gcc-bugs

In the following code, __gfortran_os_error is thrown as unresolved at link
time. The trouble goes away if
//'=0'
is removed.

$ cat silly.f
      character(16) :: str,namx
      len=4
      namx='abcdefg'
      str=' '
      str(7:)=namx(1:len)//'=0'
      write (6,*) str
      end
$ gfortran silly.f
/usr/bin/ld: Undefined symbols:
__gfortran_os_error
collect2: ld returned 1 exit status
$ gfortran -v
Using built-in specs.
Target: i386-apple-darwin8.9.1
Configured with: ../gcc-4.3-20070518/configure --enable-languages=fortran
--enable-static --disable-shared
Thread model: posix
gcc version 4.3.0 20070518 (experimental)
$ uname -a
Darwin Peter-Knowles-MacBook.local 8.9.1 Darwin Kernel Version 8.9.1: Thu Feb
22 20:55:00 PST 2007; root:xnu-792.18.15~1/RELEASE_I386 i386 i386


-- 
           Summary: Unresolved external __gfortran_os_error in program that
                    manipulates strings
           Product: gcc
           Version: 4.3.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: fortran
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: KnowlesPJ at Cardiff dot ac dot uk
 GCC build triplet: i386-apple-darwin8.9.1
  GCC host triplet: i386-apple-darwin8.9.1
GCC target triplet: i386-apple-darwin8.9.1


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


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

* [Bug fortran/32155] Unresolved external __gfortran_os_error in program that manipulates strings
  2007-05-30 13:41 [Bug fortran/32155] New: Unresolved external __gfortran_os_error in program that manipulates strings KnowlesPJ at Cardiff dot ac dot uk
@ 2007-05-30 13:43 ` KnowlesPJ at Cardiff dot ac dot uk
  2007-05-31  0:05 ` jvdelisle at gcc dot gnu dot org
                   ` (3 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: KnowlesPJ at Cardiff dot ac dot uk @ 2007-05-30 13:43 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #1 from KnowlesPJ at Cardiff dot ac dot uk  2007-05-30 13:42 -------
Created an attachment (id=13633)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=13633&action=view)
Failing program


-- 


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


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

* [Bug fortran/32155] Unresolved external __gfortran_os_error in program that manipulates strings
  2007-05-30 13:41 [Bug fortran/32155] New: Unresolved external __gfortran_os_error in program that manipulates strings KnowlesPJ at Cardiff dot ac dot uk
  2007-05-30 13:43 ` [Bug fortran/32155] " KnowlesPJ at Cardiff dot ac dot uk
@ 2007-05-31  0:05 ` jvdelisle at gcc dot gnu dot org
  2007-05-31 11:54 ` fxcoudert at gcc dot gnu dot org
                   ` (2 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: jvdelisle at gcc dot gnu dot org @ 2007-05-31  0:05 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #2 from jvdelisle at gcc dot gnu dot org  2007-05-31 00:05 -------
Works OK for me on x86-64-gnu-linux.  My system is a 5/27/2007 bootstrap of 4.3
trunk.


This could be platform specific.  Can another Darwin user confirm this.  Looks
like the problem may be platform specific.  You could perhaps try a later snap
shot. (Yes I know, that only been a few days)


-- 


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


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

* [Bug fortran/32155] Unresolved external __gfortran_os_error in program that manipulates strings
  2007-05-30 13:41 [Bug fortran/32155] New: Unresolved external __gfortran_os_error in program that manipulates strings KnowlesPJ at Cardiff dot ac dot uk
  2007-05-30 13:43 ` [Bug fortran/32155] " KnowlesPJ at Cardiff dot ac dot uk
  2007-05-31  0:05 ` jvdelisle at gcc dot gnu dot org
@ 2007-05-31 11:54 ` fxcoudert at gcc dot gnu dot org
  2007-05-31 11:58 ` KnowlesPJ at Cardiff dot ac dot uk
  2007-06-13 20:45 ` fxcoudert at gcc dot gnu dot org
  4 siblings, 0 replies; 6+ messages in thread
From: fxcoudert at gcc dot gnu dot org @ 2007-05-31 11:54 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #3 from fxcoudert at gcc dot gnu dot org  2007-05-31 11:54 -------
(In reply to comment #0)
> In the following code, __gfortran_os_error is thrown as unresolved at link
> time.

Is that a compiler you built from scratch, or did you build it, update the
source and rebuilt it not-from-scratch? That's a case where I'd expect to see
that kind of error. Otherwise, I don't know how this is happening.


-- 

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=32155


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

* [Bug fortran/32155] Unresolved external __gfortran_os_error in program that manipulates strings
  2007-05-30 13:41 [Bug fortran/32155] New: Unresolved external __gfortran_os_error in program that manipulates strings KnowlesPJ at Cardiff dot ac dot uk
                   ` (2 preceding siblings ...)
  2007-05-31 11:54 ` fxcoudert at gcc dot gnu dot org
@ 2007-05-31 11:58 ` KnowlesPJ at Cardiff dot ac dot uk
  2007-06-13 20:45 ` fxcoudert at gcc dot gnu dot org
  4 siblings, 0 replies; 6+ messages in thread
From: KnowlesPJ at Cardiff dot ac dot uk @ 2007-05-31 11:58 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #4 from KnowlesPJ at Cardiff dot ac dot uk  2007-05-31 11:58 -------
The compiler was downloaded from the link in http://hpc.sourceforge.net/ .


-- 


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


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

* [Bug fortran/32155] Unresolved external __gfortran_os_error in program that manipulates strings
  2007-05-30 13:41 [Bug fortran/32155] New: Unresolved external __gfortran_os_error in program that manipulates strings KnowlesPJ at Cardiff dot ac dot uk
                   ` (3 preceding siblings ...)
  2007-05-31 11:58 ` KnowlesPJ at Cardiff dot ac dot uk
@ 2007-06-13 20:45 ` fxcoudert at gcc dot gnu dot org
  4 siblings, 0 replies; 6+ messages in thread
From: fxcoudert at gcc dot gnu dot org @ 2007-06-13 20:45 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #5 from fxcoudert at gcc dot gnu dot org  2007-06-13 20:45 -------
Hard to tell what is going wrong. I've been building and using compilers on
i386-darwin with no problem. Please contact the people behind HPC MacOS X to
see if they can help you using this compiler, or download our own
(http://gcc.gnu.org/wiki/GFortranBinaries#MacOS)

If you find indication that the bug is indeed with GCC itself, or can reproduce
it on your system using a freshly built compiler, please reopen this PR or file
a new one.


-- 

fxcoudert at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|                            |WORKSFORME


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


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

end of thread, other threads:[~2007-06-13 20:45 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-05-30 13:41 [Bug fortran/32155] New: Unresolved external __gfortran_os_error in program that manipulates strings KnowlesPJ at Cardiff dot ac dot uk
2007-05-30 13:43 ` [Bug fortran/32155] " KnowlesPJ at Cardiff dot ac dot uk
2007-05-31  0:05 ` jvdelisle at gcc dot gnu dot org
2007-05-31 11:54 ` fxcoudert at gcc dot gnu dot org
2007-05-31 11:58 ` KnowlesPJ at Cardiff dot ac dot uk
2007-06-13 20:45 ` fxcoudert 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).