[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20190819091930.GZ31406@gate.crashing.org>
Date: Mon, 19 Aug 2019 04:19:31 -0500
From: Segher Boessenkool <segher@...nel.crashing.org>
To: Nathan Chancellor <natechancellor@...il.com>
Cc: Benjamin Herrenschmidt <benh@...nel.crashing.org>,
Paul Mackerras <paulus@...ba.org>,
Michael Ellerman <mpe@...erman.id.au>,
clang-built-linux@...glegroups.com, linuxppc-dev@...ts.ozlabs.org,
linux-kernel@...r.kernel.org
Subject: Re: [PATCH] powerpc: Don't add -mabi= flags when building with Clang
On Sun, Aug 18, 2019 at 12:13:21PM -0700, Nathan Chancellor wrote:
> When building pseries_defconfig, building vdso32 errors out:
>
> error: unknown target ABI 'elfv1'
>
> Commit 4dc831aa8813 ("powerpc: Fix compiling a BE kernel with a
> powerpc64le toolchain") added these flags to fix building GCC but
> clang is multitargeted and does not need these flags. The ABI is
> properly set based on the target triple, which is derived from
> CROSS_COMPILE.
You mean that LLVM does not *allow* you to select a different ABI, or
different ABI options, you always have to use the default. (Everything
else you say is true for GCC as well).
(-mabi= does not set a "target ABI", fwiw, it is more subtle; please see
the documentation. Unless LLVM is incompatible in that respect as well?)
Segher
Powered by blists - more mailing lists