servant-swagger-ui icon indicating copy to clipboard operation
servant-swagger-ui copied to clipboard

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

Open vladimirlogachev opened this issue 2 years ago • 4 comments

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'

vladimirlogachev avatar Apr 26 '22 00:04 vladimirlogachev

Running into this exact issue with Stack -- @VladimirLogachev have you managed to resolve this, by any chance?

iostat avatar Aug 26 '22 19:08 iostat

Nope. :(

vladimirlogachev avatar Aug 30 '22 15:08 vladimirlogachev

Ran into this as well. Most vexing. Anything I can do to help? FWIW I'm working on debugging it as well. Edit: not using stack, just plain cabal install.

bugthunk avatar Sep 09 '22 14:09 bugthunk

FWIW (again), cabal install -v3 servant-swagger-ui-0.3.5.4.5.0 on a fresh system gives the output found in -> debug_symbol_issue.txt

GHC version is 8.10.7.

bugthunk avatar Sep 09 '22 15:09 bugthunk