Anatoly Yakovenko
2010-May-20 20:04 UTC
[LLVMdev] 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?
Bob Wilson
2010-May-20 20:15 UTC
[LLVMdev] trying to build llvm-gcc for arm, error: 'V1DI_pointer_node' undeclared (first use in this function)
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.) On May 20, 2010, at 1:04 PM, Anatoly Yakovenko wrote:> 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? > _______________________________________________ > LLVM Developers mailing list > LLVMdev at cs.uiuc.edu http://llvm.cs.uiuc.edu > http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev
Anatoly Yakovenko
2010-May-20 20:52 UTC
[LLVMdev] trying to build llvm-gcc for arm, error: 'V1DI_pointer_node' undeclared (first use in this function)
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' On Thu, May 20, 2010 at 1:15 PM, Bob Wilson <bob.wilson at apple.com> wrote:> 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.) > > On May 20, 2010, at 1:04 PM, Anatoly Yakovenko wrote: > >> 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? >> _______________________________________________ >> LLVM Developers mailing list >> LLVMdev at cs.uiuc.edu http://llvm.cs.uiuc.edu >> http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev > >
Reasonably Related Threads
- [LLVMdev] trying to build llvm-gcc for arm, error: 'V1DI_pointer_node' undeclared (first use in this function)
- [LLVMdev] linker errors when trying to link llvm-gcc
- [LLVMdev] linker errors when trying to link llvm-gcc
- [LLVMdev] linker errors when trying to link llvm-gcc
- [LLVMdev] linker errors when trying to link llvm-gcc