Help building GCC on AMD Athlon (64-bit)

Hamilton Chris-cham chris.hamilton@freescale.com
Mon Mar 28 20:01:00 GMT 2005


I'm having problems building GCC 3.4.3 on a 64-bit AMD Athlon Linux machine.  Can anyone help me decode the error message?

Here's my config:

[ld0022-tx32]$ uname -a
Linux ld0022-tx32 2.4.21-20.EL #1 Wed Aug 18 20:48:55 EDT 2004 x86_64 unknown
[ld0022-tx32]$ cat /etc/redhat-release
Red Hat Enterprise Linux WS release 3 (Taroon Update 3)
[ld0022-tx32]$ rpm -q --qf '%{name}-%{version}-%{release}.%{arch}\n' gcc glibc glibc-headers glibc-devel cpp gcc-c++
gcc-3.2.3-42.x86_64
glibc-2.3.2-95.27.i686
glibc-2.3.2-95.27.x86_64
glibc-headers-2.3.2-95.27.x86_64
glibc-devel-2.3.2-95.27.i386
glibc-devel-2.3.2-95.27.x86_64
cpp-3.2.3-42.x86_64
gcc-c++-3.2.3-42.x86_64
[ld0022-tx32]$

I'm using /usr/bin/gcc as the bootstrap compiler:

[ld0022-tx32]$ /usr/bin/gcc -v
Reading specs from /usr/lib/gcc-lib/x86_64-redhat-linux/3.2.3/specs
Configured with: ../configure --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --enable-shared --enable-threads=posix --disable-checking --with-system-zlib --enable-__cxa_atexit --host=x86_64-redhat-linux
Thread model: posix
gcc version 3.2.3 20030502 (Red Hat Linux 3.2.3-42)


Build process is:
1. build/install binutils-2.15, configured:
     --disable-nls --enable-64-bit-bfd
2. build/install gcc-3.4.3, configured: 
     --enable-shared --enable-threads --with-ld=/path/to/binutils-2.15/ld
     --with-as=/path/to/binutils-2.15/as
3. re-build/install gcc-3.4.3 with itself (same config)


My build is dying on Step 2, with the following error message:

/_TOOLS_/arch/ibin/ksh ../libtool --tag CXX --mode=link /home/cham/workspace/ppcinfr/gcc-3.4.3/ld0022-tx32/gcc-3.4.3/_build/gcc/xgcc -shared-libgcc -B/home/cham/workspace/ppcinfr/gcc-3.4.3/ld0022-tx32/gcc-3.4.3/_build/gcc/ -nostdinc++ -L/home/cham/workspace/<snipped...>
Memory fault
make[4]: *** [libstdc++.la] Error 139
make[4]: Leaving directory `/proj/.ppc_38/da/cham/ppcinfr/gcc-3.4.3/ld0022-tx32/gcc-3.4.3/_build/x86_64-unknown-linux-gnu/libstdc++-v3/src'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/proj/.ppc_38/da/cham/ppcinfr/gcc-3.4.3/ld0022-tx32/gcc-3.4.3/_build/x86_64-unknown-linux-gnu/libstdc++-v3'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/proj/.ppc_38/da/cham/ppcinfr/gcc-3.4.3/ld0022-tx32/gcc-3.4.3/_build/x86_64-unknown-linux-gnu/libstdc++-v3'
make[1]: *** [all-target-libstdc++-v3] Error 2
make[1]: Leaving directory `/proj/.ppc_38/da/cham/ppcinfr/gcc-3.4.3/ld0022-tx32/gcc-3.4.3/_build'
make: *** [bootstrap] Error 2


What can cause this "Memory fault", and how can I fix it or avoid it?

If I need to post more info, plz let me know.

Thanks,
Chris



More information about the Gcc-help mailing list