public inbox for gcc@gcc.gnu.org
 help / color / mirror / Atom feed
* Cross-platform build problem
@ 2010-09-09 10:24 Piotr Wyderski
  2010-09-09 17:39 ` Ralf Wildenhues
  0 siblings, 1 reply; 2+ messages in thread
From: Piotr Wyderski @ 2010-09-09 10:24 UTC (permalink / raw)
  To: gcc

Hello,

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++

Best regards,
Piotr Wyderski

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Cross-platform build problem
  2010-09-09 10:24 Cross-platform build problem Piotr Wyderski
@ 2010-09-09 17:39 ` Ralf Wildenhues
  0 siblings, 0 replies; 2+ messages in thread
From: Ralf Wildenhues @ 2010-09-09 17:39 UTC (permalink / raw)
  To: Piotr Wyderski; +Cc: gcc

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2010-09-09 17:39 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-09-09 10:24 Cross-platform build problem Piotr Wyderski
2010-09-09 17:39 ` Ralf Wildenhues

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).