Debian Bug report logs - #1015360
binutils-h8300-hms: ftbfs with LTO (link time optimization) enabled

version graph

Package: src:binutils-h8300-hms; Maintainer for src:binutils-h8300-hms is Debian LEGO Team <[email protected]>;

Reported by: Matthias Klose <[email protected]>

Date: Tue, 19 Jul 2022 16:54:33 UTC

Severity: minor

Tags: sid, trixie

Found in version binutils-h8300-hms/2.16.1-10

Reply or subscribe to this bug.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to Michael Tautschnig <[email protected]>:
Bug#1015360; Package src:binutils-h8300-hms. (Tue, 19 Jul 2022 16:54:35 GMT) (full text, mbox, link).


Acknowledgement sent to Matthias Klose <[email protected]>:
New Bug report received and forwarded. Copy sent to Michael Tautschnig <[email protected]>. (Tue, 19 Jul 2022 16:54:35 GMT) (full text, mbox, link).


Message #5 received at [email protected] (full text, mbox, reply):

From: Matthias Klose <[email protected]>
To: [email protected]
Subject: binutils-h8300-hms: ftbfs with LTO (link time optimization) enabled
Date: Tue, 19 Jul 2022 16:50:38 +0000
Package: src:binutils-h8300-hms
Version: 2.16.1-10
Severity: minor
Tags: sid bookworm
User: [email protected]
Usertags: ftbfs-lto

This package currently fails to build (at least on the amd64
architecture) with link time optimizations enabled.  For a background
for LTO please see

https://wiki.debian.org/ToolChain/LTO

The goal is to enable this optimization by default in an upcoming
Debian release in dpkg-buildflags for 64bit architectures.  The goal
is to get this package to build with link time optimizations, or to
explicitly disable link time optimizations for this package build.

To reproduce the build failure, enable the lto optimization in
testing/unstable by adding "optimize=+lto" to DEB_BUILD_MAINT_OPTIONS
in the debian/rules file, or if this macro is unset, just set it:

export DEB_BUILD_MAINT_OPTIONS = optimize=+lto

Please try to fix the build with lto enabled, fixing the packaging or
forwarding the issue upstream. If the issue cannot be fixed,
explicitly disallow building the package with lto by adding to your
rules file:

export DEB_BUILD_MAINT_OPTIONS = optimize=-lto

or adding that string to your existing setting of DEB_BUILD_MAINT_OPTIONS.

The full build log can be found at:
http://qa-logs.debian.net/2022/06/09/dpkglto/binutils-h8300-hms_2.16.1-10_unstable_dpkglto.log
The last lines of the build log are at the end of this report.

[...]
if [ x"" != x ]; then \
  cc -c -DHAVE_CONFIG_H -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -flto=auto -ffat-lto-objects -fstack-protector-strong -Wformat -Werror=format-security -U_FORTIFY_SOURCE  -I. -I../../libiberty/../include  -W -Wall -Wtraditional -pedantic  ../../libiberty/hex.c -o pic/hex.o; \
else true; fi
cc -c -DHAVE_CONFIG_H -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -flto=auto -ffat-lto-objects -fstack-protector-strong -Wformat -Werror=format-security -U_FORTIFY_SOURCE  -I. -I../../libiberty/../include  -W -Wall -Wtraditional -pedantic ../../libiberty/hex.c -o hex.o
if [ x"" != x ]; then \
  cc -c -DHAVE_CONFIG_H -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -flto=auto -ffat-lto-objects -fstack-protector-strong -Wformat -Werror=format-security -U_FORTIFY_SOURCE  -I. -I../../libiberty/../include  -W -Wall -Wtraditional -pedantic  ../../libiberty/lbasename.c -o pic/lbasename.o; \
else true; fi
cc -c -DHAVE_CONFIG_H -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -flto=auto -ffat-lto-objects -fstack-protector-strong -Wformat -Werror=format-security -U_FORTIFY_SOURCE  -I. -I../../libiberty/../include  -W -Wall -Wtraditional -pedantic ../../libiberty/lbasename.c -o lbasename.o
if [ x"" != x ]; then \
  cc -c -DHAVE_CONFIG_H -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -flto=auto -ffat-lto-objects -fstack-protector-strong -Wformat -Werror=format-security -U_FORTIFY_SOURCE  -I. -I../../libiberty/../include  -W -Wall -Wtraditional -pedantic  ../../libiberty/lrealpath.c -o pic/lrealpath.o; \
else true; fi
cc -c -DHAVE_CONFIG_H -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -flto=auto -ffat-lto-objects -fstack-protector-strong -Wformat -Werror=format-security -U_FORTIFY_SOURCE  -I. -I../../libiberty/../include  -W -Wall -Wtraditional -pedantic ../../libiberty/lrealpath.c -o lrealpath.o
if [ x"" != x ]; then \
  cc -c -DHAVE_CONFIG_H -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -flto=auto -ffat-lto-objects -fstack-protector-strong -Wformat -Werror=format-security -U_FORTIFY_SOURCE  -I. -I../../libiberty/../include  -W -Wall -Wtraditional -pedantic  ../../libiberty/make-relative-prefix.c -o pic/make-relative-prefix.o; \
else true; fi
cc -c -DHAVE_CONFIG_H -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -flto=auto -ffat-lto-objects -fstack-protector-strong -Wformat -Werror=format-security -U_FORTIFY_SOURCE  -I. -I../../libiberty/../include  -W -Wall -Wtraditional -pedantic ../../libiberty/make-relative-prefix.c -o make-relative-prefix.o
if [ x"" != x ]; then \
  cc -c -DHAVE_CONFIG_H -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -flto=auto -ffat-lto-objects -fstack-protector-strong -Wformat -Werror=format-security -U_FORTIFY_SOURCE  -I. -I../../libiberty/../include  -W -Wall -Wtraditional -pedantic  ../../libiberty/make-temp-file.c -o pic/make-temp-file.o; \
else true; fi
cc -c -DHAVE_CONFIG_H -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -flto=auto -ffat-lto-objects -fstack-protector-strong -Wformat -Werror=format-security -U_FORTIFY_SOURCE  -I. -I../../libiberty/../include  -W -Wall -Wtraditional -pedantic ../../libiberty/make-temp-file.c -o make-temp-file.o
if [ x"" != x ]; then \
  cc -c -DHAVE_CONFIG_H -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -flto=auto -ffat-lto-objects -fstack-protector-strong -Wformat -Werror=format-security -U_FORTIFY_SOURCE  -I. -I../../libiberty/../include  -W -Wall -Wtraditional -pedantic  ../../libiberty/objalloc.c -o pic/objalloc.o; \
else true; fi
cc -c -DHAVE_CONFIG_H -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -flto=auto -ffat-lto-objects -fstack-protector-strong -Wformat -Werror=format-security -U_FORTIFY_SOURCE  -I. -I../../libiberty/../include  -W -Wall -Wtraditional -pedantic ../../libiberty/objalloc.c -o objalloc.o
if [ x"" != x ]; then \
  cc -c -DHAVE_CONFIG_H -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -flto=auto -ffat-lto-objects -fstack-protector-strong -Wformat -Werror=format-security -U_FORTIFY_SOURCE  -I. -I../../libiberty/../include  -W -Wall -Wtraditional -pedantic  ../../libiberty/obstack.c -o pic/obstack.o; \
else true; fi
cc -c -DHAVE_CONFIG_H -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -flto=auto -ffat-lto-objects -fstack-protector-strong -Wformat -Werror=format-security -U_FORTIFY_SOURCE  -I. -I../../libiberty/../include  -W -Wall -Wtraditional -pedantic ../../libiberty/obstack.c -o obstack.o
if [ x"" != x ]; then \
  cc -c -DHAVE_CONFIG_H -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -flto=auto -ffat-lto-objects -fstack-protector-strong -Wformat -Werror=format-security -U_FORTIFY_SOURCE  -I. -I../../libiberty/../include  -W -Wall -Wtraditional -pedantic  ../../libiberty/partition.c -o pic/partition.o; \
else true; fi
cc -c -DHAVE_CONFIG_H -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -flto=auto -ffat-lto-objects -fstack-protector-strong -Wformat -Werror=format-security -U_FORTIFY_SOURCE  -I. -I../../libiberty/../include  -W -Wall -Wtraditional -pedantic ../../libiberty/partition.c -o partition.o
if [ x"" != x ]; then \
  cc -c -DHAVE_CONFIG_H -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -flto=auto -ffat-lto-objects -fstack-protector-strong -Wformat -Werror=format-security -U_FORTIFY_SOURCE  -I. -I../../libiberty/../include  -W -Wall -Wtraditional -pedantic  ../../libiberty/physmem.c -o pic/physmem.o; \
else true; fi
cc -c -DHAVE_CONFIG_H -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -flto=auto -ffat-lto-objects -fstack-protector-strong -Wformat -Werror=format-security -U_FORTIFY_SOURCE  -I. -I../../libiberty/../include  -W -Wall -Wtraditional -pedantic ../../libiberty/physmem.c -o physmem.o
../../libiberty/physmem.c: In function ‘physmem_total’:
../../libiberty/physmem.c:96:23: error: storage size of ‘pss’ isn’t known
   96 |     struct pst_static pss;
      |                       ^~~
../../libiberty/physmem.c:97:14: warning: implicit declaration of function ‘pstat_getstatic’ [-Wimplicit-function-declaration]
   97 |     if (0 <= pstat_getstatic (&pss, sizeof pss, 1, 0))
      |              ^~~~~~~~~~~~~~~
../../libiberty/physmem.c:96:23: warning: unused variable ‘pss’ [-Wunused-variable]
   96 |     struct pst_static pss;
      |                       ^~~
../../libiberty/physmem.c: In function ‘physmem_available’:
../../libiberty/physmem.c:200:23: error: storage size of ‘pss’ isn’t known
  200 |     struct pst_static pss;
      |                       ^~~
../../libiberty/physmem.c:201:24: error: storage size of ‘psd’ isn’t known
  201 |     struct pst_dynamic psd;
      |                        ^~~
../../libiberty/physmem.c:203:17: warning: implicit declaration of function ‘pstat_getdynamic’ [-Wimplicit-function-declaration]
  203 |         && 0 <= pstat_getdynamic (&psd, sizeof psd, 1, 0))
      |                 ^~~~~~~~~~~~~~~~
../../libiberty/physmem.c:201:24: warning: unused variable ‘psd’ [-Wunused-variable]
  201 |     struct pst_dynamic psd;
      |                        ^~~
../../libiberty/physmem.c:200:23: warning: unused variable ‘pss’ [-Wunused-variable]
  200 |     struct pst_static pss;
      |                       ^~~
make[3]: *** [Makefile:787: physmem.o] Error 1
make[3]: Leaving directory '/<<PKGBUILDDIR>>/builddir-h8300-hitachi-coff/libiberty'
make[2]: *** [Makefile:5669: all-libiberty] Error 2
make[2]: Leaving directory '/<<PKGBUILDDIR>>/builddir-h8300-hitachi-coff'
make[1]: *** [debian/rules:38: override_dh_auto_build] Error 2
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
make: *** [debian/rules:9: build] Error 2
dpkg-buildpackage: error: debian/rules build subprocess returned exit status 2



Added tag(s) trixie. Request was from Sebastian Ramacher <[email protected]> to [email protected]. (Sun, 11 Jun 2023 15:47:29 GMT) (full text, mbox, link).


Removed tag(s) bookworm. Request was from Andreas Beckmann <[email protected]> to [email protected]. (Fri, 13 Oct 2023 14:09:12 GMT) (full text, mbox, link).


Send a report that this bug log contains spam.


Debian bug tracking system administrator <[email protected]>. Last modified: Tue May 13 16:16:53 2025; Machine Name: bembo

Debian Bug tracking system

Debbugs is free software and licensed under the terms of the GNU General Public License version 2. The current version can be obtained from https://bugs.debian.org/debbugs-source/.

Copyright © 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson, 2005-2017 Don Armstrong, and many other contributors.