🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.gcc.help
Article #42805

Re: Installing gcc on m68k-hp-hpux

#42805
From: David D Kilzer
Date: Wed, 25 Oct 1995 00:00
35 lines
1834 bytes
rxm@mti.com (Rick Mc Leod of the Clan Mac Leod) writes:

>  My make terminates after compiling compiling enquire.c:

>----------------------------------------------------------
>        ./xgcc -B./  -DIN_GCC -I../hp-include   -I./include    -DNO_MEM
>-DNO_LONG_DOUBLE_IO -O0
>-I. -c ./enquire.c
>        ./xgcc -B./  -DIN_GCC -I../hp-include   -I./include  enquire.o -o
>enquire
>collect2: ld returned 1 exit status
>enquire.o(.text+0x39e): undefined reference to `__main'
>*** Error code 1

>Stop.
>-----------------------------------------------------------
>I've compiled and installed bin-utils-2.5.2, bison, & flex.
>gcc-2.7.0 is configured '--with-gnu-as'
>The (rather ancient) box only has the bundled C compiler to
>start with...

In addition to '--with-gnu-as', you need to run configure with the
'--with-gnu-ld' flag, too.

IMPERATIVE:  Make *SURE* that the GNU bin-utils (as, ld, etc.) appear
FIRST in your PATH environment variable.  If they do NOT, it's possible
for the gcc make process to use the wrong linker, assembler, etc. and
will cause the enquire program to fail.

Dave
-- 
David D. Kilzer              \ ``My goal is to carry the Macintosh torch and
ddkilzer@iastate.edu         /   save computer users from the Gates of Hell.''
Computer Engineer 5          \                 Guy Kawasaki
Iowa State University, Ames  /       Recently-appointed Apple Fellow
Technical Details
Message-ID: <ddkilzer.814391511@tbp.eng.iastate.edu>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <3980@mtigate.mti.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 11318c,fad3206587857df8
X-Google-Attributes: gid11318c,public
From: ddkilzer@iastate.edu (David D Kilzer)
Subject: Re: Installing gcc on m68k-hp-hpux
Date: 1995/10/25
Message-ID: <ddkilzer.814391511@tbp.eng.iastate.edu>
X-Deja-AN: 118105390
references: <3980@mtigate.mti.com>
organization: Iowa State University, Ames, Iowa
newsgroups: gnu.gcc.help