amosbird / ldb_toolchain_gen

MIT License
66 stars 21 forks source link

Failed to wget a possible non-existent file #27

Open zclllyybb opened 9 months ago

zclllyybb commented 9 months ago

On centos8 with arm64 arch, when I run docker build . there's an error at line 125:

RUN wget https://raw.githubusercontent.com/llvm/llvm-project/llvmorg-$(/usr/lib/llvm-${LLVM_VERSION}/bin/clang --version  | head -n 1 | awk '{print $4}')/libcxx/utils/gdb/libcxx/printers.py -O /opt/printers.py

It shows:

ERROR: failed to solve: process "/bin/sh -c wget https://raw.githubusercontent.com/llvm/llvm-project/llvmorg-$(/usr/lib/llvm-${LLVM_VERSION}/bin/clang --version  | head -n 1 | awk '{print $4}')/libcxx/utils/gdb/libcxx/printers.py -O /opt/printers.py" did not complete successfully: exit code: 8

the actual wget target showed in running command is :

https://raw.githubusercontent.com/llvm/llvm-project/llvmorg-17.0.6/libcxx/utils/gdb/libcxx/printers.py

and I checked the file. It doesn't exist. what I can see the newest file tag of llvm release is llvmorg-17.0.5 here. and if I change tag to llvmorg-17.0.5 the wget could succeed. Is there something wrong?

amosbird commented 9 months ago

There is room for improvement in obtaining the "utils/gdb/libcxx/printers.py" file, as it often lags behind the latest release. We need to find a more efficient approach to access this file.