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

make fails on WSL2 Debian and Raspberry Pi #98

Closed
m0dbot opened this issue Apr 2, 2024 · 1 comment
Closed

make fails on WSL2 Debian and Raspberry Pi #98

m0dbot opened this issue Apr 2, 2024 · 1 comment

Comments

@m0dbot
Copy link

m0dbot commented Apr 2, 2024

I'm getting this error when trying to follow the install guide:

I've installed all mentioned packages and OS is up to date.

$ make
make[1]: Entering directory '/home/me/rkdeveloptool'
g++ -DHAVE_CONFIG_H -I. -I./cfg  -Wall -Werror -Wextra -Wreturn-type -fno-strict-aliasing -D_FILE_OFFSET_BITS=64 -D_LARGE_FILE -I/usr/include/libusb-1.0   -g -O2 -MT main.o -MD -MP -MF .deps/main.Tpo -c -o main.o main.cpp
main.cpp: In function ‘bool _Z9mergeBootv.part.0()’:
main.cpp:1493:36: error: ‘%s’ directive output may be truncated writing up to 557 bytes into a region of size 5 [-Werror=format-truncation=]
 1493 |  snprintf(buffer, sizeof(buffer), "%s", chip);
      |                                    ^~
......
 1534 |   chipType = convertChipType(chip + 2);
      |              ~~~~~~~~~~~~~~~~~~~~~~~~~
main.cpp:1493:10: note: ‘snprintf’ output between 1 and 558 bytes into a destination of size 5
 1493 |  snprintf(buffer, sizeof(buffer), "%s", chip);
      |  ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
cc1plus: all warnings being treated as errors
make[1]: *** [Makefile:491: main.o] Error 1
make[1]: Leaving directory '/home/me/rkdeveloptool'
make: *** [Makefile:511: all-recursive] Error 1

One machine is a Windows 10 x64 intel with WSL2/Debian and the other is a Raspberry Pi Zero W2

@m0dbot
Copy link
Author

m0dbot commented Apr 2, 2024

Duplicate of #55

@m0dbot m0dbot closed this as completed Apr 2, 2024
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