tru64-unix-managers (formerly alpha-osf-managers) (1994-2012)
 help / color / mirror / Atom feed
From: Valerie Thevenin <thevenin () utt ! fr>
To: tru64-unix-managers
Subject: SUMMARY: gcc and du 5.1
Date: Tue, 29 May 2001 14:40:16 +0000	[thread overview]
Message-ID: <102653647622162.tru64-unix-managers.marc@archive.invalid> (raw)

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







                 reply	other threads:[~2001-05-29 14:40 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox