🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.gcc.help
Article #53110

Re: Gcc 2.0 on HP 9000/835 (HP/UX)

#53110
From: Riccardo Facchetti
Date: Fri, 06 Mar 1992 08:52
128 lines
5821 bytes
I'm trying to build gcc-2.0 on the same machine with the same configuration
as Richard, (for fun my name is Riccardo :).

goldkamp@cs.tulane.edu (Richard Goldkamp) writes:

>System:  HP 9000/835
>OS:      HP/UX 8.0
>Config:  hppa

>Situation:  I built the stage 1 compiler with HP's cc, as, and ld.  Since
>            this build appeared to be successful, I did "make stage1",
>            and continued with the stage2 build.  For this I used stage1/gcc,
>            gas (a version modified for the hppa architecture), and HP's
>            ld.  It is my understanding that HP's ld should be OK, so
>            I used it instead of GNU ld, since I do not have a GNU 
>            compatible version of /lib/crt0.o.  The stage2 build appeared
>            to work until it tried to compile enquire.c with the newly
>            created stage2 gcc.  Here's the error:

>[ deleted preceding messages showing apparently successful build ]

exactly the same description than can do me, only little things to add:

- this warnings:

        stage1/gcc -c    -O -Bstage1/     -I. -I. -I./config explow.c
explow.c: In function `memory_address':
explow.c:355: warning: suggest parentheses around && within ||

        stage1/gcc -c    -O -Bstage1/     -I. -I. -I./config reload.c
reload.c: In function `strict_memory_address_p':
reload.c:1358: warning: suggest parentheses around && within ||

        stage1/gcc -c    -O -Bstage1/     -I. -I. -I./config recog.c
recog.c: In function `general_operand':
recog.c:812: warning: suggest parentheses around && within ||
recog.c: In function `memory_address_p':
recog.c:1033: warning: suggest parentheses around && within ||

        stage1/gcc -c    -O -Bstage1/     -I. -I. -I./config cp-lex.c
In file included from cp-lex.c:28:
/usr/include/string.h:24: warning: conflicting types for built-in function `memc
mp'
/usr/include/string.h:68: warning: conflicting types for built-in function `memc
py'
/usr/include/string.h:73: warning: conflicting types for built-in function `strl
en'

        stage1/gcc -c    -O -Bstage1/     -I. -I. -I./config cp-method.c
In file included from cp-method.c:29:
/usr/include/string.h:24: warning: conflicting types for built-in function `memc
mp'
/usr/include/string.h:68: warning: conflicting types for built-in function `memc
py'
/usr/include/string.h:73: warning: conflicting types for built-in function `strl
en'

        stage1/gcc -c    -O -Bstage1/     -I. -I. -I./config cp-xref.c
In file included from /usr/include/memory.h:9, from cp-xref.c:30:
/usr/include/string.h:24: warning: conflicting types for built-in function `memc
mp'
/usr/include/string.h:68: warning: conflicting types for built-in function `memc
py'
/usr/include/string.h:73: warning: conflicting types for built-in function `strl
en'

- some other warnings already reported;

- and this errors:

        stage1/gcc -c    -O -Bstage1/     -I. -I. -I./config \
                  -DGCC_INCLUDE_DIR=\"/usr/local/lib/gcc/hp800/`awk '{printf "%s
", substr ($4, 2, length ($4) - 3); }' ./version.c`/include\" \
                  -DGPLUSPLUS_INCLUDE_DIR=\"/usr/local/lib/g++-include\" \
                  -DCROSS_INCLUDE_DIR=\"/usr/local/lib/gcc/hp800/`awk '{printf "
%s", substr ($4, 2, length ($4) - 3); }' ./version.c`/sys-include\" \
          -DLOCAL_INCLUDE_DIR=\"/usr/local/include\" \
          -DSTD_PROTO_DIR=\"/usr/local/lib/gcc/hp800/`awk '{printf "%s", substr
($4, 2, length ($4) - 3); }' ./version.c`\" \
          ./protoize.c
./protoize.c:205: conflicting types for `fork'
/usr/include/sys/unistd.h:198: previous declaration of `fork'
*** Error code 1

Stop.

        ./gcc    -O -Bstage1/ -B./    -DNO_SC -DNO_MEM -DNO_STDDEF -O0 -I. -c en
quire.c
./gcc: Internal compiler error: program cc1 got fatal signal 11
*** Error code 1

Stop.

The first problem was really stupid (only a bad declaration of the fork fn),
the second was the end of my try to compile gcc-2.0 :(

>	cp ./enquire.c . > /dev/null 2>&1
>*** Error code 1 (ignored)
>	./gcc    -g -O -Bstage1/ -DDOLLARS_IN_IDENTIFIERS=1 -B./    -DNO_SC -DNO_MEM -DNO_STDDEF -O0 -I. -c enquire.c
>./gcc: Internal compiler error: program cpp got fatal signal 10
>*** Error code 1

>Stop.

>I understand that Gcc 2.0 is only configured to work for hppa machines
>running BSD, but since nearly all hppa machines run HP/UX, I was wondering
>if any brave soul had attempted to solve this problem.  If so, any
>pointers or help would be greatly appreciated.

i understand this me too ... and i assure u that the waiting for completion of
the compilation is really stressing.

>Thanks in advance.
>Rich Goldkamp

if someone can help us, poor hp800/hp/hpux users, we'll be really happy! :)

Tanks in advance.

Ciao,
	Riccardo.

--
Riccardo Facchetti          | e-mail: mez002@cdc835.cdc.polimi.it
Centro di Calcolo           |
Politecnico di Milano       | News  : netnews@cdc835.cdc.polimi.it
P.za Leonardo da Vinci, 32  | Irc   : irc@cdc835.cdc.polimi.it
I-20133 - Milano - Italy    | Nickname on IRC: Allanon
Technical Details
Message-ID: <mez002.699871946@cdc835>
Path: arc1-ca.pugleaf.net!sparky!uunet!usc!rpi!ghost.dsi.unimi.it!cdc835.cdc.polimi.it!cdc835!mez002
References: <1992Mar5.210839.11553@cs.tulane.edu>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 11318c,77517e16868d086b,start
X-Google-Attributes: gid11318c,public
X-Google-ArrivalTime: 1992-03-07 07:15:00 PST
Newsgroups: gnu.gcc.help
Path: arc1-ca.pugleaf.net!sparky!uunet!usc!rpi!ghost.dsi.unimi.it!cdc835.cdc.polimi.it!cdc835!mez002
From: mez002@cdc835.cdc.polimi.it (Riccardo Facchetti)
Subject: Re: Gcc 2.0 on HP 9000/835 (HP/UX)
References: <1992Mar5.210839.11553@cs.tulane.edu>
Date: Fri, 6 Mar 1992 08:52:26 GMT
Nntp-Posting-Host: cdc835.cdc.polimi.it
Distribution: gnu
Organization: C.d.C., Politecnico di Milano
Sender: netnews@cdc835.cdc.polimi.it (News Admin)
Message-ID: <mez002.699871946@cdc835>
Lines: 128