This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Compiling gcc-4.2 on 64 bit Ubuntu
- From: Terry Frankcombe <terry at chem dot gu dot se>
- To: gcc-help at gcc dot gnu dot org
- Date: Tue, 27 Feb 2007 19:47:21 +0100
- Subject: Compiling gcc-4.2 on 64 bit Ubuntu
Hi folks
I've run into trouble trying to compile gcc 4.2 (gcc-4.2-20070221) on an
amd64 machine running 64 bit Ubuntu. I configure with:
./configure --disable-multilibs --enable-languages=fortran
then doing a make gets as far as compiling ../.././gcc/crtstuff.c in
gcc-4.2-20070221/host-x86_64-unknown-linux-gnu/gcc. /usr/include/gnu/stubs.h is included which then tries to include gnu/stubs-32.h, which doesn't exist, rather than gnu/stubs-64.h, which does. Thus apparently __WORDSIZE is defined as 32.
Now Ubuntu has 64 bit libraries in /usr/lib and 32 bit libraries
in /usr/lib32 (with a simlink from /usr/lib64 to /usr/lib).
Any ideas about how I can coerce configure to set things up correctly to
build a 64 bit compiler?
Ciao
Terry
--
Dr Terry Frankcombe
Physical Chemistry, Department of Chemistry
GÃteborgs Universitet
SE-412 96 GÃteborg Sweden
Ph: +46 76 224 0887 Skype: terry.frankcombe
<terry@chem.gu.se>