From: Nathan Chancellor <natechancellor@gmail.com> To: Catalin Marinas <catalin.marinas@arm.com>, Will Deacon <will.deacon@arm.com>, Kevin Brodsky <kevin.brodsky@arm.com>, Mark Salyzyn <salyzyn@android.com>, Jeremy Linton <jeremy.linton@arm.com> Cc: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Nathan Chancellor <natechancellor@gmail.com> Subject: [PATCH] arm64: vdso32: Use full path to Clang instead of relying on PATH Date: Tue, 22 May 2018 14:59:35 -0700 [thread overview] Message-ID: <20180522215935.12029-1-natechancellor@gmail.com> (raw) Currently, in order to build the compat VDSO with Clang, this format has to be used: PATH=${BIN_FOLDER}:${PATH} make CC=clang Prior to the addition of this file, this format would also be acceptable: make CC=${BIN_FOLDER}/clang This is because the vdso32 Makefile uses cc-name instead of CC. After this path, CC will still evaluate to clang for the first case as expected but now the second case will use the specified Clang, rather than the host's copy, which may not be compatible as shown below. /usr/bin/as: unrecognized option '-mfloat-abi=soft' clang-6.0: error: assembler command failed with exit code 1 Signed-off-by: Nathan Chancellor <natechancellor@gmail.com> --- Hi everyone, I noticed this issue when building the Pixel 2's kernel. Since this is a supplement to https://patchwork.kernel.org/patch/10186671/, I was instructed by Mark to push it here. I could not find a public git tree for this patch, I am not sure if it has been applied or not so I couldn't add a fixes tag. If there are any other issues, please let me know! Nathan arch/arm64/kernel/vdso32/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm64/kernel/vdso32/Makefile b/arch/arm64/kernel/vdso32/Makefile index 6d44d972e89d..837e877a326b 100644 --- a/arch/arm64/kernel/vdso32/Makefile +++ b/arch/arm64/kernel/vdso32/Makefile @@ -5,7 +5,7 @@ # A mix between the arm64 and arm vDSO Makefiles. ifeq ($(cc-name),clang) - CC_ARM32 := $(cc-name) $(CLANG_TARGET_ARM32) -no-integrated-as + CC_ARM32 := $(CC) $(CLANG_TARGET_ARM32) -no-integrated-as else CC_ARM32 := $(CROSS_COMPILE_ARM32)$(cc-name) endif -- 2.17.0
WARNING: multiple messages have this Message-ID (diff)
From: natechancellor@gmail.com (Nathan Chancellor) To: linux-arm-kernel@lists.infradead.org Subject: [PATCH] arm64: vdso32: Use full path to Clang instead of relying on PATH Date: Tue, 22 May 2018 14:59:35 -0700 [thread overview] Message-ID: <20180522215935.12029-1-natechancellor@gmail.com> (raw) Currently, in order to build the compat VDSO with Clang, this format has to be used: PATH=${BIN_FOLDER}:${PATH} make CC=clang Prior to the addition of this file, this format would also be acceptable: make CC=${BIN_FOLDER}/clang This is because the vdso32 Makefile uses cc-name instead of CC. After this path, CC will still evaluate to clang for the first case as expected but now the second case will use the specified Clang, rather than the host's copy, which may not be compatible as shown below. /usr/bin/as: unrecognized option '-mfloat-abi=soft' clang-6.0: error: assembler command failed with exit code 1 Signed-off-by: Nathan Chancellor <natechancellor@gmail.com> --- Hi everyone, I noticed this issue when building the Pixel 2's kernel. Since this is a supplement to https://patchwork.kernel.org/patch/10186671/, I was instructed by Mark to push it here. I could not find a public git tree for this patch, I am not sure if it has been applied or not so I couldn't add a fixes tag. If there are any other issues, please let me know! Nathan arch/arm64/kernel/vdso32/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm64/kernel/vdso32/Makefile b/arch/arm64/kernel/vdso32/Makefile index 6d44d972e89d..837e877a326b 100644 --- a/arch/arm64/kernel/vdso32/Makefile +++ b/arch/arm64/kernel/vdso32/Makefile @@ -5,7 +5,7 @@ # A mix between the arm64 and arm vDSO Makefiles. ifeq ($(cc-name),clang) - CC_ARM32 := $(cc-name) $(CLANG_TARGET_ARM32) -no-integrated-as + CC_ARM32 := $(CC) $(CLANG_TARGET_ARM32) -no-integrated-as else CC_ARM32 := $(CROSS_COMPILE_ARM32)$(cc-name) endif -- 2.17.0
next reply other threads:[~2018-05-22 21:59 UTC|newest] Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top 2018-05-22 21:59 Nathan Chancellor [this message] 2018-05-22 21:59 ` [PATCH] arm64: vdso32: Use full path to Clang instead of relying on PATH Nathan Chancellor
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=20180522215935.12029-1-natechancellor@gmail.com \ --to=natechancellor@gmail.com \ --cc=catalin.marinas@arm.com \ --cc=jeremy.linton@arm.com \ --cc=kevin.brodsky@arm.com \ --cc=linux-arm-kernel@lists.infradead.org \ --cc=linux-kernel@vger.kernel.org \ --cc=salyzyn@android.com \ --cc=will.deacon@arm.com \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
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.