[llvm-bugs] [Bug 28835] New: LLVM_ENABLE_OBJLIB broken on trunk. Breaks a full build on macOS Sierra 10.12

via llvm-bugs llvm-bugs at lists.llvm.org
Wed Aug 3 16:34:20 PDT 2016


https://llvm.org/bugs/show_bug.cgi?id=28835

            Bug ID: 28835
           Summary: LLVM_ENABLE_OBJLIB broken on trunk. Breaks a full
                    build on macOS Sierra 10.12
           Product: tools
           Version: trunk
          Hardware: Macintosh
                OS: MacOS X
            Status: NEW
          Severity: release blocker
          Priority: P
         Component: TableGen
          Assignee: unassignedbugs at nondot.org
          Reporter: pkouame at mac.com
                CC: llvm-bugs at lists.llvm.org
    Classification: Unclassified

Created attachment 16872
  --> https://llvm.org/bugs/attachment.cgi?id=16872&action=edit
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
https://smlnj-gitlab.cs.uchicago.edu/manticore/llvm/commit/68027c4618270e93bc8627e78a82557fca9a7bab

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.

-- 
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/20160803/157663ba/attachment.html>


More information about the llvm-bugs mailing list