Article View: gnu.gcc.help
Article #46537Re: Embedded 68k cross compiler help?
From: Greg Corson
Date: Sun, 13 Nov 1994 21:43
Date: Sun, 13 Nov 1994 21:43
67 lines
3827 bytes
3827 bytes
Ok everyone...as I've said I am trying to build a GNU-C 68K cross compiler
that runs under i486 Linux. In an effort to help out anyone who is doing the
same and to help get answers to the problems I haven't solved I'm publishing my
progress so far and how I got there.
The host system is a 486-33, Linux kernal 1.1.50 with gcc2.5.8 installed
*. Obtained binutils2.4, GCC 2.6, GAS 2.3 from Infomagic Linux CD
*. Obtained crossgcc-2.6.0.patch.gz and newlib-1.6.tar.gz from ftp.cygnus.com
*. Applied crossgcc-2.6.0.patch.gz to GCC 2.6
*. Did a "./configure --target=m68k-aout --host=i486-linux --with-gnu-as
--with-gnu-ld" on binutils, gcc and gas directories with no
error messages.
*. Built binutils, it failed because SIGEMT wasn't defined in the Linux
signals.h file. I added a dummy definition to signals.h to keep the
build happy and re-ran make.
*. Now the binutils build dies on linking objdump due to missing _frexp.
I add a -lm to the compile line for objdump and it links ok. The
remaining build of binutils finishes without error.
*. Built GAS, it builds normally and without errors.
*. Did a "make install" in both GAS and binutils directories.
The /usr/local/m68k-aout directory is filled in apparently ok.
*. Created "/usr/local/m68k-aout/includes" directory and copied all the
newlib include files over into it.
*. Entered the GCC directory and did a "make LANGUAGES=c"
*. After a very long compile cycle it comes to building cross-test.c The
compile goes ok but the link bombs out with the error:
/usr/local/m68k-aout/bin/ld: target cross-test not found
I am not sure what the above error means yet, a cursory search of the
documents and readme files didn't give me any immediate clues (but I am
going on to search other resources). Attempts to compile a simple "hello
world" program fail due to ld being unable to find crt0.o but I expected
this to happen at some point.
Obviously, I need to provide crt0.o or a suitable "stand in" before I can
complete the build of the GCC cross compiler and build newlib, this I know
how to do. But does anyone know what the "target cross-test not found"
error mentioned above means?
Thanks to the folks at Cygnus who pointed me to the patches and newlib on
their ftp site. By the way I did consider just buying support from you guys
but I didn't see many of the configurations we need in your online brochure.
Specifically what I need to suport is all combinations of the following
hosts and targets:
Hosts needed: i486-Linux, DOS, SGI Irix5.2
Targets needed: DOS (32 bit flat model DOS extender support a must!)
68020/68881 embedded CPU
Two-machine remote debugging support a major plus.
Greg Corson
Chief Software Engineer
Virtual World Entertainment, Inc.
(312) 243-6515
milo@mcs.com
Technical Details
Message-ID:
<3a619l$sv@Mars.mcs.com>Path:
arc1-ca.pugleaf.net!nntp.gmd.de!newsserver.jvnc.net!howland.reston.ans.net!news.sprintlink.net!redstone.interpath.net!ddsw1!not-for-mailReferences:
<39jjd2$ho2@Mars.mcs.com> <1994Nov8.084318.2613@caren.demon.co.uk> <rob.784415648@rtl.cygnus.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 11318c,5ee68be18822a181 X-Google-Attributes: gid11318c,public X-Google-Thread: 1025b4,5ee68be18822a181 X-Google-Attributes: gid1025b4,public X-Google-ArrivalTime: 1994-11-13 14:15:55 PST Path: arc1-ca.pugleaf.net!nntp.gmd.de!newsserver.jvnc.net!howland.reston.ans.net!news.sprintlink.net!redstone.interpath.net!ddsw1!not-for-mail From: milo@MCS.COM (Greg Corson) Newsgroups: gnu.gcc.help,gnu.misc.discuss Subject: Re: Embedded 68k cross compiler help? Followup-To: gnu.gcc.help,gnu.misc.discuss Date: 13 Nov 1994 15:43:17 -0600 Organization: MCSNet Subscriber Account, Chicago's First Public-Access Internet! Lines: 68 Message-ID: <3a619l$sv@Mars.mcs.com> References: <39jjd2$ho2@Mars.mcs.com> <1994Nov8.084318.2613@caren.demon.co.uk> <rob.784415648@rtl.cygnus.com> NNTP-Posting-Host: mars.mcs.com X-Newsreader: TIN [version 1.2 PL2 (KSD)]