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 build/20526] New: [7.12 Regression] fail to build 64bit gdb on 32bit targets (powerpc, x86)


https://sourceware.org/bugzilla/show_bug.cgi?id=20526

            Bug ID: 20526
           Summary: [7.12 Regression] fail to build 64bit gdb on 32bit
                    targets (powerpc, x86)
           Product: gdb
           Version: 7.12
            Status: NEW
          Severity: normal
          Priority: P2
         Component: build
          Assignee: unassigned at sourceware dot org
          Reporter: doko at debian dot org
  Target Milestone: ---

The last weekly snapshot 7.11.90.20160824 taken from the 7.12 branch fails to
build on i686-linux-gnu and powerpc-linux-gnu, 

In file included from /«PKGBUILDDIR»/gdb/common/common-defs.h:71:0,
                 from /«PKGBUILDDIR»/gdb/defs.h:28,
                 from /«PKGBUILDDIR»/gdb/linux-tdep.c:20:
/«PKGBUILDDIR»/gdb/linux-tdep.c: In function ‘void
linux_core_info_proc_mappings(gdbarch*, const char*)’:
/«PKGBUILDDIR»/gdb/common/gdb_assert.h:26:66: error: size of array
‘never_defined_just_used_for_checking’ is negative
   extern int never_defined_just_used_for_checking[(expr) ? 1 : -1]
                                                                  ^
/«PKGBUILDDIR»/gdb/linux-tdep.c:1010:3: note: in expansion of macro
‘gdb_static_assert’
   gdb_static_assert (sizeof (ULONGEST) >= 8);
   ^~~~~~~~~~~~~~~~~
make[3]: *** [linux-tdep.o] Error 1
Makefile:1152: recipe for target 'linux-tdep.o' failed
make[3]: *** Waiting for unfinished jobs....

The builds are configured as:

cd /«PKGBUILDDIR»/build/objdir64 && CC="gcc -m64" CFLAGS="-g -O2
-fdebug-prefix-map=/«PKGBUILDDIR»=. -fstack-protector-strong -Wformat
-Werror=format-security" AR=ar \
  /«PKGBUILDDIR»/configure --build=powerpc-linux-gnu  --prefix=/usr
--includedir="\${prefix}/include" --mandir="\${prefix}/share/man"
--infodir="\${prefix}/share/info" --sysconfdir=/etc --localstatedir=/var
--libexecdir="\${prefix}/lib/gdb"   --disable-maintainer-mode
--disable-dependency-tracking --disable-silent-rules 
--host=powerpc64-linux-gnu --disable-gdbtk --disable-shared
--with-pkgversion='Ubuntu 7.11.90.20160824-0ubuntu1' --srcdir=/«PKGBUILDDIR»
--disable-readline --with-system-readline --with-expat --with-system-zlib
--without-lzma --without-guile --without-babeltrace --with-babeltrace
--with-system-gdbinit=/etc/gdb/gdbinit --build=powerpc-linux-gnu --enable-tui
--without-babeltrace

cd /«PKGBUILDDIR»/build/objdir64 && CC="gcc -m64" CFLAGS="-g -O2
-fdebug-prefix-map=/«PKGBUILDDIR»=. -fstack-protector-strong -Wformat
-Werror=format-security" AR=ar \
  /«PKGBUILDDIR»/configure --build=i686-linux-gnu  --prefix=/usr
--includedir="\${prefix}/include" --mandir="\${prefix}/share/man"
--infodir="\${prefix}/share/info" --sysconfdir=/etc --localstatedir=/var
--libexecdir="\${prefix}/lib/gdb"   --disable-maintainer-mode
--disable-dependency-tracking --disable-silent-rules  --host=x86_64-linux-gnu
--disable-gdbtk --disable-shared --with-pkgversion='Ubuntu
7.11.90.20160824-0ubuntu1' --srcdir=/«PKGBUILDDIR» --disable-readline
--with-system-readline --with-expat --with-system-zlib --without-lzma
--without-guile --without-babeltrace --with-babeltrace
--with-system-gdbinit=/etc/gdb/gdbinit --build=i686-linux-gnu --enable-tui
--without-babeltrace

-- 
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]