Skip to content
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

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

Open
vladimirlogachev opened this issue Apr 26, 2022 · 4 comments

Comments

@vladimirlogachev
Copy link

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 git@github.com: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'
@iostat
Copy link

iostat commented Aug 26, 2022

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

@vladimirlogachev
Copy link
Author

Nope. :(

@bugthunk
Copy link

bugthunk commented Sep 9, 2022

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
Copy link

bugthunk commented Sep 9, 2022

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants