🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.gcc.help
Article #42372

Re: Need help building on hp 385 / hpux 9.10

#42372
From: David D Kilzer
Date: Fri, 15 Dec 1995 00:00
46 lines
2429 bytes
In <4amqrq$9fe@hpavua.lf.hp.com> smisko@hpavdq.lf.hp.com (Dan Smisko) writes:

>I'm trying to build gcc 2.7.0 on an HP 385 running HPUX 9.10.  After
>lots of grinding, it runs into this problem:
>
>> $ make LANGUAGES=c
>>         rm -f cpp
>>         ln cccp cpp > /dev/null 2>&1 \
>>          || cp cccp cpp
>>         rm -f ld
>>         ln collect2 ld > /dev/null 2>&1 \
>>            || cp collect2 ld
>>         ./xgcc -B./  -DIN_GCC -I../hp-include  -g -I./include    -DNO_MEM -DNO_LONG_DOUBLE_IO -O0 -I. -c ./enquire.c
>>         ./xgcc -B./  -DIN_GCC -I../hp-include  -g -I./include  enquire.o -o enquire
>> collect2: ld returned 1 exit status
>> ld: (warning) - old (pre-6.5) file enquire.o may be incompatible with newer files
>> ld: Undefined external -
>>         _main
>> ld: output file still contains undefined symbols
>> ld: (warning) undefined externals may be assumed to be procedures
>> ld: format error in file enquire.o, bad relocation size
>> ld: (Warning) did not generate an output file
>> *** Error code 1
>> 
>> Stop.
>> $

>I'm using gas (at least trying) and the hp linker.  Does anybody know
>what's going on here?  Thanks.

Did you compile and install the GNU linker, too (when you compiled gas
in GNU binutils)?  You must do that so that gcc can be linked.  Also,
put the path to the GNU ld and as in your path BEFORE the system
default.  A `which ld' and `which as' should return the GNU versions.

If you still have problems, remove all traces of the gnu stuff, and
start over with binutils, then gcc.  It took me a while when I did it,
but I finally got it to work.  It always has problems with enquire.o if
it doesn't work.

Dave
-- 
David D. Kilzer              \  ``So, lunch?''
ddkilzer@iastate.edu         /  ``Mulder, frogs just fell out of the sky!!''
Computer Engineer 5          \  ``Well, I guess their parachutes didn't open.''
Iowa State University, Ames  /       _The_X-Files:__Die_Hand_Die_Verletzt_
Technical Details
Message-ID: <ddkilzer.818999930@tbp.eng.iastate.edu>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <4amqrq$9fe@hpavua.lf.hp.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 11318c,817058ebc772d703
X-Google-Attributes: gid11318c,public
From: ddkilzer@iastate.edu (David D Kilzer)
Subject: Re: Need help building on hp 385 / hpux 9.10
Date: 1995/12/15
Message-ID: <ddkilzer.818999930@tbp.eng.iastate.edu>
X-Deja-AN: 121954552
references: <4amqrq$9fe@hpavua.lf.hp.com>
organization: Iowa State University, Ames, Iowa
newsgroups: gnu.gcc.help