public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/37901]  New: Fortran compiler bug or lost some files during installation openSuse11.0
@ 2008-10-23  7:59 wpatscher at web dot de
  2008-10-23  8:07 ` [Bug fortran/37901] " paolo dot carlini at oracle dot com
  2008-10-24  6:45 ` wpatscher at web dot de
  0 siblings, 2 replies; 3+ messages in thread
From: wpatscher at web dot de @ 2008-10-23  7:59 UTC (permalink / raw)
  To: gcc-bugs

Hallo,
        can you help me?? this bug i have never seen !!
        email to: wpatscher@web.de

OS: Linux OpenSuse 11.0

This Fortran-program was tested
!       program test
        open(6,file='test.aus')
        write(6,100)
100     format(10x,'testprogramm')
        close(6)
        end 
Start fortran in Terminal:
wolfgang@HSI-KBW-****:~/programs> gcc -o test.out test.for

Now the Bug:

/usr/lib/gcc/i586-suse-linux/4.3/../../../crt1.o: In function `_start':
(.text+0x18): undefined reference to `main'
/tmp/ccWiTwqk.o: In function `MAIN__':
test.for:(.text+0x19): undefined reference to `_gfortran_set_options'
test.for:(.text+0x63): undefined reference to `_gfortran_st_open'
test.for:(.text+0xad): undefined reference to `_gfortran_st_write'
test.for:(.text+0xbb): undefined reference to `_gfortran_st_write_done'
test.for:(.text+0xf1): undefined reference to `_gfortran_st_close'
collect2: ld returned 1 exit status

end of bug
wolfgang@HSI-KBW-078-042-082-134:~/programs> gcc -v
Using built-in specs.
Target: i586-suse-linux
Configured with: ../configure --prefix=/usr --with-local-prefix=/usr/local
--infodir=/usr/share/info --mandir=/usr/share/man --libdir=/usr/lib
--libexecdir=/usr/lib --enable-languages=c,c++,objc,fortran,obj-c++,java,ada
--enable-checking=release --with-gxx-include-dir=/usr/include/c++/4.3
--enable-ssp --disable-libssp --with-bugurl=http://bugs.opensuse.org/
--with-pkgversion='SUSE Linux' --disable-libgcj --disable-libmudflap
--with-slibdir=/lib --with-system-zlib --enable-__cxa_atexit
--enable-libstdcxx-allocator=new --disable-libstdcxx-pch --program-suffix=-4.3
--enable-version-specific-runtime-libs --enable-linux-futex
--without-system-libunwind --with-cpu=generic --build=i586-suse-linux
Thread model: posix
gcc version 4.3.3 20081002 (prerelease) [gcc-4_3-branch revision 140831] (SUSE
Linux) 

kindly  W.Patscher


-- 
           Summary: Fortran compiler bug or lost some files during
                    installation openSuse11.0
           Product: gcc
           Version: unknown
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: wpatscher at web dot de


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


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

* [Bug fortran/37901] Fortran compiler bug or lost some files during installation openSuse11.0
  2008-10-23  7:59 [Bug c++/37901] New: Fortran compiler bug or lost some files during installation openSuse11.0 wpatscher at web dot de
@ 2008-10-23  8:07 ` paolo dot carlini at oracle dot com
  2008-10-24  6:45 ` wpatscher at web dot de
  1 sibling, 0 replies; 3+ messages in thread
From: paolo dot carlini at oracle dot com @ 2008-10-23  8:07 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #1 from paolo dot carlini at oracle dot com  2008-10-23 08:06 -------
If you are compiling Fortran, use gfortran, not gcc.


-- 

paolo dot carlini at oracle dot com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
          Component|c++                         |fortran
         Resolution|                            |INVALID


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


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

* [Bug fortran/37901] Fortran compiler bug or lost some files during installation openSuse11.0
  2008-10-23  7:59 [Bug c++/37901] New: Fortran compiler bug or lost some files during installation openSuse11.0 wpatscher at web dot de
  2008-10-23  8:07 ` [Bug fortran/37901] " paolo dot carlini at oracle dot com
@ 2008-10-24  6:45 ` wpatscher at web dot de
  1 sibling, 0 replies; 3+ messages in thread
From: wpatscher at web dot de @ 2008-10-24  6:45 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #2 from wpatscher at web dot de  2008-10-24 06:44 -------
(In reply to comment #1)
> If you are compiling Fortran, use gfortran, not gcc.

> thank you Paolo for your comment;for my example the correct command:
   gfortran-4.3 test.for -o test.aus
   with compiler-exe file in my home /bin

kindly Wolfgang


-- 

wpatscher at web dot de changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |VERIFIED


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


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

end of thread, other threads:[~2008-10-24  6:45 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-10-23  7:59 [Bug c++/37901] New: Fortran compiler bug or lost some files during installation openSuse11.0 wpatscher at web dot de
2008-10-23  8:07 ` [Bug fortran/37901] " paolo dot carlini at oracle dot com
2008-10-24  6:45 ` wpatscher at web dot de

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).