You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
JIT compilation fails recently on Mac M1: 'assert.h' file not found #127480
In the past few days, the JIT fragment compilation step began failing for me on my M1 MacBook Pro (running Sequoia 15.1.1). The complaint is that assert.h can't be found. I'm using clang 19 from homebrew. (Apple's /usr/bin/clang is still v16, which isn't new enough to compile the JIT stuff, as I understand it.):
% clang -v
Homebrew clang version 19.1.4
Target: arm64-apple-darwin24.1.0
Thread model: posix
InstalledDir: /opt/homebrew/Cellar/llvm/19.1.4/bin
Configuration file: /opt/homebrew/etc/clang/arm64-apple-darwin24.cfg
System configuration file directory: /opt/homebrew/etc/clang
User configuration file directory: /Users/skip/.config/clang
and am told these are the default include file directories:
This error looks pretty familiar to me. Sometime ago, we saw this error after upgrading LLVM from version 18 to version 19. The problem was not on our side, IIRC. Here's a fix for our CI #126494.
So, I also have a MacBook with an M1 chip, and it has LLVM 19.1.2 installed. JIT compilation didn't fail with that version, but after upgrading to LLVM 19.1.4 (I also use homebrew), I started getting the same error during JIT compilation:
So, I also have a MacBook with an M1 chip, and it has LLVM 19.1.2 installed. JIT compilation didn't fail with that version, but after upgrading to LLVM 19.1.4 (I also use homebrew)
I'm not much of a homebrew swiss army knife user. How would I back up to 19.1.2? brew search llvm only shows llvm@19. I saw nothing in the output of brew install --help which suggested I could pick specific minor and micro versions.
I'm not much of a homebrew swiss army knife user. How would I back up to 19.1.2? brew search llvm only shows llvm@19. I saw nothing in the output of brew install --help which suggested I could pick specific minor and micro versions.
Unfortunately, there's no easy way to install a specific version :(
Perhaps we need to wait until 19.1.5 gets released.
Not being content to leave well enough alone, I asked the Homebrew folks for help (not being sure where to ask, so I started there). The reply I got suggested this:
Not being content to leave well enough alone, I asked the Homebrew folks for help (not being sure where to ask, so I started there). The reply I got suggested this:
changed the title [-]JIT compilation fails recently on Mac M1[/-][+]JIT compilation fails recently on Mac M1: 'assert.h` file not found[/+]on Dec 4, 2024
changed the title [-]JIT compilation fails recently on Mac M1: 'assert.h` file not found[/-][+]JIT compilation fails recently on Mac M1: 'assert.h' file not found[/+]on Dec 4, 2024
Activity
Eclips4 commentedon Dec 1, 2024
This error looks pretty familiar to me. Sometime ago, we saw this error after upgrading LLVM from version 18 to version 19. The problem was not on our side, IIRC. Here's a fix for our CI #126494.
Eclips4 commentedon Dec 1, 2024
So, I also have a MacBook with an M1 chip, and it has LLVM 19.1.2 installed. JIT compilation didn't fail with that version, but after upgrading to LLVM 19.1.4 (I also use homebrew), I started getting the same error during JIT compilation:
smontanaro commentedon Dec 1, 2024
I'm not much of a homebrew swiss army knife user. How would I back up to 19.1.2?
brew search llvmonly showsllvm@19. I saw nothing in the output ofbrew install --helpwhich suggested I could pick specific minor and micro versions.Eclips4 commentedon Dec 1, 2024
Unfortunately, there's no easy way to install a specific version :(
Perhaps we need to wait until 19.1.5 gets released.
smontanaro commentedon Dec 1, 2024
That's certainly the easiest route for me. Thanks.
smontanaro commentedon Dec 2, 2024
Not being content to leave well enough alone, I asked the Homebrew folks for help (not being sure where to ask, so I started there). The reply I got suggested this:
which seems to have solved the issue for me. I'm closing this ticket.
Eclips4 commentedon Dec 2, 2024
Thank you, Skip, for sharing this. I'll also apply it to fix the JIT build on my machine. 🙂
[-]JIT compilation fails recently on Mac M1[/-][+]JIT compilation fails recently on Mac M1: 'assert.h` file not found[/+][-]JIT compilation fails recently on Mac M1: 'assert.h` file not found[/-][+]JIT compilation fails recently on Mac M1: 'assert.h' file not found[/+]Eclips4 commentedon Dec 4, 2024
(Changing the title to make it easier to find for someone who might be fighting with the same thing)
jpweytjens commentedon Feb 10, 2026
Thanks for pointing in the right direction @smontanaro. I added the following platform independent line to my
.bashrc