This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Cross-platform build problem
Hello Piotr,
* Piotr Wyderski wrote on Thu, Sep 09, 2010 at 12:24:07PM CEST:
> I'm trying to compile a GCC toolchain with target=arm-elf
> and hosted on Cygwin/PC. Unfortunately, both GCC 4.5.1,
> taken from the official mirror, and 4.6 trunk taken from SVN
> fail to compile with the following error message:
>
> checking dynamic linker characteristics... no
> checking how to hardcode library paths into programs... immediate
> checking for shl_load... configure: error: Link tests are not allowed after GCC_
> NO_EXECUTABLES.
> make[1]: *** [configure-target-libstdc++-v3] Error 1
>
> They were configured with:
>
> $ ../configure --prefix=/opt/arm/gcc-4.5.1 --target=arm-elf --enable-interwork
> --enable-multilib --enable-languages=c,c++
The explanation for this is probably analog to
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45174#13
and the current set of configure cache variables you might have to
override can be found at
http://git.savannah.gnu.org/cgit/libtool.git/tree/tests/no-executables.at
(there's one more missing for IRIX that I know of).
So a workaround would be to manually add
ac_cv_lib_dld_shl_load=no
to $target/libstdc++-v3/config.cache, and then rerunning make.
This still needs to be fixed in an automatic way.
Cheers,
Ralf