public inbox for glibc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug build/27558] New: vsprintf() contains function alias with __asm__ label after first use
@ 2021-03-10 18:30 glaubitz at physik dot fu-berlin.de
  2021-03-10 18:32 ` [Bug build/27558] " jrtc27 at jrtc27 dot com
                   ` (15 more replies)
  0 siblings, 16 replies; 17+ messages in thread
From: glaubitz at physik dot fu-berlin.de @ 2021-03-10 18:30 UTC (permalink / raw)
  To: glibc-bugs

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

            Bug ID: 27558
           Summary: vsprintf() contains function alias with __asm__ label
                    after first use
           Product: glibc
           Version: 2.31
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: build
          Assignee: unassigned at sourceware dot org
          Reporter: glaubitz at physik dot fu-berlin.de
                CC: adhemerval.zanella at linaro dot org, carlos at redhat dot com,
                    ebotcazou at gcc dot gnu.org, jrtc27 at jrtc27 dot com
  Target Milestone: ---

When building stage2 with clang on sparc64, the build fails with [1]:

In file included from
/var/lib/buildbot/workers/debian-stadler-sparc64/clang-sparc64-linux-multistage/llvm/compiler-rt/lib/sanitizer_common/sanitizer_stackdepot.cpp:17:
In file included from
/var/lib/buildbot/workers/debian-stadler-sparc64/clang-sparc64-linux-multistage/llvm/compiler-rt/lib/sanitizer_common/sanitizer_stackdepotbase.h:16:
In file included from /usr/include/stdio.h:870:
/usr/include/bits/stdio-ldbl.h:26:20: error: cannot apply asm label to function
after its first use
__LDBL_REDIR_DECL (vfprintf)
~~~~~~~~~~~~~~~~~~~^~~~~~~~~
/usr/include/sys/cdefs.h:467:26: note: expanded from macro '__LDBL_REDIR_DECL'
  extern __typeof (name) name __asm (__ASMNAME ("__nldbl_" #name));
                         ^           ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1 error generated.

After some research, it turned out to be a bug in glibc which triggers an error
in clang [2] but not gcc. According to the discussion in [2], the different
behavior of clang compared to gcc is intentional and the pattern in question
should actually not exist anymore in glibc. According to the discussion in [1],
the bug triggers on sparc* only since there is no long double math
(__NO_LONG_DOUBLE_MATH) on this target.

> [1] https://bugs.llvm.org/show_bug.cgi?id=48650
> [2] https://bugs.llvm.org/show_bug.cgi?id=22830

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

^ permalink raw reply	[flat|nested] 17+ messages in thread

end of thread, other threads:[~2023-01-09 10:07 UTC | newest]

Thread overview: 17+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-03-10 18:30 [Bug build/27558] New: vsprintf() contains function alias with __asm__ label after first use glaubitz at physik dot fu-berlin.de
2021-03-10 18:32 ` [Bug build/27558] " jrtc27 at jrtc27 dot com
2021-03-10 19:16 ` adhemerval.zanella at linaro dot org
2021-03-10 20:05 ` glaubitz at physik dot fu-berlin.de
2021-03-10 20:14 ` adhemerval.zanella at linaro dot org
2021-03-10 20:17 ` glaubitz at physik dot fu-berlin.de
2021-03-10 20:55 ` adhemerval.zanella at linaro dot org
2021-03-10 21:01 ` glaubitz at physik dot fu-berlin.de
2021-03-10 21:43 ` joseph at codesourcery dot com
2021-03-10 23:01 ` glaubitz at physik dot fu-berlin.de
2021-03-18  8:48 ` glaubitz at physik dot fu-berlin.de
2021-03-18 11:59 ` adhemerval.zanella at linaro dot org
2021-03-22 11:16 ` glaubitz at physik dot fu-berlin.de
2021-04-21  7:13 ` glaubitz at physik dot fu-berlin.de
2021-04-21  8:00 ` fw at deneb dot enyo.de
2022-07-17  7:56 ` glaubitz at physik dot fu-berlin.de
2023-01-09 10:07 ` glaubitz at physik dot fu-berlin.de

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).