-
Notifications
You must be signed in to change notification settings - Fork 841
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Package (streamly) with *.m
file in c-sources
fails to build with GHC 9.8.2/Cabal-3.10.2.0
#6652
Comments
@AliceRixte, thanks for reporting. I've started by seeing if I can build a local version of the package on my machine (os Windows 11), with:
Result: builds fine. EDIT: Same result with However, I see from your CI script that you are depending on an unreleased version: |
So, next, I cloned the snapshot: nightly-2024-10-02 # GHC 9.8.2
packages:
- . # streamly
- core # streamly-core
Result: builds fine. I'll try building a package that depends on that package. |
So, I created a simple application ( dependencies:
- base >= 4.7 && < 5
- streamly
- streamly-core and snapshot: nightly-2024-10-02 # GHC 9.8.2
packages:
- .
- ../streamly # streamly-0.11.0
- ../streamly/core # streamly-core-0.3.0 Result of On my Windows 11 machine, I can't reproduce your problem. Perhaps it is macOS-specific. I do not immediately have a macOS machine to hand. However, I can't think of a reason why Stack itself would do anything different on macOS to what it does on Windows 11. |
@mpilgrem Thank you for your answer. I'm sorry, I should have been more clear : in the continous integration branch mentioned in composewell/streamly#2844 , we already made clear that :
|
Also notice that the error log mentions a file called "src/Streamly/Internal/FileSystem/Event/Darwin.o", which considering the name I would guess is a Streamly file that deals specifically with Mac OS. @harendra-kumar might be able to confirm this. |
This is a macOS specific issue, other builds are working fine with stack. Here is the failure output on macOS:
The file Darwin.hs includes configuration generated by autoconf. The build works fine with cabal though. |
I'll have access to a macOS/AArch64 machine later this month and can investigate further then. Given current Do you know what version of Cabal (the library) your Cabal (the tool) (that works) is based on? If Cabal (the tool) (that works) is using a more recent version of Cabal (the library) than ships with GHC 9.8.2, Stack can be set to use a different version of custom-setup
setup-depends:
base,
Cabal > 3.10.2.0 EDIT: My other suggestion is to see if 'full verbosity' reveals anything. The following will turn on all of Stack's, Cabal's and GHC's verbosity:
|
I now have access to a macOS/AArch64 machine. Building does fail. Cabal has the following command (output reformatted, for clarity - all the files are in Cabal's EDIT: It turned out that GHC 9.6.6/
|
@harendra-kumar, perhaps this is the cause of the problem? if os(darwin)
include-dirs: src/Streamly/Internal
c-sources: src/Streamly/Internal/FileSystem/Event/Darwin.m
exposed-modules: Streamly.Internal.FileSystem.Event.Darwin A |
@AliceRixte, @harendra-kumar if I rename the problematic |
*.m
file in c-sources
fails to build with GHC 9.8.2/Cabal-3.10.2.0
The
streamly
library fails to build on the latest nightly resolver. On this related issue in the streamly repository : composewell/streamly#2844 you will find a PR that reproduces the fail on a CI.cabal build
works fine on the file generated by stack, so it looks like this is a stack issue.Steps to reproduce
stack.yaml
file with one of the following resolvers :resolver: nightly-2024-06-20
resolver: nightly-2024-09-18
package.yaml
file with the following dependency :- streamly >= 0.10.1
stack build
.Expected
streamly builds properly
Actual
The build fails after having successfully built all the files from streamly :
Stack version
Method of installation
Platform
Mac OS Sonoma 14.4.1
The text was updated successfully, but these errors were encountered: