Your message dated Sat, 4 Nov 2023 16:13:16 +0100
with message-id <[email protected]>
and subject line Re: swupdate: ftbfs with LTO (link time optimization) enabled
has caused the Debian Bug report #1015676,
regarding swupdate: ftbfs with LTO (link time optimization) enabled
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)


-- 
1015676: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1015676
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: src:swupdate
Version: 2022.05-1
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/swupdate_2022.05-1_unstable_dpkglto.log
The last lines of the build log are at the end of this report.

[...]
  109 | #define ERROR(format, arg...) \
      |                          ^~~
include/util.h:112:25: warning: ISO C does not permit named variadic macros 
[-Wvariadic-macros]
  112 | #define WARN(format, arg...) \
      |                         ^~~
include/util.h:115:25: warning: ISO C does not permit named variadic macros 
[-Wvariadic-macros]
  115 | #define INFO(format, arg...) \
      |                         ^~~
include/util.h:118:26: warning: ISO C does not permit named variadic macros 
[-Wvariadic-macros]
  118 | #define TRACE(format, arg...) \
      |                          ^~~
include/util.h:121:26: warning: ISO C does not permit named variadic macros 
[-Wvariadic-macros]
  121 | #define DEBUG(format, arg...) \
      |                          ^~~
In file included from core/strlcpy.c:8:
include/util.h:86:51: warning: ISO C does not permit named variadic macros 
[-Wvariadic-macros]
   86 | #define swupdate_notify(status, format, level, arg...) do { \
      |                                                   ^~~
include/util.h:109:26: warning: ISO C does not permit named variadic macros 
[-Wvariadic-macros]
  109 | #define ERROR(format, arg...) \
      |                          ^~~
include/util.h:112:25: warning: ISO C does not permit named variadic macros 
[-Wvariadic-macros]
  112 | #define WARN(format, arg...) \
      |                         ^~~
include/util.h:115:25: warning: ISO C does not permit named variadic macros 
[-Wvariadic-macros]
  115 | #define INFO(format, arg...) \
      |                         ^~~
include/util.h:118:26: warning: ISO C does not permit named variadic macros 
[-Wvariadic-macros]
  118 | #define TRACE(format, arg...) \
      |                          ^~~
include/util.h:121:26: warning: ISO C does not permit named variadic macros 
[-Wvariadic-macros]
  121 | #define DEBUG(format, arg...) \
      |                          ^~~
In file included from corelib/verify_signature.c:16:
include/util.h:86:51: warning: ISO C does not permit named variadic macros 
[-Wvariadic-macros]
   86 | #define swupdate_notify(status, format, level, arg...) do { \
      |                                                   ^~~
include/util.h:109:26: warning: ISO C does not permit named variadic macros 
[-Wvariadic-macros]
  109 | #define ERROR(format, arg...) \
      |                          ^~~
include/util.h:112:25: warning: ISO C does not permit named variadic macros 
[-Wvariadic-macros]
  112 | #define WARN(format, arg...) \
      |                         ^~~
include/util.h:115:25: warning: ISO C does not permit named variadic macros 
[-Wvariadic-macros]
  115 | #define INFO(format, arg...) \
      |                         ^~~
include/util.h:118:26: warning: ISO C does not permit named variadic macros 
[-Wvariadic-macros]
  118 | #define TRACE(format, arg...) \
      |                          ^~~
include/util.h:121:26: warning: ISO C does not permit named variadic macros 
[-Wvariadic-macros]
  121 | #define DEBUG(format, arg...) \
      |                          ^~~
   gcc -flto=auto -ffat-lto-objects -Wl,-z,relro -Wl,-z,now -nostdlib -r -o 
core/built-in.o core/swupdate.o core/cpio_utils.o core/notifier.o 
core/handler.o core/bootloader.o core/install_from_file.o core/util.o 
core/parser.o core/pctl.o core/state.o core/syslog.o core/installer.o 
core/network_thread.o core/stream_interface.o core/progress_thread.o 
core/parsing_library.o core/artifacts_versions.o core/swupdate_dict.o 
core/semver.o core/strlcpy.o
  rm -f corelib/lib.a; ar rcs corelib/lib.a corelib/channel_curl.o 
corelib/downloader.o corelib/lua_compat.o corelib/lua_interface.o 
corelib/mtd-interface.o corelib/multipart_parser.o 
corelib/parsing_library_libconfig.o corelib/parsing_library_libjson.o 
corelib/swupdate_cms_verify.o corelib/swupdate_decrypt.o 
corelib/swupdate_settings.o corelib/verify_signature.o
In function ‘mg_uri_to_local_path’,
    inlined from ‘mg_serve_http’ at mongoose/mongoose.c:8427:7:
mongoose/mongoose.c:520:7: warning: ‘%.*s’ directive argument is null 
[-Wformat-overflow=]
  520 |       cs_log_printf x;                                \
      |       ^
mongoose/mongoose.c: In function ‘mg_serve_http’:
mongoose/mongoose.c:8180:27: note: format string is defined here
 8180 |       ("'%.*s' -> '%s' + '%.*s'", (int) hm->uri.len, hm->uri.p,
      |                           ^~~~
  rm -f mongoose/lib.a; ar rcs mongoose/lib.a mongoose/mongoose.o 
mongoose/mongoose_interface.o
make[2]: Leaving directory '/<<PKGBUILDDIR>>'
dh_auto_build: error: make -j8 "INSTALL=install --strip-program=true" V=1 
returned exit code 2
make[1]: *** [debian/rules:59: override_dh_auto_build] Error 25
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
make: *** [debian/rules:89: binary] Error 2
dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2

--- End Message ---
--- Begin Message ---
Version: 2023.05+dfsg-1

This works with the current upstream version.

--- End Message ---

Reply via email to