Discussion:
gcc 4.6.4 compilation issues
Peter Toth
2014-08-04 21:39:47 UTC
Permalink
Hi,

I'm trying to build the cross compiler for arm-unknown-elf on 4.6.4 (I
guess the last major version with support for the arch) and on the
last step when compiling gcc in full. I get the following message:

checking dynamic linker characteristics... configure: error: Link
tests are not allowed after GCC_NO_EXECUTABLES.
make[1]: *** [configure-zlib] Error 1
make: *** [all] Error 2

I have tried suggestions I've found here, but they didn't help:
https://gcc.gnu.org/ml/gcc-help/2012-07/msg00018.html

Here are the commands I'm running. For the library versions:
binutils-2.24.tar.bz2 gcc-4.6.4.tar.bz2 newlib-1.15.0.tar.gz. The
scripts are known to work for these: binutils-2.17.tar.bz2
gcc-4.2.1.tar.bz2 newlib-1.15.0.tar.gz. I did update both gcc and
binutils, but the latest newlib has other issues, namely some assembly
can not be compiled!
(cd binutils_build ; \
../binutils_sources/configure -v --quiet --target=$TARGET --prefix=$PREFIX \
--enable-interwork --enable-multilib --with-gnu-ld --with-gnu-as \
--disable-werror )
(cd binutils_build ; make all install 2>&1 | tee $BUILDSOURCES/make.log)

(cd gcc_build ; \
../gcc_sources/configure -v --quiet --target=$TARGET --prefix=$PREFIX \
--with-newlib --without-headers --with-gnu-as \
--with-gnu-ld --disable-shared --enable-languages=c \
--disable-werror )

(cd gcc_build ; make all-gcc install-gcc 2>&1 | tee $BUILDSOURCES/make.log)

(cd $PREFIX/newlib_build ; \
../newlib_sources/configure -v --target=$TARGET --prefix=$PREFIX \
--disable-newlib-supplied-syscalls --enable-interwork --enable-multilib \
--with-gnu-ld --with-gnu-as --disable-newlib-io-float \
--disable-werror )

(cd $PREFIX/newlib_build ; make all install 2>&1 | tee $BUILDSOURCES/make.log)

(cd gcc_build && rm -rf * ; \
../gcc_sources/configure -v --quiet --target=$TARGET --prefix=$PREFIX \
--with-gnu-as --with-gnu-ld --enable-languages=c \
--enable-interwork --enable-multilib --with-newlib \
--with-headers=${PREFIX}/newlib_sources/newlib/libc/include \
--disable-werror)

(cd gcc_build ; make all install 2>&1 | tee $BUILDSOURCES/make.log)

The host is
Linux peter 3.13.0-32-generic #57~precise1-Ubuntu SMP Tue Jul 15
03:50:54 UTC 2014 i686 i686 i386 GNU/Linux
The host gcc is:
gcc (Ubuntu/Linaro 4.6.3-1ubuntu5) 4.6.3

The real reason why I'm building a new one is that I'd like to see
whether 4.6.4 can give any kind of improvements over 4.2.1 (most
importantly size improvements) and also I'm wondering whether
__builtin_return_address will work for other than 0 parameters.

Thanks for your help in advance.

Cheers,
Peter

Loading...