public inbox for glibc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "fweimer at redhat dot com" <sourceware-bugzilla@sourceware.org>
To: glibc-bugs@sourceware.org
Subject: [Bug libc/28771] New: %ebx optimization macros are incompatible with .altmacro in Systemtap probes
Date: Wed, 12 Jan 2022 20:11:50 +0000	[thread overview]
Message-ID: <bug-28771-131@http.sourceware.org/bugzilla/> (raw)

https://sourceware.org/bugzilla/show_bug.cgi?id=28771

            Bug ID: 28771
           Summary: %ebx optimization macros are incompatible with
                    .altmacro in Systemtap probes
           Product: glibc
           Version: 2.35
            Status: NEW
          Severity: normal
          Priority: P2
         Component: libc
          Assignee: unassigned at sourceware dot org
          Reporter: fweimer at redhat dot com
                CC: drepper.fsp at gmail dot com, hjl.tools at gmail dot com
  Target Milestone: ---
             Build: i686-linux-gnu
             Flags: security-

We need to build Fedora 36 with !CAN_USE_REGISTER_ASM_EBP because of
auto-vectorization at -O2. This results in a different build failure in
nptl/pthread_create.c because the probes there use .altmacro, which breaks
inline system calls later in this file.

To reproduce, build glibc with systemtap-sdt-devel-4.6-4.fc35 (or the Fedora
rawhide version) and:

../git/configure  --prefix=/usr CC="gcc -m32" CXX="g++ -m32"
--build=i686-linux-gnu libc_cv_can_use_register_asm_ebp=no --enable-systemtap

pthread_create.c: Assembler messages:
pthread_create.c:594: Error: % operator needs absolute expression
pthread_create.c:597: Error: % operator needs absolute expression
../sysdeps/unix/sysv/linux/default-sched.h:31: Error: % operator needs absolute
expression
../sysdeps/unix/sysv/linux/default-sched.h:34: Error: % operator needs absolute
expression
../sysdeps/unix/sysv/linux/default-sched.h:37: Error: % operator needs absolute
expression
../sysdeps/unix/sysv/linux/default-sched.h:40: Error: % operator needs absolute
expression
make[2]: *** [../o-iterator.mk:9:
/home/fweimer/src/gnu/glibc/build/nptl/pthread_create.o] Error 1

-- 
You are receiving this mail because:
You are on the CC list for the bug.

             reply	other threads:[~2022-01-12 20:11 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-01-12 20:11 fweimer at redhat dot com [this message]
2022-01-13 14:22 ` [Bug libc/28771] " fweimer at redhat dot com
2022-01-13 14:23 ` fweimer at redhat dot com

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=bug-28771-131@http.sourceware.org/bugzilla/ \
    --to=sourceware-bugzilla@sourceware.org \
    --cc=glibc-bugs@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).