[Pkg-javascript-devel] Bug#1012951: iotjs: ftbfs with GCC-12

Matthias Klose doko at debian.org
Thu Jun 16 13:09:47 BST 2022


Package: src:iotjs
Version: 1.0+715-1
Severity: normal
Tags: sid bookworm
User: debian-gcc at lists.debian.org
Usertags: ftbfs-gcc-12

[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/iotjs_1.0+715-1_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.

[...]
cd /<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/deps/libtuv && /usr/bin/cmake -E touch /<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/deps/libtuv/src/libtuv-stamp/libtuv-install
/<<PKGBUILDDIR>>/deps/jerry/jerry-libm/trig.c: In function ‘__kernel_rem_pio2.constprop’:
/<<PKGBUILDDIR>>/deps/jerry/jerry-libm/trig.c:400:14: error: ‘fq’ may be used uninitialized [-Werror=maybe-uninitialized]
  400 |       fw = fq[0] - fw;
      |            ~~^~~
/<<PKGBUILDDIR>>/deps/jerry/jerry-libm/trig.c:193:24: note: ‘fq’ declared here
  193 |   double z, fw, f[20], fq[20], q[20];
      |                        ^~
/<<PKGBUILDDIR>>/deps/jerry/jerry-libm/trig.c:400:14: error: ‘fq’ may be used uninitialized [-Werror=maybe-uninitialized]
  400 |       fw = fq[0] - fw;
      |            ~~^~~
/<<PKGBUILDDIR>>/deps/jerry/jerry-libm/trig.c:193:24: note: ‘fq’ declared here
  193 |   double z, fw, f[20], fq[20], q[20];
      |                        ^~
cd /<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/deps/http-parser && /usr/bin/cmake -E touch /<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/deps/http-parser/src/http-parser-stamp/http-parser-install
[ 45%] Completed 'libtuv'
/usr/bin/cmake -E make_directory /<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/CMakeFiles
/usr/bin/cmake -E touch /<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/CMakeFiles/libtuv-complete
[ 47%] Completed 'http-parser'
/usr/bin/cmake -E make_directory /<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/CMakeFiles
/usr/bin/cmake -E touch /<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/deps/libtuv/src/libtuv-stamp/libtuv-done
/usr/bin/cmake -E touch /<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/CMakeFiles/http-parser-complete
make[3]: Leaving directory '/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu'
/usr/bin/cmake -E touch /<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/deps/http-parser/src/http-parser-stamp/http-parser-done
[ 47%] Built target libtuv
make[3]: Leaving directory '/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu'
[ 47%] Built target http-parser
cc1: all warnings being treated as errors
make[6]: *** [jerry-libm/CMakeFiles/jerry-libm.dir/build.make:468: jerry-libm/CMakeFiles/jerry-libm.dir/trig.c.o] Error 1
make[6]: Leaving directory '/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/deps/jerry-host'
make[5]: *** [CMakeFiles/Makefile2:199: jerry-libm/CMakeFiles/jerry-libm.dir/all] Error 2
make[5]: Leaving directory '/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/deps/jerry-host'
make[4]: *** [Makefile:136: all] Error 2
make[4]: Leaving directory '/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/deps/jerry-host'
make[3]: *** [CMakeFiles/hostjerry.dir/build.make:89: deps/jerry-host/src/hostjerry-stamp/hostjerry-build] Error 2
make[3]: Leaving directory '/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu'
make[2]: *** [CMakeFiles/Makefile2:96: CMakeFiles/hostjerry.dir/all] Error 2
make[2]: *** Waiting for unfinished jobs....
In file included from /<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/deps/jerry/jerry-all-in.c:13:
/<<PKGBUILDDIR>>/deps/jerry/jerry-core/ecma/base/ecma-helpers-string.c: In function ‘ecma_compare_ecma_strings_longpath’:
/<<PKGBUILDDIR>>/deps/jerry/jerry-core/ecma/base/ecma-helpers-string.c:1771:7: error: ‘string1_size_and_length[1]’ may be used uninitialized [-Werror=maybe-uninitialized]
 1770 |   if (string1_size_and_length[0] != string2_size_and_length[0]
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 1771 |       || string1_size_and_length[1] != string2_size_and_length[1])
      |       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/<<PKGBUILDDIR>>/deps/jerry/jerry-core/ecma/base/ecma-helpers-string.c:1760:19: note: ‘string1_size_and_length[1]’ was declared here
 1760 |   lit_utf8_size_t string1_size_and_length[2], string2_size_and_length[2];
      |                   ^~~~~~~~~~~~~~~~~~~~~~~
/<<PKGBUILDDIR>>/deps/jerry/jerry-core/ecma/base/ecma-helpers-string.c:1776:11: error: ‘string1_size_and_length[0]’ may be used uninitialized [-Werror=maybe-uninitialized]
 1776 |   return !memcmp ((char *) utf8_string1_p, (char *) utf8_string2_p, string1_size_and_length[0]);
      |           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/<<PKGBUILDDIR>>/deps/jerry/jerry-core/ecma/base/ecma-helpers-string.c:1760:19: note: ‘string1_size_and_length[0]’ was declared here
 1760 |   lit_utf8_size_t string1_size_and_length[2], string2_size_and_length[2];
      |                   ^~~~~~~~~~~~~~~~~~~~~~~
cc1: all warnings being treated as errors
make[6]: *** [jerry-core/CMakeFiles/jerry-core.dir/build.make:76: jerry-core/CMakeFiles/jerry-core.dir/__/jerry-all-in.c.o] Error 1
make[6]: Leaving directory '/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/deps/jerry'
make[5]: *** [CMakeFiles/Makefile2:163: jerry-core/CMakeFiles/jerry-core.dir/all] Error 2
make[5]: Leaving directory '/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/deps/jerry'
make[4]: *** [Makefile:136: all] Error 2
make[4]: Leaving directory '/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/deps/jerry'
make[3]: *** [CMakeFiles/libjerry.dir/build.make:89: deps/jerry/src/libjerry-stamp/libjerry-build] Error 2
make[3]: Leaving directory '/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu'
make[2]: *** [CMakeFiles/Makefile2:122: CMakeFiles/libjerry.dir/all] Error 2
make[2]: Leaving directory '/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu'
make[1]: *** [Makefile:139: all] Error 2
make[1]: Leaving directory '/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu'
dh_auto_build: error: cd obj-x86_64-linux-gnu && make -j8 "INSTALL=install --strip-program=true" VERBOSE=1 returned exit code 2
make: *** [debian/rules:34: binary] Error 25
dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2



More information about the Pkg-javascript-devel mailing list