-
Notifications
You must be signed in to change notification settings - Fork 903
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
2.1.4 Failure build for ppc64le error: ‘__builtin_thread_pointer’ is not supported on this target #883
Comments
Same issue on x86_64 GNU/Linux (GCC). See purpleprotocol/mimalloc_rust#111 |
In my case other arches built successfully https://koji.fedoraproject.org/koji/taskinfo?taskID=116804025 |
My build logs
|
Will give more verbose output ASAP |
I got it to work by changing the distro I am using for my containers. I switched from debian bullseye to ubuntu latest (LTS). However, I did not investigate further. |
ah, that is a shame. I wonder what goes wrong since the check: // Do we have __builtin_thread_pointer? (do not make this a compound test as it fails on older gcc's, see issue #851)
#if defined(__has_builtin)
#if __has_builtin(__builtin_thread_pointer)
#define MI_HAS_BUILTIN_THREAD_POINTER 1
#endif
#elif defined(__GNUC__) && (__GNUC__ >= 7) && defined(__aarch64__) // special case aarch64 for older gcc versions (issue #851)
#define MI_HAS_BUILTIN_THREAD_POINTER 1
#endif seems to correctly test if I think I will switch the default to prefer the TLS slot assembly after all and fall back to |
…y fixes build errors on various platforms (see issue #883)
I just pushed a potential fix to |
This patch not fixed ppc64le build. Error is the same. |
Darn -- it looks like we cannot check for |
@Vascom, I hope the latest commits fix the build issues now. fingers crossed. |
Same here for ppc64el, hppa, ia64, m68k, powerpc, ppc64, sparc64. See build server of Debian. I'll try your commit ASAP. |
* fixes compiling on debian microsoft/mimalloc#883
Can't build mimalloc 2.1.4 for Fedora GNU Linux ppc64le arch.
GCC 14.0.1
error: ‘__builtin_thread_pointer’ is not supported on this target
How to fix it?
Full build log https://kojipkgs.fedoraproject.org//work/tasks/4072/116804072/build.log
The text was updated successfully, but these errors were encountered: