[LLVMdev] Problem Compiling llvm-gcc 4.2

Kinson Chan 陳傑信 kchan at cs.hku.hk
Sat Feb 2 01:25:38 PST 2008


>>

Dear All,

I have been trying for days but still cannot break this barrier. May I  
get your help?

I have compiled llvm-2.1 successfully and make install. When I proceed  
with llvm-gcc-4.2-2.1, however, I keep getting linking error as  
attached. Some functions with totally different content conflict with  
each other in linking process.

That is a Linux box (Debian, with 2.6.23-1 Kernel) and I have already  
tried combinations of --disable-shared and/or --disable-multilib. It  
get stuck at the same point.

Thanks to Chris, I just realized Java is not supported but have no  
idea how to disable it. I have read the README.LLVM and got no clue.  
(Maybe my English is not good enough - I am not native speaker.)

Once again, thank you all for the great work. Idea of LLVM is really  
attractive to forget about.

Regards,
Kinson

---
/home/kchan/llvm-gcc4.2-2.1.source/host-x86_64-unknown-linux-gnu/prev- 
gcc/xgcc -B/home/kchan/llvm-gcc4.2-2.1.source/host-x86_64-unknown- 
linux-gnu/prev-gcc/ -B/usr/local/x86_64-unknown-linux-gnu/bin/   -g - 
O2 -DIN_GCC   -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing- 
prototypes -pedantic -Wno-long-long -Wno-variadic-macros -Wold-style- 
definition -Wmissing-format-attribute    -DHAVE_CONFIG_H  -o jc1 \
       java/parse.o java/class.o java/decl.o java/expr.o java/ 
constants.o java/lang.o java/typeck.o java/except.o java/verify-glue.o  
java/verify-impl.o java/zextract.o java/jcf-io.o java/win32-host.o  
java/jcf-parse.o java/mangle.o java/mangle_name.o java/builtins.o java/ 
resource.o java/jcf-write.o java/buffer.o java/check-init.o java/jcf- 
depend.o java/jcf-path.o java/boehm.o java/java-gimplify.o main.o   
libbackend.a ../libcpp/libcpp.a  attribs.o stub-objc.o stub-c.o -L../ 
zlib -lz  ../libcpp/libcpp.a   ../libiberty/libiberty.a ../ 
libdecnumber/libdecnumber.a
/home/kchan/llvm-gcc4.2-2.1.source/host-x86_64-unknown-linux-gnu/prev- 
gcc/xgcc -B/home/kchan/llvm-gcc4.2-2.1.source/host-x86_64-unknown- 
linux-gnu/prev-gcc/ -B/usr/local/x86_64-unknown-linux-gnu/bin/   -g - 
O2 -DIN_GCC   -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing- 
prototypes -pedantic -Wno-long-long -Wno-variadic-macros -Wold-style- 
definition -Wmissing-format-attribute    -DHAVE_CONFIG_H  -o cc1obj- 
dummy \
         objc/objc-lang.o objc/objc-act.o attribs.o c-errors.o c-lex.o  
c-pragma.o c-decl.o c-typeck.o c-convert.o c-aux-info.o c-common.o c- 
opts.o c-format.o c-semantics.o c-incpath.o cppdefault.o c-ppoutput.o  
c-cppbuiltin.o prefix.o c-objc-common.o c-dump.o c-pch.o c-parser.o  c- 
gimplify.o tree-mudflap.o c-pretty-print.o c-omp.o dummy-checksum.o \
         main.o  libbackend.a ../libcpp/libcpp.a  ../libcpp/ 
libcpp.a   ../libiberty/libiberty.a ../libdecnumber/libdecnumber.a
build/genchecksum cc1-dummy > cc1-checksum.c
build/genchecksum cc1obj-dummy > cc1obj-checksum.c
attribs.o: In function `decl_attributes':
/home/kchan/llvm-gcc4.2-2.1.source/host-x86_64-unknown-linux-gnu/ 
gcc/../.././gcc/attribs.c:138: multiple definition of `decl_attributes'
java/lang.o:/home/kchan/llvm-gcc4.2-2.1.source/host-x86_64-unknown- 
linux-gnu/gcc/../.././gcc/java/lang.c:844: first defined here
stub-objc.o: In function `objc_is_class_name':
/home/kchan/llvm-gcc4.2-2.1.source/host-x86_64-unknown-linux-gnu/ 
gcc/../.././gcc/stub-objc.c:34: multiple definition of  
`objc_is_class_name'
java/lang.o:/home/kchan/llvm-gcc4.2-2.1.source/host-x86_64-unknown- 
linux-gnu/gcc/../.././gcc/java/lang.c:856: first defined here
stub-objc.o: In function `objc_v2_component_ref_field_offset':
/home/kchan/llvm-gcc4.2-2.1.source/host-x86_64-unknown-linux-gnu/ 
gcc/../.././gcc/stub-objc.c:474: multiple definition of  
`objc_v2_component_ref_field_offset'
java/lang.o:/home/kchan/llvm-gcc4.2-2.1.source/host-x86_64-unknown- 
linux-gnu/gcc/../.././gcc/java/lang.c:880: first defined here
stub-objc.o: In function `objc_v2_bitfield_ivar_bitpos':
/home/kchan/llvm-gcc4.2-2.1.source/host-x86_64-unknown-linux-gnu/ 
gcc/../.././gcc/stub-objc.c:480: multiple definition of  
`objc_v2_bitfield_ivar_bitpos'
java/lang.o:/home/kchan/llvm-gcc4.2-2.1.source/host-x86_64-unknown- 
linux-gnu/gcc/../.././gcc/java/lang.c:872: first defined here
stub-objc.o: In function `objc_method_decl':
/home/kchan/llvm-gcc4.2-2.1.source/host-x86_64-unknown-linux-gnu/ 
gcc/../.././gcc/stub-objc.c:494: multiple definition of  
`objc_method_decl'
java/lang.o:/home/kchan/llvm-gcc4.2-2.1.source/host-x86_64-unknown- 
linux-gnu/gcc/../.././gcc/java/lang.c:863: first defined here
stub-objc.o: In function `objc_create_init_utf16_var':
/home/kchan/llvm-gcc4.2-2.1.source/host-x86_64-unknown-linux-gnu/ 
gcc/../.././gcc/stub-objc.c:576: multiple definition of  
`objc_create_init_utf16_var'
java/lang.o:/home/kchan/llvm-gcc4.2-2.1.source/host-x86_64-unknown- 
linux-gnu/gcc/../.././gcc/java/lang.c:888: first defined here
stub-objc.o: In function `objc_anonymous_local_objc_name':
/home/kchan/llvm-gcc4.2-2.1.source/host-x86_64-unknown-linux-gnu/ 
gcc/../.././gcc/stub-objc.c:583: multiple definition of  
`objc_anonymous_local_objc_name'
java/lang.o:/home/kchan/llvm-gcc4.2-2.1.source/host-x86_64-unknown- 
linux-gnu/gcc/../.././gcc/java/lang.c:895: first defined here



More information about the llvm-dev mailing list