GNU C (-5200 COLDFire)

James F Dougherty jfd@area51.mavericknetworks.com
Wed Aug 26 20:07:00 GMT 1998


I must have made a mistake. This is the process I used to compile the
m68k support on Solaris for a -5200 backend ..


1) Build binutils
cd <binutildir>
../configure --prefix=/local --nfp --target=m68k-coff
--host=sparc-sun-solaris --with-cpu=5200
gmake all install


2) Build GCC: recommended using EGCS (latest)
cd <egcsdir>
mkdir m68k-coff
cd m68k-coff
../configure --prefix=/local --nfp --target=m68k-coff
--host=sparc-sun-solaris --with-cpu=5200 --with-gnu-as --with-gnu-ld
--with-headers=/local/m68k-coff/include
--with-libs=/local/m68k-coff/lib/m5200 --with-newlib --disable-multilib
make cross
X
X <build>
X
X
Configuring in m68k-coff/libf2c
loading cache ./config.cache
checking for gcc... /home/jfd/CC/egcs-19980824/m68k-coff/gcc/xgcc
-B/home/jfd/CC/egcs-19980824/m68k-coff/gcc/
checking whether the C compiler
(/home/jfd/CC/egcs-19980824/m68k-coff/gcc/xgcc
-B/home/jfd/CC/egcs-19980824/m68k-coff/gcc/ -g -O2 ) works... no
configure: error: installation or configuration problem: C compiler
cannot create executables.
gmake[1]: *** [configure-target-libf2c] Error 1
gmake[1]: Leaving directory `/home/jfd/CC/egcs-19980824/m68k-coff'
gmake: *** [cross] Error 2
area51-(178):[2:17pm]: [/home/jfd/CC/egcs-19980824/m68k-coff>whoami
root
area51-(179):[2:17pm]: [/home/jfd/CC/egcs-19980824/m68k-coff>

And it fails. I also tried symlinking /local/m68k/coff/{lib,bin}
into this dir :

area51-(216):[3:05pm]: [/home/jfd/CC/egcs-19980824/m68k-coff/gcc>ln -s
/local/m68k-coff/lib/* .
ln: cannot create ./m5200: File exists
ln: cannot create ./m68000: File exists
ln: cannot create ./msoft-float: File exists
larea51-(217):[3:06pm]: [/home/jfd/CC/egcs-19980824/m68k-coff/gcc>ls

and tried making and it fails.
checking for gcc... /home/jfd/CC/egcs-19980824/m68k-coff/gcc/xgcc
-B/home/jfd/CC/egcs-19980824/m68k-coff/gcc/
checking whether the C compiler
(/home/jfd/CC/egcs-19980824/m68k-coff/gcc/xgcc
-B/home/jfd/CC/egcs-19980824/m68k-coff/gcc/ -g -O2 ) works... no
configure: error: installation or configuration problem: C compiler
cannot create executables.
gmake[1]: *** [configure-target-libf2c] Error 1
gmake[1]: Leaving directory `/home/jfd/CC/egcs-19980824/m68k-coff'
gmake: *** [cross] Error 2
area51-(226):[3:07pm]: [/home/jfd/CC/egcs-19980824/m68k-coff>

Please Help!!!! I only need to cross compile from Solaris to m68k
-5200...
What should I do?

James F. Dougherty, III
MTS, Core Design
Maverick Networks, Inc.
683 River Oaks Parkway
San Jose, CA 95134      
(408) 434-6020 x273     
(408) 434-6031 FAX
jfd@mavericknetworks.com



More information about the Gcc-bugs mailing list