[Bug 856839] [NEW] libglib2.0-0 fails to build using dpkg-buildpackage when added "-flto" to CFLAGS and LDFLAGS

matt_hargett matt at use.net
Thu Sep 22 22:02:08 UTC 2011


Public bug reported:

when using apt-get source libglib2.0-0, and adding -flto to the CFLAGS
and LDFLAGS, the build fails with this:

./.libs/libglib-2.0.so: undefined reference to `__open_too_many_args'
./.libs/libglib-2.0.so: undefined reference to `__open_missing_mode'

which are errors generated by FORTIFY_SOURCE. it's currently unknown if
these are true positives from FORTIFY_SOURCE that are somehow missed
without LTO, or are false positives due to codegen issues when enabling
LTO.

** Affects: binutils (Ubuntu)
     Importance: Undecided
         Status: New

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

Title:
  libglib2.0-0 fails to build using dpkg-buildpackage when added "-flto"
  to CFLAGS and LDFLAGS

Status in “binutils” package in Ubuntu:
  New

Bug description:
  when using apt-get source libglib2.0-0, and adding -flto to the CFLAGS
  and LDFLAGS, the build fails with this:

  ./.libs/libglib-2.0.so: undefined reference to `__open_too_many_args'
  ./.libs/libglib-2.0.so: undefined reference to `__open_missing_mode'

  which are errors generated by FORTIFY_SOURCE. it's currently unknown
  if these are true positives from FORTIFY_SOURCE that are somehow
  missed without LTO, or are false positives due to codegen issues when
  enabling LTO.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/binutils/+bug/856839/+subscriptions




More information about the foundations-bugs mailing list