cancel
Showing results for 
Search instead for 
Did you mean: 

Recipe for gcc-arm-none-eabi-native fails. Download checksum error with kirkstone.

GLaure
Senior

I am puzzled with a curious build problem:

The recipe gcc-arm-none-eabi-native downloads gcc-arm-none-eabi-10.3-2021.10-x86_64-linux.tar.bz2 but the download finishes to early (at 100MB instead of 150MB). Therefore the checksum check fails.

BUT:

If I copy the SRC_URL:

SRC_URI = "https://developer.arm.com/-/media/Files/downloads/gnu-rm/10.3-2021.10/gcc-arm-none-eabi-10.3-2021.10-x86_64-linux.tar.bz2;name=gcc-arm-x86"

into a browser or use wget the download completes successfully. Also the sha256 sum is correct then.

Anyone experienced similar problems? Currently I will try to add a bbappend recipe to inject the archive as local file.

My systems:

Ubuntu 22.04 LTS

Alternatively docker container with 22.04

BB_NUMBER_THREADS="16" PARALLEL_MAKE="-j 16" bitbake gcc-arm-none-eabi-native
NOTE: Started PRServer with DBfile: /home/glaure/Development/SW_APP/nexio_tmp/ost-5.15/build/cache/prserv.sqlite3, Address: 127.0.0.1:41099, PID: 1439493
Loading cache: 100% |########################################################################################################| Time: 0:00:00
Loaded 4489 entries from dependency cache.
NOTE: Resolving any missing task queue dependencies
 
Build Configuration:
BB_VERSION           = "2.0.0"
BUILD_SYS            = "x86_64-linux"
NATIVELSBSTRING      = "ubuntu-22.04"
TARGET_SYS           = "arm-ostl-linux-gnueabi"
MACHINE              = "stm32mp1-nexio"
DISTRO               = "openstlinux-weston"
DISTRO_VERSION       = "4.0.4-snapshot-20230504"
TUNE_FEATURES        = "arm vfp cortexa7 neon vfpv4 thumb callconvention-hard"
TARGET_FPU           = "hard"
DISTRO_CODENAME      = "kirkstone"
GCCVERSION           = "11.%"
PREFERRED_PROVIDER_virtual/kernel = "linux-stm32mp"
meta-swupdate-nexio  = "<unknown>:<unknown>"
meta-swupdate        = "kirkstone:fb01170b98cf9541d286ba5a890fb85d83949b91"
meta-trionet         
meta-nexio           
meta-nexio-bsp       = "<unknown>:<unknown>"
meta-python          
meta-oe              
meta-gnome           
meta-initramfs       
meta-multimedia      
meta-networking      
meta-webserver       
meta-filesystems     
meta-perl            = "HEAD:05dcac98473402d87e0af73bbc2c5a6a840abe93"
meta-st-stm32mp      = "HEAD:ca501bd7dbe023682903ceedddaacd940b0898f4"
meta-qt5             = "HEAD:5b71df60e523423b9df6793de9387f87a149ac42"
meta-st-openstlinux  = "HEAD:cb736b403d0fef2a02390695613b6b4bb13ca1b7"
meta                 = "HEAD:f7766da462905ec67bf549d46b8017be36cd5b2a"
 
NOTE: Fetching uninative binary shim http://downloads.yoctoproject.org/releases/uninative/3.6/x86_64-nativesdk-libc-3.6.tar.xz;sha256sum=9bfc4c970495b3716b2f9e52c4df9f968c02463a9a95000f6657fbc3fde1f098 (will check PREMIRRORS first)
Initialising tasks: 100% |###################################################################################################| Time: 0:00:02
Sstate summary: Wanted 6 Local 0 Mirrors 0 Missed 6 Current 0 (0% match, 0% complete)
NOTE: Executing Tasks
WARNING: gcc-arm-none-eabi-native-10-r0 do_fetch: Checksum mismatch for local file /home/glaure/Development/SW_APP/nexio_tmp/ost-5.15/build/downloads/gcc-arm-none-eabi-10.3-2021.10-x86_64-linux.tar.bz2
Cleaning and trying again.
WARNING: gcc-arm-none-eabi-native-10-r0 do_fetch: Renaming /home/glaure/Development/SW_APP/nexio_tmp/ost-5.15/build/downloads/gcc-arm-none-eabi-10.3-2021.10-x86_64-linux.tar.bz2 to /home/glaure/Development/SW_APP/nexio_tmp/ost-5.15/build/downloads/gcc-arm-none-eabi-10.3-2021.10-x86_64-linux.tar.bz2_bad-checksum_c1d9dbf71e84d737a0e38fbf33c8f7f8b24519ee8b75a472af1873fd84769f8c
WARNING: gcc-arm-none-eabi-native-10-r0 do_fetch: Checksum failure encountered with premirror download of https://developer.arm.com/-/media/Files/downloads/gnu-rm/10.3-2021.10/gcc-arm-none-eabi-10.3-2021.10-x86_64-linux.tar.bz2;name=gcc-arm-x86 - will attempt other sources.
WARNING: gcc-arm-none-eabi-native-10-r0 do_fetch: Failed to fetch URL https://developer.arm.com/-/media/Files/downloads/gnu-rm/10.3-2021.10/gcc-arm-none-eabi-10.3-2021.10-x86_64-linux.tar.bz2;name=gcc-arm-x86, attempting MIRRORS if available

5 REPLIES 5
GLaure
Senior

Fun fact: gcc-arm-none-eabi-native_10.bb is the only recipe having this issue.

My build fix:

gcc-arm-none-eabi-native_10.bbappend

FILESEXTRAPATHS:append := "${THISDIR}:"
 
SRC_URI = "file://files/gcc-arm-none-eabi-10.3-2021.10-x86_64-linux.tar.bz2 \
        "

GLaure
Senior

Got it:

The SRC_URL is replaced with: 'http://downloads.yoctoproject.org/mirror/sources/gcc-arm-none-eabi-10.3-2021.10-x86_64-linux.tar.bz2'

And the artifact there is different and much smaller.

Hello @GLaure​ ,

I can confirm that the package size is not the same if you use the mirror link that you sent.

I will have a look why, but this is something handled by the community.

We can see in your log that it tried the correct link at first but failed to verify the crc.

If you look at the file in:

/home/glaure/Development/SW_APP/nexio_tmp/ost-5.15/build/downloads/gcc-arm-none-eabi-10.3-2021.10-x86_64-linux.tar.bz2_bad-checksum_c1d9dbf71e84d737a0e38fbf33c8f7f8b24519ee8b75a472af1873fd84769f8c

Is it complete?

If it is not the case, they was surely a problem with the site "developer.arm.com" or with your internet connection during the download of the package, because as you said, the one in :

https://developer.arm.com/-/media/Files/downloads/gnu-rm/10.3-2021.10/gcc-arm-none-eabi-10.3-2021.10-x86_64-linux.tar.bz2

is the correct one with the good checksum.

If the build tries to get the mirror tarball it is already not something normal.

Best Regards,

Kevin

In order to give better visibility on the answered topics, please click on 'Accept as Solution' on the reply which solved your issue or answered your question.
Kevin HUBER
ST Employee

Hello @GLaure​ ,

In your build log, we can see that this is just a warning. Does the build continue after this warning?

Best Regards,

Kevin

In order to give better visibility on the answered topics, please click on 'Accept as Solution' on the reply which solved your issue or answered your question.
GLaure
Senior

Now it does. I currently do not know if my bbappend recipe helps or not. I will look into it.

Bye Gunther