public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug bootstrap/98414] New: [11 Regression] UBSAN bootstrap is broken: ubsan/ubsan_type_hash_itanium.cpp:162: undefined reference to `__dynamic_cast'
@ 2020-12-21 15:22 marxin at gcc dot gnu.org
  2020-12-21 15:23 ` [Bug bootstrap/98414] " marxin at gcc dot gnu.org
                   ` (18 more replies)
  0 siblings, 19 replies; 20+ messages in thread
From: marxin at gcc dot gnu.org @ 2020-12-21 15:22 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 98414
           Summary: [11 Regression] UBSAN bootstrap is broken:
                    ubsan/ubsan_type_hash_itanium.cpp:162: undefined
                    reference to `__dynamic_cast'
           Product: gcc
           Version: 11.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: bootstrap
          Assignee: unassigned at gcc dot gnu.org
          Reporter: marxin at gcc dot gnu.org
                CC: jakub at gcc dot gnu.org
  Target Milestone: ---

The following fails:

/home/mliska/Programming/gcc/objdir/./prev-gcc/xg++
-B/home/mliska/Programming/gcc/objdir/./prev-gcc/
-B/usr/local/x86_64-pc-linux-gnu/bin/ -nostdinc++
-B/home/mliska/Programming/gcc/objdir/prev-x86_64-pc-linux-gnu/libstdc++-v3/src/.libs
-B/home/mliska/Programming/gcc/objdir/prev-x86_64-pc-linux-gnu/libstdc++-v3/libsupc++/.libs

-I/home/mliska/Programming/gcc/objdir/prev-x86_64-pc-linux-gnu/libstdc++-v3/include/x86_64-pc-linux-gnu

-I/home/mliska/Programming/gcc/objdir/prev-x86_64-pc-linux-gnu/libstdc++-v3/include
 -I/home/mliska/Programming/gcc/libstdc++-v3/libsupc++
-L/home/mliska/Programming/gcc/objdir/prev-x86_64-pc-linux-gnu/libstdc++-v3/src/.libs
-L/home/mliska/Programming/gcc/objdir/prev-x86_64-pc-linux-gnu/libstdc++-v3/libsupc++/.libs
-no-pie   -g -O2 -fchecking=1 -fsanitize=undefined -DUBSAN_BOOTSTRAP  -DIN_GCC 
   -fno-exceptions -fno-rtti -fasynchronous-unwind-tables -W -Wall
-Wno-narrowing -Wwrite-strings -Wcast-qual -Wno-error=format-diag
-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=undefined -static-libubsan
-DUBSAN_BOOTSTRAP
-B/home/mliska/Programming/gcc/objdir/prev-x86_64-pc-linux-gnu/libsanitizer/
-B/home/mliska/Programming/gcc/objdir/prev-x86_64-pc-linux-gnu/libsanitizer/ubsan/
-B/home/mliska/Programming/gcc/objdir/prev-x86_64-pc-linux-gnu/libsanitizer/ubsan/.libs
  -o cc1plus \
      cp/cp-lang.o c-family/stub-objc.o cp/call.o cp/class.o cp/constexpr.o
cp/constraint.o cp/coroutines.o cp/cp-gimplify.o cp/cp-objcp-common.o
cp/cp-ubsan.o cp/cvt.o cp/cxx-pretty-print.o cp/decl.o cp/decl2.o cp/dump.o
cp/error.o cp/except.o cp/expr.o cp/friend.o cp/init.o cp/lambda.o cp/lex.o
cp/logic.o cp/mangle.o cp/mapper-client.o cp/mapper-resolver.o cp/method.o
cp/module.o cp/name-lookup.o cp/optimize.o cp/parser.o cp/pt.o cp/ptree.o
cp/rtti.o cp/search.o cp/semantics.o cp/tree.o cp/typeck.o cp/typeck2.o
cp/vtable-class-hierarchy.o attribs.o incpath.o c-family/c-common.o
c-family/c-cppbuiltin.o c-family/c-dump.o c-family/c-format.o
c-family/c-gimplify.o c-family/c-indentation.o c-family/c-lex.o
c-family/c-omp.o c-family/c-opts.o c-family/c-pch.o c-family/c-ppoutput.o
c-family/c-pragma.o c-family/c-pretty-print.o c-family/c-semantics.o
c-family/c-ada-spec.o c-family/c-ubsan.o c-family/known-headers.o
c-family/c-attribs.o c-family/c-warn.o c-family/c-spellcheck.o i386-c.o
glibc-c.o cc1plus-checksum.o libbackend.a main.o libcommon-target.a libcommon.a
../libcpp/libcpp.a ../libcody/libcody.a ../libdecnumber/libdecnumber.a
libcommon.a ../libcpp/libcpp.a   ../libbacktrace/.libs/libbacktrace.a
../libiberty/libiberty.a ../libdecnumber/libdecnumber.a   -lmpc -lmpfr -lgmp
-rdynamic  -L./../zlib -lz 
/usr/lib64/gcc/x86_64-suse-linux/7/../../../../x86_64-suse-linux/bin/ld:
/home/mliska/Programming/gcc/objdir/prev-x86_64-pc-linux-gnu/libsanitizer/ubsan/.libs/libubsan.a(ubsan_type_hash_itanium.o):
in function `findBaseAtOffset(__cxxabiv1::__class_type_info const*, long)':
/home/mliska/Programming/gcc/objdir/x86_64-pc-linux-gnu/libsanitizer/ubsan/../../../../libsanitizer/ubsan/ubsan_type_hash_itanium.cpp:162:
undefined reference to `__dynamic_cast'
/usr/lib64/gcc/x86_64-suse-linux/7/../../../../x86_64-suse-linux/bin/ld:
/home/mliska/Programming/gcc/objdir/x86_64-pc-linux-gnu/libsanitizer/ubsan/../../../../libsanitizer/ubsan/ubsan_type_hash_itanium.cpp:166:
undefined reference to `typeinfo for __cxxabiv1::__vmi_class_type_info'
/usr/lib64/gcc/x86_64-suse-linux/7/../../../../x86_64-suse-linux/bin/ld:
/home/mliska/Programming/gcc/objdir/x86_64-pc-linux-gnu/libsanitizer/ubsan/../../../../libsanitizer/ubsan/ubsan_type_hash_itanium.cpp:166:
undefined reference to `__dynamic_cast'
/usr/lib64/gcc/x86_64-suse-linux/7/../../../../x86_64-suse-linux/bin/ld:
/home/mliska/Programming/gcc/objdir/prev-x86_64-pc-linux-gnu/libsanitizer/ubsan/.libs/libubsan.a(ubsan_type_hash_itanium.o):
in function `isDerivedFromAtOffset(__cxxabiv1::__class_type_info const*,
__cxxabiv1::__class_type_info const*, long)':
/home/mliska/Programming/gcc/objdir/x86_64-pc-linux-gnu/libsanitizer/ubsan/../../../../libsanitizer/ubsan/ubsan_type_hash_itanium.cpp:125:
undefined reference to `__dynamic_cast'
/usr/lib64/gcc/x86_64-suse-linux/7/../../../../x86_64-suse-linux/bin/ld:
/home/mliska/Programming/gcc/objdir/x86_64-pc-linux-gnu/libsanitizer/ubsan/../../../../libsanitizer/ubsan/ubsan_type_hash_itanium.cpp:129:
undefined reference to `typeinfo for __cxxabiv1::__vmi_class_type_info'
/usr/lib64/gcc/x86_64-suse-linux/7/../../../../x86_64-suse-linux/bin/ld:
/home/mliska/Programming/gcc/objdir/x86_64-pc-linux-gnu/libsanitizer/ubsan/../../../../libsanitizer/ubsan/ubsan_type_hash_itanium.cpp:129:
undefined reference to `__dynamic_cast'
/usr/lib64/gcc/x86_64-suse-linux/7/../../../../x86_64-suse-linux/bin/ld:
/home/mliska/Programming/gcc/objdir/prev-x86_64-pc-linux-gnu/libsanitizer/ubsan/.libs/libubsan.a(ubsan_type_hash_itanium.o):
in function `__ubsan::checkDynamicType(void*, void*, unsigned long)':
/home/mliska/Programming/gcc/objdir/x86_64-pc-linux-gnu/libsanitizer/ubsan/../../../../libsanitizer/ubsan/ubsan_type_hash_itanium.cpp:233:
undefined reference to `__dynamic_cast'
collect2: error: ld returned 1 exit status
make: *** [../../gcc/cp/Make-lang.in:136: cc1plus] Error 1

adding -lstdc++ to the linking command line fixes that.
Is it a known issue?

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

* [Bug bootstrap/98414] [11 Regression] UBSAN bootstrap is broken: ubsan/ubsan_type_hash_itanium.cpp:162: undefined reference to `__dynamic_cast'
  2020-12-21 15:22 [Bug bootstrap/98414] New: [11 Regression] UBSAN bootstrap is broken: ubsan/ubsan_type_hash_itanium.cpp:162: undefined reference to `__dynamic_cast' marxin at gcc dot gnu.org
@ 2020-12-21 15:23 ` marxin at gcc dot gnu.org
  2021-01-05  9:37 ` rguenth at gcc dot gnu.org
                   ` (17 subsequent siblings)
  18 siblings, 0 replies; 20+ messages in thread
From: marxin at gcc dot gnu.org @ 2020-12-21 15:23 UTC (permalink / raw)
  To: gcc-bugs

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2020-12-21
     Ever confirmed|0                           |1

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

* [Bug bootstrap/98414] [11 Regression] UBSAN bootstrap is broken: ubsan/ubsan_type_hash_itanium.cpp:162: undefined reference to `__dynamic_cast'
  2020-12-21 15:22 [Bug bootstrap/98414] New: [11 Regression] UBSAN bootstrap is broken: ubsan/ubsan_type_hash_itanium.cpp:162: undefined reference to `__dynamic_cast' marxin at gcc dot gnu.org
  2020-12-21 15:23 ` [Bug bootstrap/98414] " marxin at gcc dot gnu.org
@ 2021-01-05  9:37 ` rguenth at gcc dot gnu.org
  2021-01-05 10:37 ` marxin at gcc dot gnu.org
                   ` (16 subsequent siblings)
  18 siblings, 0 replies; 20+ messages in thread
From: rguenth at gcc dot gnu.org @ 2021-01-05  9:37 UTC (permalink / raw)
  To: gcc-bugs

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

Richard Biener <rguenth at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|---                         |11.0

--- Comment #1 from Richard Biener <rguenth at gcc dot gnu.org> ---
Maybe -static-libstdc++ with -fsanitize=undefined has an ordering issue?

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

* [Bug bootstrap/98414] [11 Regression] UBSAN bootstrap is broken: ubsan/ubsan_type_hash_itanium.cpp:162: undefined reference to `__dynamic_cast'
  2020-12-21 15:22 [Bug bootstrap/98414] New: [11 Regression] UBSAN bootstrap is broken: ubsan/ubsan_type_hash_itanium.cpp:162: undefined reference to `__dynamic_cast' marxin at gcc dot gnu.org
  2020-12-21 15:23 ` [Bug bootstrap/98414] " marxin at gcc dot gnu.org
  2021-01-05  9:37 ` rguenth at gcc dot gnu.org
@ 2021-01-05 10:37 ` marxin at gcc dot gnu.org
  2021-01-05 12:40 ` [Bug bootstrap/98414] [11 Regression] UBSAN bootstrap is broken: ubsan/ubsan_type_hash_itanium.cpp:162: undefined reference to `__dynamic_cast' since r11-6083-gb7dfc2074c78415d451eb34d1608016c80b1c41a marxin at gcc dot gnu.org
                   ` (15 subsequent siblings)
  18 siblings, 0 replies; 20+ messages in thread
From: marxin at gcc dot gnu.org @ 2021-01-05 10:37 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #2 from Martin Liška <marxin at gcc dot gnu.org> ---
(In reply to Richard Biener from comment #1)
> Maybe -static-libstdc++ with -fsanitize=undefined has an ordering issue?

No, that does not help. I'm going to bisect that first..

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

* [Bug bootstrap/98414] [11 Regression] UBSAN bootstrap is broken: ubsan/ubsan_type_hash_itanium.cpp:162: undefined reference to `__dynamic_cast' since r11-6083-gb7dfc2074c78415d451eb34d1608016c80b1c41a
  2020-12-21 15:22 [Bug bootstrap/98414] New: [11 Regression] UBSAN bootstrap is broken: ubsan/ubsan_type_hash_itanium.cpp:162: undefined reference to `__dynamic_cast' marxin at gcc dot gnu.org
                   ` (2 preceding siblings ...)
  2021-01-05 10:37 ` marxin at gcc dot gnu.org
@ 2021-01-05 12:40 ` marxin at gcc dot gnu.org
  2021-01-05 13:44 ` nathan at gcc dot gnu.org
                   ` (14 subsequent siblings)
  18 siblings, 0 replies; 20+ messages in thread
From: marxin at gcc dot gnu.org @ 2021-01-05 12:40 UTC (permalink / raw)
  To: gcc-bugs

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|[11 Regression] UBSAN       |[11 Regression] UBSAN
                   |bootstrap is broken:        |bootstrap is broken:
                   |ubsan/ubsan_type_hash_itani |ubsan/ubsan_type_hash_itani
                   |um.cpp:162: undefined       |um.cpp:162: undefined
                   |reference to                |reference to
                   |`__dynamic_cast'            |`__dynamic_cast' since
                   |                            |r11-6083-gb7dfc2074c78415d4
                   |                            |51eb34d1608016c80b1c41a
           Keywords|needs-bisection             |
                 CC|                            |nathan at gcc dot gnu.org

--- Comment #3 from Martin Liška <marxin at gcc dot gnu.org> ---
So it started when c++ module mapper was added:
r11-6083-gb7dfc2074c78415d451eb34d1608016c80b1c41a

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

* [Bug bootstrap/98414] [11 Regression] UBSAN bootstrap is broken: ubsan/ubsan_type_hash_itanium.cpp:162: undefined reference to `__dynamic_cast' since r11-6083-gb7dfc2074c78415d451eb34d1608016c80b1c41a
  2020-12-21 15:22 [Bug bootstrap/98414] New: [11 Regression] UBSAN bootstrap is broken: ubsan/ubsan_type_hash_itanium.cpp:162: undefined reference to `__dynamic_cast' marxin at gcc dot gnu.org
                   ` (3 preceding siblings ...)
  2021-01-05 12:40 ` [Bug bootstrap/98414] [11 Regression] UBSAN bootstrap is broken: ubsan/ubsan_type_hash_itanium.cpp:162: undefined reference to `__dynamic_cast' since r11-6083-gb7dfc2074c78415d451eb34d1608016c80b1c41a marxin at gcc dot gnu.org
@ 2021-01-05 13:44 ` nathan at gcc dot gnu.org
  2021-01-05 13:51 ` jakub at gcc dot gnu.org
                   ` (13 subsequent siblings)
  18 siblings, 0 replies; 20+ messages in thread
From: nathan at gcc dot gnu.org @ 2021-01-05 13:44 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #4 from Nathan Sidwell <nathan at gcc dot gnu.org> ---
there isn't a dynamic cast in the mapper (or libcody)

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

* [Bug bootstrap/98414] [11 Regression] UBSAN bootstrap is broken: ubsan/ubsan_type_hash_itanium.cpp:162: undefined reference to `__dynamic_cast' since r11-6083-gb7dfc2074c78415d451eb34d1608016c80b1c41a
  2020-12-21 15:22 [Bug bootstrap/98414] New: [11 Regression] UBSAN bootstrap is broken: ubsan/ubsan_type_hash_itanium.cpp:162: undefined reference to `__dynamic_cast' marxin at gcc dot gnu.org
                   ` (4 preceding siblings ...)
  2021-01-05 13:44 ` nathan at gcc dot gnu.org
@ 2021-01-05 13:51 ` jakub at gcc dot gnu.org
  2021-01-05 14:08 ` marxin at gcc dot gnu.org
                   ` (12 subsequent siblings)
  18 siblings, 0 replies; 20+ messages in thread
From: jakub at gcc dot gnu.org @ 2021-01-05 13:51 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #5 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Likely it just is the first TU that needs -fsanitize=vptr sanitization...
Seems -lubsan comes after -lstdc++ when linking with -fsanitize=undefined
-static-libstdc++ -static-libubsan so if the vptr checking code needs to be
linked, it isn't satisfied.

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

* [Bug bootstrap/98414] [11 Regression] UBSAN bootstrap is broken: ubsan/ubsan_type_hash_itanium.cpp:162: undefined reference to `__dynamic_cast' since r11-6083-gb7dfc2074c78415d451eb34d1608016c80b1c41a
  2020-12-21 15:22 [Bug bootstrap/98414] New: [11 Regression] UBSAN bootstrap is broken: ubsan/ubsan_type_hash_itanium.cpp:162: undefined reference to `__dynamic_cast' marxin at gcc dot gnu.org
                   ` (5 preceding siblings ...)
  2021-01-05 13:51 ` jakub at gcc dot gnu.org
@ 2021-01-05 14:08 ` marxin at gcc dot gnu.org
  2021-01-05 14:10 ` marxin at gcc dot gnu.org
                   ` (11 subsequent siblings)
  18 siblings, 0 replies; 20+ messages in thread
From: marxin at gcc dot gnu.org @ 2021-01-05 14:08 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #6 from Martin Liška <marxin at gcc dot gnu.org> ---
I replaced cp/mapper-client.o cp/mapper-resolver.o just with:

$ cat mapper-resolver.ii
namespace Cody {
enum class Flags : unsigned;
class Resolver {
  virtual int IncludeTranslateRequest(int *s, Flags flags, int &include);
};
}  // namespace Cody
class module_resolver : public Cody::Resolver {
  virtual int IncludeTranslateRequest(int *s, Cody::Flags,
                                      int &include) override;

 private:
};
int module_resolver::IncludeTranslateRequest(int *s, Cody::Flags,
                                             int &include) {}

which needs the symbol:

nm mapper-resolver.o
...
                 U _ZTVN10__cxxabiv120__si_class_type_infoE

Jakub: Does it confirm your description. Do you know how to fix that?

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

* [Bug bootstrap/98414] [11 Regression] UBSAN bootstrap is broken: ubsan/ubsan_type_hash_itanium.cpp:162: undefined reference to `__dynamic_cast' since r11-6083-gb7dfc2074c78415d451eb34d1608016c80b1c41a
  2020-12-21 15:22 [Bug bootstrap/98414] New: [11 Regression] UBSAN bootstrap is broken: ubsan/ubsan_type_hash_itanium.cpp:162: undefined reference to `__dynamic_cast' marxin at gcc dot gnu.org
                   ` (6 preceding siblings ...)
  2021-01-05 14:08 ` marxin at gcc dot gnu.org
@ 2021-01-05 14:10 ` marxin at gcc dot gnu.org
  2021-01-05 14:14 ` jakub at gcc dot gnu.org
                   ` (10 subsequent siblings)
  18 siblings, 0 replies; 20+ messages in thread
From: marxin at gcc dot gnu.org @ 2021-01-05 14:10 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #7 from Martin Liška <marxin at gcc dot gnu.org> ---
All right, the linker command line is:

/home/marxin/Programming/testcases//objdir/./prev-gcc/collect2 -plugin
/home/marxin/Programming/testcases//objdir/./prev-gcc/liblto_plugin.so
-plugin-opt=/home/marxin/Programming/testcases//objdir/./prev-gcc/lto-wrapper
-plugin-opt=-fresolution=cc1plus.res -plugin-opt=-pass-through=-lgcc
-plugin-opt=-pass-through=-lgcc_eh -plugin-opt=-pass-through=-lc
-plugin-opt=-pass-through=-lgcc -plugin-opt=-pass-through=-lgcc_eh
--eh-frame-hdr -m elf_x86_64 -export-dynamic -dynamic-linker
/lib64/ld-linux-x86-64.so.2 -o cc1plus /usr/lib/../lib64/crt1.o
/usr/lib/../lib64/crti.o
/home/marxin/Programming/testcases//objdir/./prev-gcc/crtbegin.o
-L/home/marxin/Programming/testcases//objdir/prev-x86_64-pc-linux-gnu/libstdc++-v3/src/.libs
-L/home/marxin/Programming/testcases//objdir/prev-x86_64-pc-linux-gnu/libstdc++-v3/libsupc++/.libs
-L./../zlib -L/home/marxin/Programming/testcases//objdir/./prev-gcc
-L/home/marxin/Programming/testcases//objdir/prev-x86_64-pc-linux-gnu/libstdc++-v3/src/.libs
-L/home/marxin/Programming/testcases//objdir/prev-x86_64-pc-linux-gnu/libstdc++-v3/libsupc++/.libs
-L/home/marxin/Programming/testcases//objdir/prev-x86_64-pc-linux-gnu/libsanitizer
-L/home/marxin/Programming/testcases//objdir/prev-x86_64-pc-linux-gnu/libsanitizer/ubsan
-L/home/marxin/Programming/testcases//objdir/prev-x86_64-pc-linux-gnu/libsanitizer/ubsan/.libs
-L/lib/../lib64 -L/usr/lib/../lib64 cp/cp-lang.o c-family/stub-objc.o cp/call.o
cp/class.o cp/constexpr.o cp/constraint.o cp/coroutines.o cp/cp-gimplify.o
cp/cp-objcp-common.o cp/cp-ubsan.o cp/cvt.o cp/cxx-pretty-print.o cp/decl.o
cp/decl2.o cp/dump.o cp/error.o cp/except.o cp/expr.o cp/friend.o cp/init.o
cp/lambda.o cp/lex.o cp/logic.o cp/mangle.o mapper-resolver.o cp/method.o
cp/module.o cp/name-lookup.o cp/optimize.o cp/parser.o cp/pt.o cp/ptree.o
cp/rtti.o cp/search.o cp/semantics.o cp/tree.o cp/typeck.o cp/typeck2.o
cp/vtable-class-hierarchy.o attribs.o incpath.o c-family/c-common.o
c-family/c-cppbuiltin.o c-family/c-dump.o c-family/c-format.o
c-family/c-gimplify.o c-family/c-indentation.o c-family/c-lex.o
c-family/c-omp.o c-family/c-opts.o c-family/c-pch.o c-family/c-ppoutput.o
c-family/c-pragma.o c-family/c-pretty-print.o c-family/c-semantics.o
c-family/c-ada-spec.o c-family/c-ubsan.o c-family/known-headers.o
c-family/c-attribs.o c-family/c-warn.o c-family/c-spellcheck.o i386-c.o
glibc-c.o cc1plus-checksum.o libbackend.a main.o libcommon-target.a libcommon.a
../libcpp/libcpp.a ../libcody/libcody.a ../libdecnumber/libdecnumber.a
libcommon.a ../libcpp/libcpp.a ../libbacktrace/.libs/libbacktrace.a
../libiberty/libiberty.a ../libdecnumber/libdecnumber.a -lmpc -lmpfr -lgmp -lz
-Bstatic -lstdc++ -Bdynamic -lm -Bstatic -lubsan -Bdynamic -ldl -lrt -lpthread
-lm -lgcc -lgcc_eh -lc -lgcc -lgcc_eh
/home/marxin/Programming/testcases//objdir/./prev-gcc/crtend.o
/usr/lib/../lib64/crtn.o

when I replace -Bstatic -lstdc++ .. -Bstatic -lubsan with:
-Bstatic -lubsan -Bstatic -lstdc++

it works.

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

* [Bug bootstrap/98414] [11 Regression] UBSAN bootstrap is broken: ubsan/ubsan_type_hash_itanium.cpp:162: undefined reference to `__dynamic_cast' since r11-6083-gb7dfc2074c78415d451eb34d1608016c80b1c41a
  2020-12-21 15:22 [Bug bootstrap/98414] New: [11 Regression] UBSAN bootstrap is broken: ubsan/ubsan_type_hash_itanium.cpp:162: undefined reference to `__dynamic_cast' marxin at gcc dot gnu.org
                   ` (7 preceding siblings ...)
  2021-01-05 14:10 ` marxin at gcc dot gnu.org
@ 2021-01-05 14:14 ` jakub at gcc dot gnu.org
  2021-01-05 14:24 ` marxin at gcc dot gnu.org
                   ` (9 subsequent siblings)
  18 siblings, 0 replies; 20+ messages in thread
From: jakub at gcc dot gnu.org @ 2021-01-05 14:14 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #8 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
I don't.  LIBUBSAN_SPEC comes from gcc.c, while the libstdc++ stuff comes from
cp/g++spec.c and the ordering between the two is hard to achieve, plus it is
unclear if we shouldn't for -static-libubsan instead just add another -lstdc++
copy (but one honoring -static-libstdc++).

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

* [Bug bootstrap/98414] [11 Regression] UBSAN bootstrap is broken: ubsan/ubsan_type_hash_itanium.cpp:162: undefined reference to `__dynamic_cast' since r11-6083-gb7dfc2074c78415d451eb34d1608016c80b1c41a
  2020-12-21 15:22 [Bug bootstrap/98414] New: [11 Regression] UBSAN bootstrap is broken: ubsan/ubsan_type_hash_itanium.cpp:162: undefined reference to `__dynamic_cast' marxin at gcc dot gnu.org
                   ` (8 preceding siblings ...)
  2021-01-05 14:14 ` jakub at gcc dot gnu.org
@ 2021-01-05 14:24 ` marxin at gcc dot gnu.org
  2021-01-07 13:32 ` marxin at gcc dot gnu.org
                   ` (8 subsequent siblings)
  18 siblings, 0 replies; 20+ messages in thread
From: marxin at gcc dot gnu.org @ 2021-01-05 14:24 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #9 from Martin Liška <marxin at gcc dot gnu.org> ---
(In reply to Jakub Jelinek from comment #8)
> I don't.  LIBUBSAN_SPEC comes from gcc.c, while the libstdc++ stuff comes
> from cp/g++spec.c and the ordering between the two is hard to achieve, plus
> it is unclear if we shouldn't for -static-libubsan instead just add another
> -lstdc++ copy (but one honoring -static-libstdc++).

Hm, and what about something like that:

diff --git a/config/bootstrap-ubsan.mk b/config/bootstrap-ubsan.mk
index 1d85fe1c836..b2a474ae158 100644
--- a/config/bootstrap-ubsan.mk
+++ b/config/bootstrap-ubsan.mk
@@ -2,7 +2,7 @@

 STAGE2_CFLAGS += -fsanitize=undefined -DUBSAN_BOOTSTRAP
 STAGE3_CFLAGS += -fsanitize=undefined -DUBSAN_BOOTSTRAP
-POSTSTAGE1_LDFLAGS += -fsanitize=undefined -static-libubsan -DUBSAN_BOOTSTRAP
\
+POSTSTAGE1_LDFLAGS += -fsanitize=undefined -static-libubsan -lstdc++
-DUBSAN_BOOTSTRAP \
                      -B$$r/prev-$(TARGET_SUBDIR)/libsanitizer/ \
                      -B$$r/prev-$(TARGET_SUBDIR)/libsanitizer/ubsan/ \
                      -B$$r/prev-$(TARGET_SUBDIR)/libsanitizer/ubsan/.libs

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

* [Bug bootstrap/98414] [11 Regression] UBSAN bootstrap is broken: ubsan/ubsan_type_hash_itanium.cpp:162: undefined reference to `__dynamic_cast' since r11-6083-gb7dfc2074c78415d451eb34d1608016c80b1c41a
  2020-12-21 15:22 [Bug bootstrap/98414] New: [11 Regression] UBSAN bootstrap is broken: ubsan/ubsan_type_hash_itanium.cpp:162: undefined reference to `__dynamic_cast' marxin at gcc dot gnu.org
                   ` (9 preceding siblings ...)
  2021-01-05 14:24 ` marxin at gcc dot gnu.org
@ 2021-01-07 13:32 ` marxin at gcc dot gnu.org
  2021-01-11  9:54 ` marxin at gcc dot gnu.org
                   ` (7 subsequent siblings)
  18 siblings, 0 replies; 20+ messages in thread
From: marxin at gcc dot gnu.org @ 2021-01-07 13:32 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #10 from Martin Liška <marxin at gcc dot gnu.org> ---
(In reply to Martin Liška from comment #9)
> (In reply to Jakub Jelinek from comment #8)
> > I don't.  LIBUBSAN_SPEC comes from gcc.c, while the libstdc++ stuff comes
> > from cp/g++spec.c and the ordering between the two is hard to achieve, plus
> > it is unclear if we shouldn't for -static-libubsan instead just add another
> > -lstdc++ copy (but one honoring -static-libstdc++).
> 
> Hm, and what about something like that:
> 
> diff --git a/config/bootstrap-ubsan.mk b/config/bootstrap-ubsan.mk
> index 1d85fe1c836..b2a474ae158 100644
> --- a/config/bootstrap-ubsan.mk
> +++ b/config/bootstrap-ubsan.mk
> @@ -2,7 +2,7 @@
>  
>  STAGE2_CFLAGS += -fsanitize=undefined -DUBSAN_BOOTSTRAP
>  STAGE3_CFLAGS += -fsanitize=undefined -DUBSAN_BOOTSTRAP
> -POSTSTAGE1_LDFLAGS += -fsanitize=undefined -static-libubsan
> -DUBSAN_BOOTSTRAP \
> +POSTSTAGE1_LDFLAGS += -fsanitize=undefined -static-libubsan -lstdc++
> -DUBSAN_BOOTSTRAP \
>  		      -B$$r/prev-$(TARGET_SUBDIR)/libsanitizer/ \
>  		      -B$$r/prev-$(TARGET_SUBDIR)/libsanitizer/ubsan/ \
>  		      -B$$r/prev-$(TARGET_SUBDIR)/libsanitizer/ubsan/.libs

That's not going to work:

./xgcc -B./ -B/usr/local/x86_64-pc-linux-gnu/bin/ -isystem
/usr/local/x86_64-pc-linux-gnu/include -isystem
/usr/local/x86_64-pc-linux-gnu/sys-include
-L/home/mliska/Programming/gcc/objdir/gcc/../ld -xc++ -nostdinc /dev/null -S -o
/dev/null -fself-test=../../gcc/testsuite/selftests
./cc1./cc1plus: : /usr/lib64/libstdc++.so.6/usr/lib64/libstdc++.so.6: : version
`GLIBCXX_3.4.29' not found (required by ./cc1)version `GLIBCXX_3.4.29' not
found (required by ./cc1plus)

leaving to Nathan.

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

* [Bug bootstrap/98414] [11 Regression] UBSAN bootstrap is broken: ubsan/ubsan_type_hash_itanium.cpp:162: undefined reference to `__dynamic_cast' since r11-6083-gb7dfc2074c78415d451eb34d1608016c80b1c41a
  2020-12-21 15:22 [Bug bootstrap/98414] New: [11 Regression] UBSAN bootstrap is broken: ubsan/ubsan_type_hash_itanium.cpp:162: undefined reference to `__dynamic_cast' marxin at gcc dot gnu.org
                   ` (10 preceding siblings ...)
  2021-01-07 13:32 ` marxin at gcc dot gnu.org
@ 2021-01-11  9:54 ` marxin at gcc dot gnu.org
  2021-01-11  9:59 ` marxin at gcc dot gnu.org
                   ` (6 subsequent siblings)
  18 siblings, 0 replies; 20+ messages in thread
From: marxin at gcc dot gnu.org @ 2021-01-11  9:54 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #11 from Martin Liška <marxin at gcc dot gnu.org> ---
There's a self-container test-case:

$ cat resolver.ii
class Resolver {
  int GetCMIName();
  virtual char GetCMISuffix() { return 'c'; }
};
int Resolver::GetCMIName() { GetCMISuffix(); return 0; }

int main() {}

$ -static-libstdc++ -static-libgcc -fsanitize=undefined -static-libubsan
[fine]

$ g++ -fsanitize=undefined resolver.ii -static-libstdc++ -static-libubsan
/usr/lib64/gcc/x86_64-suse-linux/10/../../../../x86_64-suse-linux/bin/ld:
/usr/lib64/gcc/x86_64-suse-linux/10/libubsan.a(ubsan_type_hash_itanium.o): in
function `findBaseAtOffset(__cxxabiv1::__class_type_info const*, long)':
/home/abuild/rpmbuild/BUILD/gcc-10.2.1+git1030/obj-x86_64-suse-linux/x86_64-suse-linux/libsanitizer/ubsan/../../../../libsanitizer/ubsan/ubsan_type_hash_itanium.cpp:161:
undefined reference to `__dynamic_cast'
/usr/lib64/gcc/x86_64-suse-linux/10/../../../../x86_64-suse-linux/bin/ld:
/home/abuild/rpmbuild/BUILD/gcc-10.2.1+git1030/obj-x86_64-suse-linux/x86_64-suse-linux/libsanitizer/ubsan/../../../../libsanitizer/ubsan/ubsan_type_hash_itanium.cpp:165:
undefined reference to `typeinfo for __cxxabiv1::__vmi_class_type_info'
/usr/lib64/gcc/x86_64-suse-linux/10/../../../../x86_64-suse-linux/bin/ld:
/home/abuild/rpmbuild/BUILD/gcc-10.2.1+git1030/obj-x86_64-suse-linux/x86_64-suse-linux/libsanitizer/ubsan/../../../../libsanitizer/ubsan/ubsan_type_hash_itanium.cpp:165:
undefined reference to `__dynamic_cast'
/usr/lib64/gcc/x86_64-suse-linux/10/../../../../x86_64-suse-linux/bin/ld:
/usr/lib64/gcc/x86_64-suse-linux/10/libubsan.a(ubsan_type_hash_itanium.o): in
function `isDerivedFromAtOffset(__cxxabiv1::__class_type_info const*,
__cxxabiv1::__class_type_info const*, long)':
/home/abuild/rpmbuild/BUILD/gcc-10.2.1+git1030/obj-x86_64-suse-linux/x86_64-suse-linux/libsanitizer/ubsan/../../../../libsanitizer/ubsan/ubsan_type_hash_itanium.cpp:124:
undefined reference to `__dynamic_cast'
/usr/lib64/gcc/x86_64-suse-linux/10/../../../../x86_64-suse-linux/bin/ld:
/home/abuild/rpmbuild/BUILD/gcc-10.2.1+git1030/obj-x86_64-suse-linux/x86_64-suse-linux/libsanitizer/ubsan/../../../../libsanitizer/ubsan/ubsan_type_hash_itanium.cpp:128:
undefined reference to `typeinfo for __cxxabiv1::__vmi_class_type_info'
/usr/lib64/gcc/x86_64-suse-linux/10/../../../../x86_64-suse-linux/bin/ld:
/home/abuild/rpmbuild/BUILD/gcc-10.2.1+git1030/obj-x86_64-suse-linux/x86_64-suse-linux/libsanitizer/ubsan/../../../../libsanitizer/ubsan/ubsan_type_hash_itanium.cpp:128:
undefined reference to `__dynamic_cast'
/usr/lib64/gcc/x86_64-suse-linux/10/../../../../x86_64-suse-linux/bin/ld:
/usr/lib64/gcc/x86_64-suse-linux/10/libubsan.a(ubsan_type_hash_itanium.o): in
function `__ubsan::checkDynamicType(void*, void*, unsigned long)':
/home/abuild/rpmbuild/BUILD/gcc-10.2.1+git1030/obj-x86_64-suse-linux/x86_64-suse-linux/libsanitizer/ubsan/../../../../libsanitizer/ubsan/ubsan_type_hash_itanium.cpp:231:
undefined reference to `__dynamic_cast'
collect2: error: ld returned 1 exit status

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

* [Bug bootstrap/98414] [11 Regression] UBSAN bootstrap is broken: ubsan/ubsan_type_hash_itanium.cpp:162: undefined reference to `__dynamic_cast' since r11-6083-gb7dfc2074c78415d451eb34d1608016c80b1c41a
  2020-12-21 15:22 [Bug bootstrap/98414] New: [11 Regression] UBSAN bootstrap is broken: ubsan/ubsan_type_hash_itanium.cpp:162: undefined reference to `__dynamic_cast' marxin at gcc dot gnu.org
                   ` (11 preceding siblings ...)
  2021-01-11  9:54 ` marxin at gcc dot gnu.org
@ 2021-01-11  9:59 ` marxin at gcc dot gnu.org
  2021-01-11 10:02 ` jakub at gcc dot gnu.org
                   ` (5 subsequent siblings)
  18 siblings, 0 replies; 20+ messages in thread
From: marxin at gcc dot gnu.org @ 2021-01-11  9:59 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #12 from Martin Liška <marxin at gcc dot gnu.org> ---
I've got it!
It can be fixed with -fno-rtti and apparently libcody's objects do miss that :)

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

* [Bug bootstrap/98414] [11 Regression] UBSAN bootstrap is broken: ubsan/ubsan_type_hash_itanium.cpp:162: undefined reference to `__dynamic_cast' since r11-6083-gb7dfc2074c78415d451eb34d1608016c80b1c41a
  2020-12-21 15:22 [Bug bootstrap/98414] New: [11 Regression] UBSAN bootstrap is broken: ubsan/ubsan_type_hash_itanium.cpp:162: undefined reference to `__dynamic_cast' marxin at gcc dot gnu.org
                   ` (12 preceding siblings ...)
  2021-01-11  9:59 ` marxin at gcc dot gnu.org
@ 2021-01-11 10:02 ` jakub at gcc dot gnu.org
  2021-01-11 10:06 ` marxin at gcc dot gnu.org
                   ` (4 subsequent siblings)
  18 siblings, 0 replies; 20+ messages in thread
From: jakub at gcc dot gnu.org @ 2021-01-11 10:02 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #13 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Well, that is a fix for the bootstrap-ubsan issues, but not the above small
testcase showing the problems for users.
But sure, as this is a problem that exists many years and nobody reported it
before, it is enough to fix just the bootstrap-ubsan stuff for GCC 11.

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

* [Bug bootstrap/98414] [11 Regression] UBSAN bootstrap is broken: ubsan/ubsan_type_hash_itanium.cpp:162: undefined reference to `__dynamic_cast' since r11-6083-gb7dfc2074c78415d451eb34d1608016c80b1c41a
  2020-12-21 15:22 [Bug bootstrap/98414] New: [11 Regression] UBSAN bootstrap is broken: ubsan/ubsan_type_hash_itanium.cpp:162: undefined reference to `__dynamic_cast' marxin at gcc dot gnu.org
                   ` (13 preceding siblings ...)
  2021-01-11 10:02 ` jakub at gcc dot gnu.org
@ 2021-01-11 10:06 ` marxin at gcc dot gnu.org
  2021-01-11 10:22 ` marxin at gcc dot gnu.org
                   ` (3 subsequent siblings)
  18 siblings, 0 replies; 20+ messages in thread
From: marxin at gcc dot gnu.org @ 2021-01-11 10:06 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #14 from Martin Liška <marxin at gcc dot gnu.org> ---
When building GCC w/o bootstrap I see that libcody properly sets -fno-rtti:

g++ -std=c++11 -g -O2 -fno-enforce-eh-specs -fno-stack-protector
-fno-threadsafe-statics -fno-exceptions -fno-rtti
-fdebug-prefix-map=/home/marxin/Programming/gcc/libcody/= -W -Wall -include
config.h -I/home/marxin/Programming/gcc/libcody \
  -MMD -MP -MF packet.d -c -o packet.o
/home/marxin/Programming/gcc/libcody/packet.cc

But it's not true for --with-build-config=bootstrap-ubsan in stage2:

/home/mliska/Programming/gcc/objdir/./prev-gcc/xg++
-B/home/mliska/Programming/gcc/objdir/./prev-gcc/
-B/usr/local/x86_64-pc-linux-gnu/bin/ -nostdinc++
-B/home/mliska/Programming/gcc/objdir/prev-x86_64-pc-linux-gnu/libstdc++-v3/src/.libs
-B/home/mliska/Programming/gcc/objdir/prev-x86_64-pc-linux-gnu/libstdc++-v3/libsupc++/.libs

-I/home/mliska/Programming/gcc/objdir/prev-x86_64-pc-linux-gnu/libstdc++-v3/include/x86_64-pc-linux-gnu

-I/home/mliska/Programming/gcc/objdir/prev-x86_64-pc-linux-gnu/libstdc++-v3/include
 -I/home/mliska/Programming/gcc/libstdc++-v3/libsupc++
-L/home/mliska/Programming/gcc/objdir/prev-x86_64-pc-linux-gnu/libstdc++-v3/src/.libs
-L/home/mliska/Programming/gcc/objdir/prev-x86_64-pc-linux-gnu/libstdc++-v3/libsupc++/.libs
-g -O2 -fno-checking -fsanitize=undefined -DUBSAN_BOOTSTRAP -include config.h
-I../../libcody
-I/home/mliska/Programming/gcc/objdir/prev-x86_64-pc-linux-gnu/libstdc++-v3/include/x86_64-pc-linux-gnu
-I/home/mliska/Programming/gcc/objdir/prev-x86_64-pc-linux-gnu/libstdc++-v3/include
-I/home/mliska/Programming/gcc/libstdc++-v3/libsupc++ \
  -MMD -MP -MF packet.d -c -o packet.o ../../libcody/packet.cc

while other gcc/*.o objects have -fno-rtti:

/home/mliska/Programming/gcc/objdir/./prev-gcc/xg++
-B/home/mliska/Programming/gcc/objdir/./prev-gcc/
-B/usr/local/x86_64-pc-linux-gnu/bin/ -nostdinc++
-B/home/mliska/Programming/gcc/objdir/prev-x86_64-pc-linux-gnu/libstdc++-v3/src/.libs
-B/home/mliska/Programming/gcc/objdir/prev-x86_64-pc-linux-gnu/libstdc++-v3/libsupc++/.libs

-I/home/mliska/Programming/gcc/objdir/prev-x86_64-pc-linux-gnu/libstdc++-v3/include/x86_64-pc-linux-gnu

-I/home/mliska/Programming/gcc/objdir/prev-x86_64-pc-linux-gnu/libstdc++-v3/include
 -I/home/mliska/Programming/gcc/libstdc++-v3/libsupc++
-L/home/mliska/Programming/gcc/objdir/prev-x86_64-pc-linux-gnu/libstdc++-v3/src/.libs
-L/home/mliska/Programming/gcc/objdir/prev-x86_64-pc-linux-gnu/libstdc++-v3/libsupc++/.libs
 -fno-PIE -c   -g -O2 -fno-checking -fsanitize=undefined -DUBSAN_BOOTSTRAP 
-DIN_GCC     -fno-exceptions -fno-rtti -fasynchronous-unwind-tables -W -Wall
-Wno-narrowing -Wwrite-strings -Wcast-qual -Wno-error=format-diag
-Wmissing-format-attribute -Woverloaded-virtual -pedantic -Wno-long-long
-Wno-variadic-macros -Wno-overlength-strings -fno-common  -DHAVE_CONFIG_H -I.
-I. -I../../gcc -I../../gcc/. -I../../gcc/../include
-I../../gcc/../libcpp/include -I../../gcc/../libcody 
-I../../gcc/../libdecnumber -I../../gcc/../libdecnumber/bid -I../libdecnumber
-I../../gcc/../libbacktrace   -o ipa-icf.o -MT ipa-icf.o -MMD -MP -MF
./.deps/ipa-icf.TPo ../../gcc/ipa-icf.c

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

* [Bug bootstrap/98414] [11 Regression] UBSAN bootstrap is broken: ubsan/ubsan_type_hash_itanium.cpp:162: undefined reference to `__dynamic_cast' since r11-6083-gb7dfc2074c78415d451eb34d1608016c80b1c41a
  2020-12-21 15:22 [Bug bootstrap/98414] New: [11 Regression] UBSAN bootstrap is broken: ubsan/ubsan_type_hash_itanium.cpp:162: undefined reference to `__dynamic_cast' marxin at gcc dot gnu.org
                   ` (14 preceding siblings ...)
  2021-01-11 10:06 ` marxin at gcc dot gnu.org
@ 2021-01-11 10:22 ` marxin at gcc dot gnu.org
  2021-01-11 10:48 ` marxin at gcc dot gnu.org
                   ` (2 subsequent siblings)
  18 siblings, 0 replies; 20+ messages in thread
From: marxin at gcc dot gnu.org @ 2021-01-11 10:22 UTC (permalink / raw)
  To: gcc-bugs

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

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

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

--- Comment #15 from Martin Liška <marxin at gcc dot gnu.org> ---
I have a fix :)

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

* [Bug bootstrap/98414] [11 Regression] UBSAN bootstrap is broken: ubsan/ubsan_type_hash_itanium.cpp:162: undefined reference to `__dynamic_cast' since r11-6083-gb7dfc2074c78415d451eb34d1608016c80b1c41a
  2020-12-21 15:22 [Bug bootstrap/98414] New: [11 Regression] UBSAN bootstrap is broken: ubsan/ubsan_type_hash_itanium.cpp:162: undefined reference to `__dynamic_cast' marxin at gcc dot gnu.org
                   ` (15 preceding siblings ...)
  2021-01-11 10:22 ` marxin at gcc dot gnu.org
@ 2021-01-11 10:48 ` marxin at gcc dot gnu.org
  2021-01-11 12:55 ` nathan at gcc dot gnu.org
  2021-01-12 18:33 ` nathan at gcc dot gnu.org
  18 siblings, 0 replies; 20+ messages in thread
From: marxin at gcc dot gnu.org @ 2021-01-11 10:48 UTC (permalink / raw)
  To: gcc-bugs

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Assignee|marxin at gcc dot gnu.org          |nathan at gcc dot gnu.org

--- Comment #16 from Martin Liška <marxin at gcc dot gnu.org> ---
Based on Jakub's review, leading that to Nathan.

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

* [Bug bootstrap/98414] [11 Regression] UBSAN bootstrap is broken: ubsan/ubsan_type_hash_itanium.cpp:162: undefined reference to `__dynamic_cast' since r11-6083-gb7dfc2074c78415d451eb34d1608016c80b1c41a
  2020-12-21 15:22 [Bug bootstrap/98414] New: [11 Regression] UBSAN bootstrap is broken: ubsan/ubsan_type_hash_itanium.cpp:162: undefined reference to `__dynamic_cast' marxin at gcc dot gnu.org
                   ` (16 preceding siblings ...)
  2021-01-11 10:48 ` marxin at gcc dot gnu.org
@ 2021-01-11 12:55 ` nathan at gcc dot gnu.org
  2021-01-12 18:33 ` nathan at gcc dot gnu.org
  18 siblings, 0 replies; 20+ messages in thread
From: nathan at gcc dot gnu.org @ 2021-01-11 12:55 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #17 from Nathan Sidwell <nathan at gcc dot gnu.org> ---
libcody should be being built with -fno-exceptions -fno-rtti, that it isn;t
suggests I'm configuring it wrong.

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

* [Bug bootstrap/98414] [11 Regression] UBSAN bootstrap is broken: ubsan/ubsan_type_hash_itanium.cpp:162: undefined reference to `__dynamic_cast' since r11-6083-gb7dfc2074c78415d451eb34d1608016c80b1c41a
  2020-12-21 15:22 [Bug bootstrap/98414] New: [11 Regression] UBSAN bootstrap is broken: ubsan/ubsan_type_hash_itanium.cpp:162: undefined reference to `__dynamic_cast' marxin at gcc dot gnu.org
                   ` (17 preceding siblings ...)
  2021-01-11 12:55 ` nathan at gcc dot gnu.org
@ 2021-01-12 18:33 ` nathan at gcc dot gnu.org
  18 siblings, 0 replies; 20+ messages in thread
From: nathan at gcc dot gnu.org @ 2021-01-12 18:33 UTC (permalink / raw)
  To: gcc-bugs

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

Nathan Sidwell <nathan at gcc dot gnu.org> changed:

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

--- Comment #18 from Nathan Sidwell <nathan at gcc dot gnu.org> ---
Fixed e2aa8a5f982 2021-01-11 | libcody: Simplify configure [PR 98414, 98509]

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

end of thread, other threads:[~2021-01-12 18:33 UTC | newest]

Thread overview: 20+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-12-21 15:22 [Bug bootstrap/98414] New: [11 Regression] UBSAN bootstrap is broken: ubsan/ubsan_type_hash_itanium.cpp:162: undefined reference to `__dynamic_cast' marxin at gcc dot gnu.org
2020-12-21 15:23 ` [Bug bootstrap/98414] " marxin at gcc dot gnu.org
2021-01-05  9:37 ` rguenth at gcc dot gnu.org
2021-01-05 10:37 ` marxin at gcc dot gnu.org
2021-01-05 12:40 ` [Bug bootstrap/98414] [11 Regression] UBSAN bootstrap is broken: ubsan/ubsan_type_hash_itanium.cpp:162: undefined reference to `__dynamic_cast' since r11-6083-gb7dfc2074c78415d451eb34d1608016c80b1c41a marxin at gcc dot gnu.org
2021-01-05 13:44 ` nathan at gcc dot gnu.org
2021-01-05 13:51 ` jakub at gcc dot gnu.org
2021-01-05 14:08 ` marxin at gcc dot gnu.org
2021-01-05 14:10 ` marxin at gcc dot gnu.org
2021-01-05 14:14 ` jakub at gcc dot gnu.org
2021-01-05 14:24 ` marxin at gcc dot gnu.org
2021-01-07 13:32 ` marxin at gcc dot gnu.org
2021-01-11  9:54 ` marxin at gcc dot gnu.org
2021-01-11  9:59 ` marxin at gcc dot gnu.org
2021-01-11 10:02 ` jakub at gcc dot gnu.org
2021-01-11 10:06 ` marxin at gcc dot gnu.org
2021-01-11 10:22 ` marxin at gcc dot gnu.org
2021-01-11 10:48 ` marxin at gcc dot gnu.org
2021-01-11 12:55 ` nathan at gcc dot gnu.org
2021-01-12 18:33 ` nathan 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).