After the most recent updates (11.2.0-14ubuntu1) mir started to FTBTS:
/usr/bin/c++ -g -O2 -ffile-prefix-map=/<<BUILDDIR>>/mir-2.6.0+dev100-gf11f678968=. -flto=auto -ffat-lto-objects -flto=auto -ffat-lto-objects -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -pthread -g -Wall -fno-strict-aliasing -pedantic -Wnon-virtual-dtor -Wextra -fPIC -Werror -Wno-mismatched-tags -Wno-psabi -flto -ffat-lto-objects -Wl,-Bsymbolic-functions -flto=auto -ffat-lto-objects -flto=auto -Wl,-z,relro -Wl,--as-needed -Wl,--no-undefined CMakeFiles/miral-system-compositor.dir/system_compositor_main.cpp.o -o ../../bin/miral-system-compositor.bin ../../lib/libmiral.so.4 ../../lib/libmircommon.so.8 ../../lib/libmircookie.so.2 -lnettle /usr/lib/x86_64-linux-gnu/libboost_date_time.so.1.74.0 /usr/lib/x86_64-linux-gnu/libboost_program_options.so.1.74.0 /usr/lib/x86_64-linux-gnu/libboost_filesystem.so.1.74.0 /usr/lib/x86_64-linux-gnu/libboost_iostreams.so.1.74.0 -ldl /usr/lib/x86_64-linux-gnu/libxkbcommon.so ../../lib/libmircore.so.1 /usr/lib/x86_64-linux-gnu/libboost_system.so.1.74.0 -L/usr/lib/x86_64-linux-gnu -Wl,-rpath-link,/<<BUILDDIR>>/mir-2.6.0+dev100-gf11f678968/build-amd64/lib /usr/bin/ld: /lib/x86_64-linux-gnu/libyaml-cpp.so.0.7: undefined reference to `std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::_M_create(unsigned long&, unsigned long)@GLIBCXX_3.4.21' collect2: error: ld returned 1 exit status
Disabling LTO helps:
DEB_BUILD_MAINT_OPTIONS = optimization=-lto
ProblemType: Bug DistroRelease: Ubuntu 22.04 Package: gcc 4:11.2.0-1ubuntu1 ProcVersionSignature: User Name 5.15.0-17.17-generic 5.15.12 Uname: Linux 5.15.0-17-generic aarch64 ApportVersion: 2.20.11-0ubuntu75 Architecture: arm64 CasperMD5CheckResult: unknown Date: Tue Jan 25 13:54:49 2022 ProcEnviron: TERM=screen-256color PATH=(custom, no user) XDG_RUNTIME_DIR=<set> LANG=C.UTF-8 SHELL=/bin/bash SourcePackage: gcc-defaults UpgradeStatus: No upgrade log present (probably fresh install)
After the most recent updates (11.2.0-14ubuntu1) mir started to FTBTS:
/usr/bin/c++ -g -O2 -ffile- prefix- map=/<< BUILDDIR> >/mir-2. 6.0+dev100- gf11f678968= . -flto=auto -ffat-lto-objects -flto=auto -ffat-lto-objects -fstack- protector- strong -Wformat -Werror= format- security -Wdate-time -D_FORTIFY_SOURCE=2 -pthread -g -Wall -fno-strict- aliasing -pedantic -Wnon-virtual-dtor -Wextra -fPIC -Werror -Wno-mismatched -tags -Wno-psabi -flto -ffat-lto-objects -Wl,-Bsymbolic- functions -flto=auto -ffat-lto-objects -flto=auto -Wl,-z,relro -Wl,--as-needed -Wl,--no-undefined CMakeFiles/ miral-system- compositor. dir/system_ compositor_ main.cpp. o -o ../../bin/ miral-system- compositor. bin ../../lib/ libmiral. so.4 ../../lib/ libmircommon. so.8 ../../lib/ libmircookie. so.2 -lnettle /usr/lib/ x86_64- linux-gnu/ libboost_ date_time. so.1.74. 0 /usr/lib/ x86_64- linux-gnu/ libboost_ program_ options. so.1.74. 0 /usr/lib/ x86_64- linux-gnu/ libboost_ filesystem. so.1.74. 0 /usr/lib/ x86_64- linux-gnu/ libboost_ iostreams. so.1.74. 0 -ldl /usr/lib/ x86_64- linux-gnu/ libxkbcommon. so ../../lib/ libmircore. so.1 /usr/lib/ x86_64- linux-gnu/ libboost_ system. so.1.74. 0 -L/usr/ lib/x86_ 64-linux- gnu -Wl,-rpath- link,/< <BUILDDIR> >/mir-2. 6.0+dev100- gf11f678968/ build-amd64/ lib 64-linux- gnu/libyaml- cpp.so. 0.7: undefined reference to `std::_ _cxx11: :basic_ string< char, std::char_ traits< char>, std::allocator< char> >::_M_create( unsigned long&, unsigned long)@GLIBCXX_ 3.4.21'
/usr/bin/ld: /lib/x86_
collect2: error: ld returned 1 exit status
Disabling LTO helps:
DEB_BUILD_ MAINT_OPTIONS = optimization=-lto
ProblemType: Bug ature: User Name 5.15.0- 17.17-generic 5.15.12 esult: unknown 256color DIR=<set>
DistroRelease: Ubuntu 22.04
Package: gcc 4:11.2.0-1ubuntu1
ProcVersionSign
Uname: Linux 5.15.0-17-generic aarch64
ApportVersion: 2.20.11-0ubuntu75
Architecture: arm64
CasperMD5CheckR
Date: Tue Jan 25 13:54:49 2022
ProcEnviron:
TERM=screen-
PATH=(custom, no user)
XDG_RUNTIME_
LANG=C.UTF-8
SHELL=/bin/bash
SourcePackage: gcc-defaults
UpgradeStatus: No upgrade log present (probably fresh install)