<html>
<head>
<base href="http://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 --- - compiler-rt fails to compile with "no such sysroot directory: '-fno-builtin'"
href="http://llvm.org/bugs/show_bug.cgi?id=17981">17981</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>compiler-rt fails to compile with "no such sysroot directory: '-fno-builtin'
</td>
</tr>
<tr>
<th>Product</th>
<td>compiler-rt
</td>
</tr>
<tr>
<th>Version</th>
<td>unspecified
</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>compiler-rt
</td>
</tr>
<tr>
<th>Assignee</th>
<td>unassignedbugs@nondot.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>jonathan.sauer@gmx.de
</td>
</tr>
<tr>
<th>CC</th>
<td>llvmbugs@cs.uiuc.edu
</td>
</tr>
<tr>
<th>Classification</th>
<td>Unclassified
</td>
</tr></table>
<p>
<div>
<pre>compiler-rt r195016 fails to compile on OS X 10.6.8 with clang r195016 and
make:
% make VERBOSE=1
[...]
COMPILE: clang_darwin/asan_iossim_dynamic/i386:
/Users/rynnsauer/LLVM/llvm/projects/compiler-rt/lib/asan/asan_allocator2.cc
/Users/rynnsauer/LLVM/build/Release+Asserts/bin/clang -fno-exceptions -fPIC
-funwind-tables -I/Users/rynnsauer/LLVM/llvm/projects/compiler-rt/lib
-I/Users/rynnsauer/LLVM/llvm/projects/compiler-rt/include -arch i386
-fvisibility=hidden -DVISIBILITY_HIDDEN -Wall -Werror -O3 -fomit-frame-pointer
-mios-simulator-version-min=7.0 -isysroot -fno-builtin -gline-tables-only
-DMAC_INTERPOSE_FUNCTIONS=1 -DASAN_FLEXIBLE_MAPPING_AND_OFFSET=1 -c -o
/Users/rynnsauer/LLVM/build/tools/clang/runtime/compiler-rt/clang_darwin/asan_iossim_dynamic/i386/SubDir.lib__asan/asan_allocator2.o
/Users/rynnsauer/LLVM/llvm/projects/compiler-rt/lib/asan/asan_allocator2.cc
clang: error: no such sysroot directory: '-fno-builtin'
The reason seems to be that when the iOS SDK is not installed (as is the case
on my machine), $(IOSSIM_SDK_PATH) in compiler-rt/make/platform/clang_darwin.mk
is empty, so when it is used as part of clang's command line, the result is
"-isysroot -fno-builtin".
I guess when the iOS SDK is not installed, compiler-rt should not be built for
iOS.</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>