GNU bug report logs - #78933
compilation error after recent 'od' changes

Previous Next

Package: coreutils;

Reported by: Bruno Haible <bruno <at> clisp.org>

Date: Mon, 30 Jun 2025 19:48:02 UTC

Severity: normal

Done: Paul Eggert <eggert <at> cs.ucla.edu>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: help-debbugs <at> gnu.org (GNU bug Tracking System)
To: Bruno Haible <bruno <at> clisp.org>
Subject: bug#78933: closed (Re: bug#78933: compilation error after recent
 'od' changes)
Date: Mon, 30 Jun 2025 22:44:02 +0000
[Message part 1 (text/plain, inline)]
Your bug report

#78933: compilation error after recent 'od' changes

which was filed against the coreutils package, has been closed.

The explanation is attached below, along with your original report.
If you require more details, please reply to 78933 <at> debbugs.gnu.org.

-- 
78933: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=78933
GNU Bug Tracking System
Contact help-debbugs <at> gnu.org with problems
[Message part 2 (message/rfc822, inline)]
From: Paul Eggert <eggert <at> cs.ucla.edu>
To: Bruno Haible <bruno <at> clisp.org>
Cc: 78933-done <at> debbugs.gnu.org
Subject: Re: bug#78933: compilation error after recent 'od' changes
Date: Mon, 30 Jun 2025 15:43:33 -0700
[Message part 3 (text/plain, inline)]
On 2025-06-30 12:47, Bruno Haible via GNU coreutils Bug Reports wrote:

>    162 | static_assert (ARRAY_CARDINALITY (width_bytes) == N_SIZE_SPECS);
>        | ~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Thanks for reporting that. I installed the attached to fix it.
[0001-od-port-to-Apple-clang-14.patch (text/x-patch, attachment)]
[Message part 5 (message/rfc822, inline)]
From: Bruno Haible <bruno <at> clisp.org>
To: bug-coreutils <at> gnu.org
Subject: compilation error after recent 'od' changes
Date: Mon, 30 Jun 2025 21:47:02 +0200
After this week's changes in 'od', the CI reports a compilation error
on macOS:

gcc  -I. -I.. -I./lib  -Ilib -I../lib -Isrc -I../src -I/Users/runner/include -I/opt/homebrew/opt/gettext/include -I/opt/homebrew/opt/libiconv/include -Wall  -Wno-format-extra-args -Wno-implicit-const-int-float-conversion -Wno-tautological-constant-out-of-range-compare -g -O2 -MT src/od.o -MD -MP -MF $depbase.Tpo -c -o src/od.o ../src/od.c &&\
mv -f $depbase.Tpo $depbase.Po
../src/od.c:162:16: error: static assertion failed due to requirement '(sizeof (width_bytes) / sizeof *(width_bytes)) == N_SIZE_SPECS': static assertion failed
  162 | static_assert (ARRAY_CARDINALITY (width_bytes) == N_SIZE_SPECS);
      | ~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Bruno





This bug report was last modified 38 days ago.

Previous Next


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