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: unassignedclangb...@nondot.org
          Reporter: k.lewandow...@me.com
                CC: llvm-bugs@lists.llvm.org, neeil...@live.com,
                    richard-l...@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.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to