[Bug 1352836] Re: link failure when package is built with -O3 (14.10)
Alan Modra
amodra.tools at gmail.com
Wed Aug 6 23:59:45 UTC 2014
So the upstream bug was closed as a dup of another bug, 61294. The fix
for that bugzilla was to implement a new -Wmemset-transposed-args, and
remove the memset warning from system headers
(/usr/include/bits/string3.h). However, the glibc side of that fix has
not yet been committed.
The alternatives then are
1) rip out the memset macro from string3.h and backport the 61294 fix to ubuntu gcc, if it isn't there already
2) don't compile okteta with -Wl,--fatal-warnings and ignore the false positive
3) don't compile okteta with -O3
4) modify core/bytearraymodel_p.cpp ByteArrayModelPrivate::fill, adding "if (fillLength != 0)" before the memset call.
If it were up to me, I'd go with (4).
--
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