Quuxplusone / LLVMBugzillaTest

0 stars 0 forks source link

Clang's Lib multiple definition #14669

Open Quuxplusone opened 11 years ago

Quuxplusone commented 11 years ago
Bugzilla Link PR14663
Status NEW
Importance P enhancement
Reported by Bowen.Lee (ipvb@qq.com)
Reported on 2012-12-19 21:56:16 -0800
Last modified on 2012-12-20 14:19:52 -0800
Version 3.2
Hardware PC Windows NT
CC geek4civic@gmail.com, llvm-bugs@lists.llvm.org
Fixed by commit(s)
Attachments
Blocks
Blocked by
See also
When I use LLVM&Clang 3.1&MinGW ( GCC 4.6.2 ) compile LLVM/Clang3.2. There has
been a problem。

Problem:

llvm[4]: Linking Release executable clang (without symbols)
f:/SVN/LLVM/3.2/llvm/Release/lib/libclangAST.a(AttrImpl.o):fake:(.text$_ZN5clang15InheritableAttrD0Ev+0x0):
mu ltiple definition of `clang::InheritableAttr::~InheritableAttr()'
f:/SVN/LLVM/3.2/llvm/Release/lib/libclangSerialization.a(ASTReaderDecl.o):fake:(.text$_ZN5clang15InheritableAt
trD0Ev[clang::InheritableAttr::~InheritableAttr()]+0x0): first defined here
f:/SVN/LLVM/3.2/llvm/Release/lib/libclangAST.a(AttrImpl.o):fake:(.text$_ZN5clang20InheritableParamAttrD0Ev+0x0
): multiple definition of `clang::InheritableParamAttr::~InheritableParamAttr()'
f:/SVN/LLVM/3.2/llvm/Release/lib/libclangSerialization.a(ASTReaderDecl.o):fake:(.text$_ZN5clang20InheritablePa
ramAttrD0Ev[clang::InheritableParamAttr::~InheritableParamAttr()]+0x0): first
defined here
collect2: ld returned 1 exit status
clang++: error: linker (via gcc) command failed with exit code 1 (use -v to see
invocation)
make[4]: *** [/f/SVN/LLVM/3.2/llvm/Release/bin/clang.exe] Error 1
make[4]: Leaving directory `/f/SVN/LLVM/3.2/llvm/tools/clang/tools/driver'
make[3]: *** [all] Error 1
make[3]: Leaving directory `/f/SVN/LLVM/3.2/llvm/tools/clang/tools'
make[2]: *** [all] Error 1
make[2]: Leaving directory `/f/SVN/LLVM/3.2/llvm/tools/clang'
make[1]: *** [clang/.makeall] Error 2
make[1]: Leaving directory `/f/SVN/LLVM/3.2/llvm/tools'
make: *** [all] Error 1
Quuxplusone commented 11 years ago
When I use the MinGW without LLVM/Clang, successfully constructing LLVM
I think it is a Clang++ compiler and g++ compiler way exists difference, the
source code should compile your clang++ and g++ compiler distinguished
Quuxplusone commented 11 years ago
If the first built by MinGW LLVM/Clang 3.2 and LLVM/Clang 3.2 with llvm/clang
3.2 installation and construction of llvm/clang 3.2 can be constructed
successfully!
Problems in LLVM/Clang 3.1