On Fri, Apr 1, 2011 at 2:53 PM, Kai Ruottu <kai.ruottu@xxxxxxxxxxx> wrote: > 1.4.2011 15:03, Artifex Maximus kirjoitti: > >> I got the following strange (at least to me) effect. I would like to >> compile gcc 4.5.2 targeting alpha on Debian 6 x86_64. My configuration >> line: >> >> configure \ >> -v \ >> --build=x86_64-linux-gnu \ >> --host=x86_64-linux-gnu \ >> --target=alpha-dec-osf4.0f \ >> --enable-obsolete \ >> --enable-languages=c,c++ \ >> --prefix=/usr \ >> --disable-multiarch \ >> --disable-multilib \ >> --disable-shared \ >> --disable-nls \ >> --enable-checking=release > > Using '--with-gnu-as --with-gnu-ld' is obligatory with this target! Thank you, added. >> Compile ends at the following line: >> >> /home/system/src/gcc/bld/../src/gcc/gcc/mips-tfile.c -o mips-tfile.o >> /home/system/src/gcc/bld/../src/gcc/gcc/mips-tfile.c:673:24: error: >> mips/a.out.h: No such file or directory >> /home/system/src/gcc/bld/../src/gcc/gcc/mips-tfile.c:692: error: >> ‘scNil’ undeclared here (not in a function) >> >> Why alpha target try to compile any mips related file? > > The native DEC 'ld' would require this utility. That a cross GCC will > be produced doesn't have any influence to the defaults (=native) for > 'as' and 'ld'... I see. >> Is gcc 4.6.0 does not support osf4.0f target? Because I cannot compile >> with the same configure line. > > Please consult the 'gcc/config.gcc' settings for the available targets! > The gcc-4.5.2 one will show the influence of '--with-gnu-*'... in the > alpha case... I did not know this file but looks really useful. Thanks! And 4.6.0 does not support osf4 anymore just osf5. Bye, a