public inbox for binutils@sourceware.org
 help / color / mirror / Atom feed
From: Waldemar Brodkorb <wbx@openadk.org>
To: Peter Bergner <bergner@linux.ibm.com>
Cc: Waldemar Brodkorb <wbx@openadk.org>,
	binutils@sourceware.org, Alan Modra <amodra@gmail.com>
Subject: Re: regression with binutils 2.28 for ppc
Date: Thu, 17 Feb 2022 10:28:38 +0100	[thread overview]
Message-ID: <Yg4VRvNLrKoJxrzo@waldemar-brodkorb.de> (raw)
In-Reply-To: <f9a3b880-9214-8faa-c54a-1a02852e2790@linux.ibm.com>

Hi Peter,
Peter Bergner wrote,

> On 2/16/22 8:32 AM, Peter Bergner via Binutils wrote:
> > On 2/16/22 7:35 AM, Waldemar Brodkorb wrote:
> >> since commit b25f942e18d6ecd7ec3e2d2e9930eb4f996c258a I am getting
> >> following error when building a Linux Kernel targeting
> >> qemu-system-ppc (-M macppc).
> >>
> >> {standard input}: Assembler messages:
> >> {standard input}:2156: Error: unrecognized opcode: `ptesync'
> 
> The commit you mention is Alan's fix for sticky bits.
> His commit message mentions the change will probably expose
> broken .machine usage, so I'm guessing this will end up being
> a kernel issue.

Yeah, I mean 2.38 not 2.28.
The gcc command used to compile the problematic file is:

  /home/wbx/embedded-test/openadk/toolchain_qemu-ppc-macppc_uclibc-ng_hard/usr/bin/ppc-openadk-linux-uclibc-gcc
  -Wp,-MMD,arch/powerpc/lib/.sstep.o.d -nostdinc
  -I./arch/powerpc/include -I./arch/powerpc/include/gen
  erated  -I./include -I./arch/powerpc/include/uapi
  -I./arch/powerpc/include/generated/uapi -I./include/uapi
  -I./include/generated/uapi -include
  ./include/linux/compiler-version.h -include
  ./include/linux/kconfig.h
   -include ./include/linux/compiler_types.h -D__KERNEL__ -I
   ./arch/powerpc -fmacro-prefix-map=./= -Wall -Wundef
   -Werror=strict-prototypes -Wno-trigraphs -fno-strict-aliasing
   -fno-common -fshort-wchar -fno-PIE -Wer
   ror=implicit-function-declaration -Werror=implicit-int
   -Werror=return-type -Wno-format-security -std=gnu89 -mcpu=powerpc
   -mcpu=powerpc -mbig-endian -m32 -msoft-float -pipe -ffixed-r2
   -mmultiple -mno-readonly-in-s
   data -mcpu=powerpc64 -mno-altivec -mno-vsx
   -fno-asynchronous-unwind-tables -mno-string -Wa,-maltivec
   -mbig-endian -fno-delete-null-pointer-checks -Wno-frame-address
   -Wno-format-truncation -Wno-format-overflow -Wn
   o-address-of-packed-member -Os -fno-allow-store-data-races
   -Wframe-larger-than=1024 -fno-stack-protector
   -Wimplicit-fallthrough=5 -Wno-main -Wno-unused-but-set-variable
   -Wno-unused-const-variable -fomit-frame-poi
   nter -fno-stack-clash-protection -Wdeclaration-after-statement
   -Wvla -Wno-pointer-sign -Wcast-function-type
   -Wno-stringop-truncation -Wno-zero-length-bounds
   -Wno-array-bounds -Wno-stringop-overflow -Wno-restrict 
   -Wno-maybe-uninitialized -Wno-alloc-size-larger-than
   -fno-strict-overflow -fno-stack-check -fconserve-stack
   -Werror=date-time -Werror=incompatible-pointer-types
   -Werror=designated-init -Wno-packed-not-aligned -We
   rror    -DKBUILD_MODFILE='"arch/powerpc/lib/sstep"'
   -DKBUILD_BASENAME='"sstep"' -DKBUILD_MODNAME='"sstep"'
   -D__KBUILD_MODNAME=kmod_sstep -c -o arch/powerpc/lib/sstep.o
   arch/powerpc/lib/sstep.c 

It works fine with binutils 2.37.

   best regards
    Waldemar

  reply	other threads:[~2022-02-17  9:28 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-02-16 13:35 Waldemar Brodkorb
2022-02-16 14:32 ` Peter Bergner
2022-02-16 18:24   ` Peter Bergner
2022-02-17  9:28     ` Waldemar Brodkorb [this message]
2022-02-17 20:03       ` Peter Bergner
2022-02-18  1:34         ` Alan Modra
2022-02-18  4:21           ` Peter Bergner
2022-02-20 11:58             ` Alan Modra
2022-02-23  8:51               ` Alan Modra
2022-02-23 17:34                 ` Waldemar Brodkorb

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=Yg4VRvNLrKoJxrzo@waldemar-brodkorb.de \
    --to=wbx@openadk.org \
    --cc=amodra@gmail.com \
    --cc=bergner@linux.ibm.com \
    --cc=binutils@sourceware.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;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).