Solaris2.5 cross to M68k

Lars BJORNFOT bjornfot@antares.enst-bretagne.fr
Wed Feb 19 05:08:00 GMT 1997


  >Date: Tue, 18 Feb 1997 08:56:57 -0600
  >From: John Scheer <scheer-j@ti.com>
  >
  >I have spent alot of time trying to build an m68k cross compiler on
  >a Sun running Solaris 2.5.  Some of the problems I've encountered are:
  >
  >1) the gcc patch will not work with the Solaris patch binary.  I had
  >   to get the GNU version of patch.

Same for me. Patching gcc also requires a lot of tmp disk, and
Solaris patch cannot specify TMPDIR like Gnu patch can.

  >2) When I cross compile, I get a message back that the gnu-ld doesn't
  >   like the -lc switch.  Actually, I think that it can't find a c library.
  >   Anyone come across this before?

You have to specify where the libc.a file is, with the -L option. 
If you couldn't install newlib, that is probably the reason.  

  >3) I am having trouble getting a good version of newlib.  Anyone know of
  >   a site that works?

I used newlib-1.7.0-posix-rtems-3.6.0.tgz from 
lancelot.gcs.redstone.army.mil:/pub/rtems/releases/3.6.0/c

I'm not sure how (if) it differs from the one at Cygnus. 

  >If anyone has been successful in doing an m68k cross on a Solaris 2.5 
  >Sparc platform, I would like to hear from you.  Also, has anyone done
  >cross debugging with this setup?

I'm building a cross Gnat compiler on the same platform and target.
No debugging though.

______________________________________________________________________
Lars Bjornfot         E-mail: bjornfot@antares.enst-bretagne.fr
Telecom-Bretagne      Phone: +33 2 9831 4807 (home)
Dep. Informatique            +33 2 9800 1413 (office)
BP 832                       +33 2 9800 1282 (fax)
29285 BREST, FRANCE   URL: http://www-info.enst-bretagne.fr/~bjornfot



More information about the crossgcc mailing list