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

Mint cannot run programs which build .so files. #211

Open
deatondg opened this issue May 2, 2021 · 0 comments
Open

Mint cannot run programs which build .so files. #211

deatondg opened this issue May 2, 2021 · 0 comments

Comments

@deatondg
Copy link

deatondg commented May 2, 2021

Some SwiftPM projects build .so files on Linux, and these must be kept around for the built executables to work correctly.
For example, on Ubuntu 20.04

sudo apt install binaryen libsqlite3-dev
mint install swiftwasm/carton@main
carton

builds successfully but crashes when running carton with

carton: error while loading shared libraries: libSwiftPMDataModel.so: cannot open shared object file: No such file or directory

If carton is built manually, and the resulting .build/x86_64-unknown-linux-gnu/release/libSwiftPMDataModel.so is copied into $MINT_PATH/packages/github.com_swiftwasm_carton/build/main, then carton runs successfully.

Mint should preserve these .so files when building projects which create them.

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