🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.gcc.help
Article #54351

Re: Problems with compiling gcc on hpux

#54351
From: Carl Edman
Date: Sun, 04 Nov 1990 03:29
57 lines
3219 bytes
In article <9011040110.AA05990@newton.colorado.edu> foster@BOULDER.COLORADO.EDU (J. Gabriel Foster) writes:

   Hi,
    Here's the background info:

	   gcc ver 1.37.1
	   HPUX ver 7.0 b
	   config.gcc hp9k320-gas


    The initial make works fine.
	   >make ALLOCA=alloca.o

    But the stage 1 compile
	   >make CC=stage1/gcc CFLAGS="-g -v -O -Bstage1/ -I../binutils/hp-include"

    fails on:
	   stage1/gcc -g -v -O -Bstage1/ -I../binutils/hp-include -o gccnew gcc.o version.o obstack.o
	   ld: malformed input file (not rel or archive) /lib/crt0.o

   Any help would be appreciated.

This is probably the single most common problem among all the people I have
helped install gnu software on HPUX systems. Fortunately the solution
is simple:

GNU uses its own format for object file (created with gas) and
library files. While it is possible to use the standard HPUX format, that
has many disadvantages (e.g. incompatibility with gdb) , so the best way
is to use the GNU format. To compile gcc itself you need the standard libraries
in "/lib" , but these are in the HPUX format. To convert all the libraries
and copy them into a new directory, a program called "mkhplib" comes with
the HPUX distribution of the GNU software. Simply use it to create the
converted copies (I put them in the directory /usr/local/lib/gnu").
After that you should have no further problems. But remember to use
only the GNU tools to manipulate object files created by gas. These
tools include strip, nm, ranlib, ar and many more (I have linked them
to gstrip, gnm, granlib a.s.o. on the system here to prevent confusion).
The system standard tools wont work correctly on these object files
any longer.

If , on the other hand, you or anybody else wants to save himself the
hassle and get large parts of the GNU distribution pre-compiled for
HP 9000/300 machines, you can get the binaries via anon ftp from
"golem.ps.uci.edu". The archive includes gcc 1.37.1, g++ 1.37.1,
libg++ 1.37.0 , gdb 3.5, and assorted other GNU tools. Especially
if you want to install g++ I'd advise you to get the archive as
making g++ run correctly if very(!) much harder than gcc or any
other GNU program that I have seen.

	Carl Edman


Theorectical Physicist,N.:A physicist whose  | Send mail
existence is postulated, to make the numbers |  to
balance but who is never actually observed   | cedman@golem.ps.uci.edu
in the laboratory.                           | edmanc@uciph0.ps.uci.edu
Technical Details
Message-ID: <CEDMAN.90Nov3192956@lynx.ps.uci.edu>
Path: arc1-ca.pugleaf.net!gmdzi!unido!mcsun!uunet!zaphod.mps.ohio-state.edu!usc!orion.oac.uci.edu!cedman
References: <9011040110.AA05990@newton.colorado.edu>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 11318c,aa0404bba7f6aab0
X-Google-Attributes: gid11318c,public
X-Google-ArrivalTime: 1990-11-04 10:00:04 PST
Path: arc1-ca.pugleaf.net!gmdzi!unido!mcsun!uunet!zaphod.mps.ohio-state.edu!usc!orion.oac.uci.edu!cedman
From: cedman@lynx.ps.uci.edu (Carl Edman)
Newsgroups: gnu.gcc.help
Subject: Re: Problems with compiling gcc on hpux
Message-ID: <CEDMAN.90Nov3192956@lynx.ps.uci.edu>
Date: 4 Nov 90 03:29:51 GMT
References: <9011040110.AA05990@newton.colorado.edu>
Distribution: gnu
Organization: non serviam
Lines: 57
Posted: Sun Nov  4 04:29:51 1990
Nntp-Posting-Host: lynx.ps.uci.edu
In-reply-to: foster@BOULDER.COLORADO.EDU's message of 4 Nov 90 01:10:03 GMT