Unable to build n-amlogic-openlinux-20170606 branch
A message that is not in the archive (sent off-list or not yet received): [email protected]
Hi,
Quoted 24 lines · Le 08/06/2020 à 14:31, [email protected] a écrit :
Hi,
according to the file README.p200 in the mainline u-boot, I need to build both the mainline u-boot and a some other extra bits from a second vendor-specific repository . In the case of the P200 is the n-amlogic-openlinux-20170606 from Baylibre .Now here is a short script that reproduces the problem I'm having ( notice the use of sed because there is an hardcoded path inside a
Makefile) [ START of the script ]
#!/bin/zsh
set -e
ROOT_DIR="${PWD}/firmware_build_cache"mkdir "${ROOT_DIR}"
cd "${ROOT_DIR}"curl -sL https://releases.linaro.org/archive/13.11/components/toolchain/binaries/gcc-linaro-aarch64-none-elf-4.8-2013.11_linux.tar.xz | tar xfJ - curl -sL https://releases.linaro.org/archive/13.11/components/toolchain/binaries/gcc-linaro-arm-none-eabi-4.8-2013.11_linux.tar.xz | tar xfJ -
export PATH=${PATH}:${ROOT_DIR}/gcc-linaro-aarch64-none-elf-4.8-2013.11_linux/bin:${ROOT_DIR}/gcc-linaro-arm-none-eabi-4.8-2013.11_linux/bin
git clone --depth=1 https://github.com/BayLibre/u-boot.git -b n-amlogic-openlinux-20170606 amlogic-u-boot cd amlogic-u-boot
sed -i -e '/export\ /s/\/opt\/gcc-linaro-aarch64-none-elf-4.8-2013.11_linux\/bin\///'Makefilemakegxb_p200_v1_defconfig
make
[ END of the script ]
Quoted 3 lines
the error that I get is
[ START log ]
make[1]: aarch64-none-elf-gcc: No such file or directory
aarch64-none-elf-gcc: is not found in your PATH.
Neil
Quoted 22 lines
/bin/sh:/tmp/firmware_build_cache/gcc-linaro-aarch64-none-elf-4.8-2013.11_linux/bin/aarch64-none-elf-gcc: No such file or directory
dirname: missing operand
Try 'dirname --help' for more information.
GEN ./Makefilescripts/kconfig/conf--silentoldconfigKconfigCHK include/config.h UPD include/config.h GEN include/autoconf.mk
/bin/sh:/tmp/firmware_build_cache/gcc-linaro-aarch64-none-elf-4.8-2013.11_linux/bin/aarch64-none-elf-gcc: No such file or directory make[3]: *** [../scripts/Makefile.autoconf:64:include/autoconf.mk] Error 1
make[2]: *** [../Makefile:477: silentoldconfig] Error 1
make[1]: *** No rule to make target 'include/config/auto.conf', needed by 'include/config/uboot.release'. Stop.
make: *** [Makefile:147: sub-make] Error 2
[ END log ]Now, I checked files and configs and it does not seem to be anything wrong with that .
I have noticed that make does something weird, inside the topMakefilethere is an invocation that moves to the <build> subdir, and inside the <build> dir there is an invocation to the topMakefile: why ?What I'm doing wrong ?
This is the case when the error message doesn't really describes the problem .
The problem wasn't really about not having the right executables in PATH, in fact I checked and everything was properly set-up; the core of the issue was about trying to run a 32 bit executable ( the compiler / toolchain ) under a 64 bit environment without 32 bit support . Basically the gcc binary was unable to run at all and was reported as "not in PATH" .