Bug 261932 - devel/creduce: Add a crutch to build against libc++ 14
Summary: devel/creduce: Add a crutch to build against libc++ 14
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Some People
Assignee: Steve Wills
URL:
Keywords:
: 261931 (view as bug list)
Depends on:
Blocks: 261742
  Show dependency treegraph
 
Reported: 2022-02-13 14:13 UTC by Dimitry Andric
Modified: 2022-02-15 18:46 UTC (History)
0 users

See Also:
koobs: maintainer-feedback+
koobs: merge-quarterly?


Attachments
Add crutch for using libc++ 14 with clang++ 8 (1.34 KB, patch)
2022-02-13 14:14 UTC, Dimitry Andric
swills: maintainer-approval+
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Dimitry Andric freebsd_committer freebsd_triage 2022-02-13 14:13:45 UTC
I am working on the import of llvm 14 in https://github.com/DimitryAndric/freebsd-src/tree/llvm-14-update; see also bug 261742 for the exp-run request.

One of the problematic ports is devel/creduce, since it still depends on devel/llvm80, and this is not compatible with libc++ 14 anymore, since it now requires support for __builtin_is_constant_evaluated() (see https://github.com/llvm/llvm-project/commit/1123100a16a321d70508e2508ebc5d57ce7163dc ).

As a crutch, I've added a small header which defines a constexpr __builtin_is_constant_evaluated() function, and include that at the top of every compiled file, using -include, whenever the base system clang version is 14 or higher.
Comment 1 Dimitry Andric freebsd_committer freebsd_triage 2022-02-13 14:14:21 UTC
Created attachment 231795 [details]
Add crutch for using libc++ 14 with clang++ 8
Comment 2 Dimitry Andric freebsd_committer freebsd_triage 2022-02-13 14:15:18 UTC
*** Bug 261931 has been marked as a duplicate of this bug. ***
Comment 3 Steve Wills freebsd_committer freebsd_triage 2022-02-13 18:10:18 UTC
Go ahead. devel/creduce should probably be deprecated in favor of devel/cvise (just committed).
Comment 4 Dimitry Andric freebsd_committer freebsd_triage 2022-02-13 18:45:41 UTC
(In reply to Steve Wills from comment #3)
Ahh cvise! Thanks, that was one project I had been pointed at, but never got time to make work :)