gcc 3.3.3: start, exit etc. unresolved

Toralf Lund toralf@procaptura.com
Fri Oct 22 14:07:00 GMT 2004

Jay.Kulpinski@gd-ais.com wrote:

>On Friday 22 October 2004 08:33 am, Toralf Lund wrote:
>>I'm now trying to build using gcc 3.3.3 (+ newlib) on my M68k setup,
>>where 2.95.3 was used earlier. Compilation works fine after a few minor
>>adjustments, but link fails with lots of unresolved symbols, including
>>missing start() and exit() - see linker output below. I'm using exactly
>>the same newlib setup as earlier, and identical build options for
>>cross-gcc as well as the actual app.
>>Can anyone explain this? Has anything changed related to the way crt0
>>etc. is handled?
>I use these patches for m68k-elf.  You might have some luck with them.
>I haven't tried a m68k-coff target.
Hmmm. I'm not sure where I would put the changes, since there is no 
t-.... file for coff.

But in any case, I think I may have identified the problem: My build 
didn't quite work after all; I actually got compile failure at a certain 
point, but after enough was already there for my build script to assume 
everything was OK, and all files to be generated. Error is:

if [ -f stmp-dirs ]; then true; else touch stmp-dirs; fi
-B/usr/m68k-coff/bin/ -B/usr/m68k-coff/lib/ -isystem 
/usr/m68k-coff/include -O2  -DIN_GCC -DCROSS_COMPILE   -W -Wall 
-Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -isystem 
./include   -g  -DIN_LIBGCC2 -D__GCC_FLOAT_NOT_NEEDED -Dinhibit_libc -I. 
-I. -I../../gcc-3.3.3/gcc -I../../gcc-3.3.3/gcc/. 
-I../../gcc-3.3.3/gcc/config -I../../gcc-3.3.3/gcc/../include -DL_mulsi3 
-xassembler-with-cpp -c ../../gcc-3.3.3/gcc/config/m68k/lb1sf68.asm -o 
as: unrecognized option `-mc68020'
make[2]: *** [libgcc/./_mulsi3.o] Error 1
make[2]: Leaving directory 
make[1]: *** [stmp-multilib] Error 2
make[1]: Leaving directory 
make: *** [all-gcc] Error 2

"-mc68020"? Surely that should be "-m68020"?

- T

Want more information?  See the CrossGCC FAQ, http://www.objsw.com/CrossGCC/
Want to unsubscribe? Send a note to crossgcc-unsubscribe@sources.redhat.com

More information about the crossgcc mailing list