composewell / streamly

High performance, concurrent functional programming abstractions
https://streamly.composewell.com
Other
856 stars 64 forks source link

‘Streamly.Internal.FileSystem.Event.Darwin’ does not export ‘Event’ #2595

Closed o1lo01ol1o closed 11 months ago

o1lo01ol1o commented 11 months ago

I'm compiling streamly 0.9 on an apple M2 under nix and it looks like theres a combination of flags that is incorrect somewhere:

[63 of 72] Compiling Streamly.Internal.FileSystem.Event ( src/Streamly/Internal/FileSystem/Event.hs, dist/build/Streamly/Internal/FileSystem/Event.o, dist/build/Streamly/Internal/FileSystem/Event.dyn_o )

src/Streamly/Internal/FileSystem/Event.hs:54:51: error:
    Module
    ‘Streamly.Internal.FileSystem.Event.Darwin’
    does not export
    ‘Event’
   |
54 | import Streamly.Internal.FileSystem.Event.Darwin (Event)

Is there a quick workaround?

o1lo01ol1o commented 11 months ago

Ah: the actual error was higher in the log:

src/Streamly/Internal/FileSystem/Event/Darwin.hs:1079:2: error:
     warning: "Autoconf did not find the definition kFSEventStreamCreateFlagFileEvents in Darwin header files.Do you have Cocoa framework header files installed?Not compiling the Streamly.Internal.FileSystem.Event.Darwin module. Programs depending on this module may not compile. Check if HAVE_DECL_KFSEVENTSTREAMCREATEFLAGFILEEVENTS is defined in config.h generated from src/config.h.in" [-W#warnings]
     |
1079 | #warning "Autoconf did not find the definition \
     |  ^
#warning "Autoconf did not find the definition \