Article View: gnu.gcc.bug
Article #6331[gcc-2.7.2] -mcpu option fails on AIX
From: Karl Heuer
Date: Wed, 20 Dec 1995 00:00
Date: Wed, 20 Dec 1995 00:00
43 lines
2091 bytes
2091 bytes
Building gcc-2.7.2 on rs6000-ibm-aix3.2.5, bootstrap from native cc.
==== output from the sub-make to build libgcc2.a (irrelevant part elided)
rm -f tmplibgcc2.a
for name in _muldi3 ...; \
do \
echo ${name}; \
./xgcc -B./ -O2 -DIN_GCC -g -I./include -g1 -mcpu=common -I. -I. -I./config -c -DL${name} \
./libgcc2.c -o ${name}.o; \
if [ $? -eq 0 ] ; then true; else exit 1; fi; \
ar rc tmplibgcc2.a ${name}.o; \
rm -f ${name}.o; \
done
_muldi3
*unknown*: Assembler messages:
*unknown*:0: Error: invalid architecture -mcom
make[4]: *** [libgcc2.a] Error 1
==== end of excerpt from make output
I tested a simpler example to verify that it's the -mcpu option
(the ./cpp line is folded to avoid mailer problems):
$ ./xgcc -v -B./ -c -mcpu=common kwzh.c
Reading specs from ./specs
gcc version 2.7.2
./cpp -lang-c -v -isystem ./include -undef -D__GNUC__=2 -D__GNUC_MINOR__=7 \
-D_IBMR2 -D_POWER -D_AIX -D_AIX32 -D_IBMR2 -D_POWER -D_AIX -D_AIX32 \
-Asystem(unix) -Asystem(aix) -Acpu(rs6000) -Amachine(rs6000) \
-D__CHAR_UNSIGNED__ -D_ARCH_COM kwzh.c /tmp/ccenYDFW.i
GNU CPP version 2.7.2
#include "..." search starts here:
#include <...> search starts here:
./include
/usr/local/include
/usr/local/rs6000-ibm-aix3.2.5/include
/usr/local/lib/gcc-lib/rs6000-ibm-aix3.2.5/2.7.2/include
/usr/include
End of search list.
./cc1 /tmp/ccenYDFW.i -quiet -dumpbase kwzh.c -mcpu=common -version -o /tmp/ccenYDFW.s
GNU C version 2.7.2 compiled by CC.
/usr/local/rs6000-ibm-aix3.2.5/bin/as -u -mcom -o kwzh.o /tmp/ccenYDFW.s
*unknown*: Assembler messages:
*unknown*:0: Error: invalid architecture -mcom
$ exit
Technical Details
Message-ID:
<199512200608.BAA09107@kix.ai.mit.edu>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 113d02,f94005cbcc94d5d0,start X-Google-Attributes: gid113d02,public From: kwzh@gnu.ai.mit.edu (Karl Heuer) Subject: [gcc-2.7.2] -mcpu option fails on AIX Date: 1995/12/20 Message-ID: <199512200608.BAA09107@kix.ai.mit.edu> X-Deja-AN: 122393815 distribution: gnu sender: daemon@cis.ohio-state.edu organization: GNUs Not Usenet newsgroups: gnu.gcc.bug