bugfindutils - Bugs: bug #59972, findutils 4.8.0 does not compile...


bug #59972: findutils 4.8.0 does not compile on Mac OS Catalina

Submitted by:  Robert Gross <gross>
Submitted on:  Sat 30 Jan 2021 04:13:13 AM UTC  
Category:  None Severity:  3 - Normal
Item Group:  Compilation Failure Status:  None
Privacy:  Public Assigned to:  None
Originator Name:  Open/Closed:  Open
Release:  None Fixed Release:  None

Add a New Comment (Rich Markup)

You are not logged in

Please log in, so followups can be emailed to you.


Tue 05 Oct 2021 08:42:19 AM UTC, comment #3: 

Not sure of the process for contributing, but here's a patch.

Also, does cdefs.h have its own source of truth, that should be updated?

(file #52033)

Zach Young <zacharysyoung>
Tue 05 Oct 2021 08:23:42 AM UTC, comment #2: 

I just encountered this error trying to build on macOS Big Sur (11.6).

I tracked down the error message to these other two GNU projects:

The Emacs thread referenced a patch that fixed the OP's problem:


I manually patched in the changes to cdefs.h and make install completed.

Zach Young <zacharysyoung>
Sat 30 Jan 2021 06:42:35 AM UTC, comment #1: 

I encountered this issue too. [1],[2]



to configure gets around the error you see, but reveals a different one.

[1] https://lists.gnu.org/archive/html/bug-findutils/2021-01/msg00050.html
[2] https://lists.gnu.org/archive/html/bug-findutils/2021-01/msg00051.html

Carlo Cabrera <carlocab>
Sat 30 Jan 2021 04:13:13 AM UTC, original submission:  


My attempt to compile the latest version 4.8.0 crashes with:

CC       readlinkat.o
CC       regex.o
In file included from regex.c:74:
In file included from ./regexec.c:1362:
./malloc/dynarray-skeleton.c:195:13: error: expected identifier or '('
__nonnull ((1))
followed by a lot of similar messages about __nonnull ((1))

The error occurs with clang and gcc 10.2.0.  I can compile 4.7.0 without this error.

I will happily provide whatever additional information might help.

Robert Gross <gross>


(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:

Attached Files
file #52033:  macos_cdefs-h.patch added by zacharysyoung (779B - application/octet-stream)


Depends on the following items: None found

Items that depend on this one: None found


Carbon-Copy List
  • -email is unavailable- added by zacharysyoung (Posted a comment)
  • -email is unavailable- added by carlocab (Posted a comment)
  • -email is unavailable- added by gross (Submitted the item)

    Do you think this task is very important?
    If so, you can add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.




    Follows 1 latest change.

    Date Changed by Updated Field Previous Value => Replaced by
    2021-10-05 zacharysyoung Attached File- => Added macos_cdefs-h.patch, #52033

    Back to the top

    Powered by Savane 3.7