From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Irvine Short Newsgroups: gmane.os.tru64.managers Subject: SUMMARY: compiling gcc 2.95.3 on Tru64 5.1 Date: Tue, 09 Jul 2002 16:35:13 +0200 Organization: SANBI Sender: tru64-unix-managers-owner@ornl.gov Message-ID: <3D2AF4A0.BEFAEF16@sanbi.ac.za> Reply-To: irvine@sanbi.ac.za NNTP-Posting-Host: localhost.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: main.gmane.org 1026225290 23645 127.0.0.1 (9 Jul 2002 14:34:50 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Tue, 9 Jul 2002 14:34:50 +0000 (UTC) Return-path: Original-Received: from sws1.ctd.ornl.gov ([160.91.20.101]) by main.gmane.org with smtp (Exim 3.33 #1 (Debian)) id 17Rw4n-00069F-00 for ; Tue, 09 Jul 2002 16:34:50 +0200 Original-Received: (qmail 21706 invoked by uid 5); 9 Jul 2002 14:35:29 -0000 Original-Followup-To: poster Precedence: bulk Original-Received: (qmail 21698 invoked from network); 9 Jul 2002 14:35:28 -0000 Original-Received: from unknown (HELO emroute1.cind.ornl.gov) (134.167.3.119) by 0 with SMTP; 9 Jul 2002 14:35:28 -0000 Original-Received: from emroute1.cind.ornl.gov (localhost [127.0.0.1]) by emroute1.cind.ornl.gov (PMDF V6.1-1 #39060) with ESMTP id <0GYZ00MTNKJ320@emroute1.cind.ornl.gov> for tru64-unix-managers@sws1.ctd.ornl.gov (ORCPT tru64-unix-managers@ornl.gov) ; Tue, 09 Jul 2002 10:35:28 -0400 (EDT) Original-Received: from fling.sanbi.ac.za (fling.sanbi.ac.za [196.38.142.119]) by emroute1.cind.ornl.gov (PMDF V6.1-1 #39060) with ESMTP id <0GYZ00GNKKIRFF@emroute1.cind.ornl.gov> for tru64-unix-managers@sws1.ctd.ornl.gov (ORCPT tru64-unix-managers@ornl.gov) ; Tue, 09 Jul 2002 10:35:18 -0400 (EDT) Original-Received: from gopak.sanbi.ac.za ([196.38.142.125]) by fling.sanbi.ac.za with esmtp (Exim 3.36 #1) id 17Rw5B-000B9a-00 for tru64-unix-managers@ornl.gov; Tue, 09 Jul 2002 16:35:13 +0200 Original-Received: from sanbi.ac.za (localhost.sanbi.ac.za [127.0.0.1]) by gopak.sanbi.ac.za (8.11.6/8.11.6) with ESMTP id g69EZDi30950 for ; Tue, 09 Jul 2002 16:35:13 +0200 (SAST envelope-from irvine@sanbi.ac.za) Original-To: tru64-unix-managers@ornl.gov X-Mailer: Mozilla 4.78 [en] (X11; U; Linux 2.2.12 i386) X-Accept-Language: en Xref: main.gmane.org gmane.os.tru64.managers:897 X-Report-Spam: http://spam.gmane.org/gmane.os.tru64.managers:897 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