[LLVMdev] llvm-gcc4.2-2.5 front-end build problems on SunOS

Adrian Alin Lifa g-adrli at ida.liu.se
Fri Mar 13 11:55:50 PDT 2009


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



More information about the llvm-dev mailing list