public inbox for glibc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "adhemerval.zanella at linaro dot org" <sourceware-bugzilla@sourceware.org>
To: glibc-bugs@sourceware.org
Subject: [Bug build/27558] vsprintf() contains function alias with __asm__ label after first use
Date: Wed, 10 Mar 2021 20:14:40 +0000	[thread overview]
Message-ID: <bug-27558-131-w6FUWds0YL@http.sourceware.org/bugzilla/> (raw)
In-Reply-To: <bug-27558-131@http.sourceware.org/bugzilla/>

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

--- Comment #4 from Adhemerval Zanella <adhemerval.zanella at linaro dot org> ---
(In reply to John Paul Adrian Glaubitz from comment #3)
> It fixes the issue but there is another problem now which indicates that we
> need to link against libatomic:
> 
> [9/4273] Linking CXX shared library
> lib/clang/13.0.0/lib/linux/libclang_rt.ubsan_minimal-sparc.so
> FAILED: lib/clang/13.0.0/lib/linux/libclang_rt.ubsan_minimal-sparc.so 
> : && /home/glaubitz/llvm-project/build/./bin/clang++ -fPIC -fPIC
> -fvisibility-inlines-hidden -Werror=date-time
> -Werror=unguarded-availability-new -Wall -Wextra -Wno-unused-parameter
> -Wwrite-strings -Wcast-qual -Wmissing-field-initializers -pedantic
> -Wno-long-long -Wimplicit-fallthrough -Wcovered-switch-default
> -Wno-noexcept-type -Wnon-virtual-dtor -Wdelete-non-virtual-dtor
> -Wsuggest-override -Wstring-conversion -Werror=return-type
> -fdiagnostics-color -Wall -std=c++14 -Wno-unused-parameter -g  -Wl,-z,defs
> -Wl,-z,nodelete   -m32 -nodefaultlibs -Wl,-z,text -nostdlib++
> -Wl,-rpath-link,/home/glaubitz/llvm-project/build/tools/clang/stage2-bins/./
> lib -shared -Wl,-soname,libclang_rt.ubsan_minimal-sparc.so -o
> lib/clang/13.0.0/lib/linux/libclang_rt.ubsan_minimal-sparc.so
> projects/compiler-rt/lib/ubsan_minimal/CMakeFiles/RTUbsan_minimal.sparc.dir/
> ubsan_minimal_handlers.cpp.o  -Wl,-rpath,"\$ORIGIN/../lib"  -lgcc_s  -lc && :
> /usr/bin/ld:
> projects/compiler-rt/lib/ubsan_minimal/CMakeFiles/RTUbsan_minimal.sparc.dir/
> ubsan_minimal_handlers.cpp.o: in function `report_this_error(void*)':
> /home/glaubitz/llvm-project/compiler-rt/lib/ubsan_minimal/../
> sanitizer_common/sanitizer_atomic_clang.h:80: undefined reference to
> `__atomic_compare_exchange_4'
> clang-13: error: linker command failed with exit code 1 (use -v to see
> invocation)
> 
> I think, however, that this issue is unrelated.

About this issue, the missing proper atomic on sparcv8 has causes some issue in
glibc and required us to add a similar trick to emulate atomic operations that
has its own drawbacks (no async-signal-safe, a lot of contention).

On glibc 2.31, SPARC ISA v7 is no longer supported and v8 is still supported,
but only if the optional CAS instruction is implemented (for instance, LEON
processors, but SuperSPARC processors are not).  So maybe one option is to
limit build for SPARC ISA v9.

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

  parent reply	other threads:[~2021-03-10 20:14 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-03-10 18:30 [Bug build/27558] New: " 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 [this message]
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

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-27558-131-w6FUWds0YL@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).