[LLVMbugs] [Bug 22542] New: multiple definition of `__clang_call_terminate' under mingw
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Wed Feb 11 01:31:33 PST 2015
http://llvm.org/bugs/show_bug.cgi?id=22542
Bug ID: 22542
Summary: multiple definition of `__clang_call_terminate' under
mingw
Product: new-bugs
Version: unspecified
Hardware: PC
OS: Windows NT
Status: NEW
Severity: normal
Priority: P
Component: new bugs
Assignee: unassignedbugs at nondot.org
Reporter: yaron.keren at gmail.com
CC: llvmbugs at cs.uiuc.edu
Classification: Unclassified
Created attachment 13840
--> http://llvm.org/bugs/attachment.cgi?id=13840&action=edit
first source file
Compiling the attached sources:
clang++ *.cpp
results in linking error, multiple definition of `__clang_call_terminate'.
This is probably the result of COFF not supporting the Linkage/Visibility
getClangCallTerminateFn uses:
// Allow this function to be shared across translation units, but
// we don't want it to turn into an exported symbol.
fn->setLinkage(llvm::Function::LinkOnceODRLinkage);
fn->setVisibility(llvm::Function::HiddenVisibility);
As a fix maybe another Linkage/Visibility combination will work or we could
turn off useClangCallTerminate() for mingw/coff targets.
--
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20150211/4cf9b315/attachment.html>
More information about the llvm-bugs
mailing list