New issue
Advanced search Search tips

Issue 915711 link

Starred by 2 users

Issue metadata

Status: Verified
Owner:
Closed: Jan 8
Components:
EstimatedDays: ----
NextAction: ----
OS: Chrome
Pri: 1
Type: Bug
Build-Toolchain

Blocking:
issue 907164



Sign in to add a comment

llvm-next r346485 fails to build in chromiumos-sdk

Project Member Reported by manojgupta@chromium.org, Dec 17

Issue description

Building in the chroot is fine but fails when building in chromiumos-sdk.

llvm-8.0_pre339409_p20180926-r8: -- <<< Gentoo configuration >>>
llvm-8.0_pre339409_p20180926-r8: Build type      Gentoo
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)
 
Bisected to the following CL:

commit 6fb010f388bb2cb2f00fe039123092308ac4865d
Author: Chris Bieneman <chris.bieneman@me.com>
Date:   Thu Oct 11 04:02:53 2018 +0000

    [CMake] Unconditionally add .h and .td files to target sources
    
    Previously adding header and table gen files was conditional on using an IDE. Since these files have the `HEADER_FILE_ONLY` attribute applied they are ignored as sources by all non-IDE generators, so there is really no reason not to include them.
    
    Additionally having the CMake always include these files allows the CMake-server to include them in the sources list for targets, which is valuable to anyone using CMake-server integrated tools.
    
    git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@344218 91177308-0d34-0410-b5e6-96231b3b80d8

:100644 100644 f65f31d797c 7cbd2863500 M        cmake/modules/LLVMProcessSources.cmake
Opened https://bugs.llvm.org/show_bug.cgi?id=40122

Also trying out a cmake upgrade if that will fix the problem.
cmake upgrade didn't help :(
Status: Verified (was: Untriaged)
Root cause in bug 920008.
While 920008 is not fixed, will need to revert r344218 in llvm locally.

Sign in to add a comment