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

Anatoly Yakovenko aeyakovenko at gmail.com
Thu May 20 13:04:46 PDT 2010


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?



More information about the llvm-dev mailing list