-
Notifications
You must be signed in to change notification settings - Fork 171
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
build with GCC13 on NetBSD failed due to Error: unsupported instruction `vpdpbusd' #387
Comments
The problem is that the gcc13 package in NetBSD ( When gcc is upgraded, the binutils it uses needs to be upgraded alongside it. Otherwise, not all instructions the compiler generates can be assembled. I recommend that you report the misconfigured The only workaround that libdeflate could do is detect broken toolchains in the CMakeLists.txt and disable optimized code accordingly. Performance would decrease, and this workaround would not work for anyone using another build system. I would prefer that people fix their toolchains instead, as that is the real problem. |
Here is the line that sets the assembler incorrectly when the |
@ebiggers Thank you for your reply. I will try to use |
This works for me: sudo pkgin -y install gcc13 binutils cmake gmake
sudo ln -sf /usr/pkg/bin/gas /usr/bin/as
export CC='/usr/pkg/gcc13/bin/gcc'
export CXX='/usr/pkg/gcc13/bin/g++'
cmake \
-S . \
-B build.d \
-DCMAKE_VERBOSE_MAKEFILE=ON \
-DCMAKE_COLOR_MAKEFILE=ON \
-DCMAKE_INSTALL_PREFIX=$PWD/out \
-DCMAKE_BUILD_TYPE=Release
cmake --build build.d
cmake --install build.d |
Can you check if #389 allows libdeflate to build with gcc 13 on NetBSD without having to run |
@ebiggers It works. I test it with github actions: https://github.com/leleliu008/test/actions/runs/10642405602 |
details please see https://github.com/leleliu008/test/actions/runs/10511472981/job/29122507907
The text was updated successfully, but these errors were encountered: