-
Notifications
You must be signed in to change notification settings - Fork 18
compile error #7
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
Comments
OS: Ubuntu Linux 18.04 amd64 (pre-release) I tried current master and d2ae637 commit (the one you used for the offered binaries), the error happens for both. Any ideas? |
@ThomasWaldmann What arguments are you passing to ./configure? |
None. Should I? |
Which version of gcc is being used for compiling? Probably gcc7, is this correct? If so, the compiler is generating the warning because Here's the line of code that generates the warning: snprintf (s_name_buf, SCNNMLEN + 1, "/%lu", (unsigned long) string_size);
char s_name_buf[SCNNMLEN + 1];
#define SCNNMLEN (8) As can be seen here, a more up-to-date version of binutils has a fix for the issue: /* The s_name field is defined to be NUL-padded but need not be
NUL-terminated. We use a temporary buffer so that we can still
sprintf all eight chars without splatting a terminating NUL
over the first byte of the following member (s_paddr). */
/* PR 21096: The +20 is to stop a bogus warning from gcc7 about
a possible buffer overflow. */
char s_name_buf[SCNNMLEN + 1 + 20]; @ThomasWaldmann I'd suggest passing the parameters shown here to |
gcc version 7.3.0 (Ubuntu 7.3.0-11ubuntu1) |
Closing as outdated. The project is moved to https://github.com/espressif/binutils-gdb repo (branch name pattern |
The text was updated successfully, but these errors were encountered: