microsoft / microsoft/mimalloc
MI_OSX_INTERPOSE=ON does not work on older macOS: build fails with undefined __Znam etc.
Nobody has claimed this yet.
- Dominant language
- C
- Stars
- 13.4k
- Forks
- 1.2k
- Avg merge
- 4d 45m
- Merged PRs (30d)
- 13
Description
On older macOS `MI_OSX_INTERPOSE=ON` does not work – build fails with:
```
Undefined symbols:
"__Znam", referenced from:
__mi_cxx_interposes in alloc.c.o
"__ZnwmRKSt9nothrow_t", referenced from:
__mi_cxx_interposes in alloc.c.o
"__Znwm", referenced from:
__mi_cxx_interposes in alloc.c.o
"__ZnamRKSt9nothrow_t", referenced from:
__mi_cxx_interposes in alloc.c.o
```
These were introduced in https://github.com/microsoft/mimalloc/commit/c47de7eb9090cf8c0a5f307a74437cf927a361be#diff-09d94a49fa7395392e824b1a84c3c76e360ed043aef99205441dc0a199a8a1b8R92
Is this something fixable or not?
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the alloc.c.o interposition code introduced by commit c47de7eb9090cf8c0a5f307a74437cf927a361be and reproduce the MI_OSX_INTERPOSE=ON build on an older macOS version. Trace the undefined C++ allocation symbols and verify that the older-platform build completes successfully without breaking the interposition behavior.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- c, cpp
- Domain
- build-system
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 48/100