<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 --- - LC_VERSION_MIN_MACOSX: Darwin kernel version vs SDK version"
href="https://llvm.org/bugs/show_bug.cgi?id=24927">24927</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>LC_VERSION_MIN_MACOSX: Darwin kernel version vs SDK version
</td>
</tr>
<tr>
<th>Product</th>
<td>libraries
</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>Common Code Generator Code
</td>
</tr>
<tr>
<th>Assignee</th>
<td>unassignedbugs@nondot.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>benoit.belley@autodesk.com
</td>
</tr>
<tr>
<th>CC</th>
<td>llvm-bugs@lists.llvm.org
</td>
</tr>
<tr>
<th>Classification</th>
<td>Unclassified
</td>
</tr></table>
<p>
<div>
<pre>Using the Xcode 7 linker, one gets messages such as the following when linking
objects generated using llvm:
ld: warning: object file (foo.o) was built for newer OS X version (14.5) than
being linked (10.9)
The issue is the following:
a) In lib/Support/Unix/Host.inc, sys::getDefaultTargetTriple() sets the OS name
to darwin14.5 when running on MaxOS X 10.10. 14.5 is the Darwin kernel version
as reported by uname.
b) In lib/CodeGen/AsmPrinter.cpp, AsmPrinter::doInitialization() writes out
this version number to the LC_VERSION_MIN_MACOSX of the generated object.
c) The XCode 7 linker seems to expect that LC_VERSION_MIN_MACOSX contains the
minimum version number of the MacOS X SDK (10.9, 10.11, ...), NOT the Darwin
kernel version number!
AFAICT, LLVM had this wrong behaviour for a long time. The only new thing with
the Xcode 7 linker is that it is now reporting a warning for the version
mismatch.</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>