[Bug 1765134] Re: Update from 7.3.0-15 to 7.3.0-16 based GCC causes lintian problems
Bug Watch Updater
1765134 at bugs.launchpad.net
Thu May 2 20:03:53 UTC 2019
** Changed in: fwupd
Status: Unknown => Fix Released
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to lintian 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:
Fix Released
Status in lintian package in Ubuntu:
New
Status in lintian package in Debian:
New
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