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

[MiNT] GCC 4.6.3 fails for multilib on m68k

Hi Vincent & Andreas,

I've tried to build 4.6.3 on my Falcon with multilib but it fails. The
problem is the m5475 libs. When trying to build those we finally bump
into programs that won't execute on m68k during the configure stage.
During the build we do this.....

checking for the value of EOF... configure: error: computing EOF failed
/j/var/tmp/portage/sys-devel/gcc-4.6.3/work/build/./gcc/xgcc -B
bin/ -B/usr/m68k-atari-mint/lib/ -isystem /usr/m68k-atari-mint/include
/usr/m68k-atari-mint/sys-include  -mcpu=5475 -o conftest -g -O2 -pipe  
.c  >&5
configure:18746: $? = 0
configure:18746: ./conftest
ne 1887:   795 Illegal Instruction     ./conftest$ac_exeext

As can be seen the -mcpu=5475 option with -O2 causes code to be output
that won't execute on m68k causing the illegal instruction.

Any ideas how we can remedy this situation ? i.e. don't pass the CPU
flag during configure stage or something else ?

4.5.3 worked fine, but only by chance, as the GCC folks used different
code to determine EOF.

I'm not sure if we should treat this as a GCC bug though - Andreas ?