[LLVMdev] build the llvm-gcc from source, error occur.

Tanya Lattner lattner at apple.com
Fri Sep 4 09:14:34 PDT 2009


On Sep 4, 2009, at 7:12 AM, Sheng Wang wrote:

> I first install the gcc-4.2.4 .
> then I set CC and CXX
>      export CC= "path of my gcc-4.2.4"
>      export CXX="path of my g++-4.2.4"
>
> after that  , I config and make .
> error occur like this :
> /home/ws/software/gcc-4-2/bin/gcc -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.5.source/gcc -I../../llvm- 
> gcc4.2-2.5.source/gcc/java -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/ws/software/build-llvm-gcc/../build-llvm//include -I/home/ws/ 
> software/llvm-2.5/include -DENABLE_LLVM -I/home/ws/software/build- 
> llvm/../llvm-2.5/include  -D_DEBUG  -D_GNU_SOURCE - 
> D__STDC_LIMIT_MACROS -D__STDC_CONSTANT_MACROS   ../../llvm- 
> gcc4.2-2.5.source/gcc/java/lang.c -o java/lang.o
> ../../llvm-gcc4.2-2.5.source/gcc/java/lang.c: In  
> function‘java_init’中:
> ../../llvm-gcc4.2-2.5.source/gcc/java/lang.c:378:  
> error:‘force_align_functions_log’not declare ( occur first in the  
> function)
> .............
>
> what matter I only enable-language c, c++, ada tube java  ?
>

Please follow the directions in the README.LLVM file (in llvm-gcc src)  
exactly. It will tell you what languages to enable (never java). If  
you do not follow it exactly, you will most likely run into problems.

-Tanya

>
>
>
>
> _______________________________________________
> LLVM Developers mailing list
> LLVMdev at cs.uiuc.edu         http://llvm.cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev





More information about the llvm-dev mailing list