-
Notifications
You must be signed in to change notification settings - Fork 4.5k
[V4] Illegal instruction when using beta inside Docker #15181
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
This comment was marked as spam.
This comment was marked as spam.
Everyone using tailwindcss within docker should be cautious, till now, v4.0.3, might still have issue in docker env. Not only for Apple Silicon, I am running into this issue on a X64 server with ubuntu 20 installed. tailwindcss cli is reporting |
I've had several users of the downstream package
@philipp-spiess tagging you because you were involved in the bun Musl support conversation and may have some insight? If it's helpful, so far the users that have reported the issue are on various hardware:
|
Ah, Rosetta does not support virtualizing all x86_64 instructions so I guess this makes sense.
CPU release dates: I'm a bit surprised that the Celeron CPU is reporting illegal instruction errors. Maybe it's also a virtualization thing though? My guess is that we'll have to use (or otherwise provide) "baseline" builds for Linux x64 which is unfortunate (they're slower) but I don't see any other way around this. We had to do the same thing for the Windows x64 build so people could run it through Window's ARM emulation layer. |
For my case, I ran into this issue with a Dell R410 server, with Since @flavorjones was talking about bun musl support, which I can also provided feedback. I was trying to migrating my project to rails 8, and selected bun. But it failed on the same box with same error |
@pzgz If you're still seeing issues with an npm-installed build that may mean the compiler is auto-vectorizing to at least AVX instructions for Oxide. I'll have to look and see what it'd take to disable that. |
Also I looked into it and the Celeron CPU does not support AVX at all — only SSE 4.2. (even tho it was released 10 years after the first processors with AVX shipped from Intel 😱) |
Thanks and Yes, I did switched to npm install build and still fail. |
Fwiw that repro dockerfile up above was being run using orbstack on an m2 mac |
Hey folks! I prepared a PR (#16244) that uses a different bun base that compiles to a reduced instruction set and with that I was able to fix the Dockerfile repro:
Since it's a bit hard for us to test across different server setups mentioned above I wanted to ask for your help to figure out if this resolves (at least some) of the issues. Excuse the unconventional way of deploying the binary but I've uploaded preview builds here:
|
@philipp-spiess That executable works for me! |
Thanks a lot, for my case, on Dell R410 with Intel XEON E5620, on docker container with ubuntu 24:
|
@pzgz I think the intention was to try the |
Happy to test this in our herkou pipeline if someone can point me at how to plop this into the Also happy to test a fork/PR that's prepared in those gems themselves and report back here for the broader community if that's helpful. |
Thank you for fixing this! I confirm that your new standalone Thank you for this fix. Additional info that may or may not be helpful: (feel free to ignore this section) |
Got u, thanks for your info. |
Thank you for all your testing, really appreciate it. Let us get this out asap now 👍 |
This will be fixed in the next patch release going out today. Thanks again everyone for your help in testing this! |
@philipp-spiess I believe I am seeing the issue also on an older Xeon machine with native Darwin, sadly:
The binary I have downloaded from https://github.com/tailwindlabs/tailwindcss/releases/tag/v4.0.14 (https://github.com/tailwindlabs/tailwindcss/releases/download/v4.0.14/tailwindcss-macos-x64) - so it is also broken for Intel Macs (at least older ones), not only for Linux. |
What version of Tailwind CSS are you using?
v4 beta 9
What build tool (or framework if it abstracts the build tool) are you using?
docker and ruby
What version of Node.js are you using?
🤷
What browser are you using?
For example: N/A
What operating system are you using?
linux
Reproduction URL
Dockerfile
command:
docker buildx build --platform linux/amd64 --file Dockerfile.tw .
Describe your issue
When trying to execute the beta executable in x86 for linux, it errors with '0.054 Illegal instruction'
The text was updated successfully, but these errors were encountered: