From: Thomas Petazzoni Date: Wed, 27 Apr 2016 22:24:18 +0200 Subject: [Buildroot] [PATCH v4 1/3] toolchain-external: add a check for unsupported toolchains In-Reply-To: <1461788103-12163-1-git-send-email-romain.naour@gmail.com> References: <1461788103-12163-1-git-send-email-romain.naour@gmail.com> Message-ID: <20160427222418.59afab47@free-electrons.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: buildroot@busybox.net Hello, On Wed, 27 Apr 2016 22:15:01 +0200, Romain Naour wrote: > Some toolchain can't be used by Buildroot due to sysroot location > issue, so the $(ARCH)-linux-gnu-gcc -print-file-name=libc.a command > return only "libc.a" > > This lead to an error during the header check version helper, > so these toolchains can't be imported into Buildroot. > > cc1: fatal error: $PWD/libc.a/usr/include/linux/version.h: No such file or directory > compilation terminated. > support/scripts/check-kernel-headers.sh: line 38: /tmp/check-headers.4V5PPF: Permission denied > > This issue happen with the first linaro 2015.11 [1] release and > CodeSourcery standard edition [2]. > > Here is the sysroot directory tree for linaro 2015.11: > $ ls libc/arm-linux-gnueabihf > etc lib sbin usr var > > Here is the sysroot directory tree for CodeSourcery standard: > $ ls libc/sgxx-glibc > etc lib lib64 sbin usr var > > Add a check to error out with an explicit error message > > The check don't use toolchain_find_libc_a function directly since > "realpath -f" is used internally and return an absolute path. > > [1] https://bugs.linaro.org/show_bug.cgi?id=1995#c7 > [2] http://lists.busybox.net/pipermail/buildroot/2014-October/110696.html > > Signed-off-by: Romain Naour > Cc: "Yann E. MORIN" > Cc: Arnout Vandecappelle (Essensium/Mind) > Cc: Thomas De Schampheleire > --- > v4: rebase on master > v3: rename non_existent_sysroot to libc_a_path (ThomasP) > v2: move the check to check_unusable_toolchain helper > use unsupported toolchain instead of broken toolchains (ThomasP) > --- > toolchain/helpers.mk | 5 +++++ > 1 file changed, 5 insertions(+) All three patches applied to master, thanks! Thomas -- Thomas Petazzoni, CTO, Free Electrons Embedded Linux, Kernel and Android engineering http://free-electrons.com