Summary: | clang crash in buildkernel | ||||||||
---|---|---|---|---|---|---|---|---|---|
Product: | Base System | Reporter: | Andriy Gapon <avg> | ||||||
Component: | bin | Assignee: | freebsd-bugs (Nobody) <bugs> | ||||||
Status: | Closed FIXED | ||||||||
Severity: | Affects Only Me | CC: | dim | ||||||
Priority: | --- | ||||||||
Version: | CURRENT | ||||||||
Hardware: | Any | ||||||||
OS: | Any | ||||||||
Attachments: |
|
Description
Andriy Gapon
![]() ![]() Created attachment 156996 [details]
compressed source file
Created attachment 156997 [details]
script
I must also note that the problem happens with a locally modified source tree. In particular there is some "hardcore" stuff in SDT_PROBE_FUNC_(), SDT_CALL_START(), STD_CALL_END_(). Reproduced and filed upstream here: http://llvm.org/PR23621 The problem is that several .comm symbols get defined multiple times, with the same name. Apparently the clang MC assembler has an assertion for this. As a workaround, you can either try to ensure the .comm symbols all have unique names, or use the -no-integrated-as flag, to use the GNU assembler, which apparently just ignores the duplicated .comm symbols. (In reply to Dimitry Andric from comment #4) Thank you very much for the research, the upstream report and the suggestions! I'm using a workaround now. Seems like that this was fixed in clang more than a year ago and the fix is already in FreeBSD. |