tru64-unix-managers (formerly alpha-osf-managers) (1994-2012)
 help / color / mirror / Atom feed
* SUMMARY: gcc and du 5.1
@ 2001-05-29 14:40 Valerie Thevenin
  0 siblings, 0 replies; only message in thread
From: Valerie Thevenin @ 2001-05-29 14:40 UTC (permalink / raw)
  To: tru64-unix-managers

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







^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2001-05-29 14:40 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-05-29 14:40 SUMMARY: gcc and du 5.1 Valerie Thevenin

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