From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id C37C73836C50; Wed, 10 Mar 2021 18:30:03 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org C37C73836C50 From: "glaubitz at physik dot fu-berlin.de" To: glibc-bugs@sourceware.org Subject: [Bug build/27558] New: vsprintf() contains function alias with __asm__ label after first use Date: Wed, 10 Mar 2021 18:30:03 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: glibc X-Bugzilla-Component: build X-Bugzilla-Version: 2.31 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: glaubitz at physik dot fu-berlin.de X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned at sourceware dot org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter cc target_milestone Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://sourceware.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: glibc-bugs@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Glibc-bugs mailing list List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 10 Mar 2021 18:30:03 -0000 https://sourceware.org/bugzilla/show_bug.cgi?id=3D27558 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-multis= tage/llvm/compiler-rt/lib/sanitizer_common/sanitizer_stackdepot.cpp:17: In file included from /var/lib/buildbot/workers/debian-stadler-sparc64/clang-sparc64-linux-multis= tage/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 func= tion after its first use __LDBL_REDIR_DECL (vfprintf) ~~~~~~~~~~~~~~~~~~~^~~~~~~~~ /usr/include/sys/cdefs.h:467:26: note: expanded from macro '__LDBL_REDIR_DE= CL' 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 e= rror 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=3D48650 > [2] https://bugs.llvm.org/show_bug.cgi?id=3D22830 --=20 You are receiving this mail because: You are on the CC list for the bug.=