The patch is no longer necessary for version 2.1-0~exp1.

Unfortunately, it fails the build later:

/usr/lib/ccache/gcc -c   -g -fkeep-inline-functions -DIN_GCC   -W -Wall 
-Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -pedantic 
-Wno-long-long -Wno-variadic-macros -Wold-style-definition 
-Wmissing-format-attribute -fno-common   -DHAVE_CONFIG_H -I. -I. 
-I../../llvm-gcc4.2-2.1.source/gcc -I../../llvm-gcc4.2-2.1.source/gcc/. 
-I../../llvm-gcc4.2-2.1.source/gcc/../include 
-I../../llvm-gcc4.2-2.1.source/gcc/../libcpp/include  
-I../../llvm-gcc4.2-2.1.source/gcc/../libdecnumber -I../libdecnumber 
-I/tmp/buildd/llvm-2.1/llvm-2.1/include 
-I/tmp/buildd/llvm-2.1/build-llvm/include -DENABLE_LLVM 
-I/tmp/buildd/llvm-2.1/build-llvm/../llvm-2.1/include  -D_DEBUG  -D_GNU_SOURCE 
-D__STDC_LIMIT_MACROS   ../../llvm-gcc4.2-2.1.source/gcc/stor-layout.c -o 
stor-layout.o
../../llvm-gcc4.2-2.1.source/gcc/stor-layout.c:455:25: error: macro 
"ADJUST_FIELD_ALIGN" passed 3 arguments, but takes just 2
../../llvm-gcc4.2-2.1.source/gcc/stor-layout.c: In function 'layout_decl':
../../llvm-gcc4.2-2.1.source/gcc/stor-layout.c:454: error: 'ADJUST_FIELD_ALIGN' 
undeclared (first use in this function)
../../llvm-gcc4.2-2.1.source/gcc/stor-layout.c:454: error: (Each undeclared 
identifier is reported only once
../../llvm-gcc4.2-2.1.source/gcc/stor-layout.c:454: error: for each function it 
appears in.)
../../llvm-gcc4.2-2.1.source/gcc/stor-layout.c:726:43: error: macro 
"ADJUST_FIELD_ALIGN" passed 3 arguments, but takes just 2
../../llvm-gcc4.2-2.1.source/gcc/stor-layout.c: In function 
'update_alignment_for_field':
../../llvm-gcc4.2-2.1.source/gcc/stor-layout.c:723: error: 'ADJUST_FIELD_ALIGN' 
undeclared (first use in this function)
../../llvm-gcc4.2-2.1.source/gcc/stor-layout.c:773:41: error: macro 
"ADJUST_FIELD_ALIGN" passed 3 arguments, but takes just 2
../../llvm-gcc4.2-2.1.source/gcc/stor-layout.c:1030:44: error: macro 
"ADJUST_FIELD_ALIGN" passed 3 arguments, but takes just 2
../../llvm-gcc4.2-2.1.source/gcc/stor-layout.c: In function 'place_field':
../../llvm-gcc4.2-2.1.source/gcc/stor-layout.c:1027: error: 
'ADJUST_FIELD_ALIGN' undeclared (first use in this function)
../../llvm-gcc4.2-2.1.source/gcc/stor-layout.c:1067:44: error: macro 
"ADJUST_FIELD_ALIGN" passed 3 arguments, but takes just 2
make[4]: *** [stor-layout.o] Error 1
make[4]: Leaving directory `/tmp/buildd/llvm-2.1/build-gcc/gcc'
make[3]: *** [all-stage1-gcc] Error 2
make[3]: Leaving directory `/tmp/buildd/llvm-2.1/build-gcc'
make[2]: *** [stage1-bubble] Error 2
make[2]: Leaving directory `/tmp/buildd/llvm-2.1/build-gcc'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/tmp/buildd/llvm-2.1/build-gcc'
make: *** [stamps/build-stamp-llvm-cfe] Error 2
dpkg-buildpackage: failure: debian/rules build gave error exit status 2
pbuilder: Failed autobuilding of package
W: no hooks of type C found -- ignoring
 -> Aborting with an error
 -> unmounting /var/cache/ccache filesystem
 -> unmounting /var/cache/apt/archives filesystem
 -> unmounting dev/pts filesystem
 -> unmounting proc filesystem
 -> cleaning the build env 
    -> removing directory /var/cache/pbuilder/build//23151 and its 
subdirectories

This is known upstream: http://llvm.org/bugs/show_bug.cgi?id=916

Should we switch this bug to tracking that issue, or mark it as fixed in
that version and create a new one?


As a sidenote, I've successfully built and used (for the Mesa Gallium3D
branch) a recent LLVM SVN snapshot on powerpc. Maybe the C frontend(s)
should be built from a separate source package?


-- 
Earthling Michel Dänzer           |          http://tungstengraphics.com
Libre software enthusiast         |          Debian, X and DRI developer


Reply via email to