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

cabal build makes pate.sh not work #418

Open
thebendavis opened this issue Jul 10, 2024 · 1 comment
Open

cabal build makes pate.sh not work #418

thebendavis opened this issue Jul 10, 2024 · 1 comment

Comments

@thebendavis
Copy link
Member

thebendavis commented Jul 10, 2024

We recommend that users building from source use ./pate.sh to both build and invoke PATE. However, users familiar with typical Haskell project workflows may instead try to build PATE with cabal build pkg:pate or similar.

Unfortunately, running cabal build pkg:pate will cause subsequent executions of ./pate.sh to fail with a message that looks like:

<command line>: dlopen(/path/to/pate/dist-newstyle/build/aarch64-osx/ghc-9.6.5/pate-0.9.0/l/pate-repl-base-helper/build/pate-repl-base-helper/libHSpate-0.9.0-inplace-pate-repl-base-helper-ghc9.6.5.dylib, 0x0005): symbol not found in flat namespace '_patezm0zi9zi0zminplacezmpatezmreplzmbasezmhelper_Output_OutputElemList_con_info'

for which the issue and resolution (cabal clean ; ./pate.sh) are not obvious.

We should fix this such that cabal build does not cause issues for pate.sh.

@thebendavis
Copy link
Member Author

Once fixed, we should also add the integration test (which uses ./pate.sh) to the CI build job (which uses cabal build) - see discussion on #417

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

1 participant