-
Notifications
You must be signed in to change notification settings - Fork 117
Description
Describe the bug
I'm getting an error compiling simdutf using homebrew and clang.
The compiler output is as follows:
Last 15 lines from /Users/tobiasmarkus/Library/Logs/Homebrew/simdutf/02.cmake.log:
cd /private/tmp/simdutf-20260214-81623-n71rtr/simdutf-8.0.0/build/src && /usr/local/Homebrew/Library/Homebrew/shims/mac/super/clang++ -Dsimdutf_EXPORTS -I/private/tmp/simdutf-20260214-81623-n71rtr/simdutf-8.0.0/src -I/private/tmp/simdutf-20260214-81623-n71rtr/simdutf-8.0.0/include -O3 -DNDEBUG -std=c++11 -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX12.sdk -fPIC -Wall -Wextra -Weffc++ -Wsign-compare -Wshadow -Wwrite-strings -Wpointer-arith -Winit-self -Wconversion -Wno-sign-conversion -Wunused-function -Wsuggest-override -Wfatal-errors -MD -MT src/CMakeFiles/simdutf.dir/simdutf.cpp.o -MF CMakeFiles/simdutf.dir/simdutf.cpp.o.d -o CMakeFiles/simdutf.dir/simdutf.cpp.o -c /private/tmp/simdutf-20260214-81623-n71rtr/simdutf-8.0.0/src/simdutf.cpp
In file included from /private/tmp/simdutf-20260214-81623-n71rtr/simdutf-8.0.0/src/simdutf.cpp:151:
/private/tmp/simdutf-20260214-81623-n71rtr/simdutf-8.0.0/src/simdutf_c.cpp:47:7: fatal error: cannot initialize a parameter of type 'const char16_t *' with an rvalue of type 'const uint16_t *' (aka 'const unsigned short *')
reinterpret_cast<const char16_t *>(buf), len);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/private/tmp/simdutf-20260214-81623-n71rtr/simdutf-8.0.0/src/implementation.cpp:1457:66: note: passing argument to parameter 'input' here
simdutf_warn_unused bool validate_utf16_as_ascii(const char16_t *input,
^
1 error generated.
gmake[2]: *** [src/CMakeFiles/simdutf.dir/build.make:82: src/CMakeFiles/simdutf.dir/simdutf.cpp.o] Error 1
gmake[2]: Leaving directory '/private/tmp/simdutf-20260214-81623-n71rtr/simdutf-8.0.0/build'
gmake[1]: *** [CMakeFiles/Makefile2:570: src/CMakeFiles/simdutf.dir/all] Error 2
gmake[1]: Leaving directory '/private/tmp/simdutf-20260214-81623-n71rtr/simdutf-8.0.0/build'
gmake: *** [Makefile:139: all] Error 2
Configuration (please complete the following information if relevant)
- OS: MacOS X 12.7.6
- Compiler: Apple clang
- Version:
- Optimization setting (e.g., -O3): -O3
We support up-to-date 64-bit ARM and x64 FreeBSD, macOS, Windows and Linux systems. Please ensure that your configuration is supported before labelling the issue as a bug.
- We do not support unreleased or experimental compilers. If you encounter an issue with a
pre-release version of a compiler, do not report it as a bug to simdutf. However, we always
invite contributions either in the form an analysis or of a code contribution.
Under Windows, we support Visual Studio (both with LLVM and without). We do not support MinGW and other alternate compiler systems. Windows users should be aware that there is a long-running bug with GCC under Windows.
Indicate whether you are willing or able to provide a bug fix as a pull request
Potentially, yes. But I don't know how to fix the bug or whether it's present in latest master.
If you plan to contribute to simdutf, please read our guide:
- CONTRIBUTING guide: https://github.com/simdutf/simdutf/blob/master/CONTRIBUTING.md