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: Paul Eggert <eggert <at> cs.ucla.edu>
Cc: tracker <at> debbugs.gnu.org
Subject: bug#78933: closed (compilation error after recent 'od' changes)
Date: Mon, 30 Jun 2025 22:44:01 +0000
[Message part 1 (text/plain, inline)]
Your message dated Mon, 30 Jun 2025 15:43:33 -0700
with message-id <b853745c-c659-47ab-b6da-7b73f1cedbaf <at> cs.ucla.edu>
and subject line Re: bug#78933: compilation error after recent 'od' changes
has caused the debbugs.gnu.org bug report #78933,
regarding compilation error after recent 'od' changes
to be marked as done.

(If you believe you have received this mail in error, please contact
help-debbugs <at> 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: 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




[Message part 3 (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 4 (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)]

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.