[Bug 856839] Re: libglib2.0-0 fails to build using dpkg-buildpackage when added -flto to CFLAGS and LDFLAGS
fixed in binutils 2.21.53.20110810-0ubuntu5 ** Changed in: binutils (Ubuntu) Status: Confirmed = Fix Released ** Changed in: gcc-4.6 (Ubuntu) Status: Confirmed = Invalid ** Changed in: glib2.0 (Ubuntu) Status: Confirmed = Invalid -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/856839 Title: libglib2.0-0 fails to build using dpkg-buildpackage when added -flto to CFLAGS and LDFLAGS To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/binutils/+bug/856839/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 856839] Re: libglib2.0-0 fails to build using dpkg-buildpackage when added -flto to CFLAGS and LDFLAGS
the build fails with glib 2.29.92-0ubuntu1 gcc-4.6 4.6.1-9ubuntu3 and binutils 2.21.53.20110810-0ubuntu3 with flto applied to compilation and linking stage: dpkg-buildpackage config APPEND CFLAGS -flto APPEND LDFLAGS -flto See the attached buildlog It succeeds without -flto. When building with -U_FORTIFY_SOURCE the linking failure is solved but one gets this error: gcc -DHAVE_CONFIG_H -I. -I/tmp/glib2.0-2.29.92/./glib/tests -I../.. -g -I../.. -I../../glib -I/tmp/glib2.0-2.29.92/./glib -I/tmp/glib2.0-2.29.92/. -DSRCDIR=\/tmp/glib2.0-2.29.92/./glib/tests\ -DG_ENABLE_DEBUG -DG_DISABLE_SINGLE_INCLUDES -pthread -g -O2 -flto -U_FORTIFY_SOURCE -Wall -c /tmp/glib2.0-2.29.92/./glib/tests/mem-overflow.c /tmp/glib2.0-2.29.92/./glib/tests/mem-overflow.c:137:1: sorry, unimplemented: gimple bytecode streams do not support the optimization attribute ** Attachment added: -flto added to default flags https://bugs.launchpad.net/ubuntu/+source/binutils/+bug/856839/+attachment/2443193/+files/glib-default%2Blto.buildlog -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/856839 Title: libglib2.0-0 fails to build using dpkg-buildpackage when added -flto to CFLAGS and LDFLAGS To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/binutils/+bug/856839/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 856839] Re: libglib2.0-0 fails to build using dpkg-buildpackage when added -flto to CFLAGS and LDFLAGS
** Attachment added: buildlog with -flto -U_FORTIFY_SOURCE https://bugs.launchpad.net/ubuntu/+source/binutils/+bug/856839/+attachment/2443198/+files/glib-default%2Blto%2Bnofortify.log ** Package changed: binutils (Ubuntu) = glib2.0 (Ubuntu) ** Also affects: binutils (Ubuntu) Importance: Undecided Status: New ** Also affects: gcc-4.6 (Ubuntu) Importance: Undecided Status: New ** Changed in: glib2.0 (Ubuntu) Importance: Undecided = Low ** Changed in: gcc-4.6 (Ubuntu) Importance: Undecided = Low ** Changed in: binutils (Ubuntu) Importance: Undecided = Low ** Changed in: binutils (Ubuntu) Status: New = Confirmed ** Changed in: gcc-4.6 (Ubuntu) Status: New = Confirmed ** Changed in: glib2.0 (Ubuntu) Status: New = Confirmed -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/856839 Title: libglib2.0-0 fails to build using dpkg-buildpackage when added -flto to CFLAGS and LDFLAGS To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/binutils/+bug/856839/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 856839] Re: libglib2.0-0 fails to build using dpkg-buildpackage when added -flto to CFLAGS and LDFLAGS
compiling with gcc 4.7 snapshot leads to this issue: http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50490 ** Bug watch added: GCC Bugzilla #50490 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50490 -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/856839 Title: libglib2.0-0 fails to build using dpkg-buildpackage when added -flto to CFLAGS and LDFLAGS To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/binutils/+bug/856839/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs