Skip to content
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

Failing to cross compile for windows 64 bit: error: unknown conversion type character ‘z’ in format #892

Open
zsoerenm opened this issue Nov 7, 2022 · 0 comments

Comments

@zsoerenm
Copy link

zsoerenm commented Nov 7, 2022

I failed to cross compile the windows 64 bit binaries using x86_64-w64-mingw32.

mkdir host/build
cd host/build
cmake -DCMAKE_INSTALL_PREFIX=$prefix\
  -DCMAKE_TOOLCHAIN_FILE=${CMAKE_TARGET_TOOLCHAIN}\
  -DCMAKE_BUILD_TYPE=Release\
  -DENABLE_BACKEND_LIBUSB=TRUE ..
make

It fails with:

[08:49:59] /workspace/srcdir/bladeRF/host/libraries/libbladeRF_test/test_ctrl/src/main.c: In function ‘main’:
[08:49:59] /workspace/srcdir/bladeRF/host/libraries/libbladeRF_test/test_ctrl/src/main.c:286:13: error: unknown conversion type character ‘z’ in format [-Werror=format=]
[08:49:59]              printf("%16s %zu\n", tests[i]->name, stats[i].failures);
[08:49:59]              ^
[08:49:59] /workspace/srcdir/bladeRF/host/libraries/libbladeRF_test/test_ctrl/src/main.c:286:13: error: too many arguments for format [-Werror=format-extra-args]
[08:49:59] /workspace/srcdir/bladeRF/host/libraries/libbladeRF_test/test_ctrl/src/main.c:286:13: error: unknown conversion type character ‘z’ in format [-Werror=format=]
[08:49:59] /workspace/srcdir/bladeRF/host/libraries/libbladeRF_test/test_ctrl/src/main.c:286:13: error: too many arguments for format [-Werror=format-extra-args]
[08:49:59] cc1: all warnings being treated as errors
[08:49:59] make[2]: *** [libraries/libbladeRF_test/test_ctrl/CMakeFiles/libbladeRF_test_ctrl.dir/build.make:77: libraries/libbladeRF_test/test_ctrl/CMakeFiles/libbladeRF_test_ctrl.dir/src/main.c.obj] Error 1
[08:49:59] make[2]: Leaving directory '/workspace/srcdir/bladeRF/host/build'
[08:49:59] make[1]: *** [CMakeFiles/Makefile2:893: libraries/libbladeRF_test/test_ctrl/CMakeFiles/libbladeRF_test_ctrl.dir/all] Error 2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant