Closed ghost closed 2 years ago
Nice to meet you!
The error message tells you that a C macro FUSE_USE_VERSION
is not defined. This packages makes use of Cabal's buildinfo
file, which defines the macro.
Perhaps Stack is not generating a libfuse3.buildinfo
file, or not compatible with it. I'm afraid I don't think I have time to fix this by myself because I don't use Stack at all.
Try looking for libfuse3.buildinfo
. It looks like that your log doesn't contain the output of ./configure
, so Stack might have not run it. If Stack does run ./configure
, it must be generated somewhere:
find -name libfuse3.buildinfo
@matil019 Thanks for the pointers :slightly_smiling_face: . After viewing the linked doc, I noticed haskell-libfuse3's Setup.hs
file content is not identical to the snippet from the documentation page.
If I understand correctly from that documentation, defaultMain
is for Simple build-type and doesn't fit well for Configure or other custom build?
Good news is, I managed to build the library with both cabal and stack after replacing the main = defaultMain
with main = defaultMainWithHooks autoconfUserHooks
in Setup.hs
file. I also could build the examples and use the package as a library from other projects just fine with both cabal and stack too.
@modotte The new version is published to Hackage as 0.1.2.1
! Please take a look.
Building from source and git url works brilliantly now, unfortunately, I still couldn't build the one from Hackage (yes, including 0.1.2.1). :slightly_frowning_face:
I'll try to investigate the potential cause.
Edit: Nevermind! I forgot to update my Stack packages index! My stack did try to build with 0.1.2.0 and not 0.1.2.1. All works fine as expected now! :sweat_smile:
Hello! Thanks for writing this package binding.
I have an issue using this package with stack (both from including the package name into
package.yaml
and/or direct git repository reference into stack.yaml) and I'm failing to build my project.I could build the library in isolation and as a dependency with cabal just fine though.
OS: OpenSUSE 15.3 Leap Stack version: Version 2.7.5, Git revision ba147e6f59b2da75b1beb98b1888cce97f7032b1 x86_64 hpack-0.34.4 C's libfuse3 was installed from the official package manager
fuse3-devel
(version: 3.6.1-3.3.8)Build log of (stack build):
Thanks.