<html>
<head>
<base href="https://bugs.llvm.org/">
</head>
<body><table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Bug ID</th>
<td><a class="bz_bug_link
bz_status_NEW "
title="NEW - building cross-tools on OpenBSD results in crash"
href="https://bugs.llvm.org/show_bug.cgi?id=42478">42478</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>building cross-tools on OpenBSD results in crash
</td>
</tr>
<tr>
<th>Product</th>
<td>clang
</td>
</tr>
<tr>
<th>Version</th>
<td>8.0
</td>
</tr>
<tr>
<th>Hardware</th>
<td>PC
</td>
</tr>
<tr>
<th>OS</th>
<td>OpenBSD
</td>
</tr>
<tr>
<th>Status</th>
<td>NEW
</td>
</tr>
<tr>
<th>Severity</th>
<td>normal
</td>
</tr>
<tr>
<th>Priority</th>
<td>P
</td>
</tr>
<tr>
<th>Component</th>
<td>Driver
</td>
</tr>
<tr>
<th>Assignee</th>
<td>unassignedclangbugs@nondot.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>k.lewandowski@me.com
</td>
</tr>
<tr>
<th>CC</th>
<td>llvm-bugs@lists.llvm.org, neeilans@live.com, richard-llvm@metafoo.co.uk
</td>
</tr></table>
<p>
<div>
<pre>Created <span class=""><a href="attachment.cgi?id=22178" name="attach_22178" title="crash log excerpt">attachment 22178</a> <a href="attachment.cgi?id=22178&action=edit" title="crash log excerpt">[details]</a></span>
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:
<a href="https://github.com/elewarr/openbsd-arm64-src-dev">https://github.com/elewarr/openbsd-arm64-src-dev</a></pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are on the CC list for the bug.</li>
</ul>
</body>
</html>