A few people emailed asking how I got gcc-2.95.2 to compile to Tru64
5.0, So here goes.
A search through the archives revealed an email from Ken Kleiner which
listed three ways of getting it to work, only the last one, of editing
the configure script (Thanks Frank) worked for me.
Then I did the following:
./configure
make bootstrap
make install
and all was hunky-dory
Ken said:
> Thanks to Daniel Monjar for the quick response!
>
> I orginally asked why I couldn't compile GCC 2.95.2 on 5.0a, getting an
> unresolved
> of ASM_FILE_START.
>
> I guess I didn't look deep enough on the www.tru64.org archive for the
> answer. The main problem (demonstrated below) is that the config script
> does not recognize the OS type properly and you have to fool it, done 2
> different ways.
>
> Thanks!
>
> -Ken Kleiner
> Umass Lowell
I followed Malcolm Dunnett's advice:
> Subject: Summary: Building GNU C on Tru64 5.0
> From: Malcolm Dunnett <DUNNETT_at_mala.bc.ca>
> To: tru64-unix-managers_at_ornl.gov
> Cc: DUNNETT_at_mala.bc.ca
> Date: Tue, 18 Apr 2000 13:55:54 -0800 (PST)
>
>
> I posted a question about how to build GNU C on Tru64 version 5.0
>
> The answer is that the configure script which comes with gcc 2.95.2
> doesn't recognize this version of the OS, so you have to either fool
> it into configuring for version 4 ( using the --host switch ) or edit
> the configure script to include checks for V5.0. I took the latter
> approach and it all seemed to work ok.
>
> Thanks to all who responded.
>
> I've appended a message I got which describes both of these
> options in more detail.
>
----------
Date: Mon, 17 Apr 2000 11:44:22 -0400
From: Frank Wortner <frank_at_bondnet.com>
Subject: Re: Help installing GNU C on Tru64
The configure script in GCC hasn't been updated to deal with Tru64 Unix
5.0
yet. There are three ways of getting around this.
You can get around this by telling configure to build a 4.0 version --
it
*will* work on 5.0:
configure --host=alphaev56-dec-osf4.0
Change "ev56" to the appropriate version for your machine.
If that alternative doesn't appeal to you, you can also just leave
things
as they are, and edit tm.h in the gcc-2.95.2/gcc directory. Add the
following three lines to the end of the file:
#ifdef IN_GCC
#include "alpha/osf.h"
#endif
The source will now compile. Of course, you will have to remember to
do
this every time you compile GCC.
There is a more "permanent" change possible, if you really want to live
on
the edge :-). Edit gcc-2.95.2/gcc/configure. Now 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
Now remove any "config.cache" files you may find in the GCC source
directories, run configure again, and when the dust settles, you
should
be able to build GCC on Tru64 Unix 5.0.
Have fun!
Frank
--
Irvine Short
Sys Admin
SANBI, University of the Western Cape, South Africa
http://www.sanbi.ac.za
tel: +27-21-959 3645
fax: +27-21-959 2512
cel: +27-82-494 3828
Received on Fri Aug 25 2000 - 12:40:53 NZST