Bug 268947 - devel/libdispatch: clang bug fails build
Summary: devel/libdispatch: clang bug fails build
Status: Closed Overcome By Events
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: Dima Panov
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-01-14 10:08 UTC by Michael Zhilin
Modified: 2024-04-12 08:54 UTC (History)
3 users (show)

See Also:
bugzilla: maintainer-feedback? (fluffy)


Attachments
poudriere log (155.51 KB, text/plain)
2023-01-14 10:08 UTC, Michael Zhilin
no flags Details
preprocessed file source allocator* (345.36 KB, application/gzip)
2023-01-14 10:12 UTC, Michael Zhilin
no flags Details
devel/libdispatch: fix build on CURRENT (481 bytes, patch)
2023-01-21 18:44 UTC, Oleg Ginzburg
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Michael Zhilin freebsd_committer freebsd_triage 2023-01-14 10:08:33 UTC
Created attachment 239462 [details]
poudriere log

Hi,

Compilation of devel/libdispatch fails by assertion:

Assertion failed: (isDeclRep((TST) TypeSpecType) || TypeSpecType == TST_typename), function getTypeSpecTypeNameLoc, file /usr/src/contrib/llvm-project/clang/include/clang/Sema/DeclSpec.h, line 519.
PLEASE submit a bug report to https://bugs.freebsd.org/submit/ and include the crash backtrace, preprocessed source, and associated run script.

Full poudriere log and preprocessed+shell files are attached to ticket.
Comment 1 Michael Zhilin freebsd_committer freebsd_triage 2023-01-14 10:12:36 UTC
Created attachment 239463 [details]
preprocessed file source allocator*
Comment 2 Dima Panov freebsd_committer freebsd_triage 2023-01-14 13:31:09 UTC
This is a known issue on -current build due to enabled all assertion debug by default.

Anyway, build supported only on stable branches.

Use ports' llvm or rebuild world with MALLOC_PRODUCTION
Comment 3 Jan Beich freebsd_committer freebsd_triage 2023-01-14 14:16:22 UTC
Does applying bug 265425 help?

(In reply to Dima Panov from comment #2)
> rebuild world with MALLOC_PRODUCTION

Did you mean WITHOUT_LLVM_ASSERTIONS in src.conf(5)?
Comment 4 Oleg Ginzburg 2023-01-21 18:44:13 UTC
Created attachment 239625 [details]
devel/libdispatch: fix build on CURRENT
Comment 5 Dimitry Andric freebsd_committer freebsd_triage 2023-02-25 15:21:16 UTC
(In reply to Oleg Ginzburg from comment #4)
Note this should have been fixed as part of the llvm-15 update. Upstream fixed it in https://github.com/llvm/llvm-project/commit/b159108bc5eb, which ended up in 15.0.0.

On stable or releng branches there should be no problem, since assertions are disabled in those branches.
Comment 6 Michael Zhilin freebsd_committer freebsd_triage 2024-04-12 08:54:14 UTC
I suppose this bug can be closed as LLVM15 is out and nobody complained about it. 

Thanks to all!