Article View: gnu.gcc.help
Article #52976Re: GCC 2.0 cross-compilation
From: Phil Kemp
Date: Fri, 27 Mar 1992 16:09
Date: Fri, 27 Mar 1992 16:09
49 lines
2658 bytes
2658 bytes
In <9203261506.AA21069@aivru> derek@aivru.sheffield.ac.UK (Derek Jones) writes: >I have sucessfully built a sparc compiler. I now want to build a cross-compiler >on the Sun 4 to compile for a Sun3. I have RTM'd the install doc and used >the following construct for the configure: > configure --host=sun4-sunos4.1.1 --target=sun3-sunos4.1.1 >The make fails when it attempts to compile the dummy prog since the assembler >tries to generate code for a 68020 on the sparc. I'm having just the same 'kind' of problem. I've compiled gcc 2.0 on a CONVEX to generate i386 code. The whole make procedure for gcc fails for exactly the same reason you give. The first stage of your job is complete.. You should have a new gcc that will generate 68020 assembler on your sparc. try ./gcc -S test.c and look at the .s file generated.. You now need an assembler. Try getting gas and see if you can use it generate 68020 code. Compile for it for the 68020, rename it to 'as' and use a line like ./gcc -B./ -I./'wherever' -c test.c and see if you get 68020 objects. I can do just this but gas insists on generating vax binaries and not i386 binaries.... Now I'm lost too. I think the next step is to build a loader that will take the 68020 objects and with the correct library files generate the executable. prep.ai.mit.edu has a file binutils.????.Z that contains the gnu loader. However when I built this on the convex it insists that the objects generated and the libraries are not the correct format... Hope I helped a little. Let me know if you get the whole chain working. Any gurus out there who could shed some light on this? PK -- Phil Kemp, Systems Engineer Voice:(403)-233-2815 CONVEX Computer Canada Ltd. Fax:(403)-261-2029 Calgary, Alta. Internet:kemp@convex.com
Technical Details
Message-ID:
<kemp.701712553@chinook>Path:
arc1-ca.pugleaf.net!sparky!uunet!convex!kempReferences:
<9203261506.AA21069@aivru>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 11318c,77168c54b67b86cc
X-Google-Attributes: gid11318c,public
X-Google-ArrivalTime: 1992-03-27 08:09:13 PST
Newsgroups: gnu.gcc.help
Path: arc1-ca.pugleaf.net!sparky!uunet!convex!kemp
From: kemp@chinook.convex.com (Phil Kemp)
Subject: Re: GCC 2.0 cross-compilation
Message-ID: <kemp.701712553@chinook>
Sender: usenet@convex.com (news access account)
Nntp-Posting-Host: chinook.convex.com
Organization: CONVEX Computer Corporation, Richardson, Tx., USA
References: <9203261506.AA21069@aivru>
Distribution: gnu
Date: Fri, 27 Mar 1992 16:09:13 GMT
X-Disclaimer: This message was written by a user at CONVEX Computer
Corp. The opinions expressed are those of the user and
not necessarily those of CONVEX.
Lines: 50