Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

aarch64_ci_setup.sh - curl: (43) A libcurl function was given a bad argument #1997

Open
robert-hardwick opened this issue Sep 24, 2024 · 1 comment

Comments

@robert-hardwick
Copy link

I am seeing the following error when i run aarch64_ci_build.sh which calls aarch64_ci_build.sh

+ curl -L -o /mambaforge.sh https://github.com/conda-forge/miniforge/releases/latest/download/Miniforge3-Linux-aarch64.sh
curl: (43) A libcurl function was given a bad argument

I have looked into it and it seems that the LD_LIBRARY_PATH changes the libcurl shared library

LD_LIBRARY_PATH=/opt/conda/envs/${CONDA_ENV_NAME}/lib/:/opt/conda/lib:$LD_LIBRARY_PATH

From

  • ldd /usr/bin/curl
    libcurl.so.4 => /lib64/libcurl.so.4 (0x0000e93bf5c82000)

to ( after LD_LIBRARY_PATH change )

  • ldd /usr/bin/curl
    libcurl.so.4 => /opt/conda/lib/libcurl.so.4 (0x0000e4f6784db000)

So it seems that the conda installed curl is interferring with the system-installed curl. W

@robert-hardwick
Copy link
Author

It looks like this only happens if you call aarch64_ci_build.sh multiple times.

First call is ok, then subsequent calls hit this error due to conda installing it's own version of curl.

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

No branches or pull requests

1 participant