#1013002 neovim: ftbfs with GCC-12

#1013002#5
Date:
2022-06-16 12:11:53 UTC
From:
To:
[This bug is targeted to the upcoming bookworm release]

Please keep this issue open in the bug tracker for the package it
was filed for.  If a fix in another package is required, please
file a bug for the other package (or clone), and add a block in this
package. Please keep the issue open until the package can be built in
a follow-up test rebuild.

The package fails to build in a test rebuild on at least amd64 with
gcc-12/g++-12, but succeeds to build with gcc-11/g++-11. The
severity of this report will be raised before the bookworm release.

The full build log can be found at:
http://qa-logs.debian.net/2022/06/09/gcc12/neovim_0.6.1-3_unstable_gcc12.log
The last lines of the build log are at the end of this report.

To build with GCC 11, either set CC=gcc-11 CXX=g++-11 explicitly,
or install the gcc, g++, gfortran, ... packages from experimental.

  apt-get -t=experimental install g++

Common build failures are new warnings resulting in build failures with
-Werror turned on, or new/dropped symbols in Debian symbols files.
For other C/C++ related build failures see the porting guide at
http://gcc.gnu.org/gcc-11/porting_to.html

GCC 11 defaults to the GNU++17 standard.  If your package installs
header files in /usr/include, please don't work around C++17 issues
by choosing a lower C++ standard for the package build, but fix these
issues to build with the C++17 standard.

[...]
	BufNewFile Autocommands for "*": Expected 1 but got 0
	BufNewFile Autocommands for "*": Expected 1 but got 0
	BufNewFile Autocommands for "*": Expected 1 but got 0
	BufNewFile Autocommands for "*": Expected 1 but got 0
	BufNewFile Autocommands for "*": Expected 1 but got 0
	BufNewFile Autocommands for "*": Expected 1 but got 0
	BufNewFile Autocommands for "*": Expected 1 but got 0
	Found errors in Test_window_width():
	BufNewFile Autocommands for "*": Expected 1 but got 0
	BufNewFile Autocommands for "*": Expected 1 but got 0
	BufNewFile Autocommands for "*": Expected 1 but got 0
	BufNewFile Autocommands for "*": Expected 1 but got 0
	BufNewFile Autocommands for "*": Expected 1 but got 0
	BufNewFile Autocommands for "*": Expected 1 but got 0
	Found errors in Test_wnext():
	BufNewFile Autocommands for "*": Expected 1 but got 0
	BufNewFile Autocommands for "*": Expected 1 but got 0
	BufNewFile Autocommands for "*": Expected 1 but got 0
	BufNewFile Autocommands for "*": Expected 1 but got 0
	BufReadPost Autocommands for "*": Expected 1 but got 0
	BufReadPost Autocommands for "*": Expected 1 but got 0
	BufReadPost Autocommands for "*": Expected 1 but got 0
	BufReadPost Autocommands for "*": Expected 1 but got 0
	BufNewFile Autocommands for "*": Expected 1 but got 0
	BufNewFile Autocommands for "*": Expected 1 but got 0
	BufReadPost Autocommands for "*": Expected 1 but got 0
	BufReadPost Autocommands for "*": Expected 1 but got 0
	BufReadPost Autocommands for "*": Expected 1 but got 0
	BufReadPost Autocommands for "*": Expected 1 but got 0
	BufNewFile Autocommands for "*": Expected 1 but got 0
	BufNewFile Autocommands for "*": Expected 1 but got 0
	BufReadPost Autocommands for "*": Expected 1 but got 0
	BufReadPost Autocommands for "*": Expected 1 but got 0
	Found errors in Test_wprevious():
	BufNewFile Autocommands for "*": Expected 1 but got 0
	BufNewFile Autocommands for "*": Expected 1 but got 0
	BufNewFile Autocommands for "*": Expected 1 but got 0
	BufNewFile Autocommands for "*": Expected 1 but got 0
	BufNewFile Autocommands for "*": Expected 1 but got 0
	BufNewFile Autocommands for "*": Expected 1 but got 0
	BufReadPost Autocommands for "*": Expected 1 but got 0
	BufReadPost Autocommands for "*": Expected 1 but got 0
	BufReadPost Autocommands for "*": Expected 1 but got 0
	BufReadPost Autocommands for "*": Expected 1 but got 0
	BufNewFile Autocommands for "*": Expected 1 but got 0
	BufNewFile Autocommands for "*": Expected 1 but got 0
	BufReadPost Autocommands for "*": Expected 1 but got 0
	BufReadPost Autocommands for "*": Expected 1 but got 0
	BufReadPost Autocommands for "*": Expected 1 but got 0
	BufReadPost Autocommands for "*": Expected 1 but got 0
	BufReadPost Autocommands for "*": Expected 1 but got 0
	BufReadPost Autocommands for "*": Expected 1 but got 0
	BufReadPost Autocommands for "*": Expected 1 but got 0
	BufReadPost Autocommands for "*": Expected 1 but got 0
	BufReadPost Autocommands for "*": Expected 1 but got 0
	BufReadPost Autocommands for "*": Expected 1 but got 0
	BufReadPost Autocommands for "*": Expected 1 but got 0
	BufReadPost Autocommands for "*": Expected 1 but got 0
	Found errors in Test_xpm_file():
	BufReadPost Autocommands for "*": Expected 1 but got 0
	BufReadPost Autocommands for "*": Expected 1 but got 0
	function RunTheTest[37]..Test_xpm_file line 5: Expected 'xpm2' but got ''

TEST FAILURE
make[2]: *** [Makefile:84: report] Error 1
make[2]: Leaving directory '/<<PKGBUILDDIR>>/src/nvim/testdir'
make[1]: *** [debian/rules:97: override_dh_auto_test-arch] Error 2
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
make: *** [debian/rules:57: binary] Error 2
dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2

#1013002#8
Date:
2022-07-06 14:37:46 UTC
From:
To:
Hello,

Bug #1013002 in neovim reported by you has been fixed in the
Git repository and is awaiting an upload. You can see the commit
message below and you can check the diff of the fix at:

https://salsa.debian.org/vim-team/neovim/-/commit/2e62d54decc3332096237dae924f55e8ffce6b82
------------------------------------------------------------------------
Disable strict aliasing to fix gcc-12 FTBFS

Closes: #1013002
Signed-off-by: James McCoy <jamessan@debian.org>
------------------------------------------------------------------------

(this message was generated automatically)
-- 
Greetings

https://bugs.debian.org/1013002

#1013002#15
Date:
2022-07-06 14:49:30 UTC
From:
To:
We believe that the bug you reported is fixed in the latest version of
neovim, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 1013002@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
James McCoy <jamessan@debian.org> (supplier of updated neovim package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmaster@ftp-master.debian.org)
Format: 1.8
Date: Wed, 06 Jul 2022 10:35:11 -0400
Source: neovim
Architecture: source
Version: 0.7.2-3
Distribution: unstable
Urgency: medium
Maintainer: Debian Vim Maintainers <team+vim@tracker.debian.org>
Changed-By: James McCoy <jamessan@debian.org>
Closes: 1013002 1014160
Changes:
 neovim (0.7.2-3) unstable; urgency=medium
 .
   * Disable strict aliasing to fix gcc-12 FTBFS (Closes: #1013002)
   * Always Build-Depend on lua5.1, even when building with luajit
   * Only generate Lua bytecode for non-LuaJIT builds (Closes: #1014160)
Checksums-Sha1:
 b36f139a58132d259d16c39ac1ccb139e69f0165 2828 neovim_0.7.2-3.dsc
 3700f1e55d1b8c28ba9c0697f11095725a974ada 16852 neovim_0.7.2-3.debian.tar.xz
Checksums-Sha256:
 c3636b9ff8da1dc5d6e112ccfd80981ca9020a40012f63518cd3ac80cb8dd01f 2828 neovim_0.7.2-3.dsc
 b4cfd8992153fb648c797edb2638bd28cc45c94793883b31327f680b69a9c8e8 16852 neovim_0.7.2-3.debian.tar.xz
Files:
 158fa287c54819b052d0e6f074bb0169 2828 editors optional neovim_0.7.2-3.dsc
 25c15219667e61fe945c60715ca95bf3 16852 editors optional neovim_0.7.2-3.debian.tar.xz
-----BEGIN PGP SIGNATURE-----

iQKoBAEBCgCSFiEEkb+/TWlWvV33ty0j3+aRrjMbo9sFAmLFnfJfFIAAAAAALgAo
aXNzdWVyLWZwckBub3RhdGlvbnMub3BlbnBncC5maWZ0aGhvcnNlbWFuLm5ldDkx
QkZCRjRENjk1NkJENURGN0I3MkQyM0RGRTY5MUFFMzMxQkEzREIUHGphbWVzc2Fu
QGRlYmlhbi5vcmcACgkQ3+aRrjMbo9ukaw//QUPWAJFhkt7SL0hxGB0BafENskaA
/jNA3KXMeDu4ZPdSmKGyyBTO2tMEDP5vB4ss4xovboj1GZ7/wHGrwX7xBZBe3luV
936hd4Kq2C9GQUmD4BP6u37mNTpajqjpyuGolTZXqzpo45jnUoLE1uYoqWu20sHy
/wCsYKFBdGxTeDgM1Pfostdvu+j8Ab8RnXk+Bf6nf6zo2+GdK063UpbO77+rkwtM
+GHrlvaGLthM2hvZHRwxhgxufKBM9IsoqMg1NPgN6NAhk3nTSeMIR2XqKLFpxCPX
eJFqXh98KQF8oFq4rUbvXexMFPVKzNsmQf6HUsDSgwI1tK8XPj683dTZ+2BAC8Tk
slaIdjIiGmO0hwnEeoRK2bGcvBEzbr+0vqUlbe42gZax0OQRxaSRhaJs2rAJCF0V
urMZRYXcnx9pdf4oSJqsxZAVKIhJ2JS9h708cwqQzunIKwTocYYQrEGQbSLKXT8J
7P09I9ehKQQSCL/RrpxiMccz0YYMd8eS+OH9R/T18ZZs9wZNtXH1pXtO5WzBmVjZ
WvNVpVeJyKdIENhdZRMymzaT+jG/NRbKNmAIZtX0nJYwn332WcL3Ppjvwni191ep
A29iFBygJtmiYtbBn4JG9sP4cMfw7ODdX57so1uf8wN2C0yORblh/4D2B2dbgfz1
4L1x1Q85ududD38=
=ajWP
-----END PGP SIGNATURE-----