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
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: 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 0-2.29. 92/./glib/ tests/mem- overflow. c:137:1: sorry, unimplemented: gimple bytecode streams do not support the optimization attribute
gcc -DHAVE_CONFIG_H -I. -I/tmp/
/tmp/glib2.