https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99448
--- Comment #2 from Matthias Klose <doko at debian dot org> --- the compiler is configured with --enable-default-pie. so this one sometimes fails with different reasons when retrying: lto1: error: filter/andfiltertest.o: file too short lto1: fatal error: errors during merging of translation units compilation terminated. lto-wrapper: fatal error: g++ returned 1 exit status compilation terminated. /usr/bin/ld: error: lto-wrapper failed collect2: error: ld returned 1 exit status and doesn't fail now when just retrying the link command manually now ... these flags are passed to the upstream build system: CFLAGS=-g -O2 -ffile-prefix-map=/packages/tmp/log4cxx-0.11.0=. -flto=auto -ffat-lto-objects -fstack-protector-strong -Wformat -Werror=format-security CPPFLAGS=-Wdate-time -D_FORTIFY_SOURCE=2 CXXFLAGS=-g -O2 -ffile-prefix-map=/packages/tmp/log4cxx-0.11.0=. -flto=auto -ffat-lto-objects -fstack-protector-strong -Wformat -Werror=format-security LDFLAGS=-flto=auto -Wl,-z,relro