Skip to content

Help needed, build fails on macOS: symbol not found in flat namespace '_lzma_auto_decoder'Β #101

@vladimirlogachev

Description

@vladimirlogachev

Steps to reproduce

  • MacBook Air M1
  • macOS 12.3.1
  • xz 5.2.5 (for lzma)
  • GHC 8.10.7
  • Cabal 3.6.2.0
brew install xz
git clone [email protected]:haskell-servant/servant-swagger-ui.git
cd servant-swagger-ui/servant-swagger-ui/
cabal build

Error message

Building library for servant-swagger-ui-core-0.3.5..
[1 of 1] Compiling Servant.Swagger.UI.Core ( src/Servant/Swagger/UI/Core.hs, /Users/theman/side/servant-swagger-ui/dist-newstyle/build/x86_64-osx/ghc-8.10.7/servant-swagger-ui-core-0.3.5/build/Servant/Swagger/UI/Core.o, /Users/theman/side/servant-swagger-ui/dist-newstyle/build/x86_64-osx/ghc-8.10.7/servant-swagger-ui-core-0.3.5/build/Servant/Swagger/UI/Core.dyn_o )
Configuring library for servant-swagger-ui-0.3.5.4.5.0..
Preprocessing library for servant-swagger-ui-0.3.5.4.5.0..
Building library for servant-swagger-ui-0.3.5.4.5.0..
[1 of 1] Compiling Servant.Swagger.UI ( src/Servant/Swagger/UI.hs, /Users/theman/side/servant-swagger-ui/dist-newstyle/build/x86_64-osx/ghc-8.10.7/servant-swagger-ui-0.3.5.4.5.0/build/Servant/Swagger/UI.o, /Users/theman/side/servant-swagger-ui/dist-newstyle/build/x86_64-osx/ghc-8.10.7/servant-swagger-ui-0.3.5.4.5.0/build/Servant/Swagger/UI.dyn_o )
<command line>: dlopen(/Users/theman/.cabal/store/ghc-8.10.7/lib/libHSlzm-0.0.0.3-8ec3b543-ghc8.10.7.dylib, 0x0005): symbol not found in flat namespace '_lzma_auto_decoder'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions