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

wget failure on alpine image - m1 macOS arm64 #387

Open
alamathe1 opened this issue Apr 25, 2024 · 0 comments
Open

wget failure on alpine image - m1 macOS arm64 #387

alamathe1 opened this issue Apr 25, 2024 · 0 comments

Comments

@alamathe1
Copy link

I have a dockerfile that works on macOS intel chips, but not on macOS m1 arm64:

FROM public.ecr.aws/docker/library/alpine:latest

MAINTAINER Amazon AWS

RUN apk update && \
    apk add \
    cmake \
    gcc \
    gcompat \
    gzip \
    libc6-compat \
    make \
    py3-pip \
    python3 \
    tar \
    unzip \
    wget \
    curl

# Bring in the nlohmann json library
RUN mkdir -p /data/build/nlohmann_json/include/nlohmann/
RUN wget -q https://github.com/nlohmann/json/releases/download/v3.9.1/json.hpp
RUN mv json.hpp /data/build/nlohmann_json/include/nlohmann/json.hpp

I get the error:

2024-04-24 22:27:58,716:[prepare]:[INFO]:: #16 [12/14] RUN wget -q https://github.com/nlohmann/json/releases/download/v3.9.1/json.hpp
2024-04-24 22:27:58,716:[prepare]:[INFO]:: #16 0.122 Error relocating /usr/lib/libidn2.so.0: unsupported relocation type 1026
2024-04-24 22:27:58,717:[prepare]:[INFO]:: #16 0.122 Error relocating /usr/lib/libidn2.so.0: unsupported relocation type 1026
2024-04-24 22:27:58,717:[prepare]:[INFO]:: #16 0.122 Error relocating /usr/lib/libidn2.so.0: unsupported relocation type 1026
2024-04-24 22:27:58,717:[prepare]:[INFO]:: #16 0.122 Error relocating /usr/lib/libidn2.so.0: unsupported relocation type 1026
2024-04-24 22:27:58,717:[prepare]:[INFO]:: #16 0.122 Error relocating /usr/lib/libidn2.so.0: unsupported relocation type 1026
2024-04-24 22:27:58,717:[prepare]:[INFO]:: #16 0.122 Error relocating /usr/lib/libidn2.so.0: unsupported relocation type 1026
2024-04-24 22:27:58,717:[prepare]:[INFO]:: #16 0.122 Error relocating /usr/lib/libidn2.so.0: unsupported relocation type 1026
2024-04-24 22:27:58,717:[prepare]:[INFO]:: #16 0.122 Error relocating /usr/lib/libidn2.so.0: unsupported relocation type 1026
2024-04-24 22:27:58,717:[prepare]:[INFO]:: #16 0.122 Error relocating /usr/lib/libidn2.so.0: unsupported relocation type 1026
2024-04-24 22:27:58,717:[prepare]:[INFO]:: #16 0.122 Error relocating /usr/lib/libidn2.so.0: unsupported relocation type 1026
2024-04-24 22:27:58,717:[prepare]:[INFO]:: #16 0.122 Error relocating /usr/lib/libidn2.so.0: unsupported relocation type 1026
2024-04-24 22:27:58,718:[prepare]:[INFO]:: #16 0.122 Error relocating /usr/lib/libidn2.so.0: unsupported relocation type 1026
2024-04-24 22:27:58,718:[prepare]:[INFO]:: #16 0.122 Error relocating /usr/lib/libidn2.so.0: __memcpy_chk: symbol not found

However when running these commands individually on shell, it succeeds:

docker pull public.ecr.aws/docker/library/alpine:3.17.7
docker run -it --name alpine_container public.ecr.aws/docker/library/alpine:3.17.7

System info:

➜  ~ uname
Darwin
➜  ~ uname -m
arm64
➜  ~
@alamathe1 alamathe1 changed the title wget on alpine image - m1 mac arm64 wget failure on alpine image - m1 macOS arm64 Apr 25, 2024
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