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

 
 

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

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

Add a New Comment Rich Markup
   

Tue 01 Feb 2022 09:39:43 PM UTC, comment #4: 

The gnulib submodule has been updated quite a while ago.

Bernhard Voelker <berny>
Group administrator
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:

https://github.com/emacs-mirror/emacs/commit/7c9841b8428edfbc369eccf54788b668d4b27328?branch=7c9841b8428edfbc369eccf54788b668d4b27328&diff=unified

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]

Passing


--without-included-regex


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:  

Hi,

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:
   
   
Comment:
   

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 berny (Posted a comment)
  • -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)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only logged-in users can vote.

     

    Follow 6 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2022-02-01 berny Open/ClosedOpen Closed
    2022-02-01 berny StatusNone Fixed
        Assigned toNone berny
        ReleaseNone 4.8.0
        Fixed ReleaseNone 4.9.0
    2021-10-05 zacharysyoung Attached File- Added macos_cdefs-h.patch, #52033

    Back to the top

    Powered by Savane 3.13-758e.
    Corresponding source code