glibc FTBFS with gcc-10 10.2.0-3ubuntu1

Bug #1889069 reported by Balint Reczey
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
glibc (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

When testing the next upload merging changes from Debian I've encoundered the following failure:

https://launchpad.net/~ci-train-ppa-service/+archive/ubuntu/4017/+build/19642918/+files/buildlog_ubuntu-groovy-armhf.glibc_2.31-2ubuntu1~rbalint2_BUILDING.txt.gz :
...
arm-linux-gnueabihf-gcc-10 -mfloat-abi=soft -nostdlib -nostartfiles -r -o /<<PKGBUILDDIR>>/build-tree/armhf-armel/elf/librtld.map.o -Wl,--defsym='__stack_chk_fail=0' -Wl,--defsym='__stack_chk_fail_local=0' \
        '-Wl,-(' /<<PKGBUILDDIR>>/build-tree/armhf-armel/elf/dl-allobjs.os /<<PKGBUILDDIR>>/build-tree/armhf-armel/libc_pic.a -lgcc '-Wl,-)' -Wl,-Map,/<<PKGBUILDDIR>>/build-tree/armhf-armel/elf/librtld.mapT
/usr/bin/ld: error: /usr/lib/gcc/arm-linux-gnueabihf/10/libgcc.a(_udivmoddi4.o) uses VFP register arguments, /<<PKGBUILDDIR>>/build-tree/armhf-armel/elf/librtld.map.o does not
/usr/bin/ld: failed to merge target specific data of file /usr/lib/gcc/arm-linux-gnueabihf/10/libgcc.a(_udivmoddi4.o)
collect2: error: ld returned 1 exit status
make[3]: *** [Makefile:504: /<<PKGBUILDDIR>>/build-tree/armhf-armel/elf/librtld.map] Error 1
...

The same command passed with gcc-9 in the Ubuntu archive:

...
arm-linux-gnueabihf-gcc-9 -mfloat-abi=soft -nostdlib -nostartfiles -r -o /<<PKGBUILDDIR>>/build-tree/armhf-armel/elf/librtld.map.o -Wl,--defsym='__stack_chk_fail=0' -Wl,--defsym='__stack_chk_fail_local=0' \
 '-Wl,-(' /<<PKGBUILDDIR>>/build-tree/armhf-armel/elf/dl-allobjs.os /<<PKGBUILDDIR>>/build-tree/armhf-armel/libc_pic.a -lgcc '-Wl,-)' -Wl,-Map,/<<PKGBUILDDIR>>/build-tree/armhf-armel/elf/librtld.mapT
rm -f /<<PKGBUILDDIR>>/build-tree/armhf-armel/elf/librtld.map.o
mv -f /<<PKGBUILDDIR>>/build-tree/armhf-armel/elf/librtld.mapT /<<PKGBUILDDIR>>/build-tree/armhf-armel/elf/librtld.map
LC_ALL=C \
...

I think libgcc.a should not use VFP register arguments if we still want to allow using -mfloat-abi=soft this way, but I'm also checking a workaround in glibc to not build libc_pic.* so this error would not be hit. (libc-pic is not shipped in Debian anymore and the merge bring this change in to Ubuntu.)

CVE References

Revision history for this message
Matthias Klose (doko) wrote :

b-d on g++-10-multilib is missing

affects: gcc-10 (Ubuntu) → glibc (Ubuntu)
Balint Reczey (rbalint)
Changed in glibc (Ubuntu):
status: New → Invalid
Revision history for this message
Launchpad Janitor (janitor) wrote :
Download full text (8.2 KiB)

This bug was fixed in the package glibc - 2.32-0ubuntu3

---------------
glibc (2.32-0ubuntu3) groovy; urgency=medium

  * Fix cross-toolchain-base.
    Use ${Depends:foo=foo} magic to not create cross packages for
    libnss-nis*, rpcsvc-proto, libtirpc-dev and libnsl-dev (LP: #1895632)
  * XFAIL time/tst-cpuclock1 (LP: #1895687)

glibc (2.32-0ubuntu2) groovy; urgency=medium

  * Merge from Debian unstable
  * Refresh patches
  * debian/watch: Use HTTPS and download xz-compressed tarball
  * debian/watch: Use upstream's signing key to verify the tarball
  * Don't build and ship libnsl.a and Sun RPC static library and header files
  * XFAIL stdlib/tst-getrandom (LP: #1891403)
  * debian/symbols.wildcards: Update versions
  * Make libc-dev depend on rpcsvc-proto and libtirpc-dev.
    They replace development files for the Sun RPC library removed in glibc 32.
  * Make libc-dev depend on libnsl-dev.
    It replaces the development files for the new libnsl library replacing the
    one shipped by glibc.
  * Don't check symbols of libnss_nis.so and libnss_nisplus.so libraries.
    They are not shipped in glibc 2.32
  * Depend on libnss-nis and libnss-nisplus shipping the libraries dropped
    in 2.32
  * debian/patches/git-updates.diff: update from upstream stable branch:
    - x86-64: Fix FMA4 detection in ifunc
  * debian/testsuite-xfail-debian.mk: XFAIL unsupported tests failing in autopkgtest

glibc (2.31-3) unstable; urgency=medium

  [ Aurelien Jarno ]
  * debian/control.in/libc: add a Breaks: against openarena (<< 0.8.8+dfsg-4~)
    due to bug#966150.
  * debian/control.in/libc: add a Breaks: against ioquake3
    (<< 1.36+u20200211.f2c61c1~dfsg-2~) as previous versions are not correctly
    linked with libm.
  * debian/patches/git-updates.diff: update from upstream stable branch:
    - Fix an infinite loop in the iconv program (CVE-2016-10228). Closes:
      #856503.
    - debian/patches/any/submitted-selinux-deprecations.diff: upstreamed.
    - debian/patches/x32/submitted-fix-nptl-setgroups-x32.diff: upstreamed.
  * debian/rules.d/build.mk: install <finclude/math-vector-fortran.h> in the
    multiarch path. Closes: #962457.

  [ Samuel Thibault ]
  * debian/libc0.3.symbols.hurd-i386: Fix dependency of __errno_location and
    __h_errno_location symbols in libpthread.
  * patches/hurd-i386/unsubmitted-sbrk-_end.diff: Fix _end symbol appearance
    by reworking sbrk.
  * patches/hurd-i386/unsubmitted-sched_sets.diff: Add sched_set/getscheduler.
  * patches/hurd-i386/git-pthread_atfork-hidden.diff: Hide pthread_atfork
    symbols imported to applications, to avoid leaking them.

glibc (2.31-2ubuntu1) groovy; urgency=medium

  [ Michael Hudson-Doyle ]
  * Mark tst-getpw as XFAIL on arm64. (LP: #1869364)

  [ Balint Reczey ]
  * Merge from Debian unstable
    - debian/patches/any/submitted-selinux-deprecations.diff: proposed patch to
      ignore the selinux deprecations introduced in libselinux (>= 3.1), fixing
      an FTBFS. (LP: #1887919)
    Remaining changes:
    - Enable libc6{,-dev}-armel on armhf and libc6{-dev}-armhf on armel.
    - Heavily mangle the way we do service restarting on major upgrades.
    - Build amd64 with -O3, and b...

Read more...

Changed in glibc (Ubuntu):
status: Invalid → 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.