From: Vineet Gupta <vgupta@kernel.org>
To: Leon Romanovsky <leon@kernel.org>, Vineet Gupta <vgupta@kernel.org>
Cc: Leon Romanovsky <leonro@nvidia.com>,
linux-snps-arc@lists.infradead.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH] ARC: build: Try to guess GCC variant of cross compiler
Date: Thu, 12 Dec 2024 17:39:26 -0800 [thread overview]
Message-ID: <61367642-43a6-46e9-a231-dbb178fd304e@kernel.org> (raw)
In-Reply-To: <00d3173fe207ab9ba85dc974777a6ccb4656b03c.1733229205.git.leonro@nvidia.com>
On 12/3/24 04:37, Leon Romanovsky wrote:
> From: Leon Romanovsky <leonro@nvidia.com>
>
> ARC GCC compiler is packaged starting from Fedora 39i and the GCC
> variant of cross compile tools has arc-linux-gnu- prefix and not
> arc-linux-. This is causing that CROSS_COMPILE variable is left unset.
>
> This change allows builds without need to supply CROSS_COMPILE argument
> if distro package is used.
>
> Before this change:
> $ make -j 128 ARCH=arc W=1 drivers/infiniband/hw/mlx4/
> gcc: warning: ‘-mcpu=’ is deprecated; use ‘-mtune=’ or ‘-march=’ instead
> gcc: error: unrecognized command-line option ‘-mmedium-calls’
> gcc: error: unrecognized command-line option ‘-mlock’
> gcc: error: unrecognized command-line option ‘-munaligned-access’
>
> [1] https://packages.fedoraproject.org/pkgs/cross-gcc/gcc-arc-linux-gnu/index.html
> Signed-off-by: Leon Romanovsky <leonro@nvidia.com>
Added to for-curr.
Thx,
-Vineet
> ---
> arch/arc/Makefile | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/arch/arc/Makefile b/arch/arc/Makefile
> index 2390dd042e36..fb98478ed1ab 100644
> --- a/arch/arc/Makefile
> +++ b/arch/arc/Makefile
> @@ -6,7 +6,7 @@
> KBUILD_DEFCONFIG := haps_hs_smp_defconfig
>
> ifeq ($(CROSS_COMPILE),)
> -CROSS_COMPILE := $(call cc-cross-prefix, arc-linux- arceb-linux-)
> +CROSS_COMPILE := $(call cc-cross-prefix, arc-linux- arceb-linux- arc-linux-gnu-)
> endif
>
> cflags-y += -fno-common -pipe -fno-builtin -mmedium-calls -D__linux__
prev parent reply other threads:[~2024-12-13 1:39 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-12-03 12:37 Leon Romanovsky
2024-12-13 1:39 ` Vineet Gupta [this message]
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=61367642-43a6-46e9-a231-dbb178fd304e@kernel.org \
--to=vgupta@kernel.org \
--cc=leon@kernel.org \
--cc=leonro@nvidia.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-snps-arc@lists.infradead.org \
/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: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®