Article View: gnu.gcc.help
Article #52979Re: GCC 2.0 cross-compilation
From: John Clark
Date: Fri, 27 Mar 1992 19:38
Date: Fri, 27 Mar 1992 19:38
38 lines
2289 bytes
2289 bytes
In article <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 One also needs to generate the 68k 'as' program, and place it in a path something to the effect of: /usr/local/lib/gcc/sun3-sunos4.1.1/2.0/as Also generating the 'ld' from the binutils package would be useful for creating the final executable, and placing it in the same path position. However, at the last 'link' one needs the sun3 libc.a or equvalent, if one wants to actually run the program on a sun3. There's the rub, one needs a sun3 to borrow the libc.a from.. There is the 'glibc-1.02' libc equivalent, but it is in it's initial phase of release and so may be somewhat difficult for those who are not use to dealing with new software (but how else does one learn if not by doing). At the point where the 'make' bombs on trying to make 'enquire' you will have a cross development package, in terms of cc1 cc1plus, libgcc.a etc. But some of the final steps will have to be done on a sun3. I for the most part use the cross environment to generate stand alone code to run in single board computers so I done have the need to get all of the sun3 stuff up and fully generated. Usually I can stop at the libgcc.a functions which implement the multi-precision math stuff. (I avoid the float problem for the most part as well). -- John Clark jclark@ucsd.edu
Technical Details
Message-ID:
<31025@sdcc12.ucsd.edu>Path:
arc1-ca.pugleaf.net!sparky!uunet!zaphod.mps.ohio-state.edu!mips!swrinde!network.ucsd.edu!sdcc12!sdcc3!jclarkReferences:
<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 11:38:42 PST Path: arc1-ca.pugleaf.net!sparky!uunet!zaphod.mps.ohio-state.edu!mips!swrinde!network.ucsd.edu!sdcc12!sdcc3!jclark From: jclark@sdcc3.ucsd.edu (John Clark) Newsgroups: gnu.gcc.help Subject: Re: GCC 2.0 cross-compilation Message-ID: <31025@sdcc12.ucsd.edu> Date: 27 Mar 92 19:38:42 GMT References: <9203261506.AA21069@aivru> Sender: news@sdcc12.ucsd.edu Distribution: gnu Organization: University of California, San Diego Lines: 38 Nntp-Posting-Host: sdcc3.ucsd.edu