-
-
Notifications
You must be signed in to change notification settings - Fork 1
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 loading shared library -lncursesw
using latest linux/amd64 9.8.2 tag
#10
Comments
@paulcadman The difference is v6.4_p20240420-r1 (current) vs v6.4_p20240420-r0 (previous), i.e. https://gitlab.alpinelinux.org/alpine/aports/-/commit/b79b0bbd436ed65de871919b5f3324ed34b2d372. The current
The previous
|
Cross references: @paulcadman Please open an issue over at Alpine Linux aports. |
Thanks for the quick reply and investigation. Do you understand in more detail why this commit caused the issue? Understanding this will help me to raise the issue in aports. It seems like both file lists contain |
Unfortunately, I do not. But you could revert the symlinks added by the revision and try if it works then. |
Thanks again. |
This is definitively an issue with Because the following works: On a machine with docker installed docker run --rm -ti glcr.b-data.ch/ghc/ghc-musl:9.8.2 bash Inside the container Revert apk del ncurses-dev pcre2-dev
echo 'http://dl-cdn.alpinelinux.org/alpine/v3.19/main' >> /etc/apk/repositories
apk add ncurses-dev==6.4_p20231125-r0 pcre2-dev Install required packages: apk add cargo clang llvm Install Juvix: cd /tmp
mkdir anoma
cd anoma
git clone https://github.com/anoma/juvix.git
cd juvix
make runtime LIBTOOL=llvm-ar
stack install --system-ghc --no-install-ghc --ghc-options='-split-sections' --flag juvix:static Result: juvix --version
file $(which juvix)
@paulcadman Please open an issue over at Alpine Linux aports and point to for more information. Ping @ncopa ( |
aports issue raised: https://gitlab.alpinelinux.org/alpine/aports/-/issues/16577 |
Workaround: |
Image The workaround is not required anymore. Cross reference: |
This is a great result! Thank you so much @benz0li |
The issue with ncurses has been fixed upstream and the GHC container has been rebuilt. benz0li/ghc-musl#10
The issue with alpine ncurses packaging has been fixed upstream the ghc-musl containers have been rebuilt. Therefore we can resume using the tagged releases of the ghc-musl container. benz0li/ghc-musl#10 Thanks @benz0li for help with diagnosing and fixing this issue. Co-authored-by: Olivier Benz <[email protected]>
The issue with alpine ncurses packaging has been fixed upstream and the ghc-musl containers have been rebuilt. Therefore we can resume using the tagged releases of the ghc-musl container. benz0li/ghc-musl#10 Thanks @benz0li for help with diagnosing and fixing this issue. Co-authored-by: Olivier Benz <[email protected]>
We use ghc-musl container to build the Juvix static linux build.
Description of the issue
On 2024-10-22 the build static linux binary of the juvix nightly build started to fail with the following error when using the
quay.io/benz0li/ghc-musl:9.8.2
container.Link to an example failing build:
https://github.com/anoma/juvix-nightly-builds/actions/runs/11578274684/job/32231691647
I tried installing
libncursesw
separately (usingapk add --update libncursesw
) as part of the build, but it didn't fix the issue because it's already installed.Pinning the container to a previous version fixes the issue
The Juvix binary build works if I pin the build to use a 9.8.2 to a container from before the last container rebuild, for example
docker.io/benz0li/ghc-musl@sha256:0c491f49df224947847084159c85f60590c4c0324ecdf0efb366f82ed3b20023
https://github.com/anoma/juvix-nightly-builds/actions/runs/11579013347/job/32234216197
We would like to use the latest tag to make sure we're getting the latest security updates etc. We'll also upgrade to 9.8.3 or 9.10.* at some point.
The text was updated successfully, but these errors were encountered: