[llvm-bugs] [Bug 42478] New: building cross-tools on OpenBSD results in crash

via llvm-bugs llvm-bugs at lists.llvm.org
Tue Jul 2 01:53:35 PDT 2019


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

            Bug ID: 42478
           Summary: building cross-tools on OpenBSD results in crash
           Product: clang
           Version: 8.0
          Hardware: PC
                OS: OpenBSD
            Status: NEW
          Severity: normal
          Priority: P
         Component: Driver
          Assignee: unassignedclangbugs at nondot.org
          Reporter: k.lewandowski at me.com
                CC: llvm-bugs at lists.llvm.org, neeilans at live.com,
                    richard-llvm at metafoo.co.uk

Created attachment 22178
  --> https://bugs.llvm.org/attachment.cgi?id=22178&action=edit
crash log excerpt

I thought it would be a good idea to rebuild cross-tools because of LLVM
version bump
but - with recent src - I'm unable to do so:
$ doas make -f Makefile.cross TARGET=${target} CROSSDIR="${destdir}"
cross-tools
fails with:
aarch64-unknown-openbsd6: error: unable to execute command: Segmentation fault
(core dumped)

With updated /etc/mk.conf:
DEBUG=-gline-tables-only
(I think it’s unused for clang but disables stripping during installation?)

and src/gnu/usr.bin/clang/Makefile.inc:
CPPFLAGS+=      -DNDEBUG -gline-tables-only
(I think it’s similar to what cmake RelWithDebugInfo does.)

I was eventually able to get debug symbols. More details in attached files.
I reproduced this crash on other machine.

If anyone would like to give it a quick try, then please just follow „Setup”
section from:
https://github.com/elewarr/openbsd-arm64-src-dev

-- 
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/20190702/7e639f6f/attachment.html>


More information about the llvm-bugs mailing list