<html>
<head>
<base href="https://bugs.llvm.org/">
</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 - LLVM from sources and "xcrun: error: unrecognized option: --show-sdk-version""
href="https://bugs.llvm.org/show_bug.cgi?id=39692">39692</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>LLVM from sources and "xcrun: error: unrecognized option: --show-sdk-version"
</td>
</tr>
<tr>
<th>Product</th>
<td>libc++
</td>
</tr>
<tr>
<th>Version</th>
<td>7.0
</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>enhancement
</td>
</tr>
<tr>
<th>Priority</th>
<td>P
</td>
</tr>
<tr>
<th>Component</th>
<td>All Bugs
</td>
</tr>
<tr>
<th>Assignee</th>
<td>unassignedclangbugs@nondot.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>noloader@gmail.com
</td>
</tr>
<tr>
<th>CC</th>
<td>llvm-bugs@lists.llvm.org, mclow.lists@gmail.com
</td>
</tr></table>
<p>
<div>
<pre>I'm working on an old PowerMac. MacPorts does not provide an updated Clang
compiler. I am trying to build LLVM/Clang from sources. I am bootstrapping the
process with MacPorts GCC 5 compiler (to satisfy the GCC 4.8 minimum).
My build script works fine on Fedora 29 x86_64. On the PowerMac it is having
some trouble. The build script is at <a href="https://github.com/noloader/build-llvm">https://github.com/noloader/build-llvm</a> .
Here's the first sign of trouble on the PowerMac:
cmake ...
...
-- Performing Test LIBCXX_SUPPORTS_WNO_ERROR_FLAG
-- Performing Test LIBCXX_SUPPORTS_WNO_ERROR_FLAG - Success
-- Performing Test LIBCXX_SUPPORTS_EHSC_FLAG
-- Performing Test LIBCXX_SUPPORTS_EHSC_FLAG - Failed
-- Performing Test LIBCXX_SUPPORTS_FPIC_FLAG
-- Performing Test LIBCXX_SUPPORTS_FPIC_FLAG - Success
xcrun: error: unrecognized option: --show-sdk-version
usage:
xcrun [-verbose] [-no-cache] [-sdk <sdkroot>] [-log] [-run] <utility>
[argument...]
xcrun [-verbose] [-no-cache] [-sdk <sdkroot>] -find <utility>
<tool> [tool arguments ...]
-- Performing Test LIBCXX_SUPPORTS_STD_EQ_CXX14_FLAG
-- Performing Test LIBCXX_SUPPORTS_STD_EQ_CXX14_FLAG - Success
-- Adding Benchmark: algorithms.bench.cpp
-- Adding Benchmark: filesystem.bench.cpp
This seems to work, but I don't know if it is useful to this process:
$ /usr/bin/xcodebuild -version
Xcode 3.1.4
Component versions: DevToolsCore-1204.0; DevToolsSupport-1186.0
BuildVersion: 9M2809</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>