Bug 37901 - Fortran compiler bug or lost some files during installation openSuse11.0
Summary: Fortran compiler bug or lost some files during installation openSuse11.0
Status: VERIFIED INVALID
Alias: None
Product: gcc
Classification: Unclassified
Component: fortran (show other bugs)
Version: unknown
: P3 normal
Target Milestone: ---
Assignee: Not yet assigned to anyone
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-10-23 07:58 UTC by wpatscher
Modified: 2008-10-24 06:44 UTC (History)
1 user (show)

See Also:
Host:
Target:
Build:
Known to work:
Known to fail:
Last reconfirmed:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description wpatscher 2008-10-23 07:58:17 UTC
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
Comment 1 Paolo Carlini 2008-10-23 08:06:26 UTC
If you are compiling Fortran, use gfortran, not gcc.
Comment 2 wpatscher 2008-10-24 06:44:22 UTC
(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