Adrian Alin Lifa
2009-Mar-13 18:55 UTC
[LLVMdev] llvm-gcc4.2-2.5 front-end build problems on SunOS
Hello all, I am trying to install the llvm-gcc front end to use it in one of my projects, but I got stuck.. I am working on a Sun workstation: SunOS xxx 5.10 Generic_137137-09 sun4u sparc SUNW,Sun-Fire-V240 and I have gcc version 3.4.6: Reading specs from /sw/gcc-3.4.6/lib/gcc/sparc-sun-solaris2.10/3.4.6/specs Configured with: /.scratch/andjo/lsw/src/gcc/gcc-3.4.6/configure --prefix=/sw/gcc-3.4.6 --enable-languages=ada,c,c++,f77,java,objc --enable-shared=libstdc++ --enable-cpp Thread model: posix gcc version 3.4.6 I built and installes LLVM 2.5 and everything worked fine, but now I have problems with the llvm-gcc front end. When I run "gmake LLVM_VERSION_INFO=2.5" I get the following error: /home/g-adrli/llvm/llvm-gcc/obj/./gcc/xgcc -B/home/g-adrli/llvm/llvm-gcc/obj/./gcc/ -B/home/g-adrli/llvm/llvm-gcc/obj/../install/sparc-sun-solaris2.10/bin/ -B/home/g-adrli/llvm/llvm-gcc/obj/../install/sparc-sun-solaris2.10/lib/ -isystem /home/g-adrli/llvm/llvm-gcc/obj/../install/sparc-sun-solaris2.10/include -isystem /home/g-adrli/llvm/llvm-gcc/obj/../install/sparc-sun-solaris2.10/sys-include -O2 -g -O2 -DIN_GCC -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -isystem ./include -I. -I. -I../../llvm-gcc4.2-2.5.source/gcc -I../../llvm-gcc4.2-2.5.source/gcc/. -I../../llvm-gcc4.2-2.5.source/gcc/../include -I../../llvm-gcc4.2-2.5.source/gcc/../libcpp/include -I../../llvm-gcc4.2-2.5.source/gcc/../libdecnumber -I../libdecnumber -I/home/g-adrli/llvm/llvm-2.5/obj/include -I/home/g-adrli/llvm/llvm-2.5/include \ -c ../../llvm-gcc4.2-2.5.source/gcc/config/sparc/gmon-sol2.c -o gmon.o In file included from ./tm.h:5, from ../../llvm-gcc4.2-2.5.source/gcc/config/sparc/gmon-sol2.c:39: ./options.h:463: error: 'HOST_BITS_PER_INT' undeclared here (not in a function) ./options.h:463: error: bit-field 'padding' width not an integer constant gmake[3]: *** [gmon.o] Error 1 gmake[3]: Leaving directory `/home/g-adrli/llvm/llvm-gcc/obj/gcc' gmake[2]: *** [all-stage1-gcc] Error 2 gmake[2]: Leaving directory `/home/g-adrli/llvm/llvm-gcc/obj' gmake[1]: *** [stage1-bubble] Error 2 gmake[1]: Leaving directory `/home/g-adrli/llvm/llvm-gcc/obj' gmake: *** [all] Error 2 Could you please help me with this issue.. Thanks, Adrian
Luke Dalessandro
2009-Mar-13 20:36 UTC
[LLVMdev] llvm-gcc4.2-2.5 front-end build problems on SunOS
Adrian Alin Lifa wrote:> Hello all, > > I am trying to install the llvm-gcc front end to use it in one of my > projects, but I got stuck.. I am working on a Sun workstation: > > SunOS xxx 5.10 Generic_137137-09 sun4u sparc SUNW,Sun-Fire-V240llvm-gcc doesn't build correctly for SPARC. You can fix this error by adding #define IN_LIBGCC2 in the beginning of sol2-gmon.c file before its includes, but then you'll get some errors related to floating point support. As far as I know sparc support in llvm-gcc is still in a "patches welcome" stage. Luke> > and I have gcc version 3.4.6: > > Reading specs from /sw/gcc-3.4.6/lib/gcc/sparc-sun-solaris2.10/3.4.6/specs > Configured with: /.scratch/andjo/lsw/src/gcc/gcc-3.4.6/configure > --prefix=/sw/gcc-3.4.6 --enable-languages=ada,c,c++,f77,java,objc > --enable-shared=libstdc++ --enable-cpp > Thread model: posix > gcc version 3.4.6 > > I built and installes LLVM 2.5 and everything worked fine, but now I > have problems with the llvm-gcc front end. When I run "gmake > LLVM_VERSION_INFO=2.5" I get the following error: > > /home/g-adrli/llvm/llvm-gcc/obj/./gcc/xgcc > -B/home/g-adrli/llvm/llvm-gcc/obj/./gcc/ > -B/home/g-adrli/llvm/llvm-gcc/obj/../install/sparc-sun-solaris2.10/bin/ > -B/home/g-adrli/llvm/llvm-gcc/obj/../install/sparc-sun-solaris2.10/lib/ > -isystem > /home/g-adrli/llvm/llvm-gcc/obj/../install/sparc-sun-solaris2.10/include > -isystem > /home/g-adrli/llvm/llvm-gcc/obj/../install/sparc-sun-solaris2.10/sys-include > -O2 -g -O2 -DIN_GCC -W -Wall -Wwrite-strings -Wstrict-prototypes > -Wmissing-prototypes -Wold-style-definition -isystem ./include -I. -I. > -I../../llvm-gcc4.2-2.5.source/gcc -I../../llvm-gcc4.2-2.5.source/gcc/. > -I../../llvm-gcc4.2-2.5.source/gcc/../include > -I../../llvm-gcc4.2-2.5.source/gcc/../libcpp/include > -I../../llvm-gcc4.2-2.5.source/gcc/../libdecnumber -I../libdecnumber > -I/home/g-adrli/llvm/llvm-2.5/obj/include > -I/home/g-adrli/llvm/llvm-2.5/include \ > -c ../../llvm-gcc4.2-2.5.source/gcc/config/sparc/gmon-sol2.c -o > gmon.o > In file included from ./tm.h:5, > from > ../../llvm-gcc4.2-2.5.source/gcc/config/sparc/gmon-sol2.c:39: > ./options.h:463: error: 'HOST_BITS_PER_INT' undeclared here (not in a > function) > ./options.h:463: error: bit-field 'padding' width not an integer constant > gmake[3]: *** [gmon.o] Error 1 > gmake[3]: Leaving directory `/home/g-adrli/llvm/llvm-gcc/obj/gcc' > gmake[2]: *** [all-stage1-gcc] Error 2 > gmake[2]: Leaving directory `/home/g-adrli/llvm/llvm-gcc/obj' > gmake[1]: *** [stage1-bubble] Error 2 > gmake[1]: Leaving directory `/home/g-adrli/llvm/llvm-gcc/obj' > gmake: *** [all] Error 2 > > Could you please help me with this issue.. > Thanks, > Adrian > _______________________________________________ > 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] building for sparc-sun-solaris2.10
- [LLVMdev] building for sparc-sun-solaris2.10
- [LLVMdev] building for sparc-sun-solaris2.10
- [LLVMdev] llvm-gcc (pre-release and svn sources) fails to compile on Solaris10/SPARC
- R compilation problem on 64 bit SunOS (PR#13898)