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
=============================================================================
Malcolm Dunnett Malaspina University-College Email: dunnett_at_mala.bc.ca
Information Systems Nanaimo, B.C. CANADA V9R 5S5 Tel: (250)755-8738
Received on Tue Apr 18 2000 - 21:28:37 NZST