FTBFS with newer glibc 2.27

Bug #1753826 reported by Christian Ehrhardt 
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
qemu (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

Newer rebuilds of formerly working code show the following:

cc -I/<<BUILDDIR>>/qemu-2.11+dfsg/qemu-build/util -Iutil -I/<<BUILDDIR>>/qemu-2.11+dfsg/tcg -I/<<BUILDDIR>>/qemu-2.11+dfsg/tcg/i386 -I/<<BUILDDIR>>/qemu-2.11+dfsg/linux-headers -I/<<BUILDDIR>>/qemu-2.11+dfsg/qemu-build/linux-headers -I. -I/<<BUILDDIR>>/qemu-2.11+dfsg -I/<<BUILDDIR>>/qemu-2.11+dfsg/accel/tcg -I/<<BUILDDIR>>/qemu-2.11+dfsg/include -I/usr/include/pixman-1 -pthread -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -pthread -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -DNCURSES_WIDECHAR -D_GNU_SOURCE -D_DEFAULT_SOURCE -I/usr/include/ncursesw -fPIE -DPIE -m64 -mcx16 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -Wstrict-prototypes -Wredundant-decls -Wall -Wundef -Wwrite-strings -Wmissing-prototypes -fno-strict-aliasing -fno-common -fwrapv -g -O2 -fdebug-prefix-map=/<<BUILDDIR>>/qemu-2.11+dfsg=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -DCONFIG_QEMU_DATAPATH='"/usr/share/qemu:/usr/share/seabios:/usr/lib/ipxe/qemu"' -DVENDOR_UBUNTU -Wexpansion-to-defined -Wendif-labels -Wno-shift-negative-value -Wno-missing-include-dirs -Wempty-body -Wnested-externs -Wformat-security -Wformat-y2k -Winit-self -Wignored-qualifiers -Wold-style-declaration -Wold-style-definition -Wtype-limits -fstack-protector-strong -I/usr/include/p11-kit-1 -I/usr/include/libpng16 -I/usr/include/spice-server -I/usr/include/spice-1 -I/<<BUILDDIR>>/qemu-2.11+dfsg/tests -I qga/qapi-generated -MMD -MP -MT util/memfd.o -MF util/memfd.d -O2 -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -g -c -o util/memfd.o /<<BUILDDIR>>/qemu-2.11+dfsg/util/memfd.c
cc -I/<<BUILDDIR>>/qemu-2.11+dfsg/qemu-build/util -Iutil -I/<<BUILDDIR>>/qemu-2.11+dfsg/tcg -I/<<BUILDDIR>>/qemu-2.11+dfsg/tcg/i386 -I/<<BUILDDIR>>/qemu-2.11+dfsg/linux-headers -I/<<BUILDDIR>>/qemu-2.11+dfsg/qemu-build/linux-headers -I. -I/<<BUILDDIR>>/qemu-2.11+dfsg -I/<<BUILDDIR>>/qemu-2.11+dfsg/accel/tcg -I/<<BUILDDIR>>/qemu-2.11+dfsg/include -I/usr/include/pixman-1 -pthread -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -pthread -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -DNCURSES_WIDECHAR -D_GNU_SOURCE -D_DEFAULT_SOURCE -I/usr/include/ncursesw -fPIE -DPIE -m64 -mcx16 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -Wstrict-prototypes -Wredundant-decls -Wall -Wundef -Wwrite-strings -Wmissing-prototypes -fno-strict-aliasing -fno-common -fwrapv -g -O2 -fdebug-prefix-map=/<<BUILDDIR>>/qemu-2.11+dfsg=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -DCONFIG_QEMU_DATAPATH='"/usr/share/qemu:/usr/share/seabios:/usr/lib/ipxe/qemu"' -DVENDOR_UBUNTU -Wexpansion-to-defined -Wendif-labels -Wno-shift-negative-value -Wno-missing-include-dirs -Wempty-body -Wnested-externs -Wformat-security -Wformat-y2k -Winit-self -Wignored-qualifiers -Wold-style-declaration -Wold-style-definition -Wtype-limits -fstack-protector-strong -I/usr/include/p11-kit-1 -I/usr/include/libpng16 -I/usr/include/spice-server -I/usr/include/spice-1 -I/<<BUILDDIR>>/qemu-2.11+dfsg/tests -I qga/qapi-generated -MMD -MP -MT util/envlist.o -MF util/envlist.d -O2 -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -g -c -o util/envlist.o /<<BUILDDIR>>/qemu-2.11+dfsg/util/envlist.c
/<<BUILDDIR>>/qemu-2.11+dfsg/util/memfd.c:40:12: error: static declaration of ‘memfd_create’ follows non-static declaration
 static int memfd_create(const char *name, unsigned int flags)
            ^~~~~~~~~~~~
In file included from /usr/include/x86_64-linux-gnu/bits/mman-linux.h:115:0,
                 from /usr/include/x86_64-linux-gnu/bits/mman.h:45,
                 from /usr/include/x86_64-linux-gnu/sys/mman.h:41,
                 from /<<BUILDDIR>>/qemu-2.11+dfsg/include/sysemu/os-posix.h:29,
                 from /<<BUILDDIR>>/qemu-2.11+dfsg/include/qemu/osdep.h:104,
                 from /<<BUILDDIR>>/qemu-2.11+dfsg/util/memfd.c:28:
/usr/include/x86_64-linux-gnu/bits/mman-shared.h:46:5: note: previous declaration of ‘memfd_create’ was here
 int memfd_create (const char *__name, unsigned int __flags) __THROW;
     ^~~~~~~~~~~~
/<<BUILDDIR>>/qemu-2.11+dfsg/rules.mak:66: recipe for target 'util/memfd.o' failed
make[1]: *** [util/memfd.o] Error 1
make[1]: *** Waiting for unfinished jobs....

Revision history for this message
Christian Ehrhardt  (paelzer) wrote :

Fix should be https://git.qemu.org/?p=qemu.git;a=commitdiff;h=75e5b70e6b5dcc4f2219992
Prepping an upload including that.

Revision history for this message
Christian Ehrhardt  (paelzer) wrote :

Currently test building in a ppa before upload ...

Changed in qemu (Ubuntu):
status: New → In Progress
Revision history for this message
Christian Ehrhardt  (paelzer) wrote :

Fix pushed to bionic proposed.

Changed in qemu (Ubuntu):
status: In Progress → Fix Committed
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package qemu - 1:2.11+dfsg-1ubuntu4

---------------
qemu (1:2.11+dfsg-1ubuntu4) bionic; urgency=medium

  * d/p/ubuntu/define-ubuntu-machine-types.patch: Disable HTM feature for
    ppc64el in spapr to let the defaults not fail on Power9 HW (LP: #1752026).
  * d/p/ubuntu/lp1753826-memfd-fix-configure-test.patch: fix FTBFS with newer
    versions of glibc >=2.27 (LP: #1753826)

 -- Christian Ehrhardt <email address hidden> Mon, 05 Mar 2018 16:43:01 +0100

Changed in qemu (Ubuntu):
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.