Solution to compile GCC on Tru64 Unix v5.1 (thanks to all of you for the
answers)
(Note that someone advise not to use gcc2-95-2 because it has serious
problems which won't show up immediately.)
Here is the answer of Paul Reilly
=======================================================
This is for gcc 2.95.2
(should not be neccessary for gcc 2.95.3 when it comes out)
1. Edit ~/gcc-2.95.2/gcc/configure
Look for the lines that read:
*-*-osf4*)
tm_file="${tm_file} alpha/osf.h"
# Some versions of OSF4 (specifically X4.0-9 296.7) have
# a broken tar, so we use cpio instead.
install_headers_dir=install-headers-cpio
;;
esac
case $machine in
*-*-osf4.0[b-z] | *-*-osf4.[1-9]*)
target_cpu_default=MASK_SUPPORT_ARCH
;;
esac
Change them to:
*-*-osf[45]*)
tm_file="${tm_file} alpha/osf.h"
# Some versions of OSF4 (specifically X4.0-9 296.7) have
# a broken tar, so we use cpio instead.
install_headers_dir=install-headers-cpio
;;
esac
case $machine in
*-*-osf4.0[b-z] | *-*-osf4.[1-9]*| *-*-osf5*)
target_cpu_default=MASK_SUPPORT_ARCH
;;
esac
2. Then create a shell script called "as" in /sbin that contains:
#!/bin/sh
/usr/bin/as -oldas $*
Make sure this is in your PATH ahead of /usr/bin/as
NOTE: gcc 2.95.3 no longer checks for as in $PATH - you need to specify
it
at the configure line with "with-as="
3. Now gcc should build correctly:
> mkdir gcc_build
> tar -xzvf gcc-2.95.2.tar.gz
> cd gcc_build
> ../gcc-2.95.2/configure --with-as=/sbin/as
> make bootstrap
> make install
Received on Tue May 29 2001 - 14:41:26 NZST