trying to build llvm-gcc for arm, error: 'V1DI_pointer_node' undeclared (first use in this function)

i am getting this compilation error:

gcc -c -g -O2 -DIN_GCC -DCROSS_DIRECTORY_STRUCTURE -W -Wall
-Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -pedantic
-Wno-long-long -Wno-variadic-macros -Wno-overlength-strings
-Wold-style-definition -Wmissing-format-attribute -DHAVE_CONFIG_H
-I. -I. -I../../llvm-gcc-4.2-2.7.source/gcc
-I../../llvm-gcc-4.2-2.7.source/gcc/.
-I../../llvm-gcc-4.2-2.7.source/gcc/../include
-I../../llvm-gcc-4.2-2.7.source/gcc/../libcpp/include
-I../../llvm-gcc-4.2-2.7.source/gcc/../libdecnumber -I../libdecnumber
  \
                ../../llvm-gcc-4.2-2.7.source/gcc/config/arm/arm.c -o arm.o
In file included from ../../llvm-gcc-4.2-2.7.source/gcc/config/arm/arm.c:59:
../../llvm-gcc-4.2-2.7.source/gcc/../libcpp/include/../../libcpp/internal.h:
In function 'ufputs':
../../llvm-gcc-4.2-2.7.source/gcc/../libcpp/include/../../libcpp/internal.h:693:
warning: implicit declaration of function 'fputs_unlocked'
../../llvm-gcc-4.2-2.7.source/gcc/config/arm/arm.c: In function
'arm_init_neon_builtins':
../../llvm-gcc-4.2-2.7.source/gcc/config/arm/arm.c:17355: error:
'V1DI_pointer_node' undeclared (first use in this function)
../../llvm-gcc-4.2-2.7.source/gcc/config/arm/arm.c:17355: error: (Each
undeclared identifier is reported only once
../../llvm-gcc-4.2-2.7.source/gcc/config/arm/arm.c:17355: error: for
each function it appears in.)
make[3]: *** [arm.o] Error 1
make[3]: Leaving directory
`/home/anatolyy/qctp406/pakman/depot/users/anatolyy/proto/crosscompiler/llvm-gcc-4.2-2.7.source-objtree/gcc'
make[2]: *** [all-gcc] Error 2
make[2]: Leaving directory
`/home/anatolyy/qctp406/pakman/depot/users/anatolyy/proto/crosscompiler/llvm-gcc-4.2-2.7.source-objtree'
make[1]: *** [all] Error 2
make[1]: Leaving directory
`/home/anatolyy/qctp406/pakman/depot/users/anatolyy/proto/crosscompiler/llvm-gcc-4.2-2.7.source-objtree'
make: *** [/home/anatolyy/qctp406/pakman/depot/users/anatolyy/proto/crosscompiler/arm-elf/bin/arm-elf-gcc]
Error 2

this is how i've configured llvm-gcc, this configuration has worked
for me for gcc 4.2 - 4.5

./configure --enable-multilib --enable-target-optspace
--enable-interwork --with-newlib --with-gnu-as --with-gnu-ld
--enable-languages=c,c++ --target=arm-elf --prefix=$(installdir)

Any ideas?

You need to configure with --enable-llvm.

(It would still be nice if V1DI_pointer_node was defined; I'll take a look at that.)

Thanks, i got a little farther, but i am getting a bunch of linker errors now:

libbackend.a(llvm-convert.o): In function `getPointerAlignment':
llvm-gcc-4.2-2.7.source-objtree/gcc/../../llvm-gcc-4.2-2.7.source/gcc/llvm-convert.cpp:142:
undefined reference to `get_pointer_alignment'