microsoft / microsoft/mimalloc
unknown argument: '-Kc++'
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 build arrow@19.0.1 which pulls in `mimalloc` (ARROW_MIMALLOC_BUILD_VERSION=v2.0.6). I am using the Intel OneAPI 2025.x compiler suite, which is Clang/LLVM based. This check doesn't seem to correctly detect this compiler
https://github.com/microsoft/mimalloc/blob/09a27098aa6e9286518bd9c74e6ffa7199c3f04e/CMakeLists.txt#L361
resulting in
```
-- stderr output is:
icpx: error: unknown argument: '-Kc++'
icpx: warning: treating 'c' input as 'c++' when in C++ mode, this behavior is deprecated [-Wdeprecated]
make[5]: *** [CMakeFiles/mimalloc-static.dir/build.make:82: CMakeFiles/mimalloc-static.dir/src/stats.c.o] Error 1
make[4]: *** [CMakeFiles/Makefile2:90: CMakeFiles/mimalloc-static.dir/all] Error 2
make[3]: *** [Makefile:139: all] Error 2
```
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 compiler-detection check in CMakeLists.txt around the linked line 361, then reproduce the mimalloc build using Intel OneAPI's icpx compiler. Trace why the check adds '-Kc++' and adjust detection so that unsupported argument is not passed; done means the mimalloc-static target builds without the reported error.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- c, cmake
- Domain
- build-system
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100