[llvm-bugs] [Bug 40122] New: Cannot bootstrap clang/llvm in Chrome OS

via llvm-bugs llvm-bugs at lists.llvm.org
Thu Dec 20 13:25:02 PST 2018


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

            Bug ID: 40122
           Summary: Cannot bootstrap clang/llvm in Chrome OS
           Product: Build scripts
           Version: trunk
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: cmake
          Assignee: unassignedbugs at nondot.org
          Reporter: manojgupta at google.com
                CC: chris.bieneman at gmail.com, chris.bieneman at me.com,
                    llvm-bugs at lists.llvm.org

Building Clang/LLVM is failing in Chrome OS with these errors:


llvm-8.0_pre339409_p20180926-r8: Build type      RelWithDebInfo
llvm-8.0_pre339409_p20180926-r8: Install path    /usr
llvm-8.0_pre339409_p20180926-r8: Compiler flags:
llvm-8.0_pre339409_p20180926-r8: C               -O2 -pipe -fPIC
-Werror=date-time -Wall -Wextra -Wno-unused-parameter -Wwrite-strings
-Wno-missing-field-initializers -pedantic -Wno-long-long -Wno-comment
-fdiagnostics-color -ffunction-sections -fdata-sections
llvm-8.0_pre339409_p20180926-r8: C++             -O2 -pipe -fPIC
-fvisibility-inlines-hidden -Werror=date-time -std=c++11 -Wall -Wextra
-Wno-unused-parameter -Wwrite-strings -Wcast-qual
-Wno-missing-field-initializers -pedantic -Wno-long-long
-Wno-maybe-uninitialized -Wdelete-non-virtual-dtor -Wno-comment
-fdiagnostics-color -ffunction-sections -fdata-sections
llvm-8.0_pre339409_p20180926-r8: Linker flags:
llvm-8.0_pre339409_p20180926-r8: Executable      -Wl,-O2 -Wl,--as-needed
-Wl,-O2 -Wl,--as-needed -Wl,-allow-shlib-undefined
llvm-8.0_pre339409_p20180926-r8: Module          -Wl,-O2 -Wl,--as-needed
-Wl,-O2 -Wl,--as-needed -Wl,-z,nodelete
llvm-8.0_pre339409_p20180926-r8: Shared          -Wl,-O2 -Wl,--as-needed
-Wl,-O2 -Wl,--as-needed -Wl,-z,defs -Wl,-z,nodelete
llvm-8.0_pre339409_p20180926-r8: 
llvm-8.0_pre339409_p20180926-r8: -- Configuring done
llvm-8.0_pre339409_p20180926-r8: CMake Error at cmake/modules/AddLLVM.cmake:459
(add_library):
llvm-8.0_pre339409_p20180926-r8:   Cannot find source file:
llvm-8.0_pre339409_p20180926-r8: 
llvm-8.0_pre339409_p20180926-r8:     /usr/include/demangle.h
llvm-8.0_pre339409_p20180926-r8: 
llvm-8.0_pre339409_p20180926-r8:   Tried extensions .c .C .c++ .cc .cpp .cxx .m
.M .mm .h .hh .h++ .hm .hpp
llvm-8.0_pre339409_p20180926-r8:   .hxx .in .txx
llvm-8.0_pre339409_p20180926-r8: Call Stack (most recent call first):
llvm-8.0_pre339409_p20180926-r8:   cmake/modules/AddLLVM.cmake:622
(llvm_add_library)
llvm-8.0_pre339409_p20180926-r8:   lib/Support/CMakeLists.txt:47
(add_llvm_library)
llvm-8.0_pre339409_p20180926-r8: 
llvm-8.0_pre339409_p20180926-r8: 
llvm-8.0_pre339409_p20180926-r8: CMake Error at cmake/modules/AddLLVM.cmake:459
(add_library):
llvm-8.0_pre339409_p20180926-r8:   Cannot find source file:
llvm-8.0_pre339409_p20180926-r8: 
llvm-8.0_pre339409_p20180926-r8:     /usr/include/demangle.h
llvm-8.0_pre339409_p20180926-r8: 
llvm-8.0_pre339409_p20180926-r8:   Tried extensions .c .C .c++ .cc .cpp .cxx .m
.M .mm .h .hh .h++ .hm .hpp
llvm-8.0_pre339409_p20180926-r8:   .hxx .in .txx
llvm-8.0_pre339409_p20180926-r8: Call Stack (most recent call first):
llvm-8.0_pre339409_p20180926-r8:   cmake/modules/AddLLVM.cmake:622
(llvm_add_library)
llvm-8.0_pre339409_p20180926-r8:   lib/WindowsManifest/CMakeLists.txt:8
(add_llvm_library)
llvm-8.0_pre339409_p20180926-r8: 
llvm-8.0_pre339409_p20180926-r8: 
llvm-8.0_pre339409_p20180926-r8: CMake Error: CMake can not determine linker
language for target: LLVMSupport
llvm-8.0_pre339409_p20180926-r8: CMake Error: CMake can not determine linker
language for target: LLVMWindowsManifest
llvm-8.0_pre339409_p20180926-r8: CMake Error: CMake can not determine linker
language for target: LLVMSupport
llvm-8.0_pre339409_p20180926-r8: CMake Error in lib/Support/CMakeLists.txt:
llvm-8.0_pre339409_p20180926-r8:   Exporting the target "LLVMSupport" is not
allowed since its linker language
llvm-8.0_pre339409_p20180926-r8:   cannot be determined
llvm-8.0_pre339409_p20180926-r8: 
llvm-8.0_pre339409_p20180926-r8: 
llvm-8.0_pre339409_p20180926-r8: CMake Error: CMake can not determine linker
language for target: LLVMSupport
llvm-8.0_pre339409_p20180926-r8: CMake Error in lib/Support/CMakeLists.txt:
llvm-8.0_pre339409_p20180926-r8:   Exporting the target "LLVMSupport" is not
allowed since its linker language
llvm-8.0_pre339409_p20180926-r8:   cannot be determined
llvm-8.0_pre339409_p20180926-r8:

-- 
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/20181220/faf0769c/attachment-0001.html>


More information about the llvm-bugs mailing list