[LLVMdev] building for sparc-sun-solaris2.10
luked at cs.rochester.edu
Sat Nov 1 04:32:43 PDT 2008
Luke Dalessandro wrote:
> OK. So I've discovered --with-sysroot which seems to be grabbing and
> patching the include files correctly. Now it's dieing with
> ./options.h:462: error: 'HOST_BITS_PER_INT' undeclared here (not in a
> ./options.h:462: error: bit-field 'padding' width not an integer constant
> which appears to be llvm-gcc specific because it doesn't happen in
> vanilla 4.2.4.
> I'm definitely moving forward though. Thanks for the advice.
Anton helped me out on irc. For anyone that needs it, the solution was
to add #define IN_LIBGCC2 in the beginning of sol2-gmon.c file before
Now I get to an ICE
/Users/luked/opt/sparc/sparc-sun-solaris2.10/sys-include -O2 -O2 -g
-O2 -DIN_GCC -DCROSS_DIRECTORY_STRUCTURE -W -Wall -Wwrite-strings
-Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition
-isystem ./include -fPIC -g -DHAVE_GTHR_DEFAULT -DIN_LIBGCC2
-D__GCC_FLOAT_NOT_NEEDED -I. -I. -I../../../../src/llvm-gcc-svn/gcc
-fvisibility=hidden -DHIDE_EXPORTS -c
../../../../src/llvm-gcc-svn/gcc/libgcc2.c -o libgcc/./_powitf2.o
../../../../src/llvm-gcc-svn/gcc/libgcc2.c: In function '__powitf2':
../../../../src/llvm-gcc-svn/gcc/libgcc2.c:1765: internal compiler
error: in HandleArgument, at llvm-abi.h:520
It seems like the sparc-sun-solaris2.10 triple isn't currently supported
correctly. I'm considering trying to fix it myself, but my research is
in scalable shared memory programming, not the intricacies of gcc and
the sparc-solaris ABI.
Can anyone give me a feeling on how much time getting llvm-gcc to
produce sparc-solaris IR is likely to take someone with 0 familiarity?
Or pointers to documentation. Is reading the llvm-gcc source really the
best way to learn about it?
>> LLVM Developers mailing list
>> LLVMdev at cs.uiuc.edu http://llvm.cs.uiuc.edu
> LLVM Developers mailing list
> LLVMdev at cs.uiuc.edu http://llvm.cs.uiuc.edu
More information about the llvm-dev