composewell / streamly

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

Streamly core >= 0.2 does not build on FreeBSD #2736

Open sumo opened 3 months ago

sumo commented 3 months ago

As per the defines build fails. Should there be anther package (streamly-io?) that provides IO related capability so that streamly-core can be used without a dependency on OS?

Building library for streamly-core-0.2.1..

src/Streamly/Internal/FileSystem/Dir.hs:99:2: error:
     error: "Unsupported architecture"
   |
99 | #error "Unsupported architecture"
   |  ^
#error "Unsupported architecture"
 ^
1 error generated.

src/Streamly/Internal/FileSystem/Dir.hs:99:2: error:
     error: "Unsupported architecture"
   |
99 | #error "Unsupported architecture"
   |  ^
#error "Unsupported architecture"
 ^
1 error generated.

src/Streamly/Internal/FileSystem/Dir.hs:1:1: error:
    `cc' failed in phase `C pre-processor'. (Exit code: 1)
  |
1 | #include "inline.hs"
harendra-kumar commented 2 months ago

This should be fixable, we do not have a FreeBSD CI, that's why this is not working.

adithyaov commented 2 months ago

@sumo The latest commit fixes the build for FreeBSD. https://github.com/composewell/streamly/pull/2743 Most modules are available except FileSystem.Event and friends.