Comments (12)
Same issue on x86_64 GNU/Linux (GCC). See purpleprotocol/mimalloc_rust#111
from mimalloc.
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
from mimalloc.
My build logs
> [build 6/7] RUN cargo build --locked --release:
12.70 cargo:warning= 240 | return (uintptr_t)__builtin_thread_pointer();
12.70 cargo:warning= | ^~~~~~~~~~~~~~~~~~~~~~~~~~
12.70
12.70 --- stderr
12.70
12.70
12.70 error occurred: Command "cc" "-O3" "-ffunction-sections" "-fdata-sections" "-fPIC" "-m64" "-I" "c_src/mimalloc/include" "-I" "c_src/mimalloc/src" "-Wall" "-Wextra" "-ftls-model=initial-exec" "-DMI_DEBUG=0" "-o" "/app/target/release/build/libmimalloc-sys-9bc557761968b710/out/98cfcaec7182b1d8-static.o" "-c" "c_src/mimalloc/src/static.c" with args cc did not execute successfully (status code exit status: 1).
from mimalloc.
Will give more verbose output ASAP
from mimalloc.
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.
from mimalloc.
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 __builtin_thread_pointer
exists?
I think I will switch the default to prefer the TLS slot assembly after all and fall back to __builtin_thread_pointer
otherwise.
from mimalloc.
I just pushed a potential fix to dev
and dev-slice
. If this fixes the build issues I will update the release soon. Please test if you can.
from mimalloc.
This patch not fixed ppc64le build. Error is the same.
I mean 146f9d2
from mimalloc.
This patch not fixed ppc64le build. Error is the same. I mean 146f9d2
Darn -- it looks like we cannot check for __builtin_thread_pointer
reliably. Maybe we should only enable it for platforms that we explicitly tested for :-(
from mimalloc.
@Vascom, I hope the latest commits fix the build issues now. fingers crossed.
(At some point I would like to figure out though why the is_builtin tests are positive even though the builtin is not actually supported? )
from mimalloc.
Same here for ppc64el, hppa, ia64, m68k, powerpc, ppc64, sparc64. See build server of Debian. I'll try your commit ASAP.
from mimalloc.
I can confirm that adding the two commits cc3c14f and 146f9d2 solved the build issue for me.
from mimalloc.
Related Issues (20)
- `slice_count` overflow for very large allocations HOT 2
- Calling mi_heap_collect does not decommits all unused pages HOT 2
- `unix/prim.c` uses deprecated Apple `TARGET_` symbols HOT 1
- Patching a 32-bit image with `minject` doesn't tell you to use `minject32`. HOT 1
- Segment check range exceeds 40TB for asan builds HOT 1
- Test 'malloc-nomem1' failure on 32-bit architectures after v2.1.4 HOT 1
- 2.1.4 and error mingw/msys2 HOT 4
- 2.1.4: build fail on centos7 HOT 7
- CMake install with namespace and add corresponding alias targets HOT 1
- Rss memory usage increase in version 2.1.4 HOT 2
- Add dllhook mode HOT 1
- oversize allocation in mi_heap_malloc_zero_aligned_at HOT 6
- Concurrency bugs that cause hanging HOT 2
- Intermittent VirtualAlloc failure while the pagefile is growing HOT 1
- Tests fail on armhf and armv7 on Alpine Linux (musl libc) since mimalloc 2.1.4 & 1.8.4 HOT 4
- [suggestion] add a comment at the declaration of `mi_arena_t` for easier custom modify
- Can't compile v2.1.6 tag on Ubuntu 22.04.LTS HOT 3
- malloc_good_size in overrides HOT 13
- Is it ok that `ld-linux-x86-64.so.2` `Scrt1.o` `crti.o` and `crtbeginS.o` is located before `mimalloc.o` in the linker commandline when static override malloc? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mimalloc.