Article View: gnu.gcc.help
Article #49678Compiling GCC-2.5.5 with HP382 workstation
From: hivert
Date: Thu, 13 Jan 1994 16:30
Date: Thu, 13 Jan 1994 16:30
264 lines
11810 bytes
11810 bytes
Hello !!!
A few days ago, we sent an sos about compiling gcc-2.3.3 on an HP-382
workstation. First, we want to thank a lot all the guys answered us.
After a brief workaround we decided to get gcc-2.5.5 sources.
But it was'nt sufficient... Halas !!!
So, we tried to correct the errors when they occured one by one.
(remember that our system was an HP9000/382 running HP-UX 8.00 with
the proper patch)
The first bug was encountered in cexp.c (see diff file below) it seems
to be that in bison.simple sample, the prototype of alloca was in ansi
style, and HP basic cc doesn't like it more.
So, we corrected this, and go further... and became, at the last stage
of compilation (fixproto precisely) an error like :
sh : 1k internal buffer overflow.
Surprisingly, this error was'nt in any manual and we got another hard
time before we remembered that another sh shell was provided by HP
complient for Posix standard (in /bin/posix/sh). So we tried to use it
everywhere, but it seems to prevent configure for working. But after
placing this alien sh in the proper scripts and makefile, gcc compiled
fine, stage3 too, despite of the number of warning and other errors it
complainde of.
We successfully tested it on compiling gzip, wich works fine itself.
So, we don't have no more to tell...
Here's the diff file between gcc bare distribution and gcc which
compiled on our workstation:
------ cut here ------
diff -rc gcc-2.5.5/cexp.c gcc-2.5.5-hp382/cexp.c
*** gcc-2.5.5/cexp.c Thu Nov 11 14:32:14 1993
--- gcc-2.5.5-hp382/cexp.c Fri Jan 7 09:45:17 1994
***************
*** 365,371 ****
void *alloca (unsigned int);
};
#else /* not __cplusplus */
! void *alloca (unsigned int);
#endif /* not __cplusplus */
#endif /* __hpux */
#endif /* not _AIX */
--- 365,372 ----
void *alloca (unsigned int);
};
#else /* not __cplusplus */
! void *alloca ();
! /* void *alloca (unsigned int); */
#endif /* not __cplusplus */
#endif /* __hpux */
#endif /* not _AIX */
Common subdirectories: gcc-2.5.5/config and gcc-2.5.5-hp382/config
diff -rc gcc-2.5.5/cexp.c gcc-2.5.5-hp382/cexp.cgcc-2.5.5/config.guess gcc-2.5.5-hp382/config.guess
*** gcc-2.5.5/config.guess Sat Nov 27 19:48:30 1993
--- gcc-2.5.5-hp382/config.guess Wed Jan 5 16:44:54 1994
***************
*** 1,4 ****
! #!/bin/sh
# This script attempts to guess a canonical system name.
# Copyright (C) 1992, 1993 Free Software Foundation, Inc.
#
--- 1,4 ----
! #!/bin/posix/sh
# This script attempts to guess a canonical system name.
# Copyright (C) 1992, 1993 Free Software Foundation, Inc.
#
diff -rc gcc-2.5.5/config.guess gcc-2.5.5-hp382/config.guessgcc-2.5.5/config.sub gcc-2.5.5-hp382/config.sub
*** gcc-2.5.5/config.sub Sun Oct 31 02:46:16 1993
--- gcc-2.5.5-hp382/config.sub Wed Jan 5 16:45:35 1994
***************
*** 1,4 ****
! #!/bin/sh
# Configuration validation subroutine script, version 1.1.
# Copyright (C) 1991, 1992, 1993 Free Software Foundation, Inc.
# This file is (in principle) common to ALL GNU software.
--- 1,4 ----
! #!/bin/posix/sh
# Configuration validation subroutine script, version 1.1.
# Copyright (C) 1991, 1992, 1993 Free Software Foundation, Inc.
# This file is (in principle) common to ALL GNU software.
diff -rc gcc-2.5.5/config.sub gcc-2.5.5-hp382/config.subgcc-2.5.5/configure gcc-2.5.5-hp382/configure
*** gcc-2.5.5/configure Fri Nov 19 21:44:34 1993
--- gcc-2.5.5-hp382/configure Fri Jan 7 09:38:56 1994
***************
*** 1,4 ****
! #!/bin/sh
# Configuration script for GNU CC
# Copyright (C) 1988, 1990, 1991, 1992, 1993 Free Software Foundation, Inc.
--- 1,4 ----
! #!/bin/sh
# Configuration script for GNU CC
# Copyright (C) 1988, 1990, 1991, 1992, 1993 Free Software Foundation, Inc.
***************
*** 1896,1902 ****
# Describe the chosen configuration in config.status.
# Make that file a shellscript which will reestablish the same configuration.
! echo "#!/bin/sh
# GCC was configured as follows:
${srcdir}/configure" $arguments > config.new
echo echo host=$canon_host target=$canon_target build=$canon_build >> config.new
--- 1896,1902 ----
# Describe the chosen configuration in config.status.
# Make that file a shellscript which will reestablish the same configuration.
! echo "#!/bin/posix/sh
# GCC was configured as follows:
${srcdir}/configure" $arguments > config.new
echo echo host=$canon_host target=$canon_target build=$canon_build >> config.new
diff -rc gcc-2.5.5/configure gcc-2.5.5-hp382/configuregcc-2.5.5/dostage2 gcc-2.5.5-hp382/dostage2
*** gcc-2.5.5/dostage2 Mon Jun 29 05:59:24 1992
--- gcc-2.5.5-hp382/dostage2 Wed Jan 5 16:48:33 1994
***************
*** 1,2 ****
! #!/bin/sh
make -k LANGUAGES=c $1 CC=stage1/xgcc XCFLAGS=-Bstage1/ CFLAGS="-g $2" >log2 2>&1
--- 1,2 ----
! #!/bin/posix/sh
make -k LANGUAGES=c $1 CC=stage1/xgcc XCFLAGS=-Bstage1/ CFLAGS="-g $2" >log2 2>&1
diff -rc gcc-2.5.5/dostage2 gcc-2.5.5-hp382/dostage2gcc-2.5.5/dostage3 gcc-2.5.5-hp382/dostage3
*** gcc-2.5.5/dostage3 Sat Sep 19 00:59:45 1992
--- gcc-2.5.5-hp382/dostage3 Wed Jan 5 16:48:56 1994
***************
*** 1,3 ****
! #!/bin/sh
make -k LANGUAGES=c $1 CC=stage2/xgcc XCFLAGS=-Bstage2/ CFLAGS="-g $2" >log3 2>&1
--- 1,3 ----
! #!/bin/posix/sh
make -k LANGUAGES=c $1 CC=stage2/xgcc XCFLAGS=-Bstage2/ CFLAGS="-g $2" >log3 2>&1
diff -rc gcc-2.5.5/dostage3 gcc-2.5.5-hp382/dostage3gcc-2.5.5/fixcpp gcc-2.5.5-hp382/fixcpp
*** gcc-2.5.5/fixcpp Tue Sep 21 23:22:25 1993
--- gcc-2.5.5-hp382/fixcpp Wed Jan 5 16:50:10 1994
***************
*** 1,4 ****
! #!/bin/sh
#
# NAME:
# fixcpp - fix CPP errors
--- 1,4 ----
! #!/bin/posix/sh
#
# NAME:
# fixcpp - fix CPP errors
diff -rc gcc-2.5.5/fixcpp gcc-2.5.5-hp382/fixcppgcc-2.5.5/fixproto gcc-2.5.5-hp382/fixproto
*** gcc-2.5.5/fixproto Sat Nov 27 10:58:13 1993
--- gcc-2.5.5-hp382/fixproto Wed Jan 5 16:51:55 1994
***************
*** 1,4 ****
! #!/bin/sh
#
# SYNOPSIS
# fixproto TARGET-DIR SOURCE-DIR-ALL SOURCE-DIR-STD
--- 1,4 ----
! #!/bin/posix/sh
#
# SYNOPSIS
# fixproto TARGET-DIR SOURCE-DIR-ALL SOURCE-DIR-STD
Only in gcc-2.5.5-hp382: h
diff -rc gcc-2.5.5/fixproto gcc-2.5.5-hp382/fixprotogcc-2.5.5/install.sh gcc-2.5.5-hp382/install.sh
*** gcc-2.5.5/install.sh Sat Nov 27 19:49:15 1993
--- gcc-2.5.5-hp382/install.sh Wed Jan 5 16:52:52 1994
***************
*** 1,4 ****
! #!/bin/sh
#
# install - install a program, script, or datafile
--- 1,4 ----
! #!/bin/posix/sh
#
# install - install a program, script, or datafile
diff -rc gcc-2.5.5/install.sh gcc-2.5.5-hp382/install.shgcc-2.5.5/just-fixinc gcc-2.5.5-hp382/just-fixinc
*** gcc-2.5.5/just-fixinc Sat Nov 6 08:59:25 1993
--- gcc-2.5.5-hp382/just-fixinc Wed Jan 5 16:54:10 1994
***************
*** 1,4 ****
! #!/bin/sh
# This script exists for use after installing
# the Solaris binaries from a distribution tape/CDROM.
# Use it *after* copying the directory of binaries
--- 1,4 ----
! #!/bin/posix/sh
# This script exists for use after installing
# the Solaris binaries from a distribution tape/CDROM.
# Use it *after* copying the directory of binaries
diff -rc gcc-2.5.5/just-fixinc gcc-2.5.5-hp382/just-fixincgcc-2.5.5/listing gcc-2.5.5-hp382/listing
*** gcc-2.5.5/listing Sat Nov 6 01:20:32 1993
--- gcc-2.5.5-hp382/listing Wed Jan 5 16:54:49 1994
***************
*** 1,4 ****
! #!/bin/sh -f
# Generate a source code listing for C or C++ code with assembler code. The
# listing is always written to stdout.
# Author: Igor Metz <metz@iam.unibe.ch>
--- 1,4 ----
! #!/bin/posix/sh -f
# Generate a source code listing for C or C++ code with assembler code. The
# listing is always written to stdout.
# Author: Igor Metz <metz@iam.unibe.ch>
Only in gcc-2.5.5-hp382: machine
diff -rc gcc-2.5.5/listing gcc-2.5.5-hp382/listinggcc-2.5.5/move-if-change gcc-2.5.5-hp382/move-if-change
*** gcc-2.5.5/move-if-change Fri Feb 19 01:16:37 1993
--- gcc-2.5.5-hp382/move-if-change Wed Jan 5 16:55:10 1994
***************
*** 1,4 ****
! #!/bin/sh
# Like mv $1 $2, but if the files are the same, just delete $1.
# Status is 0 if $2 is changed, 1 otherwise.
if
--- 1,4 ----
! #!/bin/posix/sh
# Like mv $1 $2, but if the files are the same, just delete $1.
# Status is 0 if $2 is changed, 1 otherwise.
if
Common subdirectories: gcc-2.5.5/objc and gcc-2.5.5-hp382/objc
diff -rc gcc-2.5.5/move-if-change gcc-2.5.5-hp382/move-if-changegcc-2.5.5/sort-protos gcc-2.5.5-hp382/sort-protos
*** gcc-2.5.5/sort-protos Sat Dec 28 00:07:54 1991
--- gcc-2.5.5-hp382/sort-protos Wed Jan 5 16:55:32 1994
***************
*** 1,4 ****
! #!/bin/sh
# Sort the sys-protos.h file in its usual order.
# Invoke as `sort-protos sys-protos.h'.
--- 1,4 ----
! #!/bin/posix/sh
# Sort the sys-protos.h file in its usual order.
# Invoke as `sort-protos sys-protos.h'.
Common subdirectories: gcc-2.5.5/config/a29k and gcc-2.5.5-hp382/config/a29k
Common subdirectories: gcc-2.5.5/config/alpha and gcc-2.5.5-hp382/config/alpha
Common subdirectories: gcc-2.5.5/config/arm and gcc-2.5.5-hp382/config/arm
Common subdirectories: gcc-2.5.5/config/clipper and gcc-2.5.5-hp382/config/clipper
Common subdirectories: gcc-2.5.5/config/convex and gcc-2.5.5-hp382/config/convex
Common subdirectories: gcc-2.5.5/config/elxsi and gcc-2.5.5-hp382/config/elxsi
Common subdirectories: gcc-2.5.5/config/fx80 and gcc-2.5.5-hp382/config/fx80
Common subdirectories: gcc-2.5.5/config/gmicro and gcc-2.5.5-hp382/config/gmicro
Common subdirectories: gcc-2.5.5/config/h8300 and gcc-2.5.5-hp382/config/h8300
Common subdirectories: gcc-2.5.5/config/i370 and gcc-2.5.5-hp382/config/i370
Common subdirectories: gcc-2.5.5/config/i386 and gcc-2.5.5-hp382/config/i386
Common subdirectories: gcc-2.5.5/config/i860 and gcc-2.5.5-hp382/config/i860
Common subdirectories: gcc-2.5.5/config/i960 and gcc-2.5.5-hp382/config/i960
Common subdirectories: gcc-2.5.5/config/m68k and gcc-2.5.5-hp382/config/m68k
Common subdirectories: gcc-2.5.5/config/m88k and gcc-2.5.5-hp382/config/m88k
Common subdirectories: gcc-2.5.5/config/mips and gcc-2.5.5-hp382/config/mips
Common subdirectories: gcc-2.5.5/config/ns32k and gcc-2.5.5-hp382/config/ns32k
Common subdirectories: gcc-2.5.5/config/pa and gcc-2.5.5-hp382/config/pa
Common subdirectories: gcc-2.5.5/config/pyr and gcc-2.5.5-hp382/config/pyr
Common subdirectories: gcc-2.5.5/config/romp and gcc-2.5.5-hp382/config/romp
Common subdirectories: gcc-2.5.5/config/rs6000 and gcc-2.5.5-hp382/config/rs6000
Common subdirectories: gcc-2.5.5/config/sh and gcc-2.5.5-hp382/config/sh
Common subdirectories: gcc-2.5.5/config/sparc and gcc-2.5.5-hp382/config/sparc
Common subdirectories: gcc-2.5.5/config/spur and gcc-2.5.5-hp382/config/spur
Common subdirectories: gcc-2.5.5/config/tahoe and gcc-2.5.5-hp382/config/tahoe
Common subdirectories: gcc-2.5.5/config/vax and gcc-2.5.5-hp382/config/vax
Common subdirectories: gcc-2.5.5/config/we32k and gcc-2.5.5-hp382/config/we32k
Technical Details
Message-ID:
<9401131627.AA09211@life.ai.mit.edu>Path:
arc1-ca.pugleaf.net!gmd.de!Germany.EU.net!EU.net!howland.reston.ans.net!usenet.ins.cwru.edu!lerc.nasa.gov!magnus.acs.ohio-state.edu!cis.ohio-state.edu!grenet.FR!hivertShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 11318c,75d4acdee5d930b3,start X-Google-Attributes: gid11318c,public X-Google-ArrivalTime: 1994-01-13 12:14:38 PST Path: arc1-ca.pugleaf.net!gmd.de!Germany.EU.net!EU.net!howland.reston.ans.net!usenet.ins.cwru.edu!lerc.nasa.gov!magnus.acs.ohio-state.edu!cis.ohio-state.edu!grenet.FR!hivert From: hivert@grenet.FR Newsgroups: gnu.gcc.help Subject: Compiling GCC-2.5.5 with HP382 workstation Date: 13 Jan 1994 11:30:21 -0500 Organization: GNUs Not Usenet Lines: 268 Sender: daemon@cis.ohio-state.edu Distribution: gnu Message-ID: <9401131627.AA09211@life.ai.mit.edu>