* linux-next: build warnings after merge of the powerpc-fixes tree
@ 2025-04-22 1:47 Stephen Rothwell
2025-04-22 5:50 ` Madhavan Srinivasan
0 siblings, 1 reply; 3+ messages in thread
From: Stephen Rothwell @ 2025-04-22 1:47 UTC (permalink / raw)
To: Madhavan Srinivasan, Michael Ellerman, PowerPC
Cc: Linux Kernel Mailing List, Linux Next Mailing List
[-- Attachment #1: Type: text/plain, Size: 953 bytes --]
Hi all,
After merging the powerpc-fixes tree, today's linux-next build
(powerpc_ppc64_defconfig) produced these warnings:
arch/powerpc/boot/wrapper: 237: [: 0: unexpected operator
ld: warning: arch/powerpc/boot/zImage.epapr has a LOAD segment with RWX permissions
arch/powerpc/boot/wrapper: 237: [: 0: unexpected operator
ld: warning: arch/powerpc/boot/zImage.pseries has a LOAD segment with RWX permissions
arch/powerpc/boot/wrapper: 237: [: 0: unexpected operator
ld: warning: arch/powerpc/boot/zImage.pmac has a LOAD segment with RWX permissions
arch/powerpc/boot/wrapper: 237: [: 0: unexpected operator
ld: warning: arch/powerpc/boot/dtbImage.ps3 has a LOAD segment with RWX permissions
Introduced by commit
b2accfe7ca5b ("powerpc/boot: Check for ld-option support")
POSIX shell (in particular dash) does not recognise "&>" - you need to
use ">/dev/null 2>&1". (My /bin/sh is /bin/dash)
--
Cheers,
Stephen Rothwell
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 488 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: linux-next: build warnings after merge of the powerpc-fixes tree
2025-04-22 1:47 linux-next: build warnings after merge of the powerpc-fixes tree Stephen Rothwell
@ 2025-04-22 5:50 ` Madhavan Srinivasan
2025-04-22 6:15 ` Stephen Rothwell
0 siblings, 1 reply; 3+ messages in thread
From: Madhavan Srinivasan @ 2025-04-22 5:50 UTC (permalink / raw)
To: Stephen Rothwell, Michael Ellerman, PowerPC
Cc: Linux Kernel Mailing List, Linux Next Mailing List
On 4/22/25 7:17 AM, Stephen Rothwell wrote:
> Hi all,
>
> After merging the powerpc-fixes tree, today's linux-next build
> (powerpc_ppc64_defconfig) produced these warnings:
>
> arch/powerpc/boot/wrapper: 237: [: 0: unexpected operator
> ld: warning: arch/powerpc/boot/zImage.epapr has a LOAD segment with RWX permissions
> arch/powerpc/boot/wrapper: 237: [: 0: unexpected operator
> ld: warning: arch/powerpc/boot/zImage.pseries has a LOAD segment with RWX permissions
> arch/powerpc/boot/wrapper: 237: [: 0: unexpected operator
> ld: warning: arch/powerpc/boot/zImage.pmac has a LOAD segment with RWX permissions
> arch/powerpc/boot/wrapper: 237: [: 0: unexpected operator
> ld: warning: arch/powerpc/boot/dtbImage.ps3 has a LOAD segment with RWX permissions
>
I cant recreate this in both my x86_64 cross build and ppc64 build with dash.
I tried both ppc64_defconfig and pseries_le_defconfig compilation.
x86_64 dash version : dash-0.5.12-3.fc40.x86_64
powerpc dash version : dash-0.5.12-4.fc41.ppc64le
Can you share the dash version
Maddy
> Introduced by commit
>
> b2accfe7ca5b ("powerpc/boot: Check for ld-option support")
>
> POSIX shell (in particular dash) does not recognise "&>" - you need to
> use ">/dev/null 2>&1". (My /bin/sh is /bin/dash)
>
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: linux-next: build warnings after merge of the powerpc-fixes tree
2025-04-22 5:50 ` Madhavan Srinivasan
@ 2025-04-22 6:15 ` Stephen Rothwell
0 siblings, 0 replies; 3+ messages in thread
From: Stephen Rothwell @ 2025-04-22 6:15 UTC (permalink / raw)
To: Madhavan Srinivasan
Cc: Michael Ellerman, PowerPC, Linux Kernel Mailing List,
Linux Next Mailing List
[-- Attachment #1: Type: text/plain, Size: 992 bytes --]
Hi Madhavan,
On Tue, 22 Apr 2025 11:20:38 +0530 Madhavan Srinivasan <maddy@linux.ibm.com> wrote:
>
> I cant recreate this in both my x86_64 cross build and ppc64 build with dash.
> I tried both ppc64_defconfig and pseries_le_defconfig compilation.
>
> x86_64 dash version : dash-0.5.12-3.fc40.x86_64
> powerpc dash version : dash-0.5.12-4.fc41.ppc64le
>
> Can you share the dash version
I am running Debian Testing on ppc64el and the dash version is
0.5.12-12.
Try this:
$ make -p 2>/dev/null | grep -w SHELL
SHELL = /bin/sh
$ ls -l /bin/sh
lrwxrwxrwx 1 root root 4 Feb 5 00:14 /bin/sh -> dash
$ dash -c '[ $(ld -v --no-warn-rwx-segments &>/dev/null; echo $?) -eq 0 ]'
dash: 1: [: 0: unexpected operator
$ dash -c 'x=$(ld -v --no-warn-rwx-segments &>/dev/null; echo $?); echo "$x"'
0
GNU ld (GNU Binutils for Debian) 2.44
i.e. the $( ... ) returns 2 lines of output because the "ld ..." part is
backgrounded by the '&'.
--
Cheers,
Stephen Rothwell
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 488 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2025-04-22 6:15 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-04-22 1:47 linux-next: build warnings after merge of the powerpc-fixes tree Stephen Rothwell
2025-04-22 5:50 ` Madhavan Srinivasan
2025-04-22 6:15 ` Stephen Rothwell
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).