-
Notifications
You must be signed in to change notification settings - Fork 68
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
LLVM error when using PackageCompiler #432
Comments
It's probably compiling on a system that supports |
You could try using HostCPUFeatures, Static
HostCPUFeatures.has_feature(::Val{:x86_64_bmi}) = static(false) before |
LoopVectorization doesn't really support/work with package compiler, though. |
Thank you for the answers! I solved the issue for me by removing the LoopVectorization dependency for now. (I will keep it open, in case other people have similar problems) |
Playing with a minimal project, a couple of observations:
|
Do you need to distribute the image? Haswell supports BZHI, but Sandybridge does not (and obviously generic doesn't either). Does the project get precompiled as part of building the image? Odds are that's when the error is encountered, then. Does package compiler set any flags I can check? |
@Tobriand mind upgrading to HostCPUFeatures 0.1.11 once it is released (should be in about 15 minutes), and letting me know if it fixes the problem? JuliaRegistries/General#72190 |
Hi @chriselrod - tried adding [email protected] and I'm still getting the same result with haswell in the cpu compile target (when compiling on an azure build agent, anyway). I'm a Julia newbie, so worth confirming the correct syntax is Could also add that since this is a dummy project, I could probably push it to Github if that would be helpful? I guess the key thing is that you'd probably need an azure build agent image too in order to actually test it (which obviously I don't have) |
When I compile my project with PackageCompiler.jl in Ubuntu or Windows, it fails with the following error related to LoopVectorization. It compiles in MacOS though.
I'm automatically compiling my fairly large project using github actions for Linux, Window and MacOS. The automatic Linux and Windows compilations started to crash some months ago. Unfortunately, I didn't save the Manifest.toml files of successful runs, because I'm suspecting some dependency updated and is causing this problem.
I tried Ubuntu 20.04 and 22.04, Windows 2019, Windows 2022 and local Windows 10, each with the Julia versions 1.6, 1.7, 1.8 and nightly and all crashed.
I don't use LoopVectorization (which seems to be related to the error) directly in my fairly large project, but through a dependency.
Maybe someone can tell from the error message what the problem might be. Otherwise, in case it would help, I can try to provide a minimal example that produces this error.
The text was updated successfully, but these errors were encountered: