This is the mail archive of the gdb-prs@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug compile/22931] New: Newest gcc does not compile newest gdb


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.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]