public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
* compile problem  gcc-3.4.4 with -maix64 on  aix 5.3
@ 2005-07-12 17:04 Rene Salmon
  0 siblings, 0 replies; only message in thread
From: Rene Salmon @ 2005-07-12 17:04 UTC (permalink / raw)
  To: gcc-help

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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2005-07-12 17:04 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-07-12 17:04 compile problem gcc-3.4.4 with -maix64 on aix 5.3 Rene Salmon

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