openbouffalo / buildroot_bouffalo

Linux Image for the BL808 CPU by Bouffalo Lab
128 stars 34 forks source link

Cannot build because toolchain-external-custom downloading link is broken #89

Open azaslavskis opened 3 months ago

azaslavskis commented 3 months ago

Hello, trying to build an buildroot Linux on my Fedora 40,but facing with broking link and that toolchain cannot be build. Build commands:

mkdir buildroot_bouffalo && cd buildroot_bouffalo
git clone https://github.com/buildroot/buildroot
git clone https://github.com/openbouffalo/buildroot_bouffalo
export BR_BOUFFALO_OVERLAY_PATH=$(pwd)/buildroot_bouffalo
cd buildroot
make BR2_EXTERNAL=$BR_BOUFFALO_OVERLAY_PATH pine64_ox64_defconfig
make

Output:

>>> toolchain-external-custom  Downloading
wget -nd -t 3 -O '/home/alex/buildroot-ox64/buildroot_bouffalo/buildroot/output/build/.Xuantie-900-gcc-linux-5.10.4-glibc-x86_64-V2.6.1-20220906.tar.gz.uinB9D/output' 'https://occ-oss-prod.oss-cn-hangzhou.aliyuncs.com/resource//1663142514282/Xuantie-900-gcc-linux-5.10.4-glibc-x86_64-V2.6.1-20220906.tar.gz' 
0 files              100% [=============================================================================================================================>]     456     --.-KB/s
                          [Files: 0  Bytes: 456  [357 B/s] Redirects: 0  Todo: 0  Errors: 1                                                              ]
wget -nd -t 3 -O '/home/alex/buildroot-ox64/buildroot_bouffalo/buildroot/output/build/.Xuantie-900-gcc-linux-5.10.4-glibc-x86_64-V2.6.1-20220906.tar.gz.ibmQ5D/output' 'https://sources.buildroot.net/toolchain-external-custom/Xuantie-900-gcc-linux-5.10.4-glibc-x86_64-V2.6.1-20220906.tar.gz' 
0 files              100% [=============================================================================================================================>]     140     --.-KB/s
                          [Files: 0  Bytes: 140  [187 B/s] Redirects: 0  Todo: 0  Errors: 1                                                              ]
wget -nd -t 3 -O '/home/alex/buildroot-ox64/buildroot_bouffalo/buildroot/output/build/.Xuantie-900-gcc-linux-5.10.4-glibc-x86_64-V2.6.1-20220906.tar.gz.2QlDw6/output' 'https://sources.buildroot.net/Xuantie-900-gcc-linux-5.10.4-glibc-x86_64-V2.6.1-20220906.tar.gz' 
0 files              100% [=============================================================================================================================>]     140     --.-KB/s
                          [Files: 0  Bytes: 140  [284 B/s] Redirects: 0  Todo: 0  Errors: 1                                                              ]
make: *** [package/pkg-generic.mk:179: /home/alex/buildroot-ox64/buildroot_bouffalo/buildroot/output/build/toolchain-external-custom/.stamp_downloaded] Error 1

log.txt

Full log is appended like log.txt file.

azaslavskis commented 3 months ago

cheap and dirty solution

mkdir -p '/home/alex/buildroot_bouffalo/buildroot/output/build/.Xuantie-900-gcc-linux-5.10.4-glibc-x86_64-V2.6.1-20220906.tar.gz.OZNqhu' && \
curl --retry 3 -o '/home/alex/buildroot_bouffalo/buildroot/output/build/.Xuantie-900-gcc-linux-5.10.4-glibc-x86_64-V2.6.1-20220906.tar.gz.OZNqhu/output' \
'https://occ-oss-prod.oss-cn-hangzhou.aliyuncs.com/resource//1663142514282/Xuantie-900-gcc-linux-5.10.4-glibc-x86_64-V2.6.1-20220906.tar.gz'

and to fix gzip error

curl --retry 3 -o '/home/alex/buildroot_bouffalo/buildroot/dl/toolchain-external-custom/Xuantie-900-gcc-linux-5.10.4-glibc-x86_64-V2.6.1-20220906.tar.gz' 'https://occ-oss-prod.oss-cn-hangzhou.aliyuncs.com/resource//1663142514282/Xuantie-900-gcc-linux-5.10.4-glibc-x86_64-V2.6.1-20220906.tar.gz'

better solution is not use download marco in .mk and just clone file using curl. comming soon