<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 --- - LLVM_ENABLE_OBJLIB broken on trunk. Breaks a full build on macOS Sierra 10.12"
   href="https://llvm.org/bugs/show_bug.cgi?id=28835">28835</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>LLVM_ENABLE_OBJLIB broken on trunk. Breaks a full build on macOS Sierra 10.12
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>tools
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>trunk
          </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>release blocker
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>P
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>TableGen
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>unassignedbugs@nondot.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>pkouame@mac.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>Created <span class=""><a href="attachment.cgi?id=16872" name="attach_16872" title="Output of $ >| nakedryrun.1.txt && make -n  >> nakedryrun.1.txt 2>&1 &">attachment 16872</a> <a href="attachment.cgi?id=16872&action=edit" title="Output of $ >| nakedryrun.1.txt && make -n  >> nakedryrun.1.txt 2>&1 &">[details]</a></span>
Output of $ >| nakedryrun.1.txt && make -n  >> nakedryrun.1.txt 2>&1 &

System: 
- macOS Sierra 10.12 public beta 3
- Xcode 8 beta 4:
Apple LLVM version 8.0.0 (clang-800.0.35)
Target: x86_64-apple-darwin16.0.0
Thread model: posix
InstalledDir:
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin


Description:

Downloaded the latest trunk (Update to HEAD: . at revision 277660)
And a "make -n" after a fairly standard "cmake
-DCMAKE_INSTALL_PREFIX=${INSTALL_PREFIX}  -G "Unix Makefiles" ../llvm" errors
out like this...

/Applications/CMake.app/Contents/bin/cmake -E cmake_echo_color --switch=
--progress-dir=/Users/Me/Dev/build/CMakeFiles --progress-num=99 "Built target
obj.llvm-tblgen"
/Applications/Xcode.app/Contents/Developer/usr/bin/make -f
utils/TableGen/CMakeFiles/llvm-tblgen.dir/build.make
utils/TableGen/CMakeFiles/llvm-tblgen.dir/depend
cd /Users/Me/Dev/build && /Applications/CMake.app/Contents/bin/cmake -E
cmake_depends "Unix Makefiles" /Users/Me/Dev/llvm
/Users/Me/Dev/llvm/utils/TableGen /Users/Me/Dev/build
/Users/Me/Dev/build/utils/TableGen
/Users/Me/Dev/build/utils/TableGen/CMakeFiles/llvm-tblgen.dir/DependInfo.cmake
--color=
/Applications/Xcode.app/Contents/Developer/usr/bin/make -f
utils/TableGen/CMakeFiles/llvm-tblgen.dir/build.make
utils/TableGen/CMakeFiles/llvm-tblgen.dir/build
make[2]: *** No rule to make target
`utils/TableGen/CMakeFiles/obj.llvm-tblgen.dir/AsmMatcherEmitter.cpp.o', needed
by `bin/llvm-tblgen'.  Stop.
make[1]: *** [utils/TableGen/CMakeFiles/llvm-tblgen.dir/all] Error 2
make: *** [all] Error 2

Looking at the file history for both cmake/modules/AddLLVM.cmake and 
cmake/modules/TableGen.cmake, I found a dubious Fix Me and some past breakage.
See
<a href="https://smlnj-gitlab.cs.uchicago.edu/manticore/llvm/commit/68027c4618270e93bc8627e78a82557fca9a7bab">https://smlnj-gitlab.cs.uchicago.edu/manticore/llvm/commit/68027c4618270e93bc8627e78a82557fca9a7bab</a>

Is it safe to proceed (seems like not) disabling this feature? From a cursory
review looks like this flag is attempting to set up a shared object lib for two
targets LLVMTableGen and LLVMSupport.  Will try doing without.

I've added the full output of my configure and build. Thanks in advance.</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>