[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [MiNT] GCC 4.4.3



Hi Stefan

And, last question: Could you explain how to make those symlinks and what that workaround does in the end?

For me the problem appeared when linking the 68000 Kernel (during a make all in the freemint directory):
_____________________________
m68k-atari-mint-gcc -I.. -D__KERNEL__ -DLANG_ENGLISH -DM68000 - DNO_RAMFS -DNO_FAKE_SUPER -DVERBOSE_BOOT -m68000 -mshort -g -O2 -fomit- frame-pointer -fstrength-reduce -Wall -Wmissing-prototypes -Winline - Wshadow -Wpointer-arith -Wcast-qual -Werror -nostdlib -Wl,-Map - Wl,map.txt -Wl,--entry -Wl,_main -o mint000.prg \
  ....
		-L../libkern -lkern000 -lgcc16
/opt/cross-mint/lib/gcc/m68k-atari-mint/4.4.3/../../../../m68k-atari- mint/bin/ld: cannot find -lgcc16
collect2: ld returned 1 exit status
make[4]: *** [mint000.prg] Error 1
make[3]: *** [_stmp_000] Error 2
make[2]: *** [000] Error 2
make[1]: *** [all-kernels] Error 1
make: *** [all-recursive] Error 1
_____________________________

I fixed it using the following commands (which create a symlink for libgcc.a to libgcc16.a):
  cd /opt/cross-mint/lib/gcc/m68k-atari-mint/4.4.3
  ln -s mshort/libgcc.a libgcc16.a

You have to adapt the command to your environment (e.g. /usr/ instead of /opt/cross-mint/ and the 4.4.2 instead of 4.4.3). After that, the build continued without problem. But I'm not sure if the kernel produced by this hack is working. I don't have a 68000 machine to test it.

Regards
Philipp