From: Nathan Chancellor <nathan@kernel.org> To: Masahiro Yamada <masahiroy@kernel.org> Cc: Michael Ellerman <mpe@ellerman.id.au>, Nicholas Piggin <npiggin@gmail.com>, Christophe Leroy <christophe.leroy@csgroup.eu>, linuxppc-dev@lists.ozlabs.org, linux-kernel@vger.kernel.org, Nick Desaulniers <ndesaulniers@google.com>, Tom Rix <trix@redhat.com>, llvm@lists.linux.dev Subject: Re: [PATCH] powerpc: add crtsavres.o to always-y instead of extra-y Date: Thu, 19 Jan 2023 11:44:42 -0700 [thread overview] Message-ID: <Y8mPmqDWiRJNdXs/@thelio-3990X> (raw) In-Reply-To: <20230119082447.152020-1-masahiroy@kernel.org> On Thu, Jan 19, 2023 at 05:24:47PM +0900, Masahiro Yamada wrote: > crtsavres.o is linked to modules, but as commit d0e628cd817f ("kbuild: > doc: clarify the difference between extra-y and always-y") explained, > 'make modules' does not build extra-y. > > The following command fails: > > $ make ARCH=powerpc LLVM=1 mrproper ps3_defconfig modules > [snip] > LD [M] arch/powerpc/platforms/cell/spufs/spufs.ko > ld.lld: error: cannot open arch/powerpc/lib/crtsavres.o: No such file or directory > make[1]: *** [scripts/Makefile.modfinal:61: arch/powerpc/platforms/cell/spufs/spufs.ko] Error 1 > make: *** [Makefile:1924: modules] Error 2 > > Signed-off-by: Masahiro Yamada <masahiroy@kernel.org> Reviewed-by: Nathan Chancellor <nathan@kernel.org> > --- > > arch/powerpc/lib/Makefile | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/arch/powerpc/lib/Makefile b/arch/powerpc/lib/Makefile > index c53618c34b70..aa34854bc9f5 100644 > --- a/arch/powerpc/lib/Makefile > +++ b/arch/powerpc/lib/Makefile > @@ -43,7 +43,7 @@ obj-$(CONFIG_FUNCTION_ERROR_INJECTION) += error-inject.o > # so it is only needed for modules, and only for older linkers which > # do not support --save-restore-funcs > ifndef CONFIG_LD_IS_BFD > -extra-$(CONFIG_PPC64) += crtsavres.o > +always-$(CONFIG_PPC64) += crtsavres.o > endif > > obj-$(CONFIG_PPC_BOOK3S_64) += copyuser_power7.o copypage_power7.o \ > -- > 2.34.1 >
WARNING: multiple messages have this Message-ID (diff)
From: Nathan Chancellor <nathan@kernel.org> To: Masahiro Yamada <masahiroy@kernel.org> Cc: llvm@lists.linux.dev, Nick Desaulniers <ndesaulniers@google.com>, linux-kernel@vger.kernel.org, Nicholas Piggin <npiggin@gmail.com>, Tom Rix <trix@redhat.com>, linuxppc-dev@lists.ozlabs.org Subject: Re: [PATCH] powerpc: add crtsavres.o to always-y instead of extra-y Date: Thu, 19 Jan 2023 11:44:42 -0700 [thread overview] Message-ID: <Y8mPmqDWiRJNdXs/@thelio-3990X> (raw) In-Reply-To: <20230119082447.152020-1-masahiroy@kernel.org> On Thu, Jan 19, 2023 at 05:24:47PM +0900, Masahiro Yamada wrote: > crtsavres.o is linked to modules, but as commit d0e628cd817f ("kbuild: > doc: clarify the difference between extra-y and always-y") explained, > 'make modules' does not build extra-y. > > The following command fails: > > $ make ARCH=powerpc LLVM=1 mrproper ps3_defconfig modules > [snip] > LD [M] arch/powerpc/platforms/cell/spufs/spufs.ko > ld.lld: error: cannot open arch/powerpc/lib/crtsavres.o: No such file or directory > make[1]: *** [scripts/Makefile.modfinal:61: arch/powerpc/platforms/cell/spufs/spufs.ko] Error 1 > make: *** [Makefile:1924: modules] Error 2 > > Signed-off-by: Masahiro Yamada <masahiroy@kernel.org> Reviewed-by: Nathan Chancellor <nathan@kernel.org> > --- > > arch/powerpc/lib/Makefile | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/arch/powerpc/lib/Makefile b/arch/powerpc/lib/Makefile > index c53618c34b70..aa34854bc9f5 100644 > --- a/arch/powerpc/lib/Makefile > +++ b/arch/powerpc/lib/Makefile > @@ -43,7 +43,7 @@ obj-$(CONFIG_FUNCTION_ERROR_INJECTION) += error-inject.o > # so it is only needed for modules, and only for older linkers which > # do not support --save-restore-funcs > ifndef CONFIG_LD_IS_BFD > -extra-$(CONFIG_PPC64) += crtsavres.o > +always-$(CONFIG_PPC64) += crtsavres.o > endif > > obj-$(CONFIG_PPC_BOOK3S_64) += copyuser_power7.o copypage_power7.o \ > -- > 2.34.1 >
next prev parent reply other threads:[~2023-01-19 18:44 UTC|newest] Thread overview: 23+ messages / expand[flat|nested] mbox.gz Atom feed top 2023-01-19 8:24 [PATCH] powerpc: add crtsavres.o to always-y instead of extra-y Masahiro Yamada 2023-01-19 8:24 ` Masahiro Yamada 2023-01-19 18:44 ` Nathan Chancellor [this message] 2023-01-19 18:44 ` Nathan Chancellor 2023-11-20 23:23 Masahiro Yamada 2023-11-20 23:23 ` Masahiro Yamada 2023-11-21 0:51 ` Nicholas Piggin 2023-11-21 0:51 ` Nicholas Piggin 2023-11-21 9:55 ` Aneesh Kumar K.V 2023-11-22 3:09 ` Masahiro Yamada 2023-11-22 3:09 ` Masahiro Yamada 2023-11-22 12:54 ` Michael Ellerman 2023-11-22 12:54 ` Michael Ellerman 2024-01-30 9:54 ` Jan Stancek 2024-01-30 9:54 ` Jan Stancek 2024-02-05 11:50 ` Michael Ellerman 2024-02-05 11:50 ` Michael Ellerman 2024-02-05 13:21 ` Jan Stancek 2024-02-05 13:21 ` Jan Stancek 2024-02-05 20:50 ` Masahiro Yamada 2024-02-05 20:50 ` Masahiro Yamada 2023-12-07 12:38 ` Michael Ellerman 2023-12-07 12:38 ` Michael Ellerman
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=Y8mPmqDWiRJNdXs/@thelio-3990X \ --to=nathan@kernel.org \ --cc=christophe.leroy@csgroup.eu \ --cc=linux-kernel@vger.kernel.org \ --cc=linuxppc-dev@lists.ozlabs.org \ --cc=llvm@lists.linux.dev \ --cc=masahiroy@kernel.org \ --cc=mpe@ellerman.id.au \ --cc=ndesaulniers@google.com \ --cc=npiggin@gmail.com \ --cc=trix@redhat.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.