From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Christoph Trojan" To: gcc-help@gcc.gnu.org Subject: gcc build problem under AIX 4.3.1 Date: Tue, 25 Jan 2000 08:32:00 -0000 Message-id: <24921.948817960.0@NO-ID-FOUND.mhonarc.org> X-SW-Source: 2000-01/msg00162.html Hi, I've got problems with a build of gcc 2.96 under AIX 4.3.1. (under Linux I had no problems). I've configured with the only flag -- prefix=/usr/local/gcc. "make bootstrap" runs a while and terminates with an error. It seems to depend on the AIX ar : ar: Not a recognized flag: X _df_to_usi ar: Not a recognized flag: X for file in ../../gcc/frame.c cplib2.txt ; do \ name=`echo ${file} | sed -e 's/[.][cSo]$//' -e 's/[.]asm$//' -e 's/[.]txt$//'`; \ oname=` echo ${name} | sed -e 's,.*/,,'`; \ if [ ${name}.txt = ${file} ]; then \ for f in .. `cat ${file}`; do if [ x${f} != x.. ]; then \ make GCC_FOR_TARGET="./xgcc -B/usr/local/gcc/powerpc- ibm-aix4.3.1.0/bin/ -B./ -I/usr/local/gcc/powerpc-ibm- aix4.3.1.0/include" \ AR_FOR_TARGET="ar -X32_64" \ AR_FLAGS_FOR_TARGET="rc" CC="gcc" \ CFLAGS="-g -W -Wall -Wtraditional" HOST_PREFIX="" \ HOST_PREFIX_1="loser-" \ LANGUAGES="c " \ LIBGCC2_CFLAGS="-O2 -DIN_GCC -g -W -Wall - Wtraditional -I./include -g1 -DIN_LIBGCC2 - D__GCC_FLOAT_NOT_NEEDED " ${f}; \ if [ $? -eq 0 ] ; then true; else exit 1; fi; \ ar -X32_64 rc tmplibgcc2.a ${f}; \ rm -f ${f}; \ else true; \ fi; done; \ else \ echo ${name}; \ if [ ${name}.asm = ${file} ]; then \ cp ${file} ${name}.s || exit 1; file=${name}.s; \ else true; fi; \ ./xgcc -B/usr/local/gcc/powerpc-ibm-aix4.3.1.0/bin/ -B./ - I/usr/local/gcc/powerpc-ibm-aix4.3.1.0/include -O2 -DIN_GCC -g -W -Wall -Wtraditional -I./include -g1 -DIN_LIBGCC2 - D__GCC_FLOAT_NOT_NEEDED -I. -I../../gcc -I../../gcc/config - I../../gcc/../include -c ${file}; \ if [ $? -eq 0 ] ; then true; else exit 1; fi; \ ar -X32_64 rc tmplibgcc2.a ${oname}.o; \ rm -f ${name}.s ${oname}.o; \ fi; \ done ../../gcc/frame ar: Not a recognized flag: X mv tmplibgcc2.a libgcc2.a mv: tmplibgcc2.a: A file or directory in the path name does not exist. make[4]: *** [libgcc2.a] Error 1 make[4]: Leaving directory `/usr/local/cmpl/egcs-20000117/obj/gcc' make[3]: *** [stmp-multilib-sub] Error 2 make[3]: Leaving directory `/usr/local/cmpl/egcs-20000117/obj/gcc' make[2]: *** [stmp-multilib] Error 1 make[2]: Leaving directory `/usr/local/cmpl/egcs-20000117/obj/gcc' make[1]: *** [bootstrap] Error 2 make[1]: Leaving directory `/usr/local/cmpl/egcs-20000117/obj/gcc' make: *** [bootstrap] Error 2 But my ar knows this flag : /usr/bin/ar -X Usage: ar [-X{32|64|32_64}] [-clsvCT] [-g|o] {-h|p|t|x} [--] Archive [File ...] ar [-X{32|64|32_64}] [-clsvCT] [-g|o] {-m|r[u]} [{-a|b|i} {PositionName}] [--] Archive File ... ar [-X{32|64|32_64}] [-clsvCT] [-g|o] {-d|q} [--] Archive File ... ar [-X{32|64|32_64}] [-clvCT] {-g|o|s|w} [--] Archive I've made shure that only the AIX ar, nm was on the machine during my build. If I omit this flag things go wrong during the compare of the object files of stage1 and stage2, they differ. Does anybody know what's going on here ? Thanks --Christoph-- Christoph.Trojan@inform-ac.com