🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.gcc.help
Article #53180

Cross-compiling sparc 2 to sun3

#53180
From: Steve Rich
Date: Tue, 03 Mar 1992 03:34
11 lines
1994 bytes
Help me. I know that this is probably a stupid question, but I'm trying to built gcc 2.0 to cross-compile for sun3's using a Sparc 2. (The code is actually for a VME project.) Anyway...I do the old
configure --host=sparc-sun-sunos4.1 --target=sun3-sunos4
(including the switch for no floating point hardware (which I cannot remember; I'm not at the right machine right now)) and find that when the make gets to the point at which it compiles dummy.c, it dies with an as error about -m68020 being an invalid option. Well of course it is for a Sparc 2. My question is, is the Makefile right, and am I backward, or have a missed something big (or small, or obvious).
	As a corollary, I have built gcc2.0 for the (on the) same Sparc 2, and it went all the way through stage 3 without a hitch (yeah 8->). NOTE: As some others have mentioned on the net, my compare fails too.
	As another corollary...The build for the cross-compiler that I had tried earlier actually made the cccp and the cc1 which work and produce MC680x0 code, which assembles with both Sun's as and with gas1.38.1, but will not link. (The __main function ain't there, because of the collect2 thing, I guess?).
	Anyway, help and/or ridicule about my stupidity would be appreciated. If it's to profound, send it to me via e-mail, so that the net doesn't get too weighted down by my drivel.

Thanks in adv.
Steve
 
Technical Details
Message-ID: <1992Mar3.033412.5003@utkux1.utk.edu>
Path: arc1-ca.pugleaf.net!sparky!uunet!wupost!darwin.sura.net!gatech!utkcs2!utkux1.utk.edu!laser2.engr.utk.edu!rich

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 11318c,b490153038438b77,start
X-Google-Attributes: gid11318c,public
X-Google-ArrivalTime: 1992-03-02 19:46:10 PST
Newsgroups: gnu.gcc.help
Path: arc1-ca.pugleaf.net!sparky!uunet!wupost!darwin.sura.net!gatech!utkcs2!utkux1.utk.edu!laser2.engr.utk.edu!rich
From: rich@laser2.engr.utk.edu (Steve Rich)
Subject: Cross-compiling sparc 2 to sun3
Message-ID: <1992Mar3.033412.5003@utkux1.utk.edu>
Keywords: cross-compilers, gcc
Sender: usenet@utkux1.utk.edu (USENET News System)
Organization: University of Tennessee ECE dept.
Date: Tue, 3 Mar 1992 03:34:12 GMT