This is the mail archive of the
fortran@gcc.gnu.org
mailing list for the GNU Fortran project.
gcc-4.2 setting for gfortran
- From: Miroslav ILIAS <milias at post dot tau dot ac dot il>
- To: fortran at gcc dot gnu dot org
- Date: Fri, 15 Jun 2007 21:58:14 +0300
- Subject: gcc-4.2 setting for gfortran
Dear all,
on our opteron machine we have this gfortran:
.gfortran --v
Using built-in specs.
Target: x86_64-unknown-linux-gnu
Configured with:
/home/tob/projects/gcc-4_2-branch/configure--enable-languages=c,fortran
--prefix=/projects/tob/gcc-4.2
Thread model: posix
gcc version 4.2.0 20070416 (prerelease)
When compiling a big program system (mix of fortran and C codes) on this server,
I got this error:
gfortran -g -fdefault-integer-8 -ff2c -fautomatic -fno-f2c -o
/home/miro/qch_software/development/cvs_debug/gfortran_gdb/Dirac/dir
ac.x \
dirac/dircnv.o dirac/dirgp.o dirac/dirone.o dirac/dirv1c.o dirac/dirout.o
dirac/dirana.o dirac/dirrdn.o dirac/dirscf.o dirac/dirs
et.o dirac/dirtra.o dirac/dirtwo.o dirac/dirden.o dirac/dirgrd.o dirac/dirsol.o
dirac/dirgeo.o dirac/dirspf.o dirac/diropen.o dira
c/diraos.o dirac/dirbss.o main/dirac.o abacus/her1ave.o abacus/her1car.o
abacus/her1cat.o abacus/her1drv.o abacus/her
1int.o abacus/her1odc.o abacus/her1out.o abacus/her1pro.o
abacus/her1sym.o abacus/her2ave.o abacus/her2dir.o abacus
/her2drv.o abacus/her2el1.o abacus/her2el2.o abacus/her2fck.o
abacus/her2her.o abacus/her2odc.o abacus/her2out.o ab
acus/her2sym.o ....
..
..
...
... krmc/krmctra.o krmc/krmcvec.o krmc/krmcsav.o krmc/krmccan.o krmc/krmcinp.o
krmc/krmcmlf.o krmc/krmcgp.o krmc/krmcluci.o krmc/gen
det.o luciarel/ciinfo_r.o luciarel/density_r.o luciarel/diagonal_r.o
luciarel/diagonalize_r.o luciarel/fock_r.o luciarel/interf
ace_r.o luciarel/io_r.o luciarel/memory_r.o luciarel/program_r.o
luciarel/sigden_r.o luciarel/sigma_r.o luciarel/strings_r.o lu
ciarel/transform_r.o luciarel/utils_r.o luciarel/vecmat_r.o
luciarel/par_lucia_r.o luciarel/par_solver_r.o oof/mem_mod.o oof/qm
tx_mod.o oof/tests.o oof/string_mod.o oof/vect_mod.o oof/tools77.o \
gp/mxmpack.o -Lpdpack -lpdlib -L/usr/lib64 -lblas
/usr/local/src/gcc-4.2/bin/../lib/gcc/x86_64-unknown-linux-gnu/4.2.0/libgfortranbegin.a(fmain.o)(.text+0xa):
In function `main':
/home/tob/projects/gcc-4_2-branch/libgfortran/fmain.c:18: undefined reference to
`MAIN__'
collect2: ld returned 1 exit status
On other server with this setting the compilation above works:
.gfortran-4.1 --v
Using built-in specs.
Target: x86_64-linux-gnu
Configured with: ../src/configure -v --enable-languages=c,c++,fortran,objc,obj-c
++,treelang --prefix=/usr --enable-shared --with-system-zlib --libexecdir=/usr/l
ib --without-included-gettext --enable-threads=posix --enable-nls --program-suff
ix=-4.1 --enable-__cxa_atexit --enable-clocale=gnu --enable-libstdcxx-debug --en
able-mpfr --enable-checking=release x86_64-linux-gnu
Thread model: posix
gcc version 4.1.2 20061115 (prerelease) (Debian 4.1.1-21)
Could someone help me on how to properly install gcc/gfortran ? Thanks.
--
Miroslav (Miro) Ilias, PhD.
School of Chemistry, Tel Aviv University phone: 972-3-6408902
69978 Tel Aviv, Israel fax: 972-3-6409293
e-mail: milias@post.tau.ac.il
----------------------------------------------------------------
This message was sent using IMP, the Internet Messaging Program.