tru64-unix-managers (formerly alpha-osf-managers) (1994-2012)
 help / color / mirror / Atom feed
* SUMMARY: compiling gcc 2.95.3 on Tru64 5.1
@ 2002-07-09 14:35 Irvine Short
  0 siblings, 0 replies; only message in thread
From: Irvine Short @ 2002-07-09 14:35 UTC (permalink / raw)


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





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

only message in thread, other threads:[~2002-07-09 14:35 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-07-09 14:35 SUMMARY: compiling gcc 2.95.3 on Tru64 5.1 Irvine Short

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