<html>
    <head>
      <base href="https://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 --- - Failed to build on OS X 10.11"
   href="https://llvm.org/bugs/show_bug.cgi?id=24839">24839</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Failed to build on OS X 10.11
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>compiler-rt
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>unspecified
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>PC
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>MacOS X
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>release blocker
          </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>191919@gmail.com
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>llvm-bugs@lists.llvm.org
          </td>
        </tr>

        <tr>
          <th>Classification</th>
          <td>Unclassified
          </td>
        </tr></table>
      <p>
        <div>
        <pre>I tried to build compiler-rt under OS X 10.11 GM with the configure script:

$ ../llvm/configure --enable-optimized=YES --enable-assertions=NO --prefix=/opt
--enable-targets=x86_64,x86,arm,aarch64
$ make

I got the following error messages:

ld: warning: ld: warning: ld: warning: ignoring file
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk/usr/lib/libc++abi.tbd,
missing required architecture x86_64h in file
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk/usr/lib/libc++abi.tbdignoring
file
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk/usr/lib/libc++.tbd,
missing required architecture x86_64h in file
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk/usr/lib/libc++.tbdignoring
file
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk/usr/lib/libSystem.tbd,
missing required architecture x86_64h in file
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk/usr/lib/libSystem.tbd


Undefined symbols for architecture x86_64h:
  "_OSSpinLockLock", referenced from:
      __sanitizer::BlockingMutex::Lock() in sanitizer_mac.o
  "_OSSpinLockUnlock", referenced from:
      __sanitizer::BlockingMutex::Unlock() in sanitizer_mac.o
  "__Block_object_assign", referenced from:
      ___copy_helper_block_ in asan_mac.o
      ___copy_helper_block_.16 in asan_mac.o
      ___copy_helper_block_.19 in asan_mac.o
      ___copy_helper_block_.22 in asan_mac.o
      ___copy_helper_block_.25 in asan_mac.o
  "__Block_object_dispose", referenced from:
      ___destroy_helper_block_ in asan_mac.o
      ___destroy_helper_block_.17 in asan_mac.o
      ___destroy_helper_block_.20 in asan_mac.o
      ___destroy_helper_block_.23 in asan_mac.o
      ___destroy_helper_block_.26 in asan_mac.o
  "__NSConcreteStackBlock", referenced from:
......
......
  "_write", referenced from:
      _wrap_write in asan_interceptors.o
      substitution_write in asan_interceptors.o
      __sanitizer::internal_write(int, void const*, unsigned long) in
sanitizer_mac.o
     (maybe you meant: __ZN11__sanitizer14internal_writeEiPKvm, _wrap_writev ,
_wrap_write )
  "_writev", referenced from:
      _wrap_writev in asan_interceptors.o
      substitution_writev in asan_interceptors.o
     (maybe you meant: _wrap_writev)
ld: symbol(s) not found for architecture x86_64h
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[5]: ***
[/Users/xx/box/build-llvm/tools/clang/runtime/compiler-rt/clang_darwin/asan_osx_dynamic/x86_64h/libcompiler_rt.dylib]
Error 1
make[4]: *** [BuildRuntimeLibraries] Error 2
make[3]: *** [compiler-rt/.makeall] Error 2
make[2]: *** [all] Error 1
make[1]: *** [clang/.makeall] Error 2
make: *** [all] Error 1

Building under OS X 10.10 is fine.</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>