Your message dated Tue, 2 Sep 2025 02:04:38 +0300
with message-id 
<caajypqkn_puau5wgzivfywpor7_4m5kbau9xru2+ma4o6lp...@mail.gmail.com>
and subject line Closing as duplicate
has caused the Debian Bug report #1113278,
regarding meson: FTBFS with CMake 4
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)


-- 
1113278: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1113278
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Source: meson
Version: 1.9.0-1
Severity: serious
User: [email protected]
Usertags: cmake-4
Tags: ftbfs, forky, sid

Dear maintainer,

During a test rebuild for CMake 4, meson failed to rebuild.

Log Summary:
-------------------------------------------------------------------------------
[...]
error: linking with `cc` failed: exit status: 1
  |
  = note:  "cc" "/tmp/rustciLwYTA/symbols.o" "<2 object files omitted>" 
"-Wl,--as-needed" "-Wl,-Bstatic" 
"<sysroot>/lib/rustlib/aarch64-unknown-linux-gnu/lib/{libstd-*,libpanic_unwind-*,libobject-*,libmemchr-*,libaddr2line-*,libgimli-*,librustc_demangle-*,libstd_detect-*,libhashbrown-*,librustc_std_workspace_alloc-*,libminiz_oxide-*,libadler2-*,libunwind-*,libcfg_if-*,liblibc-*,liballoc-*,librustc_std_workspace_core-*,libcore-*,libcompiler_builtins-*}.rlib"
 "-Wl,-Bdynamic" "-lgcc_s" "-lutil" "-lrt" "-lpthread" "-lm" "-ldl" "-lc" 
"-Wl,--eh-frame-hdr" "-Wl,-z,noexecstack" "-L" "." "-L" 
"<sysroot>/lib/rustlib/aarch64-unknown-linux-gnu/lib" "-o" "main" 
"-Wl,--gc-sections" "-pie" "-Wl,-z,relro,-z,now" "-nodefaultlibs" 
"libcpp-lib.a" "-L<sysroot>/lib/gcc/aarch64-linux-gnu/14" 
"-L<sysroot>/lib/aarch64-linux-gnu" 
"-L<sysroot>/lib/gcc/aarch64-linux-gnu/14/../../../aarch64-linux-gnu" 
"-L<sysroot>/lib" "-L<sysroot>/lib/gcc/aarch64-linux-gnu/14/../../../../lib" 
"-L/lib/aarch64-linux-gnu" "-L/lib/../lib" "-L<sysroot>/lib/../lib" 
"-L<sysroot>/lib/gcc/aarch64-linux-gnu/14/../../.." "-L/lib" "-lstdc++"
  = note: some arguments are omitted. use `--verbose` to show all linker 
arguments
  = note: /usr/bin/ld: libcpp-lib.a.p/lib.cpp.o: undefined reference to symbol 
'__stack_chk_guard@@GLIBC_2.17'
          /usr/bin/ld: /lib/ld-linux-aarch64.so.1: error adding symbols: DSO 
missing from command line
          collect2: error: ld returned 1 exit status
          
  = note: some `extern` functions couldn't be found; some native libraries may 
need to be installed or have their path specified
  = note: use the `-l` flag to specify native libraries to link

error: aborting due to 1 previous error

ninja: build stopped: subcommand failed.
 

 


===================== rust: 20 rust and cpp    
(b_vscrt=static_from_buildtype) =====================
 

Failed during: build
Reason: Compiling source code failed.
 

(inprocess) $ setup --prefix /usr --libdir lib 'test cases/rust/20 rust and 
cpp' '/build/reproducible-path/meson-1.9.0/b dccb8dea1f' --backend=ninja 
-Db_vscrt=static_from_buildtype
The Meson build system
Version: 1.9.0
Source dir: /build/reproducible-path/meson-1.9.0/test cases/rust/20 rust and cpp
Build dir: /build/reproducible-path/meson-1.9.0/b dccb8dea1f
Build type: native build
Project name: Rust and C++
Project version: undefined
C++ compiler for the host machine: c++ (gcc 14.3.0 "c++ (Debian 14.3.0-5) 
14.3.0")
C++ linker for the host machine: c++ ld.bfd 2.45
Rust compiler for the host machine: rustc -C linker=cc (rustc 1.86.0 "1.86.0")
Rust linker for the host machine: rustc -C linker=cc ld.bfd 2.45
Host machine cpu family: aarch64
Host machine cpu: aarch64
Build targets in project: 2
WARNING: Deprecated features used:
 * 0.47.0: {'build_always arg in custom_target'}
 * 0.48.0: {'module python3'}
 * 0.55.0: {'BuildTarget.path', 'ExternalProgram.path', 'cmake_options arg in 
cmake.subproject'}
 * 0.60.0: {'install_subdir with empty directory'}
WARNING: Broken features used:
 * 1.3.0: {'str.format: Value other than strings, integers, bools, options, 
dictionaries and lists thereof.'}

Rust and C++ undefined

  User defined options
    b_vscrt: static_from_buildtype
    backend: ninja
    libdir : lib
    prefix : /usr

Found ninja-1.12.1 at /usr/bin/ninja
ninja explain: deps for 'libcpp-lib.a.p/lib.cpp.o' are missing
ninja explain: libcpp-lib.a.p/lib.cpp.o is dirty
ninja explain: libcpp-lib.a is dirty
ninja explain: deps for 'main' are missing
ninja explain: libcpp-lib.a is dirty
ninja explain: main is dirty
ninja explain: main is dirty
ninja explain: output meson-benchmark-prereq of phony edge with no inputs 
doesn't exist
[1/3] c++ -Ilibcpp-lib.a.p -I. '-I../test cases/rust/20 rust and cpp' 
-fdiagnostics-color=always -D_GLIBCXX_ASSERTIONS=1 -D_FILE_OFFSET_BITS=64 -Wall 
-Winvalid-pch -std=c++14 -O0 -g -g -O2 
-ffile-prefix-map=/build/reproducible-path/meson-1.9.0=. 
-fstack-protector-strong -fstack-clash-protection -Wformat 
-Werror=format-security -mbranch-protection=standard -Wdate-time 
-D_FORTIFY_SOURCE=2 -fPIC -MD -MQ libcpp-lib.a.p/lib.cpp.o -MF 
libcpp-lib.a.p/lib.cpp.o.d -o libcpp-lib.a.p/lib.cpp.o -c '../test 
cases/rust/20 rust and cpp/lib.cpp'
[2/3] rm -f libcpp-lib.a && gcc-ar csrDT libcpp-lib.a libcpp-lib.a.p/lib.cpp.o
[3/3] rustc -C linker=cc --color=always -C debug-assertions=yes -C 
overflow-checks=no --crate-type bin -g --crate-name main --emit 
dep-info=main.p/main.d --emit link=main -C metadata=main@exe 
-Clink-arg=libcpp-lib.a -L. -Clink-arg=-L/usr/lib/gcc/aarch64-linux-gnu/14 
-Clink-arg=-L/usr/lib/aarch64-linux-gnu 
-Clink-arg=-L/usr/lib/gcc/aarch64-linux-gnu/14/../../../aarch64-linux-gnu 
-Clink-arg=-L/usr/lib 
-Clink-arg=-L/usr/lib/gcc/aarch64-linux-gnu/14/../../../../lib 
-Clink-arg=-L/lib/aarch64-linux-gnu -Clink-arg=-L/lib/../lib 
-Clink-arg=-L/usr/lib/../lib 
-Clink-arg=-L/usr/lib/gcc/aarch64-linux-gnu/14/../../.. -Clink-arg=-L/lib 
-Clink-arg=-lstdc++ '../test cases/rust/20 rust and cpp/main.rs'
FAILED: main 
rustc -C linker=cc --color=always -C debug-assertions=yes -C overflow-checks=no 
--crate-type bin -g --crate-name main --emit dep-info=main.p/main.d --emit 
link=main -C metadata=main@exe -Clink-arg=libcpp-lib.a -L. 
-Clink-arg=-L/usr/lib/gcc/aarch64-linux-gnu/14 
-Clink-arg=-L/usr/lib/aarch64-linux-gnu 
-Clink-arg=-L/usr/lib/gcc/aarch64-linux-gnu/14/../../../aarch64-linux-gnu 
-Clink-arg=-L/usr/lib 
-Clink-arg=-L/usr/lib/gcc/aarch64-linux-gnu/14/../../../../lib 
-Clink-arg=-L/lib/aarch64-linux-gnu -Clink-arg=-L/lib/../lib 
-Clink-arg=-L/usr/lib/../lib 
-Clink-arg=-L/usr/lib/gcc/aarch64-linux-gnu/14/../../.. -Clink-arg=-L/lib 
-Clink-arg=-lstdc++ '../test cases/rust/20 rust and cpp/main.rs'
error: linking with `cc` failed: exit status: 1
  |
  = note:  "cc" "/tmp/rustcIwBElB/symbols.o" "<2 object files omitted>" 
"-Wl,--as-needed" "-Wl,-Bstatic" 
"<sysroot>/lib/rustlib/aarch64-unknown-linux-gnu/lib/{libstd-*,libpanic_unwind-*,libobject-*,libmemchr-*,libaddr2line-*,libgimli-*,librustc_demangle-*,libstd_detect-*,libhashbrown-*,librustc_std_workspace_alloc-*,libminiz_oxide-*,libadler2-*,libunwind-*,libcfg_if-*,liblibc-*,liballoc-*,librustc_std_workspace_core-*,libcore-*,libcompiler_builtins-*}.rlib"
 "-Wl,-Bdynamic" "-lgcc_s" "-lutil" "-lrt" "-lpthread" "-lm" "-ldl" "-lc" 
"-Wl,--eh-frame-hdr" "-Wl,-z,noexecstack" "-L" "." "-L" 
"<sysroot>/lib/rustlib/aarch64-unknown-linux-gnu/lib" "-o" "main" 
"-Wl,--gc-sections" "-pie" "-Wl,-z,relro,-z,now" "-nodefaultlibs" 
"libcpp-lib.a" "-L<sysroot>/lib/gcc/aarch64-linux-gnu/14" 
"-L<sysroot>/lib/aarch64-linux-gnu" 
"-L<sysroot>/lib/gcc/aarch64-linux-gnu/14/../../../aarch64-linux-gnu" 
"-L<sysroot>/lib" "-L<sysroot>/lib/gcc/aarch64-linux-gnu/14/../../../../lib" 
"-L/lib/aarch64-linux-gnu" "-L/lib/../lib" "-L<sysroot>/lib/../lib" 
"-L<sysroot>/lib/gcc/aarch64-linux-gnu/14/../../.." "-L/lib" "-lstdc++"
  = note: some arguments are omitted. use `--verbose` to show all linker 
arguments
  = note: /usr/bin/ld: libcpp-lib.a.p/lib.cpp.o: undefined reference to symbol 
'__stack_chk_guard@@GLIBC_2.17'
          /usr/bin/ld: /lib/ld-linux-aarch64.so.1: error adding symbols: DSO 
missing from command line
          collect2: error: ld returned 1 exit status
          
  = note: some `extern` functions couldn't be found; some native libraries may 
need to be installed or have their path specified
  = note: use the `-l` flag to specify native libraries to link

error: aborting due to 1 previous error

ninja: build stopped: subcommand failed.
 

 


Total passed tests:  684
Total failed tests:  11
Total skipped tests: 53

All failures:
  -> rust: 13 external c dependencies    (static=False method=cmake)
  -> rust: 13 external c dependencies    (static=False method=pkg-config)
  -> rust: 13 external c dependencies    (static=False method=system)
  -> rust: 13 external c dependencies    (static=True method=system)
  -> rust: 20 rust and cpp    (b_vscrt=from_buildtype)
  -> rust: 20 rust and cpp    (b_vscrt=md)
  -> rust: 20 rust and cpp    (b_vscrt=mdd)
  -> rust: 20 rust and cpp    (b_vscrt=mt)
  -> rust: 20 rust and cpp    (b_vscrt=mtd)
  -> rust: 20 rust and cpp    (b_vscrt=none)
  -> rust: 20 rust and cpp    (b_vscrt=static_from_buildtype)
$ /usr/bin/python3 run_unittests.py --backend=ninja
$ /usr/bin/python3 run_project_tests.py
make[1]: *** [debian/rules:19: override_dh_auto_test] Error 11
make[1]: Leaving directory '/build/reproducible-path/meson-1.9.0'
make: *** [debian/rules:15: binary] Error 2
dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2
--------------------------------------------------------------------------------
Build finished at 2025-08-30T07:40:04Z

-------------------------------------------------------------------------------

The above is just how the build ends and not necessarily the most relevant part.
If required, the full build log is available here (for the next 30 days):
https://debusine.debian.net/artifact/2404271/

The most likely cause of build failures is the removed backwards compatibility 
for
CMake versions earlier than 3.5. You can find additional information in my
debian-devel announcement:

https://lists.debian.org/debian-devel/2025/04/msg00310.html

About the archive rebuild: The build was made on debusine.debian.net,
using sbuild.

You can find the build task here:
https://debusine.debian.net/work-request/154103/

If this is really a bug in one of the build-depends, please use
reassign and affects, so that this is still visible in the BTS web
page for this package.

Thanks,
Timo

--- End Message ---
--- Begin Message ---
Hi

This issue is not related to Meson or CMake. It is a rustc bug as reported here:

https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1070470

--- End Message ---

Reply via email to