[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


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

            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):
https://gist.github.com/24cbd0d06398076f173a2d98598962db

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

Stage 1 and stage 2 configuration options:
https://gist.github.com/f5c27752af31e73d8ec48e4b98af573a

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.

[1]:
https://github.com/llvm/llvm-project/commit/c1867557d93d622f761b57af6e66e3e518bc0b9f

[2]:
https://github.com/llvm/llvm-project/commit/b8fee677bf8e2d6444c556293d6b77fb876654e4

-- 
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