This is fixed upstream with the following commit, which is included in
the latest chromium in sid:
https://chromium.googlesource.com/chromium/src/+/9dd0503835dc875807ab63efb1f477bffed2a852%5E%21/
Please retest with chromium 103.0.5060.53-1 in sid & bookworm and let
me know if it still FTBFS. Thanks!
On Thu, Jun 16, 2022 at 12:07, Matthias Klose <d...@debian.org> wrote:
Package: src:chromium
Version: 102.0.5005.61-1
Severity: normal
Tags: sid bookworm
User: debian-...@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/chromium_102.0.5005.61-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.
[...]
\) -exec rm -f {} + \) -o \
\( -type d -a -name autom4te.cache -prune -exec rm -rf {} + \)
\)
debian/rules binary
dh binary
dh_update_autotools_config
dh_autoreconf
debian/rules override_dh_auto_configure
make[1]: Entering directory '/<<PKGBUILDDIR>>'
# use system node w/out patching source; upstream hardcodes x64 in
path
mkdir -p third_party/node/linux/node-linux-x64/bin
cp /usr/bin/node third_party/node/linux/node-linux-x64/bin
# output compiler information
clang++ --version
Debian clang version 13.0.1-6
Target: x86_64-pc-linux-gnu
Thread model: posix
InstalledDir: /usr/bin
# prefer unbundled (system) libraries
./debian/scripts/unbundle
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
debian/rules override_dh_auto_build-arch
make[1]: Entering directory '/<<PKGBUILDDIR>>'
gn gen out/Release --args="clang_use_chrome_plugins=false
host_toolchain=\"//build/toolchain/linux/unbundle:default\"
custom_toolchain=\"//build/toolchain/linux/unbundle:default\"
host_cpu=\"x64\" use_vaapi=true is_debug=false use_goma=false
use_sysroot=false use_allocator=\"none\" use_libjpeg_turbo=true
use_custom_libcxx=false use_gnome_keyring=false
use_unofficial_version_number=false enable_vr=false enable_nacl=false
enable_swiftshader=false dawn_use_swiftshader=false
build_dawn_tests=false enable_reading_list=false
enable_one_click_signin=false enable_iterator_debugging=false
enable_hangout_services_extension=false angle_has_histograms=false
build_angle_perftests=false enable_js_type_check=false
treat_warnings_as_errors=false is_cfi=false use_thin_lto=false
chrome_pgo_phase=0 use_gio=true is_official_build=true
symbol_level=0 use_pulseaudio=true link_pulseaudio=true
rtc_use_pipewire=true icu_use_data_file=true enable_widevine=true
v8_enable_backtrace=true use_system_zlib=true use_system_lcms2=true
use_system_libjpeg=true use_system_libpng=true
use_system_freetype=true use_system_libopenjpeg2=true
concurrent_links=1 proprietary_codecs=true ffmpeg_branding=\"Chrome\"
disable_fieldtrial_testing_config=true "
Done. Made 16959 targets from 2783 files in 18633ms
ninja -j8 -C out/Release chrome chrome_sandbox content_shell
chromedriver
ninja: Entering directory `out/Release'
[1/52245] STAMP obj/base/numerics/base_numerics.stamp
[2/52245] ACTION
//base:build_date(//build/toolchain/linux/unbundle:default)
[3/52245] STAMP obj/base/build_date.stamp
[4/52245] CXX
obj/base/third_party/double_conversion/double_conversion/fast-dtoa.o
[5/52245] CXX
obj/base/third_party/double_conversion/double_conversion/strtod.o
[6/52245] ACTION
//base/third_party/libevent:gen_libevent_shim(//build/toolchain/linux/unbundle:default)
[7/52245] STAMP obj/base/third_party/libevent/gen_libevent_shim.stamp
[8/52245] STAMP obj/base/third_party/libevent/libevent_shim.stamp
[9/52245] STAMP obj/base/third_party/libevent/libevent.stamp
[10/52245] CC
obj/base/third_party/dynamic_annotations/dynamic_annotations/dynamic_annotations.o
[11/52245] AR
obj/base/third_party/dynamic_annotations/libdynamic_annotations.a
[12/52245] CXX
obj/base/third_party/double_conversion/double_conversion/cached-powers.o
[13/52245] CXX obj/base/third_party/symbolize/symbolize/symbolize.o
FAILED: obj/base/third_party/symbolize/symbolize/symbolize.o
clang++ -MMD -MF
obj/base/third_party/symbolize/symbolize/symbolize.o.d -DUSE_UDEV
-DUSE_AURA=1 -DUSE_GLIB=1 -DUSE_OZONE=1 -DOFFICIAL_BUILD
-D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE
-DNO_UNWIND_TABLES -D_GNU_SOURCE
-DCR_CLANG_REVISION=\"llvmorg-15-init-7570-gba4537b2-1\" -DNDEBUG
-DNVALGRIND -DDYNAMIC_ANNOTATIONS_ENABLED=0 -I../.. -Igen
-fno-delete-null-pointer-checks -fno-ident -fno-strict-aliasing
--param=ssp-buffer-size=4 -fstack-protector -fno-unwind-tables
-fno-asynchronous-unwind-tables -fPIC -pthread -fcolor-diagnostics
-fmerge-all-constants
-fcrash-diagnostics-dir=../../tools/clang/crashreports -mllvm
-instcombine-lower-dbg-declare=0 -ffp-contract=off -m64 -msse3
-fdebug-compilation-dir=. -no-canonical-prefixes
-ftrivial-auto-var-init=pattern -fdata-sections -ffunction-sections
-fno-unique-section-names -fno-omit-frame-pointer -g0
-fvisibility=hidden -Wheader-hygiene -Wstring-conversion
-Wtautological-overlap-compare -Wall -Wno-unused-variable
-Wno-c++11-narrowing -Wno-misleading-indentation
-Wno-missing-field-initializers -Wno-unused-parameter -Wloop-analysis
-Wno-unneeded-internal-declaration -Wenum-compare-conditional
-Wno-psabi -Wno-ignored-pragma-optimize -Xclang -std=c++17
-Wno-trigraphs -fno-aligned-new -fno-exceptions -fno-rtti
-fvisibility-inlines-hidden -Wdate-time -D_FORTIFY_SOURCE=2 -O2
-fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong
-Wformat -Werror=format-security -Wno-conversion -Wno-unused-function
-Wno-unused-variable -Wno-unused-private-field
-Wno-deprecated-declarations -Wno-unknown-pragmas
-fno-delete-null-pointer-checks -c
../../base/third_party/symbolize/symbolize.cc -o
obj/base/third_party/symbolize/symbolize/symbolize.o
In file included from
../../base/third_party/symbolize/symbolize.cc:65:
../../base/third_party/symbolize/symbolize.h:123:53: error: no member
named 'exchange' in namespace 'std'; did you mean '__exchange'?
FileDescriptor(FileDescriptor&& other) :
fd_(std::exchange(other.fd_, -1)) {}
~~~~~^~~~~~~~
__exchange
/usr/bin/../lib/gcc/x86_64-linux-gnu/12/../../../../include/c++/12/bits/move.h:157:5:
note: '__exchange' declared here
__exchange(_Tp& __obj, _Up&& __new_val)
^
In file included from
../../base/third_party/symbolize/symbolize.cc:65:
../../base/third_party/symbolize/symbolize.h:127:18: error: no member
named 'exchange' in namespace 'std'; did you mean '__exchange'?
fd_ = std::exchange(rhs.fd_, -1);
~~~~~^~~~~~~~
__exchange
/usr/bin/../lib/gcc/x86_64-linux-gnu/12/../../../../include/c++/12/bits/move.h:157:5:
note: '__exchange' declared here
__exchange(_Tp& __obj, _Up&& __new_val)
^
2 errors generated.
[14/52245] CXX
obj/base/third_party/double_conversion/double_conversion/double-to-string.o
[15/52245] CXX
obj/base/third_party/double_conversion/double_conversion/fixed-dtoa.o
[16/52245] CXX obj/base/third_party/symbolize/symbolize/demangle.o
[17/52245] CXX
obj/base/third_party/double_conversion/double_conversion/bignum-dtoa.o
[18/52245] CC obj/base/third_party/xdg_mime/xdg_mime/xdgmime.o
[19/52245] CXX
obj/base/third_party/double_conversion/double_conversion/bignum.o
[20/52245] CXX
obj/base/third_party/double_conversion/double_conversion/string-to-double.o
ninja: build stopped: subcommand failed.
make[1]: *** [debian/rules:128: override_dh_auto_build-arch] Error 1
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
make: *** [debian/rules:115: binary] Error 2
dpkg-buildpackage: error: debian/rules binary subprocess returned
exit status 2