Problem building libsdc++-v3 in a cross compile environment (zSeries, PPC64)

Hartmut Penner HPENNER@de.ibm.com
Fri Oct 24 13:25:00 GMT 2003


> 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



More information about the Gcc mailing list