[Bug 1352836] Re: link failure when package is built with -O3 (14.10)

Alan Modra amodra.tools at gmail.com
Tue Aug 5 15:27:03 UTC 2014


It's not a linker error, and x86_64 mainline gcc  4.10.0 20140727 fails
similarly.

nm bytearraymodel_p.o | grep __warn
                 U __warn_memset_zero_len

Linking this object file against libc_nonshared.a (which is where this
symbol is defined) generates the linker warning which is turned into an
error by -Wl,--fatal-warnings.

So a gcc bug.

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

Title:
  link failure when package is built with -O3 (14.10)

Status in “gcc-4.9” package in Ubuntu:
  Confirmed

Bug description:
  this can be reproduced in a 14.10 chroot, with -proposed enabled.

  link failure when the okteta package is built with -O3 (14.10), it
  succeeds when built with -O2.

  https://launchpad.net/ubuntu/+source/okteta/4:4.13.97-0ubuntu1
  search for "error:" in the build log. There is no error message from the linker.

  looking at the history of build failures this seems to be seen first
  with GCC 4.9 as the default GCC..

  workaround with -O2:
  https://launchpad.net/ubuntu/+source/okteta/4:4.13.97-0ubuntu2

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/gcc-4.9/+bug/1352836/+subscriptions



More information about the foundations-bugs mailing list