LLVM Bugzilla is read-only and represents the historical archive of all LLVM issues filled before November 26, 2021. Use github to submit LLVM bugs

Bug 14663 - Clang's Lib multiple definition
Summary: Clang's Lib multiple definition
Status: NEW
Alias: None
Product: clang
Classification: Unclassified
Component: -New Bugs (show other bugs)
Version: 3.2
Hardware: PC Windows NT
: P enhancement
Assignee: Unassigned Clang Bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-12-19 21:56 PST by Bowen.Lee
Modified: 2012-12-20 14:19 PST (History)
2 users (show)

See Also:
Fixed By Commit(s):


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Bowen.Lee 2012-12-19 21:56:16 PST
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
Comment 1 Bowen.Lee 2012-12-20 00:50:43 PST
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
Comment 2 Bowen.Lee 2012-12-20 14:19:52 PST
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