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

Re: [MiNT] Newest GCC + Binutils compile status




Hoho, I've probably got it. And thanks to... quake ;-) Today I was trying to get -m68060 quake compilation done
Hoho, I haven't. The idea with mathlib was good and true but doesn't apply here since there's another problem :( I recompiled everything (using the compiler I posted link to) and the same result. After some experiments I could only come to these results:

- I used make CFLAGS='-O2' LIBCFLAGS='-g -O2' LIBCXXFLAGS='-g -O2 -fno-implicit-templates' BOOT_CFLAGS='-O2 m68060' (notice that '-g' is missing from CFLAGS -- this is to assure the right mintlib will be used in stage2/3, i.e. /usr/lib/m68060/libc.a and not /usr/lib/lic_g.a) but I've tried also (desperate try :) BOOT_CFLAGS='-m68020-60 -O2'

- the problem isn't with bfd/archive.c or anything else, it's stage2-xgcc binary -- I can't compile simple .o file without those errors

- only difference between stage1-gcc and stage2-gcc is libgcc:

stage1 xgcc objs:

(/d/usr/local/bin/../lib/gcc/m68k-atari-mint/4.2.3/libgcc.a)fpgnulib.o
(/d/usr/local/bin/../lib/gcc/m68k-atari-mint/4.2.3/libgcc.a)_double.o
(/d/usr/local/bin/../lib/gcc/m68k-atari-mint/4.2.3/libgcc.a)_nedf2.o
(/d/usr/local/bin/../lib/gcc/m68k-atari-mint/4.2.3/libgcc.a)_mulsi3.o
(/d/usr/local/bin/../lib/gcc/m68k-atari-mint/4.2.3/libgcc.a)__main.o
(/d/usr/local/bin/../lib/gcc/m68k-atari-mint/4.2.3/libgcc.a)_umoddi3.o
(/d/usr/local/bin/../lib/gcc/m68k-atari-mint/4.2.3/libgcc.a)_udivdi3.o
(/d/usr/local/bin/../lib/gcc/m68k-atari-mint/4.2.3/libgcc.a)_floatex.o
(/d/usr/local/bin/../lib/gcc/m68k-atari-mint/4.2.3/libgcc.a)_clz.o
(/d/usr/local/bin/../lib/gcc/m68k-atari-mint/4.2.3/libgcc.a)_udivsi3.o
(/d/usr/local/bin/../lib/gcc/m68k-atari-mint/4.2.3/libgcc.a)_umodsi3.o
(/d/usr/local/bin/../lib/gcc/m68k-atari-mint/4.2.3/libgcc.a)_divsi3.o
(/d/usr/local/bin/../lib/gcc/m68k-atari-mint/4.2.3/libgcc.a)_modsi3.o
(/d/usr/local/bin/../lib/gcc/m68k-atari-mint/4.2.3/libgcc.a)xfgnulib.o
(/d/usr/local/bin/../lib/gcc/m68k-atari-mint/4.2.3/libgcc.a)_ltdf2.o

stage2 xgcc objs:

(/root/compile/./prev-gcc/m68060/libgcc.a)__main.o
(/root/compile/./prev-gcc/m68060/libgcc.a)_umoddi3.o
(/root/compile/./prev-gcc/m68060/libgcc.a)_udivdi3.o

But this could be just because we're compiling for 68060 so this stuff is built-in. And... and this is all. For me it's total mystery why here isn't any error during the compilation, only built-in errors in final binary.

I give up in this moment, I promised myself to code some demostuff for Forever 2e3 party so for a next 2 weeks I switch to 6502 mode ;-)

However, if anyone wants to find this problem, I can upload aranym image with both 68060 and 68020 bootstraps (terminated after stage2 with this built-in errors). Another solution (which is IMHO worth a try) is to try debian-m68k + compile gcc here to see what happens -- we could report it as general m68k bug then. Petr Stehlik kindly focused me to aranym wiki where are some preinstalled debian images already present so it shouldn't be so hard.

--
MiKRO / Mystic Bytes
http://mikro.atari.org