[llvm-bugs] [Bug 37777] New: internal llvm error while building libcxx_fuzzer_x86_64

via llvm-bugs llvm-bugs at lists.llvm.org
Tue Jun 12 00:17:07 PDT 2018


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

            Bug ID: 37777
           Summary: internal llvm error while building
                    libcxx_fuzzer_x86_64
           Product: new-bugs
           Version: trunk
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: new bugs
          Assignee: unassignedbugs at nondot.org
          Reporter: matthias.krueger at famsik.de
                CC: llvm-bugs at lists.llvm.org

Hi, I'm using the monorepo @ 581445d4e6037de8587053c4b2030a01c7541fda

When trying to build the second stage (make all) using previously compiled
clang of the same repo commit, libcxx_fuzzer fails to compile due to a llvm
error:

CMake Deprecation Warning at CMakeLists.txt:14 (cmake_policy):
  The OLD behavior for policy CMP0051 will be removed from a future version
  of CMake.
  The cmake-policies(7) manual explains that the OLD behaviors of all
  policies are deprecated and that a policy should be set to OLD only under
  specific short-term circumstances.  Projects should be ported to the NEW
  behavior and not rely on setting a policy to OLD.
-- Native target architecture is X86
-- Threads enabled.
-- Doxygen disabled.
-- Go bindings enabled.
-- Could NOT find OCaml (missing: OCAMLFIND OCAML_VERSION OCAML_STDLIB_PATH)
-- Could NOT find OCaml (missing: OCAMLFIND OCAML_VERSION OCAML_STDLIB_PATH)
-- OCaml bindings disabled.
-- Found Python module pygments
-- Found Python module pygments.lexers.c_cpp
-- Could NOT find Python module yaml
-- LLVM host triple: x86_64-unknown-linux-gnu
-- LLVM default target triple: x86_64-unknown-linux-gnu
-- Building with -fPIC
-- Constructing LLVMBuild project information
-- Linker detection: LLD
-- Targeting X86
-- Linker detection: LLD
-- Linker detection: LLD
-- Compiler-RT supported architectures: x86_64;i386
-- Builtin supported architectures: i386;x86_64
-- Linker detection: LLD
-- Linker detection: LLD
-- Builtin supported architectures: i386;x86_64
-- ISL version: isl-0.19-185-g8e9f55ce
-- PPCG version: ppcg-0.07
-- Clang version: 7.0.0
-- LLD version: 7.0.0
-- LLDB version: 7.0.0
-- Symbols (liblldb): exporting all symbols from the lldb namespace
-- Configuring done
-- Generating done
-- Build files have been written to:
/home/matthias/LLVM/LLVM_dev/stage_2/objects
Building stage 2
[ 17%/590/6/3368,628.385] Performing build step for 'libcxx_fuzzer_x86_64'
[  0%/0/1/1,0.000] Re-running CMake...
-- Configuring for standalone build.
-- Linker detection: LLD
-- Linker detection: LLD
-- Linker detection: LLD
-- Configuring done
-- Generating done
-- Build files have been written to:
/home/matthias/LLVM/LLVM_dev/stage_2/objects/projects/compiler-rt/lib/fuzzer/libcxx_fuzzer_x86_64-bins
[100%/175/1/175,3.961] Copying CXX header support/xlocale/__strtonum_fallback.h
[ 17%/598/6/3368,634.175] Linking CXX static library
lib/clang/7.0.0/lib/linux/libclang_rt.fuzzer_no_main-x86_64.a
FAILED: lib/clang/7.0.0/lib/linux/libclang_rt.fuzzer_no_main-x86_64.a
: && /usr/bin/cmake -E remove
lib/clang/7.0.0/lib/linux/libclang_rt.fuzzer_no_main-x86_64.a &&
/home/matthias/LLVM/LLVM_dev/stage_1/build/bin/llvm-ar qc
lib/clang/7.0.0/lib/linux/libclang_rt.fuzzer_no_main-x86_64.a 
projects/compiler-rt/lib/fuzzer/CMakeFiles/RTfuzzer.x86_64.dir/FuzzerCrossOver.cpp.o
projects/compiler-rt/lib/fuzzer/CMakeFiles/RTfuzzer.x86_64.dir/FuzzerDataFlowTrace.cpp.o
projects/compiler-rt/lib/fuzzer/CMakeFiles/RTfuzzer.x86_64.dir/FuzzerDriver.cpp.o
projects/compiler-rt/lib/fuzzer/CMakeFiles/RTfuzzer.x86_64.dir/FuzzerExtFunctionsDlsym.cpp.o
projects/compiler-rt/lib/fuzzer/CMakeFiles/RTfuzzer.x86_64.dir/FuzzerExtFunctionsDlsymWin.cpp.o
projects/compiler-rt/lib/fuzzer/CMakeFiles/RTfuzzer.x86_64.dir/FuzzerExtFunctionsWeak.cpp.o
projects/compiler-rt/lib/fuzzer/CMakeFiles/RTfuzzer.x86_64.dir/FuzzerExtraCounters.cpp.o
projects/compiler-rt/lib/fuzzer/CMakeFiles/RTfuzzer.x86_64.dir/FuzzerIO.cpp.o
projects/compiler-rt/lib/fuzzer/CMakeFiles/RTfuzzer.x86_64.dir/FuzzerIOPosix.cpp.o
projects/compiler-rt/lib/fuzzer/CMakeFiles/RTfuzzer.x86_64.dir/FuzzerIOWindows.cpp.o
projects/compiler-rt/lib/fuzzer/CMakeFiles/RTfuzzer.x86_64.dir/FuzzerLoop.cpp.o
projects/compiler-rt/lib/fuzzer/CMakeFiles/RTfuzzer.x86_64.dir/FuzzerMerge.cpp.o
projects/compiler-rt/lib/fuzzer/CMakeFiles/RTfuzzer.x86_64.dir/FuzzerMutate.cpp.o
projects/compiler-rt/lib/fuzzer/CMakeFiles/RTfuzzer.x86_64.dir/FuzzerSHA1.cpp.o
projects/compiler-rt/lib/fuzzer/CMakeFiles/RTfuzzer.x86_64.dir/FuzzerShmemFuchsia.cpp.o
projects/compiler-rt/lib/fuzzer/CMakeFiles/RTfuzzer.x86_64.dir/FuzzerShmemPosix.cpp.o
projects/compiler-rt/lib/fuzzer/CMakeFiles/RTfuzzer.x86_64.dir/FuzzerShmemWindows.cpp.o
projects/compiler-rt/lib/fuzzer/CMakeFiles/RTfuzzer.x86_64.dir/FuzzerTracePC.cpp.o
projects/compiler-rt/lib/fuzzer/CMakeFiles/RTfuzzer.x86_64.dir/FuzzerUtil.cpp.o
projects/compiler-rt/lib/fuzzer/CMakeFiles/RTfuzzer.x86_64.dir/FuzzerUtilDarwin.cpp.o
projects/compiler-rt/lib/fuzzer/CMakeFiles/RTfuzzer.x86_64.dir/FuzzerUtilFuchsia.cpp.o
projects/compiler-rt/lib/fuzzer/CMakeFiles/RTfuzzer.x86_64.dir/FuzzerUtilLinux.cpp.o
projects/compiler-rt/lib/fuzzer/CMakeFiles/RTfuzzer.x86_64.dir/FuzzerUtilPosix.cpp.o
projects/compiler-rt/lib/fuzzer/CMakeFiles/RTfuzzer.x86_64.dir/FuzzerUtilWindows.cpp.o
&& /home/matthias/LLVM/LLVM_dev/stage_1/build/bin/llvm-ranlib
lib/clang/7.0.0/lib/linux/libclang_rt.fuzzer_no_main-x86_64.a && cd
/home/matthias/LLVM/LLVM_dev/stage_2/objects/projects/compiler-rt/lib/fuzzer/cxx_x86_64_merge.dir
&& /usr/local/bin/ld --whole-archive
/home/matthias/LLVM/LLVM_dev/stage_2/objects/lib/clang/7.0.0/lib/linux/libclang_rt.fuzzer_no_main-x86_64.a
--no-whole-archive
/home/matthias/LLVM/LLVM_dev/stage_2/objects/projects/compiler-rt/lib/fuzzer/libcxx_fuzzer_x86_64/lib/libc++.a
-r -o fuzzer_no_main.o && /usr/bin/objcopy --localize-hidden fuzzer_no_main.o
&& /usr/bin/cmake -E remove
/home/matthias/LLVM/LLVM_dev/stage_2/objects/lib/clang/7.0.0/lib/linux/libclang_rt.fuzzer_no_main-x86_64.a
&& /home/matthias/LLVM/LLVM_dev/stage_1/build/bin/llvm-ar qcs
/home/matthias/LLVM/LLVM_dev/stage_2/objects/lib/clang/7.0.0/lib/linux/libclang_rt.fuzzer_no_main-x86_64.a
fuzzer_no_main.o
Intrinsic has incorrect argument type!
void (i8*, i8, i64, i1)* @llvm.memset.p0i8.i64
LLVM ERROR: Broken function found, compilation aborted!
[ 17%/599/5/3368,634.620] Linking CXX static library
lib/clang/7.0.0/lib/linux/libclang_rt.fuzzer-x86_64.a
FAILED: lib/clang/7.0.0/lib/linux/libclang_rt.fuzzer-x86_64.a
: && /usr/bin/cmake -E remove
lib/clang/7.0.0/lib/linux/libclang_rt.fuzzer-x86_64.a &&
/home/matthias/LLVM/LLVM_dev/stage_1/build/bin/llvm-ar qc
lib/clang/7.0.0/lib/linux/libclang_rt.fuzzer-x86_64.a 
projects/compiler-rt/lib/fuzzer/CMakeFiles/RTfuzzer.x86_64.dir/FuzzerCrossOver.cpp.o
projects/compiler-rt/lib/fuzzer/CMakeFiles/RTfuzzer.x86_64.dir/FuzzerDataFlowTrace.cpp.o
projects/compiler-rt/lib/fuzzer/CMakeFiles/RTfuzzer.x86_64.dir/FuzzerDriver.cpp.o
projects/compiler-rt/lib/fuzzer/CMakeFiles/RTfuzzer.x86_64.dir/FuzzerExtFunctionsDlsym.cpp.o
projects/compiler-rt/lib/fuzzer/CMakeFiles/RTfuzzer.x86_64.dir/FuzzerExtFunctionsDlsymWin.cpp.o
projects/compiler-rt/lib/fuzzer/CMakeFiles/RTfuzzer.x86_64.dir/FuzzerExtFunctionsWeak.cpp.o
projects/compiler-rt/lib/fuzzer/CMakeFiles/RTfuzzer.x86_64.dir/FuzzerExtraCounters.cpp.o
projects/compiler-rt/lib/fuzzer/CMakeFiles/RTfuzzer.x86_64.dir/FuzzerIO.cpp.o
projects/compiler-rt/lib/fuzzer/CMakeFiles/RTfuzzer.x86_64.dir/FuzzerIOPosix.cpp.o
projects/compiler-rt/lib/fuzzer/CMakeFiles/RTfuzzer.x86_64.dir/FuzzerIOWindows.cpp.o
projects/compiler-rt/lib/fuzzer/CMakeFiles/RTfuzzer.x86_64.dir/FuzzerLoop.cpp.o
projects/compiler-rt/lib/fuzzer/CMakeFiles/RTfuzzer.x86_64.dir/FuzzerMerge.cpp.o
projects/compiler-rt/lib/fuzzer/CMakeFiles/RTfuzzer.x86_64.dir/FuzzerMutate.cpp.o
projects/compiler-rt/lib/fuzzer/CMakeFiles/RTfuzzer.x86_64.dir/FuzzerSHA1.cpp.o
projects/compiler-rt/lib/fuzzer/CMakeFiles/RTfuzzer.x86_64.dir/FuzzerShmemFuchsia.cpp.o
projects/compiler-rt/lib/fuzzer/CMakeFiles/RTfuzzer.x86_64.dir/FuzzerShmemPosix.cpp.o
projects/compiler-rt/lib/fuzzer/CMakeFiles/RTfuzzer.x86_64.dir/FuzzerShmemWindows.cpp.o
projects/compiler-rt/lib/fuzzer/CMakeFiles/RTfuzzer.x86_64.dir/FuzzerTracePC.cpp.o
projects/compiler-rt/lib/fuzzer/CMakeFiles/RTfuzzer.x86_64.dir/FuzzerUtil.cpp.o
projects/compiler-rt/lib/fuzzer/CMakeFiles/RTfuzzer.x86_64.dir/FuzzerUtilDarwin.cpp.o
projects/compiler-rt/lib/fuzzer/CMakeFiles/RTfuzzer.x86_64.dir/FuzzerUtilFuchsia.cpp.o
projects/compiler-rt/lib/fuzzer/CMakeFiles/RTfuzzer.x86_64.dir/FuzzerUtilLinux.cpp.o
projects/compiler-rt/lib/fuzzer/CMakeFiles/RTfuzzer.x86_64.dir/FuzzerUtilPosix.cpp.o
projects/compiler-rt/lib/fuzzer/CMakeFiles/RTfuzzer.x86_64.dir/FuzzerUtilWindows.cpp.o
projects/compiler-rt/lib/fuzzer/CMakeFiles/RTfuzzer_main.x86_64.dir/FuzzerMain.cpp.o
&& /home/matthias/LLVM/LLVM_dev/stage_1/build/bin/llvm-ranlib
lib/clang/7.0.0/lib/linux/libclang_rt.fuzzer-x86_64.a && cd
/home/matthias/LLVM/LLVM_dev/stage_2/objects/projects/compiler-rt/lib/fuzzer/cxx_x86_64_merge.dir
&& /usr/local/bin/ld --whole-archive
/home/matthias/LLVM/LLVM_dev/stage_2/objects/lib/clang/7.0.0/lib/linux/libclang_rt.fuzzer-x86_64.a
--no-whole-archive
/home/matthias/LLVM/LLVM_dev/stage_2/objects/projects/compiler-rt/lib/fuzzer/libcxx_fuzzer_x86_64/lib/libc++.a
-r -o fuzzer.o && /usr/bin/objcopy --localize-hidden fuzzer.o && /usr/bin/cmake
-E remove
/home/matthias/LLVM/LLVM_dev/stage_2/objects/lib/clang/7.0.0/lib/linux/libclang_rt.fuzzer-x86_64.a
&& /home/matthias/LLVM/LLVM_dev/stage_1/build/bin/llvm-ar qcs
/home/matthias/LLVM/LLVM_dev/stage_2/objects/lib/clang/7.0.0/lib/linux/libclang_rt.fuzzer-x86_64.a
fuzzer.o
Intrinsic has incorrect argument type!
void (i8*, i8, i64, i1)* @llvm.memset.p0i8.i64
LLVM ERROR: Broken function found, compilation aborted!
[ 17%/603/1/3368,652.508] Building CXX object
tools/polly/lib/CMakeFiles/PollyCore.dir/Analysis/ScopInfo.cpp.o
ninja: build stopped: subcommand failed.

cmake config of stage 2:
https://github.com/matthiaskrgr/llvm_bootstrap/blob/master/build_git.sh#L101

-- 
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/20180612/81f2f494/attachment.html>


More information about the llvm-bugs mailing list