GNU bug report logs -
#71749
29.4; Test failure in flymake-tests.el with GCC 14.1.1
Previous Next
Reported by: Ulrich Müller <ulm <at> gentoo.org>
Date: Mon, 24 Jun 2024 13:34:02 UTC
Severity: normal
Found in version 29.4
Fixed in version 30.1
Done: Ulrich Mueller <ulm <at> gentoo.org>
Bug is archived. No further changes may be made.
To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 71749 in the body.
You can then email your comments to 71749 AT debbugs.gnu.org in the normal way.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#71749
; Package
emacs
.
(Mon, 24 Jun 2024 13:34:02 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
Ulrich Müller <ulm <at> gentoo.org>
:
New bug report received and forwarded. Copy sent to
bug-gnu-emacs <at> gnu.org
.
(Mon, 24 Jun 2024 13:34:02 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
Emacs 29.4 fails tests with GCC 14.1.1 (Gentoo package
sys-devel/gcc-14.1.1_p20240518):
HOME=/nonexistent LANG=C EMACS_TEST_DIRECTORY=/tmp/portage/app-editors/emacs-29.4/work/emacs-29.4/test "../src/emacs" --module-assertions --no-init-file --no-site-file --no-site-lisp -L ":." \
-l ert --eval '(setq ert-batch-backtrace-right-margin nil)' -l src/emacs-module-tests \
--batch --eval '(ert-run-tests-batch-and-exit (quote (not (or (tag :expensive-test) (tag :unstable) (tag :nativecomp)))))' > src/emacs-module-tests.log 2>&1 || { STAT=$?; cat src/emacs-module-tests.log; exit $STAT; }
Running 9 tests (2024-06-24 15:21:29+0200, selector ‘(not (or (tag :expensive-test) (tag :unstable) (tag :nativecomp)))’)
passed 1/9 different-diagnostic-types (1.294288 sec)
passed 2/9 dummy-backends (1.002899 sec)
passed 3/9 eob-region-and-trailing-newline (0.000172 sec)
Test included-c-header-files backtrace:
[... backtrace omitted ...]
Test included-c-header-files condition:
(ert-test-failed
((should
(eq 'flymake-warning
(face-at-point)))
:form
(eq flymake-warning flymake-error)
:value nil))
FAILED 4/9 included-c-header-files (1.067014 sec) at lisp/progmodes/flymake-tests.el:168
passed 5/9 perl-backend (1.025399 sec)
passed 6/9 recurrent-backend (1.003033 sec)
passed 7/9 ruby-backend (1.019991 sec)
passed 8/9 warning-predicate-function-gcc (1.020760 sec)
passed 9/9 warning-predicate-rx-gcc (1.021962 sec)
Ran 9 tests, 8 results as expected, 1 unexpected (2024-06-24 15:21:38+0200, 8.529267 sec)
1 unexpected results:
FAILED included-c-header-files ((should (eq 'flymake-warning (face-at-point))) :form (eq flymake-warning flymake-error) :value nil)
make[3]: *** [Makefile:180: lisp/progmodes/flymake-tests.log] Error 1
make[3]: Leaving directory '/tmp/portage/app-editors/emacs-29.4/work/emacs-29.4/test'
make[2]: [Makefile:340: check-doit] Error 2 (ignored)
SUMMARY OF TEST RESULTS
-----------------------
Files examined: 466
Ran 6977 tests, 6757 results as expected, 1 unexpected, 219 skipped
1 files contained unexpected results:
lisp/progmodes/flymake-tests.log
make[2]: *** [Makefile:341: check-doit] Error 1
make[2]: Leaving directory '/tmp/portage/app-editors/emacs-29.4/work/emacs-29.4/test'
make[1]: *** [Makefile:310: check] Error 2
make[1]: Leaving directory '/tmp/portage/app-editors/emacs-29.4/work/emacs-29.4/test'
make: *** [Makefile:1105: check] Error 2
Attached patch (for the emacs-30 branch) fixes the problem for me:
[0001-Fix-flymake-tests-with-GCC-14.patch (text/plain, inline)]
From 4a36a89eb441816d18a85233fe34cf27c33f131e Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Ulrich=20M=C3=BCller?= <ulm <at> gentoo.org>
Date: Mon, 24 Jun 2024 15:20:26 +0200
Subject: [PATCH] Fix flymake tests with GCC 14.
* test/lisp/progmodes/flymake-tests.el (included-c-header-files):
Fix test failure with GCC 14.
---
test/lisp/progmodes/flymake-tests.el | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/test/lisp/progmodes/flymake-tests.el b/test/lisp/progmodes/flymake-tests.el
index 21dbb0711d2..93bc9028031 100644
--- a/test/lisp/progmodes/flymake-tests.el
+++ b/test/lisp/progmodes/flymake-tests.el
@@ -174,7 +174,8 @@ included-c-header-files
(flymake-tests--with-flymake
("some-problems.h")
(flymake-goto-next-error)
- (should (eq 'flymake-warning (face-at-point)))
+ ;; implicit-int was promoted from warning to error in GCC 14
+ (should (memq (face-at-point) '(flymake-warning flymake-error)))
(flymake-goto-next-error)
(should (eq 'flymake-error (face-at-point)))
(should-error (flymake-goto-next-error nil nil t)))
--
2.45.2
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#71749
; Package
emacs
.
(Mon, 24 Jun 2024 15:04:02 GMT)
Full text and
rfc822 format available.
Message #8 received at 71749 <at> debbugs.gnu.org (full text, mbox):
> From: Ulrich Müller <ulm <at> gentoo.org>
> Date: Mon, 24 Jun 2024 15:33:00 +0200
>
> Emacs 29.4 fails tests with GCC 14.1.1 (Gentoo package
> sys-devel/gcc-14.1.1_p20240518):
>
> HOME=/nonexistent LANG=C EMACS_TEST_DIRECTORY=/tmp/portage/app-editors/emacs-29.4/work/emacs-29.4/test "../src/emacs" --module-assertions --no-init-file --no-site-file --no-site-lisp -L ":." \
> -l ert --eval '(setq ert-batch-backtrace-right-margin nil)' -l src/emacs-module-tests \
> --batch --eval '(ert-run-tests-batch-and-exit (quote (not (or (tag :expensive-test) (tag :unstable) (tag :nativecomp)))))' > src/emacs-module-tests.log 2>&1 || { STAT=$?; cat src/emacs-module-tests.log; exit $STAT; }
> Running 9 tests (2024-06-24 15:21:29+0200, selector ‘(not (or (tag :expensive-test) (tag :unstable) (tag :nativecomp)))’)
> passed 1/9 different-diagnostic-types (1.294288 sec)
> passed 2/9 dummy-backends (1.002899 sec)
> passed 3/9 eob-region-and-trailing-newline (0.000172 sec)
> Test included-c-header-files backtrace:
> [... backtrace omitted ...]
>
> Test included-c-header-files condition:
> (ert-test-failed
> ((should
> (eq 'flymake-warning
> (face-at-point)))
> :form
> (eq flymake-warning flymake-error)
> :value nil))
> FAILED 4/9 included-c-header-files (1.067014 sec) at lisp/progmodes/flymake-tests.el:168
> passed 5/9 perl-backend (1.025399 sec)
> passed 6/9 recurrent-backend (1.003033 sec)
> passed 7/9 ruby-backend (1.019991 sec)
> passed 8/9 warning-predicate-function-gcc (1.020760 sec)
> passed 9/9 warning-predicate-rx-gcc (1.021962 sec)
>
> Ran 9 tests, 8 results as expected, 1 unexpected (2024-06-24 15:21:38+0200, 8.529267 sec)
>
> 1 unexpected results:
> FAILED included-c-header-files ((should (eq 'flymake-warning (face-at-point))) :form (eq flymake-warning flymake-error) :value nil)
>
> make[3]: *** [Makefile:180: lisp/progmodes/flymake-tests.log] Error 1
> make[3]: Leaving directory '/tmp/portage/app-editors/emacs-29.4/work/emacs-29.4/test'
> make[2]: [Makefile:340: check-doit] Error 2 (ignored)
>
> SUMMARY OF TEST RESULTS
> -----------------------
> Files examined: 466
> Ran 6977 tests, 6757 results as expected, 1 unexpected, 219 skipped
> 1 files contained unexpected results:
> lisp/progmodes/flymake-tests.log
> make[2]: *** [Makefile:341: check-doit] Error 1
> make[2]: Leaving directory '/tmp/portage/app-editors/emacs-29.4/work/emacs-29.4/test'
> make[1]: *** [Makefile:310: check] Error 2
> make[1]: Leaving directory '/tmp/portage/app-editors/emacs-29.4/work/emacs-29.4/test'
> make: *** [Makefile:1105: check] Error 2
>
>
> Attached patch (for the emacs-30 branch) fixes the problem for me:
Thanks, please install on the emacs-30 branch.
bug marked as fixed in version 30.1, send any further explanations to
71749 <at> debbugs.gnu.org and Ulrich Müller <ulm <at> gentoo.org>
Request was from
Ulrich Mueller <ulm <at> gentoo.org>
to
control <at> debbugs.gnu.org
.
(Mon, 24 Jun 2024 15:09:01 GMT)
Full text and
rfc822 format available.
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> debbugs.gnu.org
.
(Tue, 23 Jul 2024 11:24:09 GMT)
Full text and
rfc822 format available.
This bug report was last modified 261 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.