Discussion:
[Bug compile/22931] New: Newest gcc does not compile newest gdb
dilyan.palauzov at aegee dot org
2018-03-06 15:32:43 UTC
Permalink
https://sourceware.org/bugzilla/show_bug.cgi?id=22931

Bug ID: 22931
Summary: Newest gcc does not compile newest gdb
Product: gdb
Version: HEAD
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: compile
Assignee: unassigned at sourceware dot org
Reporter: dilyan.palauzov at aegee dot org
Target Milestone: ---

Newest gcc 8.0.1 20180306 does not compile newest gdb (git 7ea78b5):

make[3]: Leaving directory '/home/d/binutils/gdb'
g++ -x c++ -O3 -pipe -I. -I/git/binutils-gdb/gdb
-I/git/binutils-gdb/gdb/common -I/git/binutils-gdb/gdb/config
-DLOCALEDIR="\"/usr/local/share/locale\"" -DHAVE_CONFIG_H
-I/git/binutils-gdb/gdb/../include/opcode -I/git/binutils-gdb/gdb/../opcodes/..
-I../bfd -I/git/binutils-gdb/gdb/../bfd -I/git/binutils-gdb/gdb/../include
-I../libdecnumber -I/git/binutils-gdb/gdb/../libdecnumber
-I/git/binutils-gdb/gdb/gnulib/import -Ibuild-gnulib/import
-I/usr/local/include/python3.5m -I/usr/local/include/python3.5m -Wall
-Wpointer-arith -Wno-unused -Wunused-value -Wunused-function -Wno-switch
-Wno-char-subscripts -Wempty-body -Wunused-but-set-parameter
-Wunused-but-set-variable -Wno-sign-compare -Wno-narrowing
-Wno-error=maybe-uninitialized -Werror -c -o linux-osdata.o -MT linux-osdata.o
-MMD -MP -MF ./.deps/linux-osdata.Tpo /git/binutils-gdb/gdb/nat/linux-osdata.c
In function ‘void user_from_uid(char*, int, uid_t)’,
inlined from ‘LONGEST linux_xfer_osdata_sem(gdb_byte*, ULONGEST, ULONGEST)’
at /git/binutils-gdb/gdb/nat/linux-osdata.c:1299:23:
/git/binutils-gdb/gdb/nat/linux-osdata.c:216:15: error: ‘char* strncpy(char*,
const char*, size_t)’ specified bound 32 equals destination size
[-Werror=stringop-truncation]
strncpy (user, pwentry->pw_name, maxlen);
~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In function ‘void group_from_gid(char*, int, gid_t)’,
inlined from ‘LONGEST linux_xfer_osdata_sem(gdb_byte*, ULONGEST, ULONGEST)’
at /git/binutils-gdb/gdb/nat/linux-osdata.c:1300:24:
/git/binutils-gdb/gdb/nat/linux-osdata.c:1118:15: error: ‘char* strncpy(char*,
const char*, size_t)’ specified bound 32 equals destination size
[-Werror=stringop-truncation]
strncpy (group, grentry->gr_name, maxlen);
~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In function ‘void user_from_uid(char*, int, uid_t)’,
inlined from ‘LONGEST linux_xfer_osdata_sem(gdb_byte*, ULONGEST, ULONGEST)’
at /git/binutils-gdb/gdb/nat/linux-osdata.c:1301:23:
/git/binutils-gdb/gdb/nat/linux-osdata.c:216:15: error: ‘char* strncpy(char*,
const char*, size_t)’ specified bound 32 equals destination size
[-Werror=stringop-truncation]
strncpy (user, pwentry->pw_name, maxlen);
~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In function ‘void group_from_gid(char*, int, gid_t)’,
inlined from ‘LONGEST linux_xfer_osdata_sem(gdb_byte*, ULONGEST, ULONGEST)’
at /git/binutils-gdb/gdb/nat/linux-osdata.c:1302:24:
/git/binutils-gdb/gdb/nat/linux-osdata.c:1118:15: error: ‘char* strncpy(char*,
const char*, size_t)’ specified bound 32 equals destination size
[-Werror=stringop-truncation]
strncpy (group, grentry->gr_name, maxlen);
~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In function ‘void time_from_time_t(char*, int, TIME_T)’,
inlined from ‘LONGEST linux_xfer_osdata_sem(gdb_byte*, ULONGEST,
ULONGEST)’:
/git/binutils-gdb/gdb/nat/linux-osdata.c:1103:15: error: ‘char* strncpy(char*,
const char*, size_t)’ specified bound 32 equals destination size
[-Werror=stringop-truncation]
strncpy (time, ctime (&t), maxlen);
~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~
In function ‘void time_from_time_t(char*, int, TIME_T)’,
inlined from ‘LONGEST linux_xfer_osdata_sem(gdb_byte*, ULONGEST,
ULONGEST)’:
/git/binutils-gdb/gdb/nat/linux-osdata.c:1103:15: error: ‘char* strncpy(char*,
const char*, size_t)’ specified bound 32 equals destination size
[-Werror=stringop-truncation]
strncpy (time, ctime (&t), maxlen);
~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~
In function ‘void user_from_uid(char*, int, uid_t)’,
inlined from ‘LONGEST linux_xfer_osdata_msg(gdb_byte*, ULONGEST, ULONGEST)’
at /git/binutils-gdb/gdb/nat/linux-osdata.c:1409:23:
/git/binutils-gdb/gdb/nat/linux-osdata.c:216:15: error: ‘char* strncpy(char*,
const char*, size_t)’ specified bound 32 equals destination size
[-Werror=stringop-truncation]
strncpy (user, pwentry->pw_name, maxlen);
~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In function ‘void group_from_gid(char*, int, gid_t)’,
inlined from ‘LONGEST linux_xfer_osdata_msg(gdb_byte*, ULONGEST, ULONGEST)’
at /git/binutils-gdb/gdb/nat/linux-osdata.c:1410:24:
/git/binutils-gdb/gdb/nat/linux-osdata.c:1118:15: error: ‘char* strncpy(char*,
const char*, size_t)’ specified bound 32 equals destination size
[-Werror=stringop-truncation]
strncpy (group, grentry->gr_name, maxlen);
~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In function ‘void user_from_uid(char*, int, uid_t)’,
inlined from ‘LONGEST linux_xfer_osdata_msg(gdb_byte*, ULONGEST, ULONGEST)’
at /git/binutils-gdb/gdb/nat/linux-osdata.c:1411:23:
/git/binutils-gdb/gdb/nat/linux-osdata.c:216:15: error: ‘char* strncpy(char*,
const char*, size_t)’ specified bound 32 equals destination size
[-Werror=stringop-truncation]
strncpy (user, pwentry->pw_name, maxlen);
~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In function ‘void group_from_gid(char*, int, gid_t)’,
inlined from ‘LONGEST linux_xfer_osdata_msg(gdb_byte*, ULONGEST, ULONGEST)’
at /git/binutils-gdb/gdb/nat/linux-osdata.c:1412:24:
/git/binutils-gdb/gdb/nat/linux-osdata.c:1118:15: error: ‘char* strncpy(char*,
const char*, size_t)’ specified bound 32 equals destination size
[-Werror=stringop-truncation]
strncpy (group, grentry->gr_name, maxlen);
~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In function ‘void time_from_time_t(char*, int, TIME_T)’,
inlined from ‘LONGEST linux_xfer_osdata_msg(gdb_byte*, ULONGEST,
ULONGEST)’:
/git/binutils-gdb/gdb/nat/linux-osdata.c:1103:15: error: ‘char* strncpy(char*,
const char*, size_t)’ specified bound 32 equals destination size
[-Werror=stringop-truncation]
strncpy (time, ctime (&t), maxlen);
~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~
In function ‘void time_from_time_t(char*, int, TIME_T)’,
inlined from ‘LONGEST linux_xfer_osdata_msg(gdb_byte*, ULONGEST,
ULONGEST)’:
/git/binutils-gdb/gdb/nat/linux-osdata.c:1103:15: error: ‘char* strncpy(char*,
const char*, size_t)’ specified bound 32 equals destination size
[-Werror=stringop-truncation]
strncpy (time, ctime (&t), maxlen);
~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~
In function ‘void time_from_time_t(char*, int, TIME_T)’,
inlined from ‘LONGEST linux_xfer_osdata_msg(gdb_byte*, ULONGEST,
ULONGEST)’:
/git/binutils-gdb/gdb/nat/linux-osdata.c:1103:15: error: ‘char* strncpy(char*,
const char*, size_t)’ specified bound 32 equals destination size
[-Werror=stringop-truncation]
strncpy (time, ctime (&t), maxlen);
~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~
In function ‘void user_from_uid(char*, int, uid_t)’,
inlined from ‘LONGEST linux_xfer_osdata_shm(gdb_byte*, ULONGEST, ULONGEST)’
at /git/binutils-gdb/gdb/nat/linux-osdata.c:1179:23:
/git/binutils-gdb/gdb/nat/linux-osdata.c:216:15: error: ‘char* strncpy(char*,
const char*, size_t)’ specified bound 32 equals destination size
[-Werror=stringop-truncation]
strncpy (user, pwentry->pw_name, maxlen);
~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In function ‘void group_from_gid(char*, int, gid_t)’,
inlined from ‘LONGEST linux_xfer_osdata_shm(gdb_byte*, ULONGEST, ULONGEST)’
at /git/binutils-gdb/gdb/nat/linux-osdata.c:1180:24:
/git/binutils-gdb/gdb/nat/linux-osdata.c:1118:15: error: ‘char* strncpy(char*,
const char*, size_t)’ specified bound 32 equals destination size
[-Werror=stringop-truncation]
strncpy (group, grentry->gr_name, maxlen);
~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In function ‘void user_from_uid(char*, int, uid_t)’,
inlined from ‘LONGEST linux_xfer_osdata_shm(gdb_byte*, ULONGEST, ULONGEST)’
at /git/binutils-gdb/gdb/nat/linux-osdata.c:1181:23:
/git/binutils-gdb/gdb/nat/linux-osdata.c:216:15: error: ‘char* strncpy(char*,
const char*, size_t)’ specified bound 32 equals destination size
[-Werror=stringop-truncation]
strncpy (user, pwentry->pw_name, maxlen);
~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In function ‘void group_from_gid(char*, int, gid_t)’,
inlined from ‘LONGEST linux_xfer_osdata_shm(gdb_byte*, ULONGEST, ULONGEST)’
at /git/binutils-gdb/gdb/nat/linux-osdata.c:1182:24:
/git/binutils-gdb/gdb/nat/linux-osdata.c:1118:15: error: ‘char* strncpy(char*,
const char*, size_t)’ specified bound 32 equals destination size
[-Werror=stringop-truncation]
strncpy (group, grentry->gr_name, maxlen);
~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In function ‘void time_from_time_t(char*, int, TIME_T)’,
inlined from ‘LONGEST linux_xfer_osdata_shm(gdb_byte*, ULONGEST,
ULONGEST)’:
/git/binutils-gdb/gdb/nat/linux-osdata.c:1103:15: error: ‘char* strncpy(char*,
const char*, size_t)’ specified bound 32 equals destination size
[-Werror=stringop-truncation]
strncpy (time, ctime (&t), maxlen);
~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~
In function ‘void time_from_time_t(char*, int, TIME_T)’,
inlined from ‘LONGEST linux_xfer_osdata_shm(gdb_byte*, ULONGEST,
ULONGEST)’:
/git/binutils-gdb/gdb/nat/linux-osdata.c:1103:15: error: ‘char* strncpy(char*,
const char*, size_t)’ specified bound 32 equals destination size
[-Werror=stringop-truncation]
strncpy (time, ctime (&t), maxlen);
~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~
In function ‘void time_from_time_t(char*, int, TIME_T)’,
inlined from ‘LONGEST linux_xfer_osdata_shm(gdb_byte*, ULONGEST,
ULONGEST)’:
/git/binutils-gdb/gdb/nat/linux-osdata.c:1103:15: error: ‘char* strncpy(char*,
const char*, size_t)’ specified bound 32 equals destination size
[-Werror=stringop-truncation]
strncpy (time, ctime (&t), maxlen);
~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~
In function ‘void user_from_uid(char*, int, uid_t)’,
inlined from ‘void print_sockets(short unsigned int, int, buffer*)’ at
/git/binutils-gdb/gdb/nat/linux-osdata.c:1017:19:
/git/binutils-gdb/gdb/nat/linux-osdata.c:216:15: error: ‘char* strncpy(char*,
const char*, size_t)’ specified bound 32 equals destination size
[-Werror=stringop-truncation]
strncpy (user, pwentry->pw_name, maxlen);
~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In function ‘void user_from_uid(char*, int, uid_t)’,
inlined from ‘LONGEST linux_xfer_osdata_processes(gdb_byte*, ULONGEST,
ULONGEST)’ at /git/binutils-gdb/gdb/nat/linux-osdata.c:330:17:
/git/binutils-gdb/gdb/nat/linux-osdata.c:216:15: error: ‘char* strncpy(char*,
const char*, size_t)’ specified bound 32 equals destination size
[-Werror=stringop-truncation]
strncpy (user, pwentry->pw_name, maxlen);
~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
cc1plus: all warnings being treated as errors
make[2]: *** [Makefile:1620: linux-osdata.o] Error 1
make[2]: Target 'all' not remade because of errors.
make[2]: Leaving directory '/home/d/binutils/gdb'
make[1]: *** [Makefile:10439: all-gdb] Error 2
make[1]: Target 'all-host' not remade because of errors.
make[1]: Nothing to be done for 'all-target'.
make[1]: Leaving directory '/home/d/binutils'
make: *** [Makefile:850: all] Error 2
--
You are receiving this mail because:
You are on the CC list for the bug.
tromey at sourceware dot org
2018-04-18 17:02:29 UTC
Permalink
https://sourceware.org/bugzilla/show_bug.cgi?id=22931

Tom Tromey <tromey at sourceware dot org> changed:

What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |WAITING
Last reconfirmed| |2018-04-18
CC| |tromey at sourceware dot org
Component|compile |build
Ever confirmed|0 |1

--- Comment #1 from Tom Tromey <tromey at sourceware dot org> ---
I suspect that was a gcc bug, or if it was a gdb bug, it's been fixed.
Could you try again with a newer gcc and a newer gdb?
--
You are receiving this mail because:
You are on the CC list for the bug.
dilyan.palauzov at aegee dot org
2018-04-19 11:17:56 UTC
Permalink
https://sourceware.org/bugzilla/show_bug.cgi?id=22931

--- Comment #2 from dilyan.palauzov at aegee dot org <dilyan.palauzov at aegee dot org> ---
I cannot try again, because I do not have the computer with gcc 8 any more.
--
You are receiving this mail because:
You are on the CC list for the bug.
tromey at sourceware dot org
2018-08-07 12:45:56 UTC
Permalink
https://sourceware.org/bugzilla/show_bug.cgi?id=22931

Tom Tromey <tromey at sourceware dot org> changed:

What |Removed |Added
----------------------------------------------------------------------------
Status|WAITING |RESOLVED
Resolution|--- |FIXED

--- Comment #3 from Tom Tromey <tromey at sourceware dot org> ---
I believe this has been fixed.
--
You are receiving this mail because:
You are on the CC list for the bug.
Loading...