Simon J Mudd wrote:
Henri Gomez <[EMAIL PROTECTED]> writes:


well gcc 3.4.4 is working perfectly on AIX 5.2 PASE but this problem
at install time prevent me to have a RPM ;(

Reading specs from
/QOpenSys/usr/local/gcc-3.4.4/bin/../lib/gcc/powerpc-ibm-aix5.2.0.0/3.4.4/specs
Configured with: ../configure --with-as=/tmp/as
--prefix=/usr/local/gcc-3.4.4 --with-ld=/QOpenSys/usr/bin/ld
--disable-nls --enable-languages=c,c++ --enable-threads
--enable-version-specific-runtime-libs
Thread model: aix
gcc version 3.4.4


My 3.4.4 gcc give as result for gcc --print-multi-lib :
.;
pthread;@pthread
ppc64;@maix64
pthread/ppc64;@[EMAIL PROTECTED]

On an iSeries LPAR with Linux SLES 9 (gcc 3.3.3) I got :

.;@[EMAIL PROTECTED]
64;@[EMAIL PROTECTED]@mstrict-align

On an Intel box with Suse SLES 9 (gcc 3.3.3) I got :

.;

Question, what could we do now ?


I've been trying various options in the openpkg 3.4.4 build of gcc and
it just does not work.  I'm going to try and manually build 3.4.4
following the IBM rpm spec file and see if that works.  If not I guess
the question needs to go to the gcc list and maybe someone can shed
light on what is happening.

If it makes any difference I'm trying to build on a pSeries IBM
7043-260 dual CPU box.  This uses Power 3 processors. My problem
appears to be an assembler failure as shown below:

./xgcc -B./ -B/openpkg/powerpc-ibm-aix5.1.0.0/bin/ -isystem 
/openpkg/powerpc-ibm-aix5.1.0.0/include -isystem 
/openpkg/powerpc-ibm-aix5.1.0.0/sys-include 
-L/openpkg/RPM/TMP/gcc-3.4.4/obj/gcc/../ld -O2  -DIN_GCC    -W -Wall 
-Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition 
 -isystem./include   -g -DHAVE_GTHR_DEFAULT -DIN_LIBGCC2 
-D__GCC_FLOAT_NOT_NEEDED  -I. -I. -I/openpkg/RPM/TMP/gcc-3.4.4/obj/../gcc 
-I/openpkg/RPM/TMP/gcc-3.4.4/obj/../gcc/. 
-I/openpkg/RPM/TMP/gcc-3.4.4/obj/../gcc/../include   -mcpu=power -DL_divdi3 -c 
/openpkg/RPM/TMP/gcc-3.4.4/obj/../gcc/libgcc2.c -fexceptions 
-fnon-call-exceptions -o libgcc/power/_divdi3.o
/openpkg/RPM/TMP/ccdBCwz0.s: Assembler messages:
/openpkg/RPM/TMP/ccdBCwz0.s:845: Error: Unrecognized opcode: `mfcr'
make[3]: *** [libgcc/power/_divdi3.o] Error 1
make[2]: *** [stmp-multilib] Error 2
make[1]: *** [stage1_build] Error 2
make: *** [bootstrap-lean] Error 2
error: Bad exit status from /openpkg/RPM/TMP/rpm-tmp.12242 (%build)

It seems strange that there are assembler errors and I am wondering
whether my cpus are "to blame" (gcc trying to use the wrong cpu
instruction set???).

This is different to Doug's problem with 3.3.6 which looks like it is
a problem "post build".  The only thing is I'm not sure it's really
worth building an openpkg gcc-3.3.6 compiler if the IBM provided gcc
3.3.2 (from an RPM) I have for 5.1 is almost the same version.

That said if an openpkg gcc is available the dependencies won't fail
for many other openpkg rpms and that may mean we are making progress.
So once I can't make any more progress with 3.4.4 I'll perhaps try and
build 3.3.6.

Regards,

Simon
______________________________________________________________________
The OpenPKG Project                                    www.openpkg.org
User Communication List                      openpkg-users@openpkg.org

Simon, I got past this by doing the following:

1) Uninstalling binutils (OpenPKG & RPM versions)
2) Compiling using --define="with_binutils no" switch

BTW - I've been compiling on boxes very similar to yours so the CPU's shouldn't be an issue.

Doug
______________________________________________________________________
The OpenPKG Project                                    www.openpkg.org
User Communication List                      openpkg-users@openpkg.org

Reply via email to