servant-swagger-ui
servant-swagger-ui copied to clipboard
Help needed, build fails on macOS: `symbol not found in flat namespace '_lzma_auto_decoder'`
Steps to reproduce
- MacBook Air M1
- macOS 12.3.1
-
xz
5.2.5 (forlzma
) - 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'
Running into this exact issue with Stack -- @VladimirLogachev have you managed to resolve this, by any chance?
Nope. :(
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
.
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.