gcc for sh-linux: Link tests are not allowed after GCC_NO_EXECUTABLES

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello,

I'm trying to build gcc-4.2.2 as cross compiler for target=sh-linux
and get the configure error message for libiberty:
"checking for library containing strerror... configure: error: Link
tests are not allowed after GCC_NO_EXECUTABLES."

I configured & build binutils 2.18 with this options:
../binutils-2.18/configure --prefix=/home/lfel/gnu-sh/
--target=sh-linux --with-newlib --disable-nls
make
make install

So far, no problem, for gcc I used:
../gcc-4.2.2/configure --prefix=/home/lfel/gnu-sh/ --target=sh-linux
--without-headers --enable-languages="c" --disable-shared
--disable-threads --disable-libssp

I modified "gcc-4.2.2/gcc/config/sh/linux-unwind.h" because it
includes signal.h, which isn't there (--without-headers option passed
to configure, so why is it looking for signal.h?)
I had to disable libmudflap and libssp.

Now I get the following error message when building libiberty:
[....]
checking for a 64-bit type... unsigned long long
checking for pid_t... no
checking for library containing strerror... configure: error: Link
tests are not allowed after GCC_NO_EXECUTABLES.
make[1]: *** [configure-target-libiberty] Error 1
make[1]: Leaving directory `/home/lfel/gnu-sh/obj-gcc'
make: *** [all] Error 2

now, I can read config.log in libiberty, but now...? I admit, I don't
grasp how autoconf/configure works in detail, but the manual is just
huge, any chaper I should read?
Can someone explain what "Link tests are not allowed after
GCC_NO_EXECUTABLES" means?

Host is: Linux g-linux 2.6.22-14-generic #1 SMP Tue Dec 18 08:02:57
UTC 2007 i686 GNU/Linux


best regards,
Gerard

[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux