Debian Bug report logs - #1015415
gesftpserver: ftbfs with LTO (link time optimization) enabled

version graph

Package: src:gesftpserver; Maintainer for src:gesftpserver is Jonas Smedegaard <[email protected]>;

Reported by: Matthias Klose <[email protected]>

Date: Tue, 19 Jul 2022 16:56:44 UTC

Severity: minor

Tags: sid, trixie

Found in version gesftpserver/1~ds-3

Reply or subscribe to this bug.

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


Report forwarded to Jonas Smedegaard <[email protected]>:
Bug#1015415; Package src:gesftpserver. (Tue, 19 Jul 2022 16:56:46 GMT) (full text, mbox, link).


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


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

From: Matthias Klose <[email protected]>
To: [email protected]
Subject: gesftpserver: ftbfs with LTO (link time optimization) enabled
Date: Tue, 19 Jul 2022 16:52:31 +0000
Package: src:gesftpserver
Version: 1~ds-3
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/gesftpserver_1~ds-3_unstable_dpkglto.log
The last lines of the build log are at the end of this report.

[...]
sftpclient.c:2423:24: note: ‘MEM[(uint64_t *)&sr + 72B]’ was declared here
 2423 |   struct statvfs_reply sr;
      |                        ^
sftpclient.c:2426:3: error: ‘MEM[(uint64_t *)&sr + 64B]’ may be used uninitialized in this function [-Werror=maybe-uninitialized]
 2426 |   xprintf("bsize %"PRIu64" frsize %"PRIu64
      |   ^
sftpclient.c:2423:24: note: ‘MEM[(uint64_t *)&sr + 64B]’ was declared here
 2423 |   struct statvfs_reply sr;
      |                        ^
sftpclient.c:2426:3: error: ‘MEM[(uint64_t *)&sr + 56B]’ may be used uninitialized in this function [-Werror=maybe-uninitialized]
 2426 |   xprintf("bsize %"PRIu64" frsize %"PRIu64
      |   ^
sftpclient.c:2423:24: note: ‘MEM[(uint64_t *)&sr + 56B]’ was declared here
 2423 |   struct statvfs_reply sr;
      |                        ^
sftpclient.c:2426:3: error: ‘MEM[(uint64_t *)&sr + 48B]’ may be used uninitialized in this function [-Werror=maybe-uninitialized]
 2426 |   xprintf("bsize %"PRIu64" frsize %"PRIu64
      |   ^
sftpclient.c:2423:24: note: ‘MEM[(uint64_t *)&sr + 48B]’ was declared here
 2423 |   struct statvfs_reply sr;
      |                        ^
sftpclient.c:2426:3: error: ‘MEM[(uint64_t *)&sr + 40B]’ may be used uninitialized in this function [-Werror=maybe-uninitialized]
 2426 |   xprintf("bsize %"PRIu64" frsize %"PRIu64
      |   ^
sftpclient.c:2423:24: note: ‘MEM[(uint64_t *)&sr + 40B]’ was declared here
 2423 |   struct statvfs_reply sr;
      |                        ^
sftpclient.c:2426:3: error: ‘MEM[(uint64_t *)&sr + 32B]’ may be used uninitialized in this function [-Werror=maybe-uninitialized]
 2426 |   xprintf("bsize %"PRIu64" frsize %"PRIu64
      |   ^
sftpclient.c:2423:24: note: ‘MEM[(uint64_t *)&sr + 32B]’ was declared here
 2423 |   struct statvfs_reply sr;
      |                        ^
sftpclient.c:2426:3: error: ‘MEM[(uint64_t *)&sr + 24B]’ may be used uninitialized in this function [-Werror=maybe-uninitialized]
 2426 |   xprintf("bsize %"PRIu64" frsize %"PRIu64
      |   ^
sftpclient.c:2423:24: note: ‘MEM[(uint64_t *)&sr + 24B]’ was declared here
 2423 |   struct statvfs_reply sr;
      |                        ^
sftpclient.c:2426:3: error: ‘MEM[(uint64_t *)&sr + 16B]’ may be used uninitialized in this function [-Werror=maybe-uninitialized]
 2426 |   xprintf("bsize %"PRIu64" frsize %"PRIu64
      |   ^
sftpclient.c:2423:24: note: ‘MEM[(uint64_t *)&sr + 16B]’ was declared here
 2423 |   struct statvfs_reply sr;
      |                        ^
sftpclient.c:2426:3: error: ‘MEM[(uint64_t *)&sr + 8B]’ may be used uninitialized in this function [-Werror=maybe-uninitialized]
 2426 |   xprintf("bsize %"PRIu64" frsize %"PRIu64
      |   ^
sftpclient.c:2423:24: note: ‘MEM[(uint64_t *)&sr + 8B]’ was declared here
 2423 |   struct statvfs_reply sr;
      |                        ^
sftpclient.c:2426:3: error: ‘MEM[(uint64_t *)&sr]’ may be used uninitialized in this function [-Werror=maybe-uninitialized]
 2426 |   xprintf("bsize %"PRIu64" frsize %"PRIu64
      |   ^
sftpclient.c:2423:24: note: ‘MEM[(uint64_t *)&sr]’ was declared here
 2423 |   struct statvfs_reply sr;
      |                        ^
lto1: all warnings being treated as errors
make[3]: *** [/tmp/ccdeOYtt.mk:2: /tmp/ccMJNm7Z.ltrans0.ltrans.o] Error 1
lto-wrapper: fatal error: make returned 2 exit status
compilation terminated.
/usr/bin/ld: error: lto-wrapper failed
collect2: error: ld returned 1 exit status
make[2]: *** [Makefile:532: sftpclient] Error 1
make[2]: Leaving directory '/<<PKGBUILDDIR>>'
make[1]: *** [Makefile:416: all] Error 2
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
dh_auto_build: error: make -j8 returned exit code 2
make: *** [debian/rules:10: binary] Error 25
dpkg-buildpackage: error: debian/rules binary 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:51 GMT) (full text, mbox, link).


Removed tag(s) bookworm. Request was from Andreas Beckmann <[email protected]> to [email protected]. (Fri, 13 Oct 2023 15:21:19 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 13:41:38 2025; Machine Name: buxtehude

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.