streamly icon indicating copy to clipboard operation
streamly copied to clipboard

Streamly core >= 0.2 does not build on FreeBSD

Open sumo opened this issue 1 year ago • 4 comments
trafficstars

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"

sumo avatar Apr 05 '24 04:04 sumo

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

harendra-kumar avatar Apr 29 '24 10:04 harendra-kumar

@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.

adithyaov avatar May 01 '24 07:05 adithyaov

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"
  | ^

sumo avatar Sep 12 '24 13:09 sumo

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?

sumo avatar Sep 12 '24 14:09 sumo