Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

gfortran on ubuntu -- missing 32-bit library?

41 views
Skip to first unread message

Dr Ivan D. Reid

unread,
Jun 5, 2008, 2:51:59 PM6/5/08
to
I'm running 64-bit ubuntu:
ireid@server01:~/ng3$ uname -a
Linux server01 2.6.24-16-generic #1 SMP Thu Apr 10 12:47:45 UTC 2008 x86_64 GNU/Linux
with gfortran 4.2.3:
ireid@server01:~/ng3$ gfortran --version
GNU Fortran (GCC) 4.2.3 (Ubuntu 4.2.3-2ubuntu7)
Copyright (C) 2007 Free Software Foundation, Inc.

When I try to make a 32-bit executable (-m32) I get the following error:

ireid@server01:~/ng3$ gfortran -O4 -m32 -ffast-math ng3.for
/usr/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-linux-gnu/4.2.3/libgfortranbegin.a when searching for -lgfortranbegin
/usr/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-linux-gnu/4.2.3/libgfortranbegin.a when searching for -lgfortranbegin
/usr/bin/ld: cannot find -lgfortranbegin
collect2: ld returned 1 exit status

Using synaptic I've loaded the lib32gfortran2 package, but that
doesn't include a 32-bit libgfortranbegin. A bit of googling suggests it
should live in a .../4.2.3/32/ subdirectory. Does anyone know which package
I have to install to get it, or another way around the problem?

--
Ivan Reid, School of Engineering & Design, _____________ CMS Collaboration,
Brunel University. Ivan.Reid@[brunel.ac.uk|cern.ch] Room 40-1-B12, CERN
KotPT -- "for stupidity above and beyond the call of duty".

0 new messages