[LLVMdev] Issue compiling llvm-gcc frontend on sparc

Raghu Prabhakar raghu at cs.ucla.edu
Sun Sep 26 15:23:09 PDT 2010


Hi all,

I have successfully built LLVM itself, as all the tools (llc et al) are working fine. I built the latest release version (2.7). I have been trying to build the llvm-gcc frontend on a sparc machine. I encountered the following issues :

1) During configuration, the default assembler (installed at /usr/ccs/bin) is chosen to be used, but I want to use the GNU assembler (installed at /vm/GNU/bin in my machine). In spite of re-arranging paths on the PATH variable, and even after removing /usr/ccs/bin from PATH, configure still chooses the default assembler itself. Is there any other way I can tell configure to use the GNU assembler ?

2) During build, I get the following error :

gcc -c   -g -DIN_GCC   -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings -Wold-style-definition -Wmissing-format-attribute -fno-common   -DHAVE_CONFIG_H -DGENERATOR_FILE -I. -Ibuild -I../../llvm-gcc-4.2-2.7.source/gcc -I../../llvm-gcc-4.2-2.7.source/gcc/build -I../../llvm-gcc-4.2-2.7.source/gcc/../include -I./../intl -I../../llvm-gcc-4.2-2.7.source/gcc/../libcpp/include -I/vm/GNU/include/ -I/vm/GNU/include/ -I../../llvm-gcc-4.2-2.7.source/gcc/../libdecnumber -I../libdecnumber -I/curr/raghu/cross-compiled/obj//include -I/include -DENABLE_LLVM -I/curr/raghu/cross-compiled/obj/Release/include  -D_DEBUG -include llvm/System/Solaris.h -D_GNU_SOURCE -D__STDC_LIMIT_MACROS -D__STDC_CONSTANT_MACROS   -o build/genmodes.o ../../llvm-gcc-4.2-2.7.source/gcc/genmodes.c

cc1: error: llvm/System/Solaris.h: No such file or directory

There is, in fact, no Solaris.h in the llvm/System directory. Am I missing something here ? Kindly help.

Regards,
Raghu.





More information about the llvm-dev mailing list