[LLVMdev] Compiling llvm-gcc in linux/ppc
Nicolas Geoffray
nicolas.geoffray at lip6.fr
Tue May 15 02:38:46 PDT 2007
Chris Lattner wrote:
>
> This looks like you're compiling llvm-gcc3, which is quite dead by now.
> Please follow these instructions:
> http://llvm.org/docs/CFEBuildInstrs.html
>
>
Oups, sorry for that. Here is the error message with the latest svn version:
gcc -c -g -O2 -DIN_GCC -W -Wall -Wwrite-strings -Wstrict-prototypes
-Wmissing-prototypes -pedantic -Wno-long-long -Wno-variadic-macros
-Wold-style-definition -DHAVE_CONFIG_H -DENABLE_LLVM
-D__STDC_LIMIT_MACROS -I. -I. -I../../trunk/gcc -I../../trunk/gcc/.
-I../../trunk/gcc/../include -I../../trunk/gcc/../libcpp/include
-I/home/varth/project/llvm-cvs/llvm/include
-I/usr/local/home/varth/project/llvm-cvs/llvm/include
../../trunk/gcc/stor-layout.c -o stor-layout.o
../../trunk/gcc/stor-layout.c:450:25: error: macro "ADJUST_FIELD_ALIGN"
passed 3 arguments, but takes just 2
../../trunk/gcc/stor-layout.c: In function 'layout_decl':
../../trunk/gcc/stor-layout.c:449: error: 'ADJUST_FIELD_ALIGN'
undeclared (first use in this function)
../../trunk/gcc/stor-layout.c:449: error: (Each undeclared identifier is
reported only once
../../trunk/gcc/stor-layout.c:449: error: for each function it appears in.)
../../trunk/gcc/stor-layout.c:711:43: error: macro "ADJUST_FIELD_ALIGN"
passed 3 arguments, but takes just 2
../../trunk/gcc/stor-layout.c: In function 'update_alignment_for_field':
../../trunk/gcc/stor-layout.c:708: error: 'ADJUST_FIELD_ALIGN'
undeclared (first use in this function)
../../trunk/gcc/stor-layout.c:760:41: error: macro "ADJUST_FIELD_ALIGN"
passed 3 arguments, but takes just 2
../../trunk/gcc/stor-layout.c:994:44: error: macro "ADJUST_FIELD_ALIGN"
passed 3 arguments, but takes just 2
../../trunk/gcc/stor-layout.c: In function 'place_field':
../../trunk/gcc/stor-layout.c:991: error: 'ADJUST_FIELD_ALIGN'
undeclared (first use in this function)
../../trunk/gcc/stor-layout.c:1031:44: error: macro "ADJUST_FIELD_ALIGN"
passed 3 arguments, but takes just 2
make[1]: *** [stor-layout.o] Error 1
make[1]: Leaving directory `/home/varth/project/llvm-cvs/llvm-gcc4/obj/gcc'
make: *** [all-gcc] Error 2
I looked a bit at the source, and the gcc/config/darwin.h declares a
ADJUST_FIELD_ALIGN with two arguments whereas all other back-ends that
declare ADJUST_FIELD_ALIGN have only two arguments. And it seems that
stor-layout.c assumes that if we have ADJUST_FIELD_ALIGN defined, then
we're on darwin.
Nicolas
More information about the llvm-dev
mailing list