From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 7785 invoked by alias); 12 Jul 2005 17:04:01 -0000 Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-help-owner@gcc.gnu.org Received: (qmail 6654 invoked by uid 22791); 12 Jul 2005 17:03:47 -0000 Received: from tricca.tcs.tulane.edu (HELO tricca.tcs.tulane.edu) (129.81.224.27) by sourceware.org (qpsmtpd/0.30-dev) with ESMTP; Tue, 12 Jul 2005 17:03:47 +0000 Received: from tricca.tcs.tulane.edu (localhost.localdomain [127.0.0.1]) by tricca.tcs.tulane.edu (8.12.9/8.12.8) with ESMTP id j6CH3iLM030963 for ; Tue, 12 Jul 2005 12:03:44 -0500 Received: from olympus.tcs.tulane.edu (olympus.tcs.tulane.edu [129.81.224.6] (may be forged)) by tricca.tcs.tulane.edu (8.12.9/8.12.8) with ESMTP id j6CH3eD4030891 for ; Tue, 12 Jul 2005 12:03:43 -0500 Received: from tulane.edu (deimos.ccs.tulane.edu [129.81.120.80]) (authenticated bits=0) by olympus.tcs.tulane.edu (8.12.10/8.12.10) with ESMTP id j6CH3dIM005976 for ; Tue, 12 Jul 2005 12:03:39 -0500 (CDT) Message-ID: <42D3F7EB.80601@tulane.edu> Date: Tue, 12 Jul 2005 17:04:00 -0000 From: Rene Salmon User-Agent: Mozilla Thunderbird 0.5 (X11/20040208) MIME-Version: 1.0 To: gcc-help@gcc.gnu.org Subject: compile problem gcc-3.4.4 with -maix64 on aix 5.3 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-DCC-Tulane-Metrics: olympus 1000; IP=6 Body=1 Fuz1=1 Fuz2=1 X-SW-Source: 2005-07/txt/msg00119.txt.bz2 Hi, We are trying to compile gcc-3.4.4 with -maix64 on aix 5.3. here is the setup: We are using the 32bit gcc 3.3.2 rpm binaries that are available from IBM to do this. setenv make /opt/freeware/bin/make setenv CONFIG_SHELL /opt/freeware/bin/bash setenv CFLAGS -maix64 setenv CC /opt/freeware/bin/gcc cd objectdir/ ../gcc-3.4.4/configure --prefix=/usr/local/opt/gcc-3.4.4 --with- as=/usr/bin/as --with-ld=/usr/bin/ld --disable-nls --enable-languages=c,c++ --en able-threads --enable-version-specific-runtime-libs After this is done I edit the Makefile created in objectdir to add these lines so that the libs created are 64bit. AR = ar -X64 AR_FLAGS = rc RANLIB = ranlib -X64 The I do a make but it fails with a message about missing symbols in libiberty/libiberty.a. The symbols are there I checked so I think that the problem is just the the libiberty.a just is in the wrong format. Any ideas as to how to fix this? Here is the error message. /opt/freeware/bin/make bootstrap HEADERS="config/rs6000/rs6000.h config/rs6000/aix.h config/rs6000/aix52.h config /rs6000/xcoff.h defaults.h" DEFINES="" \ /opt/freeware/bin/bash ../../gcc-3.4.4/gcc/mkconfig.sh tm.h TARGET_CPU_DEFAULT="" \ HEADERS="auto-host.h ansidecl.h" DEFINES="" \ /opt/freeware/bin/bash ../../gcc-3.4.4/gcc/mkconfig.sh bconfig.h /opt/freeware/bin/gcc -c -g -DIN_GCC -W -Wall -Wwrite-strings -Wstrict-prot otypes -Wmissing-prototypes -pedantic -Wno-long-long -DHAVE_CONFIG_H -DGENERA TOR_FILE -I. -I. -I../../gcc-3.4.4/gcc -I../../gcc-3.4.4/gcc/. -I../../gcc-3. 4.4/gcc/../include ../../gcc-3.4.4/gcc/genmodes.c -o genmodes.o /opt/freeware/bin/gcc -c -g -DIN_GCC -W -Wall -Wwrite-strings -Wstrict-prot otypes -Wmissing-prototypes -pedantic -Wno-long-long -DHAVE_CONFIG_H -DGENERA TOR_FILE -I. -I. -I../../gcc-3.4.4/gcc -I../../gcc-3.4.4/gcc/. -I../../gcc-3. 4.4/gcc/../include ../../gcc-3.4.4/gcc/errors.c -o errors.o /opt/freeware/bin/gcc -g -DIN_GCC -W -Wall -Wwrite-strings -Wstrict-prototy pes -Wmissing-prototypes -pedantic -Wno-long-long -DHAVE_CONFIG_H -DGENERATOR _FILE -o genmodes \ genmodes.o errors.o ../libiberty/libiberty.a ld: 0711-317 ERROR: Undefined symbol: .xmalloc ld: 0711-317 ERROR: Undefined symbol: .htab_find_slot ld: 0711-317 ERROR: Undefined symbol: .htab_hash_string ld: 0711-317 ERROR: Undefined symbol: .xstrdup ld: 0711-317 ERROR: Undefined symbol: xcalloc ld: 0711-317 ERROR: Undefined symbol: .htab_create_alloc ld: 0711-317 ERROR: Undefined symbol: .htab_find ld: 0711-345 Use the -bloadmap or -bnoquiet option to obtain more information. collect2: ld returned 8 exit status make[2]: *** [genmodes] Error 1 make[2]: Leaving directory `/usr/local/src/objdirgcc64/gcc' make[1]: *** [stage1_build] Error 2 make[1]: Leaving directory `/usr/local/src/objdirgcc64/gcc' make: *** [bootstrap] Error 2 Thank you Rene -- - -- Rene Salmon Tulane University Center for Computational Science Richardson Building 310 New Orleans, LA 70118 http://www.ccs.tulane.edu Tel 504-862-8393 Fax 504-862-8392