Cannot compile gcc-4.4.1 on Mac Pro---libiberty.a file is not of required architecture---Please Help

Jeremy Conlin jlconlin@gmail.com
Tue Sep 29 21:19:00 GMT 2009


I have been trying to compile gcc-4.4.1 on my Mac Pro with 64bit Xeon
processor with no success.  I have the following variables set

CFLAGS='-m64'
CXXFLAGS='-m64'

and I have run ./configure without any command-line options.  When I
run make, everything runs smoothly for awhile then I get the error
copied below.  Can someone help me identify what is wrong?
Thanks,
Jeremy


/usr/local/bin/gcc  -g -fkeep-inline-functions -DIN_GCC   -W -Wall
-Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wcast-qual
-Wold-style-definition -Wc++-compat -Wmissing-format-attribute
-pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings
-fno-common  -DHAVE_CONFIG_H -DGENERATOR_FILE  -o build/genchecksum \
	    build/genchecksum.o
../../build-i386-apple-darwin9.8.0/libiberty/libiberty.a
ld warning: in ../../build-i386-apple-darwin9.8.0/libiberty/libiberty.a,
file is not of required architecture
Undefined symbols:
  "_md5_stream", referenced from:
      _dosum in genchecksum.o
  "_fopen_unlocked", referenced from:
      _dosum in genchecksum.o
  "_xstrerror", referenced from:
      _dosum in genchecksum.o
      _dosum in genchecksum.o
      _dosum in genchecksum.o
ld: symbol(s) not found
collect2: ld returned 1 exit status



More information about the Gcc-help mailing list