GNU bug report logs - #79956
emacs FTBFS in Ubuntu (coreutils defaulting to rust is the issue)

Previous Next

Package: emacs;

Reported by: Gianfranco Costamagna <locutusofborg <at> debian.org>

Date: Sat, 6 Dec 2025 16:10:03 UTC

Severity: normal

To reply to this bug, email your comments to 79956 AT debbugs.gnu.org.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gnu-emacs <at> gnu.org:
bug#79956; Package emacs. (Sat, 06 Dec 2025 16:10:03 GMT) Full text and rfc822 format available.

Acknowledgement sent to Gianfranco Costamagna <locutusofborg <at> debian.org>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Sat, 06 Dec 2025 16:10:03 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Gianfranco Costamagna <locutusofborg <at> debian.org>
To: "bug-gnu-emacs <at> gnu.org" <bug-gnu-emacs <at> gnu.org>
Subject: emacs FTBFS in Ubuntu (coreutils defaulting to rust is the issue)
Date: Sat, 6 Dec 2025 14:16:43 +0000 (UTC)
Hello, emacs 30.2 now FTBFS in Ubuntu on all architectures, I think this might be due to some coreutils-rust non compatible change.

   FAILED  30/59  tramp-test18-file-attributes (1.907557 sec) at ../../build-src/test/lisp/net/tramp-tests.el:3766

In that case I would appreciate some hints about the used tool, so we can report to rust people and get them fix

https://launchpad.net/ubuntu/+source/emacs/1:30.2+1-2

This contains all the logs

Test tramp-test18-file-attributes backtrace:
  signal(ert-test-failed (((should-not (file-exists-p tmp-name2)) :form (file-exists-p "/mock:lcy02-amd64-040:/tmp/tramp-testkN3nKD") :value t)))
  ert-fail(((should-not (file-exists-p tmp-name2)) :form (file-exists-p "/mock:lcy02-amd64-040:/tmp/tramp-testkN3nKD") :value t))
  #f(compiled-function () #<bytecode 0x10d7d9d7ac61f8eb>)()
  #f(compiled-function () #<bytecode 0xfa4ec31b6585e94>)()
  handler-bind-1(#f(compiled-function () #<bytecode 0xfa4ec31b6585e94>) (error quit) #f(compiled-function (err) #<bytecode -0xdc4272a54962242>))
  ert--run-test-internal(#s(ert--test-execution-info :test #s(ert-test :name tramp-test18-file-attributes :documentation "Check `file-attributes'.\nThis tests also `access-file', `file-readable-p',\n`file-regular-p' and `file-ownership-preserved-p'." :body #f(compiled-function () #<bytecode 0x10d7d9d7ac61f8eb>) :most-recent-result #s(ert-test-failed :messages "" :should-forms (... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ...) :duration 1.907556818 :condition (ert-test-failed ...) :backtrace (... ... ... ... ... ... ... ... ... ... ... ... ... ... ...) :infos nil) :expected-result-type :passed :tags nil :file-name "/<<PKGBUILDDIR>>/debian/build-src/test/lisp/net/tramp-tests.el") :result #s(ert-test-failed :messages "" :should-forms ((... :form ... :value t) (... :form ... :value nil) (... :form ...) (... :form ...) (... :form ...) (... :form ... :value nil) (... :form ... :value nil) (... :form ... :value nil) (... :form ... :value t) (... :form ... :value t) (... :form ... :value t) (... :form ... :value t) (... :form ... :value nil) (... :form ... :value t) (... :form ... :value t) (... :form ... :value t) (... :form ... :value t) (... :form ... :value t) (... :form ... :value t) (... :form ... :value t) (... :form ... :value t) (... :form ... :value t) (... :form ... :value t) (... :form ... :value t) (... :form ... :value t) (... :form ... :value t) (... :form ...) (... :form ... :value t) (... :form ... :value t) (... :form ... :value "/tmp/tramp-testl2Kmro") (... :form ... :value nil) (... :form ... :value t) ...) :duration 1.907556818 :condition (ert-test-failed (... :form ... :value t)) :backtrace (#s(backtrace-frame :evald t :fun signal :args ... :flags nil :locals nil :buffer nil :pos nil) #s(backtrace-frame :evald t :fun ert-fail :args ... :flags nil :locals nil :buffer nil :pos nil) #s(backtrace-frame :evald t :fun #f(compiled-function () #<bytecode 0x10d7d9d7ac61f8eb>) :args nil :flags nil :locals ... :buffer nil :pos nil) #s(backtrace-frame :evald t :fun #f(compiled-function () #<bytecode 0xfa4ec31b6585e94>) :args nil :flags nil :locals nil :buffer nil :pos nil) #s(backtrace-frame :evald t :fun handler-bind-1 :args ... :flags nil :locals nil :buffer nil :pos nil) #s(backtrace-frame :evald t :fun ert--run-test-internal :args #0 :flags nil :locals ... :buffer nil :pos nil) #s(backtrace-frame :evald t :fun ert-run-test :args ... :flags nil :locals ... :buffer nil :pos nil) #s(backtrace-frame :evald t :fun ert-run-or-rerun-test :args ... :flags nil :locals ... :buffer nil :pos nil) #s(backtrace-frame :evald t :fun ert-run-tests :args ... :flags nil :locals ... :buffer nil :pos nil) #s(backtrace-frame :evald t :fun ert-run-tests-batch :args ... :flags nil :locals nil :buffer nil :pos nil) #s(backtrace-frame :evald t :fun ert-run-tests-batch-and-exit :args ... :flags nil :locals nil :buffer nil :pos nil) #s(backtrace-frame :evald t :fun eval :args ... :flags nil :locals nil :buffer nil :pos nil) #s(backtrace-frame :evald t :fun command-line-1 :args ... :flags nil :locals ... :buffer nil :pos nil) #s(backtrace-frame :evald t :fun command-line :args nil :flags nil :locals nil :buffer nil :pos nil) #s(backtrace-frame :evald t :fun normal-top-level :args nil :flags nil :locals nil :buffer nil :pos nil)) :infos nil) :exit-continuation #f(compiled-function () #<bytecode 0x7aee5fa463ffc3>) :ert-debug-on-error nil))
  ert-run-test(#s(ert-test :name tramp-test18-file-attributes :documentation "Check `file-attributes'.\nThis tests also `access-file', `file-readable-p',\n`file-regular-p' and `file-ownership-preserved-p'." :body #f(compiled-function () #<bytecode 0x10d7d9d7ac61f8eb>) :most-recent-result #s(ert-test-failed :messages "" :should-forms ((... :form ... :value t) (... :form ... :value nil) (... :form ...) (... :form ...) (... :form ...) (... :form ... :value nil) (... :form ... :value nil) (... :form ... :value nil) (... :form ... :value t) (... :form ... :value t) (... :form ... :value t) (... :form ... :value t) (... :form ... :value nil) (... :form ... :value t) (... :form ... :value t) (... :form ... :value t) (... :form ... :value t) (... :form ... :value t) (... :form ... :value t) (... :form ... :value t) (... :form ... :value t) (... :form ... :value t) (... :form ... :value t) (... :form ... :value t) (... :form ... :value t) (... :form ... :value t) (... :form ...) (... :form ... :value t) (... :form ... :value t) (... :form ... :value "/tmp/tramp-testl2Kmro") (... :form ... :value nil) (... :form ... :value t) ...) :duration 1.907556818 :condition (ert-test-failed (... :form ... :value t)) :backtrace (#s(backtrace-frame :evald t :fun signal :args ... :flags nil :locals nil :buffer nil :pos nil) #s(backtrace-frame :evald t :fun ert-fail :args ... :flags nil :locals nil :buffer nil :pos nil) #s(backtrace-frame :evald t :fun #f(compiled-function () #<bytecode 0x10d7d9d7ac61f8eb>) :args nil :flags nil :locals ... :buffer nil :pos nil) #s(backtrace-frame :evald t :fun #f(compiled-function () #<bytecode 0xfa4ec31b6585e94>) :args nil :flags nil :locals nil :buffer nil :pos nil) #s(backtrace-frame :evald t :fun handler-bind-1 :args ... :flags nil :locals nil :buffer nil :pos nil) #s(backtrace-frame :evald t :fun ert--run-test-internal :args ... :flags nil :locals ... :buffer nil :pos nil) #s(backtrace-frame :evald t :fun ert-run-test :args #0 :flags nil :locals ... :buffer nil :pos nil) #s(backtrace-frame :evald t :fun ert-run-or-rerun-test :args ... :flags nil :locals ... :buffer nil :pos nil) #s(backtrace-frame :evald t :fun ert-run-tests :args ... :flags nil :locals ... :buffer nil :pos nil) #s(backtrace-frame :evald t :fun ert-run-tests-batch :args ... :flags nil :locals nil :buffer nil :pos nil) #s(backtrace-frame :evald t :fun ert-run-tests-batch-and-exit :args ... :flags nil :locals nil :buffer nil :pos nil) #s(backtrace-frame :evald t :fun eval :args ... :flags nil :locals nil :buffer nil :pos nil) #s(backtrace-frame :evald t :fun command-line-1 :args ... :flags nil :locals ... :buffer nil :pos nil) #s(backtrace-frame :evald t :fun command-line :args nil :flags nil :locals nil :buffer nil :pos nil) #s(backtrace-frame :evald t :fun normal-top-level :args nil :flags nil :locals nil :buffer nil :pos nil)) :infos nil) :expected-result-type :passed :tags nil :file-name "/<<PKGBUILDDIR>>/debian/build-src/test/lisp/net/tramp-tests.el"))
  ert-run-or-rerun-test(#s(ert--stats :selector ... :tests ... :test-map #<hash-table eql 59/59 0x1e64163bb10c ...> :test-results ... :test-start-times ... :test-end-times ... :passed-expected 28 :passed-unexpected 0 :failed-expected 0 :failed-unexpected 1 :skipped 1 :start-time ... :end-time nil :aborted-p nil ...) #s(ert-test :name tramp-test18-file-attributes :documentation "Check `file-attributes'.\nThis tests also `access-file', `file-readable-p',\n`file-regular-p' and `file-ownership-preserved-p'." :body #f(compiled-function () #<bytecode 0x10d7d9d7ac61f8eb>) :most-recent-result ... :expected-result-type :passed :tags nil :file-name "/<<PKGBUILDDIR>>/debian/build-src/test/lisp/net/tramp-tests.el") #f(compiled-function (event-type &rest event-args) #<bytecode -0x99e0c1a029c275c>))
  ert-run-tests((not (or (tag :expensive-test) (tag :unstable))) #f(compiled-function (event-type &rest event-args) #<bytecode -0x99e0c1a029c275c>) nil)
  ert-run-tests-batch((not (or (tag :expensive-test) (tag :unstable))))
  ert-run-tests-batch-and-exit((not (or (tag :expensive-test) (tag :unstable))))
  eval((ert-run-tests-batch-and-exit '(not (or (tag :expensive-test) (tag :unstable)))) t)
  command-line-1(("-L" ":/<<PKGBUILDDIR>>/debian/build-src/test" "-l" "ert" "--eval" "(setq treesit-extra-load-path '(\"/sbuild-nonexistent/.emacs.d/tree-sitter\"))" "-l" "lisp/net/tramp-tests" "--eval" "(ert-run-tests-batch-and-exit (quote (not (or (tag :expensive-test) (tag :unstable)))))"))
  command-line()
  normal-top-level()

Test tramp-test18-file-attributes condition:
    (ert-test-failed
     ((should-not (file-exists-p tmp-name2)) :form
      (file-exists-p "/mock:lcy02-amd64-040:/tmp/tramp-testkN3nKD") :value
      t))
   FAILED  30/59  tramp-test18-file-attributes (1.907557 sec) at ../../build-src/test/lisp/net/tramp-tests.el:3766

Test wdired-test-bug34915 backtrace:
  signal(ert-test-failed (((should (equal (dired-get-filename 'no-dir 
  ert-fail(((should (equal (dired-get-filename 'no-dir t) (wdired-get-
  #f(compiled-function () #<bytecode -0x1c55b3132b0e63da>)()
  #f(compiled-function () #<bytecode -0x1df9a89d8878821f>)()
  handler-bind-1(#f(compiled-function () #<bytecode -0x1df9a89d8878821
  ert--run-test-internal(#s(ert--test-execution-info :test #s(ert-test
  ert-run-test(#s(ert-test :name wdired-test-bug34915 :documentation "
  ert-run-or-rerun-test(#s(ert--stats :selector (not ...) :tests [... 
  ert-run-tests((not (or (tag :expensive-test) (tag :unstable))) #f(co
  ert-run-tests-batch((not (or (tag :expensive-test) (tag :unstable)))
  ert-run-tests-batch-and-exit((not (or (tag :expensive-test) (tag :un
  eval((ert-run-tests-batch-and-exit '(not (or (tag :expensive-test) (
  command-line-1(("-L" ":/<<PKGBUILDDIR>>/debian/build
  command-line()
  normal-top-level()
Test wdired-test-bug34915 condition:
    (ert-test-failed
     ((should (equal (dired-get-filename ... t) (wdired-get-filename t)))
      :form (equal "bar@ -> foo.bat" "bar@") :value nil :explanation
      (arrays-of-different-length 15 4 "bar@ -> foo.bat" "bar@"
                  first-mismatch-at 4)))
   FAILED  3/7  wdired-test-bug34915 (0.026160 sec) at ../../build-src/test/lisp/wdired-tests.el:134


Test wdired-test-symlink-name backtrace:
  signal(ert-test-failed (((should (equal file-name lf-name)) :form (e
  ert-fail(((should (equal file-name lf-name)) :form (equal "/tmp/emac
  #f(compiled-function () #<bytecode 0x1e13d40d8f6fbe3a>)()
  #f(compiled-function () #<bytecode -0x1df9a89d8878821f>)()
  handler-bind-1(#f(compiled-function () #<bytecode -0x1df9a89d8878821
  ert--run-test-internal(#s(ert--test-execution-info :test #s(ert-test
  ert-run-test(#s(ert-test :name wdired-test-symlink-name :documentati
  ert-run-or-rerun-test(#s(ert--stats :selector ... :tests ... :test-m
  ert-run-tests((not (or (tag :expensive-test) (tag :unstable))) #f(co
  ert-run-tests-batch((not (or (tag :expensive-test) (tag :unstable)))
  ert-run-tests-batch-and-exit((not (or (tag :expensive-test) (tag :un
  eval((ert-run-tests-batch-and-exit '(not (or (tag :expensive-test) (
  command-line-1(("-L" ":/<<PKGBUILDDIR>>/debian/build
  command-line()
  normal-top-level()
Test wdired-test-symlink-name condition:
    (ert-test-failed
     ((should (equal file-name lf-name)) :form
      (equal "/tmp/emacs-test-yZsqFl-wdired/foo -> ./bar/baz"
         "/tmp/emacs-test-yZsqFl-wdired/foo -> ./bar/foo")
      :value nil :explanation
      (array-elt 43 (different-atoms (98 "#x62" "?b") (102 "#x66" "?f")))))
   FAILED  6/7  wdired-test-symlink-name (0.012942 sec) at ../../build-src/test/lisp/wdired-tests.el:85
Press C-c C-c when finished or C-c ESC to abort changes
   passed  7/7  wdired-test-unfinished-edit-01 (0.010405 sec)

Ran 7 tests, 5 results as expected, 2 unexpected (2025-11-22 21:12:28+0000, 0.207775 sec)

2 unexpected results:
   FAILED  wdired-test-bug34915
   FAILED  wdired-test-symlink-name

Thanks for helping

Gianfranco




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#79956; Package emacs. (Sat, 06 Dec 2025 16:46:02 GMT) Full text and rfc822 format available.

Message #8 received at 79956 <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: Gianfranco Costamagna <locutusofborg <at> debian.org>
Cc: 79956 <at> debbugs.gnu.org
Subject: Re: bug#79956: emacs FTBFS in Ubuntu (coreutils defaulting to rust is
 the issue)
Date: Sat, 06 Dec 2025 18:44:46 +0200
> Date: Sat, 6 Dec 2025 14:16:43 +0000 (UTC)
> From: Gianfranco Costamagna <locutusofborg <at> debian.org>
> 
> Hello, emacs 30.2 now FTBFS in Ubuntu on all architectures, I think this might be due to some coreutils-rust non compatible change.

Sorry, I don't understand: you say "FTBFS", but the errors you show
are from the test suite, not from the build.  That's not "FTB" in my
book.  What am I missing?

Thanks.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#79956; Package emacs. (Sun, 07 Dec 2025 07:45:02 GMT) Full text and rfc822 format available.

Message #11 received at 79956 <at> debbugs.gnu.org (full text, mbox):

From: Gianfranco Costamagna <locutusofborg <at> debian.org>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: "79956 <at> debbugs.gnu.org" <79956 <at> debbugs.gnu.org>
Subject: Re: bug#79956: emacs FTBFS in Ubuntu (coreutils defaulting to rust
 is the issue)
Date: Sun, 7 Dec 2025 07:44:44 +0000 (UTC)
Hello Eli, yes you can say test failures.

The full package build fails if tests fail in Ubuntu, so in general test failures are considered (by me, and probably only by me) build failures.

Sorry for the confusion!

G.






Il sabato 6 dicembre 2025 alle ore 17:45:01 CET, Eli Zaretskii <eliz <at> gnu.org> ha scritto: 





> Date: Sat, 6 Dec 2025 14:16:43 +0000 (UTC)
> From: Gianfranco Costamagna <locutusofborg <at> debian.org>
> 
> Hello, emacs 30.2 now FTBFS in Ubuntu on all architectures, I think this might be due to some coreutils-rust non compatible change.

Sorry, I don't understand: you say "FTBFS", but the errors you show
are from the test suite, not from the build.  That's not "FTB" in my
book.  What am I missing?


Thanks.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#79956; Package emacs. (Sun, 07 Dec 2025 09:35:01 GMT) Full text and rfc822 format available.

Message #14 received at 79956 <at> debbugs.gnu.org (full text, mbox):

From: Michael Albinus <michael.albinus <at> gmx.de>
To: Gianfranco Costamagna <locutusofborg <at> debian.org>
Cc: 79956 <at> debbugs.gnu.org
Subject: Re: bug#79956: emacs FTBFS in Ubuntu (coreutils defaulting to rust
 is the issue)
Date: Sun, 07 Dec 2025 10:34:38 +0100
[Message part 1 (text/plain, inline)]
Gianfranco Costamagna <locutusofborg <at> debian.org> writes:

> Hello, emacs 30.2 now FTBFS in Ubuntu on all architectures, I think this might be due to some coreutils-rust non compatible change.


>    FAILED  30/59  tramp-test18-file-attributes (1.907557 sec) at ../../build-src/test/lisp/net/tramp-tests.el:3766

You could instrument tramp-test18-file-attributes (from tramp-tests.el)
like this:

[Message part 2 (text/x-patch, inline)]
diff --git a/test/lisp/net/tramp-tests.el b/test/lisp/net/tramp-tests.el
index 3013a63e041..a98189ec433 100644
--- a/test/lisp/net/tramp-tests.el
+++ b/test/lisp/net/tramp-tests.el
@@ -3771,6 +3771,7 @@ tramp-test18-file-attributes
 `file-regular-p' and `file-ownership-preserved-p'."
   (skip-unless (tramp--test-enabled))
 
+  (tramp--test-instrument-test-case 6
   (dolist (quoted (if (tramp--test-expensive-test-p) '(nil t) '(nil)))
     ;; We must use `file-truename' for the temporary directory,
     ;; because it could be located on a symlinked directory.  This
@@ -3947,7 +3948,7 @@ tramp-test18-file-attributes
 	;; Cleanup.
 	(ignore-errors (delete-directory tmp-name1 'recursive))
 	(ignore-errors (delete-file tmp-name1))
-	(ignore-errors (delete-file tmp-name2))))))
+	(ignore-errors (delete-file tmp-name2)))))))
 
 (defun tramp--test-set-ert-test-documentation (test command)
   "Set the documentation string for a derived test.
[Message part 3 (text/plain, inline)]
Then run

--8<---------------cut here---------------start------------->8---
make -C test tramp-tests.log
--8<---------------cut here---------------end--------------->8---

Show the resulting tramp-tests.log file. It might be huge.

> In that case I would appreciate some hints about the used tool, so we can report to rust people and get them fix
>
> https://launchpad.net/ubuntu/+source/emacs/1:30.2+1-2
>
> This contains all the logs

I failed to find the log there, could you pls guide me?

> Thanks for helping
>
> Gianfranco

Best regards, Michael.

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#79956; Package emacs. (Sun, 07 Dec 2025 21:24:02 GMT) Full text and rfc822 format available.

Message #17 received at 79956 <at> debbugs.gnu.org (full text, mbox):

From: Gianfranco Costamagna <locutusofborg <at> debian.org>
To: Michael Albinus <michael.albinus <at> gmx.de>
Cc: "79956 <at> debbugs.gnu.org" <79956 <at> debbugs.gnu.org>
Subject: Re: bug#79956: emacs FTBFS in Ubuntu (coreutils defaulting to rust
 is the issue)
Date: Sun, 7 Dec 2025 21:23:12 +0000 (UTC)
[Message part 1 (text/plain, inline)]
> https://launchpad.net/ubuntu/+source/emacs/1:30.2+1-2
>
> This contains all the logs

Click on the architecture, e.g. amd64

Then click on "build log"


I did a build with some
find . -name "*.log" -exec echo "File is: {} \; -exec cat {} \;

This is the resulting log:
https://launchpad.net/~costamagnagianfranco/+archive/ubuntu/costamagnagianfranco-ppa/+sourcepub/17864488/+listing-archive-extra

Is that ok for you?

G.
[1765132403304blob.jpg (image/png, attachment)]
[1765132422046blob.jpg (image/png, attachment)]

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#79956; Package emacs. (Mon, 08 Dec 2025 08:58:02 GMT) Full text and rfc822 format available.

Message #20 received at 79956 <at> debbugs.gnu.org (full text, mbox):

From: Michael Albinus <michael.albinus <at> gmx.de>
To: Gianfranco Costamagna <locutusofborg <at> debian.org>
Cc: "79956 <at> debbugs.gnu.org" <79956 <at> debbugs.gnu.org>
Subject: Re: bug#79956: emacs FTBFS in Ubuntu (coreutils defaulting to rust
 is the issue)
Date: Mon, 08 Dec 2025 09:57:02 +0100
Gianfranco Costamagna <locutusofborg <at> debian.org> writes:

Hi Gianfranco,

> This is the resulting log:
> https://launchpad.net/~costamagnagianfranco/+archive/ubuntu/costamagnagianfranco-ppa/+sourcepub/17864488/+listing-archive-extra

Thanks.

> Is that ok for you?

This build does not include the instrumentation of
tramp-test18-file-attributes as proposed by me. So there is no new
information.

Best regards, Michael.




This bug report was last modified 2 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.