Make error, link test in zlib for cross compiler
Georg Lay
avr@gjlay.de
Thu Jul 22 17:36:00 GMT 2010
Donald Schlicht schrieb:
> I am trying to make an ARM cross compile from the current gnu gcc
> sources. I am encountering a problem when compiling the first gcc cross
> compiler. I get the error message "Link tests are not allowed after
> GCC_NO_EXECUTABLES". I have attached a screen drop from the make
> command.
>
> My system: Ubuntu 10.04 LTS. The OS is patched to the latest patches for
> that OS. The gcc version is 4.4.3. I have compiled and installed
> gmp-5.0.1, mpfr-3.0.0 and mpc-0.8.2. All of these pass their make check
> test.
>
> I have downloaded and extracted: binutils-2.20.1, gcc-4.5.0 and
> newlib-1.18.0.
>
> I have configured and make binutils with the commands:
> ./configure --target=arm-elf --prefix=/donald/home --enable-interwork
> --enable-multilib CC=gcc
> make all install
> Binutils appears to compile and link correctly, the executable files are
> created, and no errors are shown.
>
> However when I try to configure and make the first stage gcc compiler,
> using these commands:
> /configure --target=arm-elf --prefix=/donald/home --enable-interwork
> --enable-multilib --enable-languages="c,c++" --with-newlib
> --with-headers=/donald/Documents/newlib/newlib/libc/include CC=gcc
> make all-gcc install-gcc
CC must /not/ be set. It must be empty. Arrange your PATH so that your preferred
gcc will be found first.
More information about the Gcc-help
mailing list