* Re: Unable to build n-amlogic-openlinux-20170606 branch
[not found] <rzSV.1591619492938357935.gFRa@groups.io>
@ 2020-06-09 18:56 ` Neil Armstrong
2020-06-09 20:54 ` krecis
0 siblings, 1 reply; 2+ messages in thread
From: Neil Armstrong @ 2020-06-09 18:56 UTC (permalink / raw)
To: u-boot-amlogic, krecis
Hi,
Le 08/06/2020 à 14:31, krecis@gmail.com 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\///' Makefile
> make gxb_p200_v1_defconfig
> make
> [ END of the script ]
>
> 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
> /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 ./Makefile
> scripts/kconfig/conf --silentoldconfig Kconfig
> CHK 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 top Makefile there is an invocation that moves to the <build> subdir, and inside the <build> dir there is an invocation to the top Makefile : why ?
>
> What I'm doing wrong ?
>
>
>
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Unable to build n-amlogic-openlinux-20170606 branch
2020-06-09 18:56 ` Unable to build n-amlogic-openlinux-20170606 branch Neil Armstrong
@ 2020-06-09 20:54 ` krecis
0 siblings, 0 replies; 2+ messages in thread
From: krecis @ 2020-06-09 20:54 UTC (permalink / raw)
To: Neil Armstrong, u-boot-amlogic
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" .
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2020-06-09 20:54 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <rzSV.1591619492938357935.gFRa@groups.io>
2020-06-09 18:56 ` Unable to build n-amlogic-openlinux-20170606 branch Neil Armstrong
2020-06-09 20:54 ` krecis
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.