public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug libbacktrace/108072] New: [13 Regression] gcc/libbacktrace/elf.c:5144: multiple definition of `backtrace_uncompress_zstd' with --with-build-config=bootstrap-asan since r13-4547-g9df1ba9a35b86e
@ 2022-12-12 11:29 marxin at gcc dot gnu.org
  2022-12-12 11:30 ` [Bug libbacktrace/108072] " marxin at gcc dot gnu.org
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: marxin at gcc dot gnu.org @ 2022-12-12 11:29 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108072

            Bug ID: 108072
           Summary: [13 Regression] gcc/libbacktrace/elf.c:5144: multiple
                    definition of `backtrace_uncompress_zstd' with
                    --with-build-config=bootstrap-asan since
                    r13-4547-g9df1ba9a35b86e
           Product: gcc
           Version: 13.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: libbacktrace
          Assignee: unassigned at gcc dot gnu.org
          Reporter: marxin at gcc dot gnu.org
                CC: ian at gcc dot gnu.org
  Target Milestone: ---

ASAN bootstrap fails due to:

/dev/shm/objdir2/./prev-gcc/xg++ -B/dev/shm/objdir2/./prev-gcc/
-B/usr/local/x86_64-pc-linux-gnu/bin/ -nostdinc++
-B/dev/shm/objdir2/prev-x86_64-pc-linux-gnu/libstdc++-v3/src/.libs
-B/dev/shm/objdir2/prev-x86_64-pc-linux-gnu/libstdc++-v3/libsupc++/.libs 
-I/dev/shm/objdir2/prev-x86_64-pc-linux-gnu/libstdc++-v3/include/x86_64-pc-linux-gnu
 -I/dev/shm/objdir2/prev-x86_64-pc-linux-gnu/libstdc++-v3/include 
-I/home/marxin/Programming/gcc/libstdc++-v3/libsupc++
-L/dev/shm/objdir2/prev-x86_64-pc-linux-gnu/libstdc++-v3/src/.libs
-L/dev/shm/objdir2/prev-x86_64-pc-linux-gnu/libstdc++-v3/libsupc++/.libs
-no-pie   -g -O2 -fno-checking -fsanitize=address -DIN_GCC     -fno-exceptions
-fno-rtti -fasynchronous-unwind-tables -W -Wall -Wno-narrowing -Wwrite-strings
-Wcast-qual -Wmissing-format-attribute -Woverloaded-virtual -pedantic
-Wno-long-long -Wno-variadic-macros -Wno-overlength-strings -fno-common 
-DHAVE_CONFIG_H -static-libstdc++ -static-libgcc -fsanitize=address
-static-libasan -B/dev/shm/objdir2/prev-x86_64-pc-linux-gnu/libsanitizer/
-B/dev/shm/objdir2/prev-x86_64-pc-linux-gnu/libsanitizer/asan/
-B/dev/shm/objdir2/prev-x86_64-pc-linux-gnu/libsanitizer/asan/.libs 
gcov-dump.o \
        hash-table.o ggc-none.o\
        libcommon.a ../libcpp/libcpp.a   ../libbacktrace/.libs/libbacktrace.a
../libiberty/libiberty.a ../libdecnumber/libdecnumber.a  -o gcov-dump
/usr/lib64/gcc/x86_64-suse-linux/12/../../../../x86_64-suse-linux/bin/ld:
../libbacktrace/.libs/libbacktrace.a(elf.o): in function
`backtrace_uncompress_zstd':
/home/marxin/Programming/gcc/libbacktrace/elf.c:5144: multiple definition of
`backtrace_uncompress_zstd';
/dev/shm/objdir2/prev-x86_64-pc-linux-gnu/libsanitizer/asan/.libs/libasan.a(elf.o):/home/marxin/Programming/gcc/libsanitizer/libbacktrace/../../libbacktrace/elf.c:5144:
first defined here
collect2: error: ld returned 1 exit status
make[3]: *** [Makefile:3138: gcov-dump] Error 1

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

* [Bug libbacktrace/108072] [13 Regression] gcc/libbacktrace/elf.c:5144: multiple definition of `backtrace_uncompress_zstd' with --with-build-config=bootstrap-asan since r13-4547-g9df1ba9a35b86e
  2022-12-12 11:29 [Bug libbacktrace/108072] New: [13 Regression] gcc/libbacktrace/elf.c:5144: multiple definition of `backtrace_uncompress_zstd' with --with-build-config=bootstrap-asan since r13-4547-g9df1ba9a35b86e marxin at gcc dot gnu.org
@ 2022-12-12 11:30 ` marxin at gcc dot gnu.org
  2022-12-12 13:11 ` [Bug sanitizer/108072] " jakub at gcc dot gnu.org
                   ` (4 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: marxin at gcc dot gnu.org @ 2022-12-12 11:30 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108072

Martin Liška <marxin at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
           Priority|P3                          |P1
   Last reconfirmed|                            |2022-12-12
   Target Milestone|---                         |13.0
     Ever confirmed|0                           |1

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

* [Bug sanitizer/108072] [13 Regression] gcc/libbacktrace/elf.c:5144: multiple definition of `backtrace_uncompress_zstd' with --with-build-config=bootstrap-asan since r13-4547-g9df1ba9a35b86e
  2022-12-12 11:29 [Bug libbacktrace/108072] New: [13 Regression] gcc/libbacktrace/elf.c:5144: multiple definition of `backtrace_uncompress_zstd' with --with-build-config=bootstrap-asan since r13-4547-g9df1ba9a35b86e marxin at gcc dot gnu.org
  2022-12-12 11:30 ` [Bug libbacktrace/108072] " marxin at gcc dot gnu.org
@ 2022-12-12 13:11 ` jakub at gcc dot gnu.org
  2022-12-12 13:17 ` marxin at gcc dot gnu.org
                   ` (3 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: jakub at gcc dot gnu.org @ 2022-12-12 13:11 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108072

Jakub Jelinek <jakub at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Assignee|unassigned at gcc dot gnu.org      |jakub at gcc dot gnu.org
             Status|NEW                         |ASSIGNED

--- Comment #1 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Created attachment 54072
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=54072&action=edit
gcc13-pr108072.patch

Untested fix.

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

* [Bug sanitizer/108072] [13 Regression] gcc/libbacktrace/elf.c:5144: multiple definition of `backtrace_uncompress_zstd' with --with-build-config=bootstrap-asan since r13-4547-g9df1ba9a35b86e
  2022-12-12 11:29 [Bug libbacktrace/108072] New: [13 Regression] gcc/libbacktrace/elf.c:5144: multiple definition of `backtrace_uncompress_zstd' with --with-build-config=bootstrap-asan since r13-4547-g9df1ba9a35b86e marxin at gcc dot gnu.org
  2022-12-12 11:30 ` [Bug libbacktrace/108072] " marxin at gcc dot gnu.org
  2022-12-12 13:11 ` [Bug sanitizer/108072] " jakub at gcc dot gnu.org
@ 2022-12-12 13:17 ` marxin at gcc dot gnu.org
  2022-12-12 20:14 ` ian at airs dot com
                   ` (2 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: marxin at gcc dot gnu.org @ 2022-12-12 13:17 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108072

--- Comment #2 from Martin Liška <marxin at gcc dot gnu.org> ---
Ah, great, I was trying to grep what's difference for other algos, but didn't
find this hunk.

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

* [Bug sanitizer/108072] [13 Regression] gcc/libbacktrace/elf.c:5144: multiple definition of `backtrace_uncompress_zstd' with --with-build-config=bootstrap-asan since r13-4547-g9df1ba9a35b86e
  2022-12-12 11:29 [Bug libbacktrace/108072] New: [13 Regression] gcc/libbacktrace/elf.c:5144: multiple definition of `backtrace_uncompress_zstd' with --with-build-config=bootstrap-asan since r13-4547-g9df1ba9a35b86e marxin at gcc dot gnu.org
                   ` (2 preceding siblings ...)
  2022-12-12 13:17 ` marxin at gcc dot gnu.org
@ 2022-12-12 20:14 ` ian at airs dot com
  2022-12-13  9:33 ` cvs-commit at gcc dot gnu.org
  2022-12-16 11:45 ` jakub at gcc dot gnu.org
  5 siblings, 0 replies; 7+ messages in thread
From: ian at airs dot com @ 2022-12-12 20:14 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108072

Ian Lance Taylor <ian at airs dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |ian at airs dot com

--- Comment #3 from Ian Lance Taylor <ian at airs dot com> ---
That patch looks right to me.  Thanks.

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

* [Bug sanitizer/108072] [13 Regression] gcc/libbacktrace/elf.c:5144: multiple definition of `backtrace_uncompress_zstd' with --with-build-config=bootstrap-asan since r13-4547-g9df1ba9a35b86e
  2022-12-12 11:29 [Bug libbacktrace/108072] New: [13 Regression] gcc/libbacktrace/elf.c:5144: multiple definition of `backtrace_uncompress_zstd' with --with-build-config=bootstrap-asan since r13-4547-g9df1ba9a35b86e marxin at gcc dot gnu.org
                   ` (3 preceding siblings ...)
  2022-12-12 20:14 ` ian at airs dot com
@ 2022-12-13  9:33 ` cvs-commit at gcc dot gnu.org
  2022-12-16 11:45 ` jakub at gcc dot gnu.org
  5 siblings, 0 replies; 7+ messages in thread
From: cvs-commit at gcc dot gnu.org @ 2022-12-13  9:33 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108072

--- Comment #4 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Jakub Jelinek <jakub@gcc.gnu.org>:

https://gcc.gnu.org/g:0a43f7b1a73c8e3b9cefffe430274d0a3d6d3291

commit r13-4629-g0a43f7b1a73c8e3b9cefffe430274d0a3d6d3291
Author: Jakub Jelinek <jakub@redhat.com>
Date:   Tue Dec 13 10:30:36 2022 +0100

    libsanitizer: Fix up libbacktrace build after r13-4547 [PR108072]

    The r13-4547 commit added new non-static function to libbacktrace:
    backtrace_uncompress_zstd but for the libsanitizer use we need to
    rename it, so that it is in __asan_* namespace and doesn't clash
    with other copies of libbacktrace.

    2022-12-13  Jakub Jelinek  <jakub@redhat.com>

    libsanitizer/
            PR sanitizer/108072
            * libbacktrace/backtrace-rename.h (backtrace_uncompress_zstd):
Define.

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

* [Bug sanitizer/108072] [13 Regression] gcc/libbacktrace/elf.c:5144: multiple definition of `backtrace_uncompress_zstd' with --with-build-config=bootstrap-asan since r13-4547-g9df1ba9a35b86e
  2022-12-12 11:29 [Bug libbacktrace/108072] New: [13 Regression] gcc/libbacktrace/elf.c:5144: multiple definition of `backtrace_uncompress_zstd' with --with-build-config=bootstrap-asan since r13-4547-g9df1ba9a35b86e marxin at gcc dot gnu.org
                   ` (4 preceding siblings ...)
  2022-12-13  9:33 ` cvs-commit at gcc dot gnu.org
@ 2022-12-16 11:45 ` jakub at gcc dot gnu.org
  5 siblings, 0 replies; 7+ messages in thread
From: jakub at gcc dot gnu.org @ 2022-12-16 11:45 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108072

Jakub Jelinek <jakub at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
         Resolution|---                         |FIXED

--- Comment #5 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Fixed.

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

end of thread, other threads:[~2022-12-16 11:45 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-12-12 11:29 [Bug libbacktrace/108072] New: [13 Regression] gcc/libbacktrace/elf.c:5144: multiple definition of `backtrace_uncompress_zstd' with --with-build-config=bootstrap-asan since r13-4547-g9df1ba9a35b86e marxin at gcc dot gnu.org
2022-12-12 11:30 ` [Bug libbacktrace/108072] " marxin at gcc dot gnu.org
2022-12-12 13:11 ` [Bug sanitizer/108072] " jakub at gcc dot gnu.org
2022-12-12 13:17 ` marxin at gcc dot gnu.org
2022-12-12 20:14 ` ian at airs dot com
2022-12-13  9:33 ` cvs-commit at gcc dot gnu.org
2022-12-16 11:45 ` jakub at gcc dot gnu.org

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