Re: Can't compile Fortran in Fedora 7

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Probably gfortran package should be used for FORTRAN compilation.

Regards.

On Sat, 2007-10-06 at 13:13 -0700, Howard Leverenz wrote:
> I am using Fedora 7 with all of the updates applied.  This is an AMD
> Athelon  computer.  The following is about the simplest Fortran
> program possible.  
> 
>       program main
>       end
> 
> I get the following error result:
> 
> [howard@localhost ProgramTesting]$ gcc -v xsimple.f
> Using built-in specs.
> Target: i386-redhat-linux
> Configured with: ../configure --prefix=/usr --mandir=/usr/share/man
> --infodir=/usr/share/info --enable-shared --enable-threads=posix
> --enable-checking=release --with-system-zlib --enable-__cxa_atexit
> --disable-libunwind-exceptions --enable-languages=c,c++,objc,obj-c
> ++,java,fortran,ada --enable-java-awt=gtk --disable-dssi
> --enable-plugin
> --with-java-home=/usr/lib/jvm/java-1.5.0-gcj-1.5.0.0/jre
> --enable-libgcj-multifile --enable-java-maintainer-mode
> --with-ecj-jar=/usr/share/java/eclipse-ecj.jar --with-cpu=generic
> --host=i386-redhat-linux
> Thread model: posix
> gcc version 4.1.2 20070925 (Red Hat 4.1.2-27)
>  /usr/libexec/gcc/i386-redhat-linux/4.1.2/f951 xsimple.f -ffixed-form
> -quiet -dumpbase xsimple.f -mtune=generic -auxbase xsimple -version
> -I /usr/lib/gcc/i386-redhat-linux/4.1.2/finclude -o /tmp/ccxbGe9M.s
> GNU F95 version 4.1.2 20070925 (Red Hat 4.1.2-27) (i386-redhat-linux)
>         compiled by GNU C version 4.1.2 20070925 (Red Hat 4.1.2-27).
> GGC heuristics: --param ggc-min-expand=100 --param
> ggc-min-heapsize=131072
>  as -V -Qy -o /tmp/ccyJUofp.o /tmp/ccxbGe9M.s
> GNU assembler version 2.17.50.0.12-4 (i386-redhat-linux) using BFD
> version 2.17.50.0.12-4 20070128
>  /usr/libexec/gcc/i386-redhat-linux/4.1.2/collect2 --eh-frame-hdr -m
> elf_i386 --hash-style=gnu
> -dynamic-linker /lib/ld-linux.so.2 /usr/lib/gcc/i386-redhat-linux/4.1.2/../../../crt1.o /usr/lib/gcc/i386-redhat-linux/4.1.2/../../../crti.o /usr/lib/gcc/i386-redhat-linux/4.1.2/crtbegin.o -L/usr/lib/gcc/i386-redhat-linux/4.1.2 -L/usr/lib/gcc/i386-redhat-linux/4.1.2 -L/usr/lib/gcc/i386-redhat-linux/4.1.2/../../.. /tmp/ccyJUofp.o -lgcc --as-needed -lgcc_s --no-as-needed -lc -lgcc --as-needed -lgcc_s --no-as-needed /usr/lib/gcc/i386-redhat-linux/4.1.2/crtend.o /usr/lib/gcc/i386-redhat-linux/4.1.2/../../../crtn.o
> /usr/lib/gcc/i386-redhat-linux/4.1.2/../../../crt1.o: In function
> `_start':
> (.text+0x18): undefined reference to `main'
> /tmp/ccyJUofp.o: In function `MAIN__':
> xsimple.f:(.text+0x1e): undefined reference to `_gfortran_set_std'
> collect2: ld returned 1 exit status
> [howard@localhost ProgramTesting]$ 
> 
> The third to the last line has an undefined reference and I don't know
> how to resolve it.
> 
> Any help would be appreciated.
> 
> Howard
> 
> 
> -- 
> fedora-list mailing list
> fedora-list@xxxxxxxxxx
> To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list


[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux