microsoft / microsoft/mimalloc
mimalloc doesn't compile on x32 ABI
Nobody has claimed this yet.
- Dominant language
- C
- Stars
- 13.4k
- Forks
- 1.2k
- Avg merge
- 4d 45m
- Merged PRs (30d)
- 13
Description
I'm trying to get mi-malloc working in a x32 linux env and I've got an error:
```
make[2]: *** [CMakeFiles/mimalloc-static.dir/build.make:173: CMakeFiles/mimalloc-static.dir/src/alloc.c.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:184: CMakeFiles/mimalloc-static.dir/all] Error 2
/root/src/mimalloc/include/mimalloc-internal.h: Assembler messages:
/root/src/mimalloc/include/mimalloc-internal.h:703: Error: operand size mismatch for `movq'
```
ABI information here: https://sites.google.com/site/x32abi/documents
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
Reproduce the failure with the x32 Linux ABI using the CMake build, then inspect include/mimalloc-internal.h around line 703 and the assembler diagnostic. Done means mimalloc-static compiles successfully in that environment without the operand-size mismatch.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- c
- Domain
- build-system, operating-systems
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 30/100