gcc alpha target with mips source to compile

Kai Ruottu kai.ruottu@wippies.com
Fri Apr 1 12:53:00 GMT 2011


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!

> 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'...

> 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...



More information about the Gcc-help mailing list