[LLVMdev] llvm-gcc4.2-2.4 build failure in /gcc/java/lang.c

Tielei Wang wangtielei at icst.pku.edu.cn
Thu Feb 12 23:58:45 PST 2009


I did follow the README.LLVM.

I configure like:
../llvm-gcc4.2-2.4.source/configure --program-prefix=llvm- 
--enable-llvm=/home/wangtielei/TOOLS/llvm/llvm-obj/ 
--enable-language=c,c++ --disable-jit --disable-multilib

The error information is
/home/wangtielei/TOOLS/llvm/llvm-gcc-obj/./prev-gcc/xgcc 
-B/home/wangtielei/TOOLS/llvm/llvm-gcc-obj/./prev-gcc/ 
-B/usr/local/x86_64-unknown-linux-gnu/bin/ -c -g -O2 -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 -DHAVE_CONFIG_H -I. 
-Ijava -I../../llvm-gcc4.2-2.4.source/gcc 
-I../../llvm-gcc4.2-2.4.source/gcc/java 
-I../../llvm-gcc4.2-2.4.source/gcc/../include 
-I../../llvm-gcc4.2-2.4.source/gcc/../libcpp/include 
-I../../llvm-gcc4.2-2.4.source/gcc/../libdecnumber -I../libdecnumber 
-I/home/wangtielei/TOOLS/llvm/llvm-obj//include 
-I/home/wangtielei/TOOLS/llvm/llvm-2.4/include -DENABLE_LLVM 
-I/home/wangtielei/TOOLS/llvm/llvm-obj/../llvm-2.4/include -D_DEBUG 
-D_GNU_SOURCE -D__STDC_LIMIT_MACROS 
../../llvm-gcc4.2-2.4.source/gcc/java/lang.c -o java/lang.o
../../llvm-gcc4.2-2.4.source/gcc/java/lang.c: In function ‘java_init’:
../../llvm-gcc4.2-2.4.source/gcc/java/lang.c:378: error: 
‘force_align_functions_log’ undeclared (first use in this function)

But I do not understand why xgcc is invoked to compile java.c file.

Could you give me more hints?


Chris Lattner wrote:
>
> On Feb 12, 2009, at 11:25 PM, Tielei Wang wrote:
>
>> Hi, every body,
>>
>> I get stuck when trying to build llvm-gcc4.2-2.4 on x86_64 Linux with
>> GCC-4.3.3. I meet this error:
>
> Make sure to follow the README.LLVM file in the llvm-gcc distro. 
> llvm-gcc doesn't support gcj yet at all.
>
> -Chris
>




More information about the llvm-dev mailing list