[Bug 1765134] Re: Update from 7.3.0-15 to 7.3.0-16 based GCC causes lintian problems

Mario Limonciello superm1 at ubuntu.com
Wed Apr 18 17:54:48 UTC 2018


** Bug watch added: Debian Bug tracker #896012
   https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=896012

** Also affects: gcc-7 (Debian) via
   https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=896012
   Importance: Unknown
       Status: Unknown

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to gcc-7 in Ubuntu.
https://bugs.launchpad.net/bugs/1765134

Title:
  Update from 7.3.0-15 to 7.3.0-16 based GCC causes lintian problems

Status in Fwupd:
  Unknown
Status in gcc-7 package in Ubuntu:
  New
Status in gcc-7 package in Debian:
  Unknown

Bug description:
  Upstream fwupd runs CI with Debian testing and Ubuntu devel.  As part of that CI we run lintian after a packaged build.
  A few days ago we started noticing failures in Ubuntu first and then Debian later (probably because Ubuntu pulled in the -16 based GCC-7 before it migrated to Debian testing):

  E: fwupd: library-not-linked-against-libc usr/lib/x86_64-linux-gnu/fwupd-plugins-3/libfu_plugin_upower.so
  E: fwupd-tests: library-not-linked-against-libc usr/lib/x86_64-linux-gnu/fwupd-plugins-3/libfu_plugin_test.so

  I examined the files and sure enough they don't have libc.s.6 marked
  NEEDED.

  Compiling with the older compiler (or clang) they do.

  Newer:
  $ objdump -x build/obj-x86_64-linux-gnu/plugins/test/libfu_plugin_test.so | grep needed -i
    NEEDED               libgobject-2.0.so.0
    NEEDED               libglib-2.0.so.0

  Older:
  $ objdump -x build/obj-x86_64-linux-gnu/plugins/test/libfu_plugin_test.so | grep needed -i
    NEEDED               libgobject-2.0.so.0
    NEEDED               libglib-2.0.so.0
    NEEDED               libpthread.so.0
    NEEDED               libc.so.6

  
  We were looking at this upstream and find that it only happens if the compiler optimization is set to -O2.  (which is our default). Setting it to -O0 the problem goes away.

To manage notifications about this bug go to:
https://bugs.launchpad.net/fwupd/+bug/1765134/+subscriptions



More information about the foundations-bugs mailing list