[llvm-bugs] [Bug 42259] New: Building the Linux kernel with an instrumented compiler crashes after r362676

via llvm-bugs llvm-bugs at lists.llvm.org
Wed Jun 12 09:34:54 PDT 2019


            Bug ID: 42259
           Summary: Building the Linux kernel with an instrumented
                    compiler crashes after r362676
           Product: compiler-rt
           Version: unspecified
          Hardware: PC
                OS: All
            Status: NEW
          Severity: normal
          Priority: P
         Component: profile
          Assignee: unassignedbugs at nondot.org
          Reporter: natechancellor at gmail.com
                CC: llvm-bugs at lists.llvm.org

I have started messing around with building LLVM/Clang with PGO per
https://llvm.org/docs/HowToBuildWithPGO.html and after r362676[1], the
instrumented compiler crashes while compiling the Linux kernel (my benchmark).

Build log (doesn't get far):

Bisect log: https://gist.github.com/1d26ef70594a6aa54d68445a5640cd81

Stage 1 and stage 2 configuration options:

This can be reproduced when compiling an x86_64 defconfig build on 5.2-rc4
(requires a build of clang after r362410[2] for asm goto support):

$ curl -LSsO https://git.kernel.org/torvalds/t/linux-5.2-rc4.tar.gz
$ tar -xzf linux-5.2-rc4.tar.gz
$ cd linux-5.2-rc4
$ make -j"$(nproc)" CC=clang LD=ld.lld O=out defconfig bzImage modules

With r362676 reverted, the builds complete successfully.

Let me know if there is anything else needed to resolve this.



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/20190612/63647446/attachment.html>

More information about the llvm-bugs mailing list