[LLVMbugs] [Bug 17981] New: compiler-rt fails to compile with "no such sysroot directory: '-fno-builtin'
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Mon Nov 18 09:42:43 PST 2013
http://llvm.org/bugs/show_bug.cgi?id=17981
Bug ID: 17981
Summary: compiler-rt fails to compile with "no such sysroot
directory: '-fno-builtin'
Product: compiler-rt
Version: unspecified
Hardware: Macintosh
OS: MacOS X
Status: NEW
Severity: normal
Priority: P
Component: compiler-rt
Assignee: unassignedbugs at nondot.org
Reporter: jonathan.sauer at gmx.de
CC: llvmbugs at cs.uiuc.edu
Classification: Unclassified
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.
--
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/20131118/dba70fda/attachment.html>
More information about the llvm-bugs
mailing list