Hi Olivier,
On Thu, 4 Jul 2024 at 13:04, Olivier Deprez Olivier.Deprez@arm.com wrote:
Hi Anand, yes agree my answers are not ideal. Perhaps @Chris Kay has better insights? ________________________________ From: Anand Moon linux.amoon@gmail.com Sent: 04 July 2024 08:01 To: Olivier Deprez Olivier.Deprez@arm.com Cc: tf-a@lists.trustedfirmware.org tf-a@lists.trustedfirmware.org Subject: Re: [TF-A] Native compilation failed on dev board not able to find the gcc
Hi Olivier,
On Thu, 4 Jul 2024 at 10:24, Olivier Deprez Olivier.Deprez@arm.com wrote:
Hi,
I don't have a completely good answer but per my observations it builds:
Adding an external toolchain in $PATH e.g. arm-gnu-toolchain-13.2.rel1-aarch64-aarch64-none-elf from https://developer.arm.com/downloads/-/arm-gnu-toolchain-downloads if you don't have a toolchain in $PATH and provide it by CROSS_COMPILE e.g. make CROSS_COMPILE=<path>/arm-gnu-toolchain-12.2.rel1-aarch64-aarch64-none-elf/bin/aarch64-none-elf- PLAT=rpi5 DEBUG=1 if you pass the native compiler path through CROSS_COMPILE e.g. make CROSS_COMPILE=/usr/bin/ PLAT=rpi5 DEBUG=1
Thanks for the input,
But some u-boot package managers like Archlinux (pacman) which are used to build ATF along with u-boot on the native target board, which fails now with CROSS_COMPILE is not set.
I have not given it a try for buildroot or yocto to verify if the latest ATF build without CROSS_COMPILE set.
Will keep you posted on this.
Since buildroot has not released a snapshot for ATF the tags tor v2.11 I could not verify the building of the package.
[1] https://sources.buildroot.net/arm-trusted-firmware/
amoon@amoon-t440s:~/distro/buildroot$ make /usr/bin/make -j1 O=/home/amoon/distro/buildroot/output HOSTCC="/usr/bin/gcc" HOSTCXX="/usr/bin/g++" syncconfig
arm-trusted-firmware v2.11 Downloading
wget -nd -t 3 -O '/home/amoon/distro/buildroot/output/build/.arm-trusted-firmware-v2.11.tar.gz.YzKzQn/output' 'https://github.com/ARM-software/arm-trusted-firmware/archive/v2.11/arm-trust...' --2024-07-04 13:12:09-- https://github.com/ARM-software/arm-trusted-firmware/archive/v2.11/arm-trust... Resolving github.com (github.com)... 20.207.73.82 Connecting to github.com (github.com)|20.207.73.82|:443... connected. HTTP request sent, awaiting response... 302 Found Location: https://codeload.github.com/ARM-software/arm-trusted-firmware/tar.gz/v2.11/a... [following] --2024-07-04 13:12:09-- https://codeload.github.com/ARM-software/arm-trusted-firmware/tar.gz/v2.11/a... Resolving codeload.github.com (codeload.github.com)... 20.207.73.88 Connecting to codeload.github.com (codeload.github.com)|20.207.73.88|:443... connected. HTTP request sent, awaiting response... 404 Not Found 2024-07-04 13:12:10 ERROR 404: Not Found.
wget -nd -t 3 -O '/home/amoon/distro/buildroot/output/build/.arm-trusted-firmware-v2.11.tar.gz.JjkhMW/output' 'https://sources.buildroot.net/arm-trusted-firmware/arm-trusted-firmware-v2.1...' --2024-07-04 13:12:10-- https://sources.buildroot.net/arm-trusted-firmware/arm-trusted-firmware-v2.1... Resolving sources.buildroot.net (sources.buildroot.net)... 172.67.72.56, 104.26.1.37, 104.26.0.37, ... Connecting to sources.buildroot.net (sources.buildroot.net)|172.67.72.56|:443... connected. HTTP request sent, awaiting response... 404 Not Found 2024-07-04 13:12:10 ERROR 404: Not Found.
wget -nd -t 3 -O '/home/amoon/distro/buildroot/output/build/.arm-trusted-firmware-v2.11.tar.gz.IcaX0t/output' 'https://sources.buildroot.net/arm-trusted-firmware-v2.11.tar.gz' --2024-07-04 13:12:10-- https://sources.buildroot.net/arm-trusted-firmware-v2.11.tar.gz Resolving sources.buildroot.net (sources.buildroot.net)... 104.26.1.37, 172.67.72.56, 104.26.0.37, ... Connecting to sources.buildroot.net (sources.buildroot.net)|104.26.1.37|:443... connected. HTTP request sent, awaiting response... 404 Not Found 2024-07-04 13:12:11 ERROR 404: Not Found.
Thanks -Anand