Article View: gnu.gcc.help
Article #52983GCC 2.0 cross-compilation to a sun3
From: Brendan Kehoe
Date: Sat, 28 Mar 1992 21:29
Date: Sat, 28 Mar 1992 21:29
29 lines
2247 bytes
2247 bytes
jclark@sdcc3.ucsd.edu wrote:
>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
>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).
Building the libc.a from the glibc distribution should be completely
painless for the sun3. I took it, did `configure sun3', did a make,
and installed the libc.a in my /usr/local/lib/gcc-lib/sun3/2.1. That,
with gas and ld built for the sun3, and gcc configured as above,
all make it work like a charm. Don't be faint of heart. :)
--
Brendan Kehoe, Sun Network Manager brendan@cs.widener.edu
Widener University Chester, PA
Nothing's worse than saying ``This is damn fine coffee!'', only to realize
you just blew your lenten fast.
Technical Details
Message-ID:
<kt9p9vINN7dt@lisa.cs.widener.edu>Path:
arc1-ca.pugleaf.net!sparky!uunet!spool.mu.edu!umn.edu!widener!newsReferences:
<9203261506.AA21069@aivru> <31025@sdcc12.ucsd.edu>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-28 13:29:35 PST Path: arc1-ca.pugleaf.net!sparky!uunet!spool.mu.edu!umn.edu!widener!news From: brendan@cs.widener.edu (Brendan Kehoe) Newsgroups: gnu.gcc.help Subject: GCC 2.0 cross-compilation to a sun3 Message-ID: <kt9p9vINN7dt@lisa.cs.widener.edu> Date: 28 Mar 92 21:29:35 GMT Article-I.D.: lisa.kt9p9vINN7dt References: <9203261506.AA21069@aivru> <31025@sdcc12.ucsd.edu> Distribution: gnu Organization: Widener University Computer Science Dept, Chester PA Lines: 29 NNTP-Posting-Host: lisa.cs.widener.edu