🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.gcc.help
Article #50852

Re: GCC 2.4.5 cross-compiler host=sparc target=sun3 problem

#50852
From: Chiaki Ishikawa
Date: Mon, 09 Aug 1993 08:29
35 lines
2420 bytes
>./xgcc -B./ -DCROSS_COMPILE -DIN_GCC   -g    -c ./cross-test.c
>./xgcc -B./ -DCROSS_COMPILE -DIN_GCC   -g cross-test.o -o cross-test
>/usr/local/sun3/bin/gld: Can't open crt0.o
>collect: ld returned 1 exit status
>make: *** [cross-test] Error 1
># 
>
>Can anybody tell me what this is about and how to fix it?

You have to copy crt0.o (C startup code) from Sun3 to
(either where cross gld expects objects [or where ./xgcc is located, I
am not sure about this] for the cross compilation test.

Aside from crt0.o, it will look for libc.a libg.a and a few other
objects files. You will find them in /lib/ (or /usr/lib it is a
symlink.).

I wish GCC/BINUTILS/GAS documents mentions these things in the
documentation. (I know that it is impossible to write a comprehensive
cross development build documents unless the host and target is
clearly defined. However, using, say, a Sparc host and Sun3 target as
an example  and showing the details of which header files to copy to
where(!) and which objects and library files to copy to where(again!)
would be very, very useful. 

At least I have found out 2.4.5 texinfo of GCC contains much better
description about cross compilation than older ones.
I think a good example (sparc to  sun3) may be a great boost for
acceptance of gcc as cross development tool.


 Chiaki Ishikawa,  Personal Media Corp.,  MY Bldg, 1-7-7 Hiratsuka,
 Shinagawa, Tokyo 142, JAPAN. FAX:+81-3-5702-0359, Phone:+81-3-5702-0351
 UUNET: ishikawa@personal-media.co.jp
Technical Details
Message-ID: <ISHIKAWA.93Aug9172913@ds5200.personal-media.co.jp>
Path: arc1-ca.pugleaf.net!gmd.de!newsserver.jvnc.net!yale.edu!spool.mu.edu!uwm.edu!math.ohio-state.edu!darwin.sura.net!haven.umd.edu!uunet!pmcgw!personal-media.co.jp
References: <1993Aug6.165601.3788@seas.gwu.edu>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 11318c,736af80801fe81a9
X-Google-Attributes: gid11318c,public
X-Google-ArrivalTime: 1993-08-09 02:03:55 PST
Path: arc1-ca.pugleaf.net!gmd.de!newsserver.jvnc.net!yale.edu!spool.mu.edu!uwm.edu!math.ohio-state.edu!darwin.sura.net!haven.umd.edu!uunet!pmcgw!personal-media.co.jp
From: ishikawa@personal-media.co.jp (Chiaki Ishikawa)
Newsgroups: gnu.gcc.help
Subject: Re: GCC 2.4.5 cross-compiler host=sparc target=sun3 problem
Message-ID: <ISHIKAWA.93Aug9172913@ds5200.personal-media.co.jp>
Date: 9 Aug 93 08:29:13 GMT
References: <1993Aug6.165601.3788@seas.gwu.edu>
Sender: news@pmcgw.personal-media.co.jp
Reply-To: ishikawa@personal-media.co.jp
Organization: Personal Media Corp., Tokyo Japan
Lines: 35
Nntp-Posting-Host: ds5200
In-reply-to: sheryl@seas.gwu.edu's message of 6 Aug 93 16:56:01 GMT
X-Md4-Signature: 4e2598d8f77c6867f92bc4dc38914dd3