public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug libstdc++/35679]  New: Cannot build cross compiler for i686-pc-linux-gnu: configure: error: Link tests are not allowed after GCC_NO_EXECUTABLES
@ 2008-03-24 18:34 yakov at emc dot com
  2008-03-24 19:55 ` [Bug libstdc++/35679] " brian at dessent dot net
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: yakov at emc dot com @ 2008-03-24 18:34 UTC (permalink / raw)
  To: gcc-bugs

/configure --disable-nls --disable-c-mbchar --disable-shared
--prefix=/emc/ucode/Linux-2x-i686/gcc3x/v4.3.0-2.18-2008-03-15
--target=i686-emc-elf --enable-languages=c++ --disable-multilib --with-gnu-as
--with-gnu-ld --with-gmp=/home/blah/gmp --with-mpfr=/home/blah/mpfr
--with-newlib
--with-headers="/home/blah/core-toolchain/newlib-1.16.0/newlib/libc/include"

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[2]: *** [configure-target-libstdc++-v3] Error 1


-- 
           Summary: Cannot build cross compiler for i686-pc-linux-gnu:
                    configure: error: Link tests are not allowed after
                    GCC_NO_EXECUTABLES
           Product: gcc
           Version: 4.3.0
            Status: UNCONFIRMED
          Severity: blocker
          Priority: P3
         Component: libstdc++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: yakov at emc dot com
  GCC host triplet: i686-pc-linux-gnu
GCC target triplet: i686-pc-linux-gnu


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35679


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

* [Bug libstdc++/35679] Cannot build cross compiler for i686-pc-linux-gnu: configure: error: Link tests are not allowed after GCC_NO_EXECUTABLES
  2008-03-24 18:34 [Bug libstdc++/35679] New: Cannot build cross compiler for i686-pc-linux-gnu: configure: error: Link tests are not allowed after GCC_NO_EXECUTABLES yakov at emc dot com
@ 2008-03-24 19:55 ` brian at dessent dot net
  2008-03-24 20:29 ` yakov at emc dot com
  2008-03-30 20:20 ` pinskia at gcc dot gnu dot org
  2 siblings, 0 replies; 4+ messages in thread
From: brian at dessent dot net @ 2008-03-24 19:55 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #1 from brian at dessent dot net  2008-03-24 19:54 -------
Subject: Re:   New: Cannot build cross compiler for 
 i686-pc-linux-gnu: configure: error: Link tests are not allowed after 
 GCC_NO_EXECUTABLES

yakov at emc dot com wrote:

> --target=i686-emc-elf --enable-languages=c++ --disable-multilib --with-gnu-as

Your title for this bug is misleading as it seems you're building a
cross for a newlib bare metal target, not i686-pc-linux-gnu.  That's
just the host, and is irrelevant to the issue.

There is currently a known problem with the libstdc++ configury and bare
metal newlib targets.  You can fix it either by providing BSP files
(crt*.o, linker script, etc) for your board so that test programs can be
linked, or you can disable the AC_LIBTOOL_DLOPEN check in
libstc++-v3/configure.ac for newlib targets, as in
<http://gcc.gnu.org/ml/gcc/2007-11/msg00790.html>.  For a summary of the
history of this issue:
<http://gcc.gnu.org/ml/gcc/2008-03/msg00515.html>.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35679


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

* [Bug libstdc++/35679] Cannot build cross compiler for i686-pc-linux-gnu: configure: error: Link tests are not allowed after GCC_NO_EXECUTABLES
  2008-03-24 18:34 [Bug libstdc++/35679] New: Cannot build cross compiler for i686-pc-linux-gnu: configure: error: Link tests are not allowed after GCC_NO_EXECUTABLES yakov at emc dot com
  2008-03-24 19:55 ` [Bug libstdc++/35679] " brian at dessent dot net
@ 2008-03-24 20:29 ` yakov at emc dot com
  2008-03-30 20:20 ` pinskia at gcc dot gnu dot org
  2 siblings, 0 replies; 4+ messages in thread
From: yakov at emc dot com @ 2008-03-24 20:29 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #2 from yakov at emc dot com  2008-03-24 20:29 -------
Subject: Re:  Cannot build cross compiler for i686-pc-linux-gnu:
 configure: error: Link tests are not allowed after GCC_NO_EXECUTABLES

Brian,
first, thank you very much for such a quick response.

Actually, this target is  i[3456789]86-*-elf) /*gcc-4.3.0/configure */

sincerely,
yakov

brian at dessent dot net wrote:
> ------- Comment #1 from brian at dessent dot net  2008-03-24 19:54 -------
> Subject: Re:   New: Cannot build cross compiler for 
>  i686-pc-linux-gnu: configure: error: Link tests are not allowed after 
>  GCC_NO_EXECUTABLES
>
> yakov at emc dot com wrote:
>
>   
>> --target=i686-emc-elf --enable-languages=c++ --disable-multilib --with-gnu-as
>>     
>
> Your title for this bug is misleading as it seems you're building a
> cross for a newlib bare metal target, not i686-pc-linux-gnu.  That's
> just the host, and is irrelevant to the issue.
>
> There is currently a known problem with the libstdc++ configury and bare
> metal newlib targets.  You can fix it either by providing BSP files
> (crt*.o, linker script, etc) for your board so that test programs can be
> linked, or you can disable the AC_LIBTOOL_DLOPEN check in
> libstc++-v3/configure.ac for newlib targets, as in
> <http://gcc.gnu.org/ml/gcc/2007-11/msg00790.html>.  For a summary of the
> history of this issue:
> <http://gcc.gnu.org/ml/gcc/2008-03/msg00515.html>.
>
>
>   


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35679


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

* [Bug libstdc++/35679] Cannot build cross compiler for i686-pc-linux-gnu: configure: error: Link tests are not allowed after GCC_NO_EXECUTABLES
  2008-03-24 18:34 [Bug libstdc++/35679] New: Cannot build cross compiler for i686-pc-linux-gnu: configure: error: Link tests are not allowed after GCC_NO_EXECUTABLES yakov at emc dot com
  2008-03-24 19:55 ` [Bug libstdc++/35679] " brian at dessent dot net
  2008-03-24 20:29 ` yakov at emc dot com
@ 2008-03-30 20:20 ` pinskia at gcc dot gnu dot org
  2 siblings, 0 replies; 4+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2008-03-30 20:20 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #3 from pinskia at gcc dot gnu dot org  2008-03-30 20:19 -------
Using a sysroot or setting --prefix for both the newlib build and the GCC build
is the easiest way of getting a cross build to work.

Anyways here are the options I use to build a cross build for spu:
stage1
  binutils: ../src/configure --target=spu-elf --prefix=${HOME}/gcc-spu
  gcc: --prefix=${HOME}/gcc-spu --enable-languages=c --with-mpfr=/usr/local
--with-newlib --without-headers --target=spu-elf
  newlib: ../src/configure --target=spu-elf --prefix=${HOME}/gcc-spu
stage2
  gcc: --prefix=${HOME}/gcc-spu --enable-languages=c,obj-c++
--with-mpfr=/usr/local --with-newlib --target=spu-elf --with-headers


This works without changing any source or headers too.

Thanks,
Andrew Pinski


-- 

pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Severity|blocker                     |normal
             Status|UNCONFIRMED                 |RESOLVED
 GCC target triplet|i686-pc-linux-gnu           |i686-emc-elf
         Resolution|                            |WORKSFORME


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35679


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

end of thread, other threads:[~2008-03-30 20:20 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-03-24 18:34 [Bug libstdc++/35679] New: Cannot build cross compiler for i686-pc-linux-gnu: configure: error: Link tests are not allowed after GCC_NO_EXECUTABLES yakov at emc dot com
2008-03-24 19:55 ` [Bug libstdc++/35679] " brian at dessent dot net
2008-03-24 20:29 ` yakov at emc dot com
2008-03-30 20:20 ` pinskia at gcc dot gnu dot org

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