This is the mail archive of the crossgcc@sources.redhat.com mailing list for the crossgcc project.

See the CrossGCC FAQ for lots more information.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: gcc 3.3.3: start, exit etc. unresolved


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
/usr/src/redhat/BUILD/cross-gcc-m68k-coff-3.3.3/build-gcc/gcc/xgcc -B/usr/src/redhat/BUILD/cross-gcc-m68k-coff-3.3.3/build-gcc/gcc/ -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 libgcc/./_mulsi3.o
as: unrecognized option `-mc68020'
make[2]: *** [libgcc/./_mulsi3.o] Error 1
make[2]: Leaving directory `/usr/src/redhat/BUILD/cross-gcc-m68k-coff-3.3.3/build-gcc/gcc'
make[1]: *** [stmp-multilib] Error 2
make[1]: Leaving directory `/usr/src/redhat/BUILD/cross-gcc-m68k-coff-3.3.3/build-gcc/gcc'
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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]