Public bug reported:

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.

** Affects: fwupd
     Importance: Unknown
         Status: Unknown

** Affects: gcc-7 (Ubuntu)
     Importance: Undecided
         Status: New

** Bug watch added: github.com/hughsie/fwupd/issues #472
   https://github.com/hughsie/fwupd/issues/472

** Also affects: fwupd via
   https://github.com/hughsie/fwupd/issues/472
   Importance: Unknown
       Status: Unknown

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

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

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

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to