public inbox for gcc@gcc.gnu.org
 help / color / mirror / Atom feed
* Re: Problem building libsdc++-v3 in a cross compile environment (zSeries, PPC64)
@ 2003-10-24 13:25 Hartmut Penner
  2003-10-24 17:48 ` Daniel Jacobowitz
  0 siblings, 1 reply; 5+ messages in thread
From: Hartmut Penner @ 2003-10-24 13:25 UTC (permalink / raw)
  To: gcc

> Tried to build a cross-compiler for zSeries (64 bit) on an x86 system on
> cvs head.
> I get a failure while configuring the libstdc++. This also happens when
> building a powerpc64 cross
> compiler.
>       regards, Hartmut
>
> Configure:
>  ../gcc-head/configure  --target=s390x-ibm-linux --enable-languages=c,c++
> --disable-multilib

> That error means that you can't link.  You didn't disable shared
> libraries, so obviously you do need to be able to link in order to
> build libstdc++.

> Please look at config.log to find out what's going on.  There should be
> a failed link test near the top of libstdc++'s config.log, find out why
> it failed.

Yes, forgot to put ld64.so.1 in cross library. With ld64.so.1 in place
everything works.


>> checking if /home/hp/gnu/gcc-head-s390x/gcc/xgcc static flag -static
works... no

> Hmm, that's odd, it worked earlier.

ltconfig:758:  /home/hp/gnu/gcc-head-s390x/gcc/xgcc -shared-libgcc
-B/home/hp/gnu/gcc-head-s390x/gcc/ -nostdinc++
-L/home/hp/gnu/gcc-head-s390x/s390x-ibm-linux/libstdc++-v3/src
-L/home/hp/gnu/gcc-head-s390x/s390x-ibm-linux/libstdc++-v3/src/.libs
-B/usr/local/s390x-ibm-linux/bin/ -B/usr/local/s390x-ibm-linux/lib/
-isystem /usr/local/s390x-ibm-linux/include
-isystem /usr/local/s390x-ibm-linux/sys-include -o conftest
-g -O2 -D_GNU_SOURCE -O2 -g -O2  -static conftest.cc  1>&5
/tmp/cceqt236.o(.eh_frame+0x11): undefined reference to `__gxx_personality_v0'
collect2: ld returned 1 exit status

S/390 emits an eh_frame section with a reference to __gxx_personality_v0,
even
for dummy program, which is different to for example x86.
We will look into that.

> --
> Daniel Jacobowitz
> MontaVista Software                         Debian GNU/Linux Developer

Thanks for your help.
      Hartmut

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

* Re: Problem building libsdc++-v3 in a cross compile environment (zSeries, PPC64)
  2003-10-24 13:25 Problem building libsdc++-v3 in a cross compile environment (zSeries, PPC64) Hartmut Penner
@ 2003-10-24 17:48 ` Daniel Jacobowitz
  0 siblings, 0 replies; 5+ messages in thread
From: Daniel Jacobowitz @ 2003-10-24 17:48 UTC (permalink / raw)
  To: gcc

On Fri, Oct 24, 2003 at 08:48:59AM +0200, Hartmut Penner wrote:
> Yes, forgot to put ld64.so.1 in cross library. With ld64.so.1 in place
> everything works.

Great!

> >> checking if /home/hp/gnu/gcc-head-s390x/gcc/xgcc static flag -static
> works... no
> 
> > Hmm, that's odd, it worked earlier.
> 
> ltconfig:758:  /home/hp/gnu/gcc-head-s390x/gcc/xgcc -shared-libgcc
> -B/home/hp/gnu/gcc-head-s390x/gcc/ -nostdinc++
> -L/home/hp/gnu/gcc-head-s390x/s390x-ibm-linux/libstdc++-v3/src
> -L/home/hp/gnu/gcc-head-s390x/s390x-ibm-linux/libstdc++-v3/src/.libs
> -B/usr/local/s390x-ibm-linux/bin/ -B/usr/local/s390x-ibm-linux/lib/
> -isystem /usr/local/s390x-ibm-linux/include
> -isystem /usr/local/s390x-ibm-linux/sys-include -o conftest
> -g -O2 -D_GNU_SOURCE -O2 -g -O2  -static conftest.cc  1>&5
> /tmp/cceqt236.o(.eh_frame+0x11): undefined reference to `__gxx_personality_v0'
> collect2: ld returned 1 exit status
> 
> S/390 emits an eh_frame section with a reference to __gxx_personality_v0,
> even
> for dummy program, which is different to for example x86.
> We will look into that.

Is this -fasynchronous-unwind-table (spelling?) at work?  Probably just
a harmless configury problem.

-- 
Daniel Jacobowitz
MontaVista Software                         Debian GNU/Linux Developer

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

* Re: Problem building libsdc++-v3 in a cross compile environment (zSeries, PPC64)
  2003-10-23 16:15 ` Daniel Jacobowitz
@ 2004-01-09  5:49   ` Alan Modra
  0 siblings, 0 replies; 5+ messages in thread
From: Alan Modra @ 2004-01-09  5:49 UTC (permalink / raw)
  To: gcc

On Thu, Oct 23, 2003 at 09:21:33AM -0400, Daniel Jacobowitz wrote:
> On Thu, Oct 23, 2003 at 08:51:12AM +0200, Hartmut Penner wrote:
> > I get a failure while configuring the libstdc++. This also happens when
> > building a powerpc64 cross compiler.

I just ran into something similar when crosscompiling current gcc
for powerpc64-linux with --disable-shared --enable-languages=c,c++
Funny enough, Janis had reported another manifestation of the bug
a few hours before.

> > checking if /home/hp/gnu/gcc-head-s390x/gcc/xgcc static flag -static works... no
> 
> Hmm, that's odd, it worked earlier.

Indeed.  Same error on my configure too.

See http://sources.redhat.com/ml/binutils/2004-01/msg00138.html for
the ppc64 fix.

-- 
Alan Modra
IBM OzLabs - Linux Technology Centre

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

* Re: Problem building libsdc++-v3 in a cross compile environment (zSeries, PPC64)
  2003-10-23 11:48 Hartmut Penner
@ 2003-10-23 16:15 ` Daniel Jacobowitz
  2004-01-09  5:49   ` Alan Modra
  0 siblings, 1 reply; 5+ messages in thread
From: Daniel Jacobowitz @ 2003-10-23 16:15 UTC (permalink / raw)
  To: gcc

On Thu, Oct 23, 2003 at 08:51:12AM +0200, Hartmut Penner wrote:
> Tried to build a cross-compiler for zSeries (64 bit) on an x86 system on
> cvs head.
> I get a failure while configuring the libstdc++. This also happens when
> building a powerpc64 cross
> compiler.
>       regards, Hartmut
> 
> Configure:
>  ../gcc-head/configure  --target=s390x-ibm-linux --enable-languages=c,c++
> --disable-multilib

That error means that you can't link.  You didn't disable shared
libraries, so obviously you do need to be able to link in order to
build libstdc++.

> checking if /home/hp/gnu/gcc-head-s390x/gcc/xgcc static flag -static works... no

Hmm, that's odd, it worked earlier.

Please look at config.log to find out what's going on.  There should be
a failed link test near the top of libstdc++'s config.log, find out why
it failed.

-- 
Daniel Jacobowitz
MontaVista Software                         Debian GNU/Linux Developer

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

* Problem building libsdc++-v3 in a cross compile environment (zSeries, PPC64)
@ 2003-10-23 11:48 Hartmut Penner
  2003-10-23 16:15 ` Daniel Jacobowitz
  0 siblings, 1 reply; 5+ messages in thread
From: Hartmut Penner @ 2003-10-23 11:48 UTC (permalink / raw)
  To: gcc

Tried to build a cross-compiler for zSeries (64 bit) on an x86 system on
cvs head.
I get a failure while configuring the libstdc++. This also happens when
building a powerpc64 cross
compiler.
      regards, Hartmut

Configure:
 ../gcc-head/configure  --target=s390x-ibm-linux --enable-languages=c,c++
--disable-multilib

...

Configuring in s390x-ibm-linux/libstdc++-v3
configure: loading cache ../config.cache
checking build system type... (cached) i686-pc-linux-gnu
checking host system type... (cached) s390x-ibm-linux-gnu
checking target system type... (cached) s390x-ibm-linux-gnu
checking for a BSD-compatible install... (cached) /usr/bin/install -c
checking whether build environment is sane... yes
checking for gawk... (cached) gawk
checking whether make sets $(MAKE)... (cached) yes
checking for s390x-ibm-linux-strip... (cached) s390x-ibm-linux-strip
checking for s390x-ibm-linux-gcc... (cached)  /home/hp/gnu/gcc-head-s390x/gcc/xgcc -B/home/hp/gnu/gcc-head-s390x/gcc/
-B/usr/local/s390x-ibm-linux/bin/ -B/usr/local/s390x-ibm-linux/lib/ -isystem /usr/local/s390x-ibm-linux/include -isystem
/usr/local/s390x-ibm-linux/sys-include
checking for suffix of object files... (cached) o
checking whether we are using the GNU C compiler... (cached) yes
checking whether  /home/hp/gnu/gcc-head-s390x/gcc/xgcc -B/home/hp/gnu/gcc-head-s390x/gcc/ -B/usr/local/s390x-ibm-linux/bin/
-B/usr/local/s390x-ibm-linux/lib/ -isystem /usr/local/s390x-ibm-linux/include -isystem /usr/local/s390x-ibm-linux/sys-include accepts -g... (cached)
yes
checking for  /home/hp/gnu/gcc-head-s390x/gcc/xgcc -B/home/hp/gnu/gcc-head-s390x/gcc/ -B/usr/local/s390x-ibm-linux/bin/
-B/usr/local/s390x-ibm-linux/lib/ -isystem /usr/local/s390x-ibm-linux/include -isystem /usr/local/s390x-ibm-linux/sys-include option to accept ANSI
C... (cached) none needed
checking for s390x-ibm-linux-g++... (cached)  /home/hp/gnu/gcc-head-s390x/gcc/xgcc -shared-libgcc -B/home/hp/gnu/gcc-head-s390x/gcc/ -nostdinc++
-L/home/hp/gnu/gcc-head-s390x/s390x-ibm-linux/libstdc++-v3/src -L/home/hp/gnu/gcc-head-s390x/s390x-ibm-linux/libstdc++-v3/src/.libs
-B/usr/local/s390x-ibm-linux/bin/ -B/usr/local/s390x-ibm-linux/lib/ -isystem /usr/local/s390x-ibm-linux/include -isystem
/usr/local/s390x-ibm-linux/sys-include
checking whether we are using the GNU C++ compiler... (cached) yes
checking whether  /home/hp/gnu/gcc-head-s390x/gcc/xgcc -shared-libgcc -B/home/hp/gnu/gcc-head-s390x/gcc/ -nostdinc++
-L/home/hp/gnu/gcc-head-s390x/s390x-ibm-linux/libstdc++-v3/src -L/home/hp/gnu/gcc-head-s390x/s390x-ibm-linux/libstdc++-v3/src/.libs
-B/usr/local/s390x-ibm-linux/bin/ -B/usr/local/s390x-ibm-linux/lib/ -isystem /usr/local/s390x-ibm-linux/include -isystem
/usr/local/s390x-ibm-linux/sys-include accepts -g... (cached) yes
checking for GCC version number... 3.4
checking whether ln -s works... yes
checking for s390x-ibm-linux-as... (cached) /usr/local/s390x-ibm-linux/bin/as
checking for s390x-ibm-linux-ar... (cached) s390x-ibm-linux-ar
checking for s390x-ibm-linux-ranlib... (cached) s390x-ibm-linux-ranlib
checking whether to enable maintainer-specific portions of Makefiles... no
configure: CPU config directory is cpu/s390
configure: OS config directory is os/gnu-linux
checking for ld used by GCC... (cached) /usr/local/s390x-ibm-linux/bin/ld
checking if the linker (/usr/local/s390x-ibm-linux/bin/ld) is GNU ld... (cached) yes
checking for /usr/local/s390x-ibm-linux/bin/ld option to reload object files... (cached) -r
checking for BSD-compatible nm... (cached) /usr/local/s390x-ibm-linux/bin/nm
checking how to recognise dependant libraries... (cached) file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )
checking for s390x-ibm-linux-file... (cached) /usr/bin/file
checking for s390x-ibm-linux-ranlib... (cached) s390x-ibm-linux-ranlib
checking for s390x-ibm-linux-strip... (cached) s390x-ibm-linux-strip
updating cache ../config.cache
loading cache ../config.cache within ltconfig
checking whether -lc should be explicitly linked in... (cached) no
checking for objdir... .libs
checking for /home/hp/gnu/gcc-head-s390x/gcc/xgcc option to produce PIC...  -fPIC -DPIC
checking if /home/hp/gnu/gcc-head-s390x/gcc/xgcc PIC flag  -fPIC -DPIC works... (cached) yes
checking if /home/hp/gnu/gcc-head-s390x/gcc/xgcc static flag -static works... (cached) yes
finding the maximum length of command line arguments... (cached) 49153
checking if /home/hp/gnu/gcc-head-s390x/gcc/xgcc supports -c -o file.o... (cached) yes
checking if /home/hp/gnu/gcc-head-s390x/gcc/xgcc supports -fno-rtti -fno-exceptions ... no
checking whether the linker (/usr/local/s390x-ibm-linux/bin/ld -m elf64_s390) supports shared libraries... yes
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking dynamic linker characteristics... GNU/Linux ld.so
checking command to parse /usr/local/s390x-ibm-linux/bin/nm output... failed
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
creating libtool
updating cache ../config.cache
configure: loading cache ../config.cache
checking how to run the C++ preprocessor...  /home/hp/gnu/gcc-head-s390x/gcc/xgcc -shared-libgcc -B/home/hp/gnu/gcc-head-s390x/gcc/ -nostdinc++
-L/home/hp/gnu/gcc-head-s390x/s390x-ibm-linux/libstdc++-v3/src -L/home/hp/gnu/gcc-head-s390x/s390x-ibm-linux/libstdc++-v3/src/.libs
-B/usr/local/s390x-ibm-linux/bin/ -B/usr/local/s390x-ibm-linux/lib/ -isystem /usr/local/s390x-ibm-linux/include -isystem
/usr/local/s390x-ibm-linux/sys-include -E
loading cache ../config.cache within ltconfig
checking host system type... s390x-ibm-linux-gnu
checking build system type... i686-pc-linux-gnu
checking for objdir... .libs
checking for /home/hp/gnu/gcc-head-s390x/gcc/xgcc option to produce PIC... -fPIC -DPIC
checking if /home/hp/gnu/gcc-head-s390x/gcc/xgcc PIC flag -fPIC -DPIC works... yes
checking if /home/hp/gnu/gcc-head-s390x/gcc/xgcc static flag -static works... no
finding the maximum length of command line arguments... (cached) 49153
checking if /home/hp/gnu/gcc-head-s390x/gcc/xgcc supports -c -o file.o... (cached) yes
checking if /home/hp/gnu/gcc-head-s390x/gcc/xgcc supports -fno-rtti -fno-exceptions ... yes
checking whether the linker (/usr/local/s390x-ibm-linux/bin/ld -m elf64_s390) supports shared libraries...
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking dynamic linker characteristics... GNU/Linux ld.so
checking command to parse /usr/local/s390x-ibm-linux/bin/nm output... failed
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
appending configuration tag "CXX" to libtool
checking for exception model to use... call frame
checking for use of libunwind...
checking for enabled PCH... yes
checking for compiler with PCH support... yes
checking for underlying I/O to use... stdio
checking how to run the C preprocessor...  /home/hp/gnu/gcc-head-s390x/gcc/xgcc -B/home/hp/gnu/gcc-head-s390x/gcc/ -B/usr/local/s390x-ibm-linux/bin/
-B/usr/local/s390x-ibm-linux/lib/ -isystem /usr/local/s390x-ibm-linux/include -isystem /usr/local/s390x-ibm-linux/sys-include -E
checking for egrep... grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking for C locale to use... generic
configure: "C" header strategy set to c_std
checking for ISO C99 support in <math.h>... yes
checking for ISO C99 support in <stdio.h>... yes
checking for lldiv_t declaration... yes
checking for ISO C99 support in <stdlib.h>... yes
checking for additional ISO C99 support in <wchar.h>... yes
checking for enabled ISO C99 support... yes
checking for enabled long long I/O support... yes
checking for thread model used by GCC... posix
configure: Debug build flags set to -g3 -O0
checking for additional debug build... no
checking for extra compiler flags for building...
checking nan.h usability... no
checking nan.h presence... no
checking for nan.h... no
checking ieeefp.h usability... no
checking ieeefp.h presence... no
checking for ieeefp.h... no
checking endian.h usability... yes
checking endian.h presence... yes
checking for endian.h... yes
checking sys/isa_defs.h usability... no
checking sys/isa_defs.h presence... no
checking for sys/isa_defs.h... no
checking machine/endian.h usability... no
checking machine/endian.h presence... no
checking for machine/endian.h... no
checking machine/param.h usability... no
checking machine/param.h presence... no
checking for machine/param.h... no
checking sys/machine.h usability... no
checking sys/machine.h presence... no
checking for sys/machine.h... no
checking for sys/types.h... (cached) yes
checking fp.h usability... no
checking fp.h presence... no
checking for fp.h... no
checking locale.h usability... yes
checking locale.h presence... yes
checking for locale.h... yes
checking float.h usability... yes
checking float.h presence... yes
checking for float.h... yes
checking for inttypes.h... (cached) yes
checking for main in -lm... configure: error: Link tests are not allowed after GCC_NO_EXECUTABLES.
make: *** [configure-target-libstdc++-v3] Error 1

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

end of thread, other threads:[~2004-01-09  5:49 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-10-24 13:25 Problem building libsdc++-v3 in a cross compile environment (zSeries, PPC64) Hartmut Penner
2003-10-24 17:48 ` Daniel Jacobowitz
  -- strict thread matches above, loose matches on Subject: below --
2003-10-23 11:48 Hartmut Penner
2003-10-23 16:15 ` Daniel Jacobowitz
2004-01-09  5:49   ` Alan Modra

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