<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 --- - Error when building libc++ on OS X 10.10"
href="http://llvm.org/bugs/show_bug.cgi?id=22260">22260</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>Error when building libc++ on OS X 10.10
</td>
</tr>
<tr>
<th>Product</th>
<td>libc++
</td>
</tr>
<tr>
<th>Version</th>
<td>unspecified
</td>
</tr>
<tr>
<th>Hardware</th>
<td>PC
</td>
</tr>
<tr>
<th>OS</th>
<td>All
</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>All Bugs
</td>
</tr>
<tr>
<th>Assignee</th>
<td>unassignedclangbugs@nondot.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>ehsan@mozilla.com
</td>
</tr>
<tr>
<th>CC</th>
<td>llvmbugs@cs.uiuc.edu, mclow.lists@gmail.com
</td>
</tr>
<tr>
<th>Classification</th>
<td>Unclassified
</td>
</tr></table>
<p>
<div>
<pre>When building clang with libc++ on OSX 10.10, I get the following error:
[940/2176] Linking CXX shared library lib/libc++.1.0.dylib
FAILED: : && /usr/bin/c++ -fPIC -fvisibility-inlines-hidden -Wall -W
-Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wmissing-field-initializers
-pedantic -Wno-long-long -Wcovered-switch-default -std=c++11
-fcolor-diagnostics -std=c++11 -target i386-apple-darwin -O2 -g -DNDEBUG
-dynamiclib -Wl,-headerpad_max_install_names -nodefaultlibs
-compatibility_version 1 -install_name /usr/lib/libc++.1.dylib
-Wl,-unexported_symbols_list,/Users/ehsan/src/llvm/projects/libcxx/lib/libc++unexp.exp
/usr/lib/libc++abi.dylib
-Wl,-reexported_symbols_list,/Users/ehsan/src/llvm/projects/libcxx/lib/libc++abi.exp
-Wl,-force_symbols_not_weak_list,/Users/ehsan/src/llvm/projects/libcxx/lib/notweak.exp
-Wl,-force_symbols_weak_list,/Users/ehsan/src/llvm/projects/libcxx/lib/weak.exp
-o lib/libc++.1.0.dylib -install_name @rpath/libc++.1.dylib
projects/libcxx/lib/CMakeFiles/cxx.dir/__/src/algorithm.cpp.o
projects/libcxx/lib/CMakeFiles/cxx.dir/__/src/bind.cpp.o
projects/libcxx/lib/CMakeFiles/cxx.dir/__/src/chrono.cpp.o
projects/libcxx/lib/CMakeFiles/cxx.dir/__/src/condition_variable.cpp.o
projects/libcxx/lib/CMakeFiles/cxx.dir/__/src/debug.cpp.o
projects/libcxx/lib/CMakeFiles/cxx.dir/__/src/exception.cpp.o
projects/libcxx/lib/CMakeFiles/cxx.dir/__/src/future.cpp.o
projects/libcxx/lib/CMakeFiles/cxx.dir/__/src/hash.cpp.o
projects/libcxx/lib/CMakeFiles/cxx.dir/__/src/ios.cpp.o
projects/libcxx/lib/CMakeFiles/cxx.dir/__/src/iostream.cpp.o
projects/libcxx/lib/CMakeFiles/cxx.dir/__/src/locale.cpp.o
projects/libcxx/lib/CMakeFiles/cxx.dir/__/src/memory.cpp.o
projects/libcxx/lib/CMakeFiles/cxx.dir/__/src/mutex.cpp.o
projects/libcxx/lib/CMakeFiles/cxx.dir/__/src/new.cpp.o
projects/libcxx/lib/CMakeFiles/cxx.dir/__/src/optional.cpp.o
projects/libcxx/lib/CMakeFiles/cxx.dir/__/src/random.cpp.o
projects/libcxx/lib/CMakeFiles/cxx.dir/__/src/regex.cpp.o
projects/libcxx/lib/CMakeFiles/cxx.dir/__/src/shared_mutex.cpp.o
projects/libcxx/lib/CMakeFiles/cxx.dir/__/src/stdexcept.cpp.o
projects/libcxx/lib/CMakeFiles/cxx.dir/__/src/string.cpp.o
projects/libcxx/lib/CMakeFiles/cxx.dir/__/src/strstream.cpp.o
projects/libcxx/lib/CMakeFiles/cxx.dir/__/src/system_error.cpp.o
projects/libcxx/lib/CMakeFiles/cxx.dir/__/src/thread.cpp.o
projects/libcxx/lib/CMakeFiles/cxx.dir/__/src/typeinfo.cpp.o
projects/libcxx/lib/CMakeFiles/cxx.dir/__/src/utility.cpp.o
projects/libcxx/lib/CMakeFiles/cxx.dir/__/src/valarray.cpp.o -lpthread -lc -lm
-Wl,-rpath,@executable_path/../lib && :
ld: -rpath can only be used when targeting Mac OS X 10.5 or later
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Setting the MACOSX_DEPLOYMENT_TARGET variable to 10.9 fixes the issue.</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>