<html>
<head>
<base href="https://llvm.org/bugs/" />
</head>
<body><table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Bug ID</th>
<td><a class="bz_bug_link
bz_status_NEW "
title="NEW --- - Compilation of a function in a large C++ project with -flto leads to bitcode files that can't be linked together with llvm-link"
href="https://llvm.org/bugs/show_bug.cgi?id=28072">28072</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>Compilation of a function in a large C++ project with -flto leads to bitcode files that can't be linked together with llvm-link
</td>
</tr>
<tr>
<th>Product</th>
<td>clang
</td>
</tr>
<tr>
<th>Version</th>
<td>trunk
</td>
</tr>
<tr>
<th>Hardware</th>
<td>Macintosh
</td>
</tr>
<tr>
<th>OS</th>
<td>MacOS X
</td>
</tr>
<tr>
<th>Status</th>
<td>NEW
</td>
</tr>
<tr>
<th>Severity</th>
<td>normal
</td>
</tr>
<tr>
<th>Priority</th>
<td>P
</td>
</tr>
<tr>
<th>Component</th>
<td>C++
</td>
</tr>
<tr>
<th>Assignee</th>
<td>unassignedclangbugs@nondot.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>chris.schaf@verizon.net
</td>
</tr>
<tr>
<th>CC</th>
<td>dgregor@apple.com, llvm-bugs@lists.llvm.org
</td>
</tr>
<tr>
<th>Classification</th>
<td>Unclassified
</td>
</tr></table>
<p>
<div>
<pre>Created <span class=""><a href="attachment.cgi?id=16504" name="attach_16504" title="One of the bad bitcode files">attachment 16504</a> <a href="attachment.cgi?id=16504&action=edit" title="One of the bad bitcode files">[details]</a></span>
One of the bad bitcode files
I have a large project in which there is one function that when it's compiled
with -flto leads to a bitcode file that can't be llvm-link'd with other bitcode
files in the project.
When I do this:
llvm-link -o clasp.lbc weakHashTable.cc.1.o.ll gcweak.cc.1.o.ll
I get this...
Referencing global in another module!
i64* @_ZN3reg16registered_classIPN4core3T_OEE2idE
; ModuleID =
'/Users/meister/Development/clasp/wbuild/clasp_boehm_o/src/core/weakHashTable.cc.1.o'
i64* @_ZN3reg16registered_classIPN4core3T_OEE2idE
; ModuleID = 'llvm-link'
Referencing global in another module!
i64* @_ZN3reg16registered_classIN4core8Fixnum_IEE2idE
; ModuleID =
'/Users/meister/Development/clasp/wbuild/clasp_boehm_o/src/core/weakHashTable.cc.1.o'
i64* @_ZN3reg16registered_classIN4core8Fixnum_IEE2idE
; ModuleID = 'llvm-link'
Referencing global in another module!
%"class.core::General_O"** @_ZN5boost6systemL14posix_categoryE.317
; ModuleID =
'/Users/meister/Development/clasp/wbuild/clasp_boehm_o/src/core/weakHashTable.cc.1.o'
%"class.core::General_O"** @_ZN5boost6systemL14posix_categoryE.317
; ModuleID = 'llvm-link'
Referencing global in another module!
%"class.core::General_O"** @_ZN5boost6systemL10errno_ecatE.316
; ModuleID =
'/Users/meister/Development/clasp/wbuild/clasp_boehm_o/src/core/weakHashTable.cc.1.o'
%"class.core::General_O"** @_ZN5boost6systemL10errno_ecatE.316
; ModuleID = 'llvm-link'
Referencing global in another module!
%"class.core::General_O"** @_ZN5boost6systemL11native_ecatE.315
; ModuleID =
'/Users/meister/Development/clasp/wbuild/clasp_boehm_o/src/core/weakHashTable.cc.1.o'
%"class.core::General_O"** @_ZN5boost6systemL11native_ecatE.315
; ModuleID = 'llvm-link'
Referencing global in another module!
%"class.std::__1::basic_string"* @_ZL5ClPkg.314
; ModuleID =
'/Users/meister/Development/clasp/wbuild/clasp_boehm_o/src/core/weakHashTable.cc.1.o'
%"class.std::__1::basic_string"* @_ZL5ClPkg.314
; ModuleID = 'llvm-link'
Referencing global in another module!
%"class.std::__1::basic_string"* @_ZN2clL10CurrentPkgE.313
; ModuleID =
'/Users/meister/Development/clasp/wbuild/clasp_boehm_o/src/core/weakHashTable.cc.1.o'
%"class.std::__1::basic_string"* @_ZN2clL10CurrentPkgE.313
; ModuleID = 'llvm-link'
Referencing global in another module!
%"class.std::__1::basic_string"* @_ZL7CorePkg.312
; ModuleID =
'/Users/meister/Development/clasp/wbuild/clasp_boehm_o/src/core/weakHashTable.cc.1.o'
%"class.std::__1::basic_string"* @_ZL7CorePkg.312
; ModuleID = 'llvm-link'
Referencing global in another module!
%"class.std::__1::basic_string"* @_ZN4coreL10CurrentPkgE.311
; ModuleID =
'/Users/meister/Development/clasp/wbuild/clasp_boehm_o/src/core/weakHashTable.cc.1.o'
%"class.std::__1::basic_string"* @_ZN4coreL10CurrentPkgE.311
; ModuleID = 'llvm-link'
Referencing global in another module!
%"class.std::__1::basic_string"* @_ZL10KeywordPkg.310
; ModuleID =
'/Users/meister/Development/clasp/wbuild/clasp_boehm_o/src/core/weakHashTable.cc.1.o'
%"class.std::__1::basic_string"* @_ZL10KeywordPkg.310
; ModuleID = 'llvm-link'
Referencing global in another module!
%"class.std::__1::basic_string"* @_ZN2kwL10CurrentPkgE.309
; ModuleID =
'/Users/meister/Development/clasp/wbuild/clasp_boehm_o/src/core/weakHashTable.cc.1.o'
%"class.std::__1::basic_string"* @_ZN2kwL10CurrentPkgE.309
; ModuleID = 'llvm-link'
Referencing global in another module!
%"class.std::__1::basic_string"* @_ZL6ExtPkg.308
; ModuleID =
'/Users/meister/Development/clasp/wbuild/clasp_boehm_o/src/core/weakHashTable.cc.1.o'
%"class.std::__1::basic_string"* @_ZL6ExtPkg.308
; ModuleID = 'llvm-link'
Referencing global in another module!
%"class.std::__1::basic_string"* @_ZN3extL10CurrentPkgE.307
; ModuleID =
'/Users/meister/Development/clasp/wbuild/clasp_boehm_o/src/core/weakHashTable.cc.1.o'
%"class.std::__1::basic_string"* @_ZN3extL10CurrentPkgE.307
; ModuleID = 'llvm-link'
Referencing global in another module!
%"class.std::__1::basic_string"* @_ZL7CompPkg.306
; ModuleID =
'/Users/meister/Development/clasp/wbuild/clasp_boehm_o/src/core/weakHashTable.cc.1.o'
%"class.std::__1::basic_string"* @_ZL7CompPkg.306
; ModuleID = 'llvm-link'
Referencing global in another module!
%"class.std::__1::basic_string"* @_ZN4compL10CurrentPkgE.305
; ModuleID =
'/Users/meister/Development/clasp/wbuild/clasp_boehm_o/src/core/weakHashTable.cc.1.o'
%"class.std::__1::basic_string"* @_ZN4compL10CurrentPkgE.305
; ModuleID = 'llvm-link'
Referencing global in another module!
%"class.std::__1::basic_string"* @_ZL7ClosPkg.304
; ModuleID =
'/Users/meister/Development/clasp/wbuild/clasp_boehm_o/src/core/weakHashTable.cc.1.o'
%"class.std::__1::basic_string"* @_ZL7ClosPkg.304
; ModuleID = 'llvm-link'
Referencing global in another module!
%"class.std::__1::basic_string"* @_ZN4closL10CurrentPkgE.303
; ModuleID =
'/Users/meister/Development/clasp/wbuild/clasp_boehm_o/src/core/weakHashTable.cc.1.o'
%"class.std::__1::basic_string"* @_ZN4closL10CurrentPkgE.303
; ModuleID = 'llvm-link'
Referencing global in another module!
%"class.std::__1::basic_string"* @_ZL7GrayPkg.302
; ModuleID =
'/Users/meister/Development/clasp/wbuild/clasp_boehm_o/src/core/weakHashTable.cc.1.o'
%"class.std::__1::basic_string"* @_ZL7GrayPkg.302
; ModuleID = 'llvm-link'
Referencing global in another module!
%"class.std::__1::basic_string"* @_ZN4grayL10CurrentPkgE.301
; ModuleID =
'/Users/meister/Development/clasp/wbuild/clasp_boehm_o/src/core/weakHashTable.cc.1.o'
%"class.std::__1::basic_string"* @_ZN4grayL10CurrentPkgE.301
; ModuleID = 'llvm-link'
Referencing global in another module!
%"class.boost::detail::make_property_map_from_arg_pack_gen"*
@_ZN5boost6detailL28make_color_map_from_arg_packE.300
; ModuleID =
'/Users/meister/Development/clasp/wbuild/clasp_boehm_o/src/core/weakHashTable.cc.1.o'
%"class.boost::detail::make_property_map_from_arg_pack_gen"*
@_ZN5boost6detailL28make_color_map_from_arg_packE.300
; ModuleID = 'llvm-link'
Referencing global in another module!
i64* @_ZN3reg16registered_classIN4core8Symbol_OEE2idE
; ModuleID =
'/Users/meister/Development/clasp/wbuild/clasp_boehm_o/src/core/weakHashTable.cc.1.o'
i64* @_ZN3reg16registered_classIN4core8Symbol_OEE2idE
; ModuleID = 'llvm-link'
Referencing global in another module!
i64* @_ZN3reg16registered_classIN4core3T_OEE2idE
; ModuleID =
'/Users/meister/Development/clasp/wbuild/clasp_boehm_o/src/core/weakHashTable.cc.1.o'
i64* @_ZN3reg16registered_classIN4core3T_OEE2idE
; ModuleID = 'llvm-link'
Referencing global in another module!
i64* @_ZN3reg16registered_classIN4core15SourcePosInfo_OEE2idE
; ModuleID =
'/Users/meister/Development/clasp/wbuild/clasp_boehm_o/src/core/weakHashTable.cc.1.o'
i64* @_ZN3reg16registered_classIN4core15SourcePosInfo_OEE2idE
; ModuleID = 'llvm-link'
Referencing global in another module!
i64* @_ZN3reg16registered_classIN4core6Real_OEE2idE
; ModuleID =
'/Users/meister/Development/clasp/wbuild/clasp_boehm_o/src/core/weakHashTable.cc.1.o'
i64* @_ZN3reg16registered_classIN4core6Real_OEE2idE
; ModuleID = 'llvm-link'
Referencing global in another module!
i64* @_ZN3reg16registered_classIN4core8Number_OEE2idE
; ModuleID =
'/Users/meister/Development/clasp/wbuild/clasp_boehm_o/src/core/weakHashTable.cc.1.o'
i64* @_ZN3reg16registered_classIN4core8Number_OEE2idE
; ModuleID = 'llvm-link'
Referencing global in another module!
i64* @_ZN3reg16registered_classIN4core9Integer_OEE2idE
; ModuleID =
'/Users/meister/Development/clasp/wbuild/clasp_boehm_o/src/core/weakHashTable.cc.1.o'
i64* @_ZN3reg16registered_classIN4core9Integer_OEE2idE
; ModuleID = 'llvm-link'
Referencing global in another module!
i64* @_ZN3reg16registered_classIN4core13DoubleFloat_OEE2idE
; ModuleID =
'/Users/meister/Development/clasp/wbuild/clasp_boehm_o/src/core/weakHashTable.cc.1.o'
i64* @_ZN3reg16registered_classIN4core13DoubleFloat_OEE2idE
; ModuleID = 'llvm-link'
All DICompileUnits must be listed in llvm.dbg.cu
llvm-link:
/Users/meister/Development/clasp/wbuild/clasp_boehm_o/src/core/weakHashTable.cc.1.o:
error: input module is broken!</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are on the CC list for the bug.</li>
</ul>
</body>
</html>