-
Notifications
You must be signed in to change notification settings - Fork 7.7k
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
stb_image.h doesn't compile on Fedora because of a missing intrinsic #410
Comments
That's gonna be pretty impossible to do anything about without more info. I mean, it's good to let us know and maybe somebody else can duplicate it, but until then... |
As a bit of ancillary information gathering, the problem with shared libraries built with |
Yes, this issue was a compiler error, not a linker error. Sorry for all the vagueness. I only had access to the machine for a very small time period. Mainly logged the bug for posterity. |
We tried but it was nothing but trouble. New rule: with GCC/Clang, if you're compiling with -msse2, you get always-on SSE2 code, otherwise you don't get any. Trying to ship anything with proper runtime dispatch requires both working around certain bugs and some fiddling with build settings, which runs contrary to the intent of a one-file library, so bail on it entirely. Fixes issue nothings#280. Fixes issue nothings#410.
Should be fixed now. |
While compiling stb_image's implementation on Fedora, the compiler cannot find the
__builtin_cpu_supports
intrinsic and gives a compilation error in the functionstbi__sse2_available()
. The workaround to this is to just remove the intrinsic call and return a 0.Unfortunately, I won't be able to tell you the exact version of Fedora or gcc or libc, since the machine isn't available to me any more. I was compiling in 64 bit mode.
This is potentially related to issue #280.
The text was updated successfully, but these errors were encountered: