SUMMARY: compiling gcc 2.95.3 on Tru64 5.1

From: Irvine Short (irvine@sanbi.ac.za)
Date: Tue Jul 09 2002 - 10:35:13 EDT


OK, a combination of Kazuro FURUKAWA, Valerie Thevenin, Paul Reilly, and
Brian Schau helped out here.

The Written Word and others insist that gcc 2.95.3 won't build on 5.1

However we've already used it to successfully build the zthreads library.

This is what worked for me edited from what Paul Reilly said on this list a
while ago updated for my experiences with 2.95.3 - Paul was working with
2.95.2.

Thinks - I'd have found this earlier if in the SUMMARY subject lines folks
consistently mentioned gcc and Tru64 versions.

1. Edit ~/gcc-2.95.3/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:

./configure --with-as=/sbin/as
 make bootstrap
 make install

--
Irvine Short
Sys Admin
SANBI, University of the Western Cape, South Africa
http://www.sanbi.ac.za
tel: +27-21-959 3645
cel: +27-82-494 3828


This archive was generated by hypermail 2.1.7 : Sat Apr 12 2008 - 10:48:46 EDT