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

Error: Could not open library ... libc.musl-x86_64.so.1: cannot open shared object file: No such file or directory #289

Closed
Intelligent2013 opened this issue Oct 15, 2022 · 8 comments · Fixed by #290
Assignees
Labels
bug Something isn't working

Comments

@Intelligent2013
Copy link
Contributor

The error occurs on Ubuntu only (https://github.com/metanorma/mnconvert/actions/runs/3255511696/jobs/5344902631):

cd tests/iso-8601-1 && metanorma site generate --agree-to-terms
[info]: Compiling /home/runner/work/mnconvert/mnconvert/tests/iso-8601-1/sources/iso-tc154-8601-1-en.adoc ...
...
Error: Could not open library '/var/lib/gems/2.7.0/gems/pngcheck-0.3.1-x86_64-linux-musl/lib/pngcheck/pngcheck.so': libc.musl-x86_64.so.1: cannot open shared object file: No such file or directory
...
@Intelligent2013 Intelligent2013 added the bug Something isn't working label Oct 15, 2022
@maxirmx
Copy link
Contributor

maxirmx commented Oct 15, 2022

I think the bundle needs to be updated
Let me check

@maxirmx
Copy link
Contributor

maxirmx commented Oct 15, 2022

@Intelligent2013
The latest versions of gems with native extensions depend/will depend on this fix: rubygems/rubygems#4488
Further, it requires that the package is bundled with bundler 2.3.22 ot higher

This project uses some cache that includes a version of bundler lower then 2.3.22 and it causes the failure.
When I comment out the cache and run bundle explicitly it works: https://github.com/metanorma/mnconvert/actions/runs/3256065576

cc @ronaldtse @CAMOBAP -- similar issues occur with all other types of packages

@ronaldtse
Copy link
Contributor

The GitHub CLI provides a way to list and clear caches for repos:

gh api repos/metanorma/metanorma/actions/caches

@Intelligent2013
Copy link
Contributor Author

@maxirmx thanks!

@Intelligent2013
Copy link
Contributor Author

@maxirmx the issue occurs again (https://github.com/metanorma/mnconvert/actions/runs/3623581041/jobs/6109611207):

cd tests/iso-8601-1 && metanorma site generate --agree-to-terms
[info]: Compiling /home/runner/work/mnconvert/mnconvert/tests/iso-8601-1/sources/iso-tc154-8601-1-en.adoc ...
Error: Could not open library '/opt/hostedtoolcache/Ruby/2.7.7/x64/lib/ruby/gems/2.7.0/gems/pngcheck-0.3.1-x86_64-linux-musl/lib/pngcheck/pngcheck.so': libc.musl-x86_64.so.1: cannot open shared object file: No such file or directory
Metanorma has encountered an exception.

If this problem persists, please report this issue at the following link:

* https://github.com/metanorma/metanorma/issues/new

Please attach the 20[22](https://github.com/metanorma/mnconvert/actions/runs/3623581041/jobs/6109611207#step:15:23)-12-05-error.log file.
Your valuable feedback is very much appreciated!

- The Metanorma team
make: *** [Makefile:42: tests/iso-8601-1/site/documents/iso-tc154-8601-1-en.xml] Error 1
rm documents/iso-rice-en.cd.mn.xml

Could you check? Thanks!

@maxirmx
Copy link
Contributor

maxirmx commented Dec 5, 2022

I can see that gem install metanorma-cli installs musl version of pngcheck and bundler update installs gnu version and after that both versions persist

I will try to invent quick hack today but the nature of this issue is a mystery for me.

@maxirmx
Copy link
Contributor

maxirmx commented Dec 5, 2022

#304
Still a mystery, but it works ...

@Intelligent2013
Copy link
Contributor Author

@maxirmx thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Archived in project
Development

Successfully merging a pull request may close this issue.

3 participants