streamly
streamly copied to clipboard
Streamly core >= 0.2 does not build on FreeBSD
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"
This should be fixable, we do not have a FreeBSD CI, that's why this is not working.
@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.
This issue does not seem to have been fixed. I only just managed to update my code to streamly 0.10.1. I am seeing the following in FreeBSD 14.1 and 13.3 with ghc-9.4.8 and cabal 3.12.1.0.
Building library for streamly-core-0.2.2...
src/Streamly/Internal/FileSystem/Dir.hs:99:2: error:
error: "Unsupported architecture"
99 | #error "Unsupported architecture"
| ^
|
99 | #error "Unsupported architecture"
| ^
1 error generated.
src/Streamly/Internal/FileSystem/Dir.hs:99:2: error:
error: "Unsupported architecture"
99 | #error "Unsupported architecture"
| ^
|
99 | #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"
| ^
Okay so the actual tarball for 0.2.2 doesn't have this fix in it. This is probably why ;-). Any plans to put this in the next version and push to hackage?