public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
* Fwd: gcc 4.6.4 compilation issues
       [not found] <CACaiF6O7b6nFJ5sfj=exx-C80cZBEVBh0cUh9CatcC4qyh=xEA@mail.gmail.com>
@ 2014-08-04 21:39 ` Peter Toth
  0 siblings, 0 replies; only message in thread
From: Peter Toth @ 2014-08-04 21:39 UTC (permalink / raw)
  To: gcc-help

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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2014-08-04 21:39 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <CACaiF6O7b6nFJ5sfj=exx-C80cZBEVBh0cUh9CatcC4qyh=xEA@mail.gmail.com>
2014-08-04 21:39 ` Fwd: gcc 4.6.4 compilation issues Peter Toth

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).