Skip to content

Fix Clang-23 RC build - #2482

Open
evantypanski wants to merge 4 commits into
mainfrom
topic/etyp/transitive-include-fix
Open

Fix Clang-23 RC build#2482
evantypanski wants to merge 4 commits into
mainfrom
topic/etyp/transitive-include-fix

Conversation

@evantypanski

@evantypanski evantypanski commented Aug 25, 2026

Copy link
Copy Markdown
Member

draft since I'm going to look at other stuff too (and so I make sure to come back to this), this isn't urgent.

Just tested Clang 23 RC3 and hit an error building Zeek:

In file included from /Users/etyp/src/zeek/auxil/spicy/hilti/runtime/src/backtrace.cc:6:
/Users/etyp/src/zeek/auxil/spicy/hilti/runtime/include/hilti/rt/backtrace.h:57:9: error: use of undeclared identifier 'free'
   57 |         free(dname); // NOLINT
      |         ^~~~
1 error generated.

Also changed this to fix some warnings, as well.

Note this fixes warnings in fiber/ - I did that as patches (see zeek/fiber#1). Unless they respond upstream to the other patch, I don't see much reason to not mildly maintain it ourselves.

@codspeed-hq

codspeed-hq Bot commented Aug 25, 2026

Copy link
Copy Markdown

Merging this PR will not alter performance

✅ 43 untouched benchmarks


Comparing topic/etyp/transitive-include-fix (ef61f80) with main (1b65e83)

Open in CodSpeed

This was included transitively but should not be.
@evantypanski
evantypanski force-pushed the topic/etyp/transitive-include-fix branch from 945b8b4 to e68109d Compare August 25, 2026 19:45
@evantypanski
evantypanski marked this pull request as ready for review September 3, 2026 19:38
@evantypanski

Copy link
Copy Markdown
Member Author

Marked this as ready. Tested brew's LLVM-23 and it works with this branch without warnings.

only iffy spot is the fiber bump. We could drop that since it was there before, it just cleans up some warnings (and I think @ckreibich complained about spicy warnings to me relatively recently ;) )

Comment thread hilti/runtime/CMakeLists.txt Outdated
Comment thread 3rdparty/fiber
Comment thread spicy/toolchain/src/compiler/codegen/parsers/literals.cc
Comment thread spicy/toolchain/src/compiler/codegen/parsers/types.cc
Thi `/` fix was only proper for MSVC. It broke when using an absolute
path on Mac. I used `-isystem /Library/...` when testing Clang 23.1 RC.
Also suppresses warnings on a couple unused template functions that we
would prefer be used.
We had a few pragmas, but this one couldn't actually be fixed by
pragmas since the warning technically happened in a system include.
Bleh.

Then, this includes fiber as a 3rdparty include.
@evantypanski
evantypanski force-pushed the topic/etyp/transitive-include-fix branch from e68109d to ef61f80 Compare September 8, 2026 14:21

@bbannier bbannier left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me assuming CI passes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants