This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: Build failure of GCC-3.0 branch on powerpc
- To: gcc-help at gcc dot gnu dot org
- Subject: Re: Build failure of GCC-3.0 branch on powerpc
- From: Mark Wielaard <mark at klomp dot org>
- Date: Tue, 20 Feb 2001 21:44:49 +0100
- References: <20010219234910.A16753@klomp.org>
Hi,
On Mon, Feb 19, 2001 at 11:49:11PM +0100, Mark Wielaard wrote:
>
> I am trying to build the GCC 3.0 branch on powerpc including gcj.
> It is the CVS version of yesterday configured with --enable-languages=c++,java
> It gives the following error:
>
> make[6]: Entering directory `/opt/mark/gcc-obj/powerpc-unknown-linux-gnu/nof/libffi'
> /bin/sh ./libtool --mode=link /opt/mark/gcc-obj/gcc/xgcc -B/opt/mark/gcc-obj/gcc/ -B/usr/local/gcc/powerpc-unknown-linux-gnu/bin/ -B/usr/local/gcc/powerpc-unknown-linux-gnu/lib/ -isystem /usr/local/gcc/powerpc-unknown-linux-gnu/include -msoft-float -fPIC -mstrict-align -fexceptions -g -O2 -msoft-float -fPIC -mstrict-align -msoft-float -fPIC -mstrict-align -o ffitest ffitest.o libffi.la
> /opt/mark/gcc-obj/gcc/xgcc -B/opt/mark/gcc-obj/gcc/ -B/usr/local/gcc/powerpc-unknown-linux-gnu/bin/ -B/usr/local/gcc/powerpc-unknown-linux-gnu/lib/ -isystem /usr/local/gcc/powerpc-unknown-linux-gnu/include -msoft-float -fPIC -mstrict-align -fexceptions -g -O2 -msoft-float -fPIC -mstrict-align -msoft-float -fPIC -mstrict-align -o .libs/ffitest ffitest.o
> ./.libs/libffi.so+-Wl,--rpath -Wl,/usr/local/gcc/lib/nof
> /usr/bin/ld: warning: libgcc_s_nof.so.0, needed by ./.libs/libffi.so, not found (try using --rpath)
> ./.libs/libffi.so: undefined reference to `__extendsfdf2@GCC_3.0'
> collect2: ld returned 1 exit status
> make[6]: *** [ffitest] Error 1
Some updates. It still doesn't work :(
The libgcc_s_nof.so.0 file does exist.
I tried a clean build without gjc but with g++ (--enable-languages=c++).
That does seem to succeed but after I installed it I couldn't compile
even the simplest c++ program. I always get the following:
/usr/local/gcc/lib/gcc-lib/powerpc-unknown-linux-gnu/3.0/../../../libgcc_s.so: undefined reference to `__SBSS2_END__'
/usr/local/gcc/lib/gcc-lib/powerpc-unknown-linux-gnu/3.0/../../../libgcc_s.so: undefined reference to `__init'
/usr/local/gcc/lib/gcc-lib/powerpc-unknown-linux-gnu/3.0/../../../libgcc_s.so: undefined reference to `__SBSS_END__'
/usr/local/gcc/lib/gcc-lib/powerpc-unknown-linux-gnu/3.0/../../../libgcc_s.so: undefined reference to `__SDATA2_START__'
/usr/local/gcc/lib/gcc-lib/powerpc-unknown-linux-gnu/3.0/../../../libgcc_s.so: undefined reference to `__SDATA_START__'
collect2: ld returned 1 exit status
The g++ compiler (also compiled from the same CVS source)
does work on my i386 machine.
Could someone help me getting this working on powerpc?
Does anybody have a working g++ and/or gcj compiler from recent
CVS (3.0 branch)?
Thanks,
Mark
--
Stuff to read:
<http://www.toad.com/gnu/whatswrong.html>
What's Wrong with Copy Protection, by John Gilmore