[LLVMbugs] [Bug 22260] New: Error when building libc++ on OS X 10.10

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Sun Jan 18 17:32:05 PST 2015


http://llvm.org/bugs/show_bug.cgi?id=22260

            Bug ID: 22260
           Summary: Error when building libc++ on OS X 10.10
           Product: libc++
           Version: unspecified
          Hardware: PC
                OS: All
            Status: NEW
          Severity: normal
          Priority: P
         Component: All Bugs
          Assignee: unassignedclangbugs at nondot.org
          Reporter: ehsan at mozilla.com
                CC: llvmbugs at cs.uiuc.edu, mclow.lists at gmail.com
    Classification: Unclassified

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, at 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.

-- 
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/20150119/f2f6e460/attachment.html>


More information about the llvm-bugs mailing list