nginx 1.24 + njs build errors [-Werror=dangling-pointer=] after switch from GCC 12 (Fedora 37) -> GCC13 (Fedora 38)

PGNet Dev pgnet.dev at gmail.com
Wed Apr 19 01:48:38 UTC 2023


> GCC 13 is not released yet, right?

"Real Soon Now (tm)"

	GCC 13.0.1 Status Report (2023-04-17)
	  https://gcc.gnu.org/pipermail/gcc/2023-April/241140.html

It's in the Fedora 38 release, which dropped today:

   Fedora 38 Released With GNOME 44 Desktop, GCC 13, Many New Features
    https://www.phoronix.com/news/Fedora-38-Released

gcc -v
  Using built-in specs.
  COLLECT_GCC=gcc
  COLLECT_LTO_WRAPPER=/usr/libexec/gcc/x86_64-redhat-linux/13/lto-wrapper
  OFFLOAD_TARGET_NAMES=nvptx-none
  OFFLOAD_TARGET_DEFAULT=1
  Target: x86_64-redhat-linux
  Configured with: ../configure --enable-bootstrap --enable-languages=c,c++,fortran,objc,obj-c++,ada,go,d,m2,lto --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --with-bugurl=http://bugzilla.redhat.com/bugzilla --enable-shared --enable-threads=posix --enable-checking=release --enable-multilib --with-system-zlib --enable-__cxa_atexit --disable-libunwind-exceptions --enable-gnu-unique-object --enable-linker-build-id --with-gcc-major-version-only --enable-libstdcxx-backtrace --with-libstdcxx-zoneinfo=/usr/share/zoneinfo --with-linker-hash-style=gnu --enable-plugin --enable-initfini-array --with-isl=/builddir/build/BUILD/gcc-13.0.1-20230401/obj-x86_64-redhat-linux/isl-install --enable-offload-targets=nvptx-none --without-cuda-driver --enable-offload-defaulted --enable-gnu-indirect-function --enable-cet --with-tune=generic --with-arch_32=i686 --build=x86_64-redhat-linux --with-build-config=bootstrap-lto --enable-link-serialization=1
  Thread model: posix
  Supported LTO compression algorithms: zlib zstd
  gcc version 13.0.1 20230401 (Red Hat 13.0.1-0) (GCC)

This looks likes the origin

   https://gcc.gnu.org/gcc-13/changes.html

   --> 	https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106393

> Can you reproduce the issue with -Wdangling-pointer option and GCC 12?

as of ~ an hour ago, the last of my boxes finished updates -- with all GCC 13.

i can try to set something up on COPR build sys to check ...







More information about the nginx-devel mailing list