public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug libstdc++/115585] New: --disable-libstdcxx-verbose causes undefined symbol: _ZSt21__glibcxx_assert_failPKciS0_S0_, version GLIBCXX_3.4.30
@ 2024-06-21 23:43 unlvsur at live dot com
2024-06-21 23:43 ` [Bug libstdc++/115585] " unlvsur at live dot com
` (13 more replies)
0 siblings, 14 replies; 15+ messages in thread
From: unlvsur at live dot com @ 2024-06-21 23:43 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115585
Bug ID: 115585
Summary: --disable-libstdcxx-verbose causes undefined symbol:
_ZSt21__glibcxx_assert_failPKciS0_S0_, version
GLIBCXX_3.4.30
Product: gcc
Version: unknown
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: libstdc++
Assignee: unassigned at gcc dot gnu.org
Reporter: unlvsur at live dot com
Target Milestone: ---
https://github.com/gcc-mirror/gcc/blob/ccbcde5ec0e481e1ea775649d59691b6f5fcc5a1/libstdc%2B%2B-v3/src/c%2B%2B11/assert_fail.cc#L28C8-L28C31
i think we should provide a dummy implementation of this function when
_GLIBCXX_VERBOSE_ASSERT is disabled by just calling abort, or it breaks abi.
^ permalink raw reply [flat|nested] 15+ messages in thread
* [Bug libstdc++/115585] --disable-libstdcxx-verbose causes undefined symbol: _ZSt21__glibcxx_assert_failPKciS0_S0_, version GLIBCXX_3.4.30
2024-06-21 23:43 [Bug libstdc++/115585] New: --disable-libstdcxx-verbose causes undefined symbol: _ZSt21__glibcxx_assert_failPKciS0_S0_, version GLIBCXX_3.4.30 unlvsur at live dot com
@ 2024-06-21 23:43 ` unlvsur at live dot com
2024-06-22 0:35 ` unlvsur at live dot com
` (12 subsequent siblings)
13 siblings, 0 replies; 15+ messages in thread
From: unlvsur at live dot com @ 2024-06-21 23:43 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115585
--- Comment #1 from cqwrteur <unlvsur at live dot com> ---
cqwrteur@otsiningo:~/toolchains_build/build/native/mold$ cmake -GNinja
../../../mold -DCMAKE_BUILD_TYPE=Release
-DCMAKE_INTERPROCEDURAL_OPTIMIZATION=On -DCMAKE_C_COMPILER=clang
-DCMAKE_CXX_COMPILER=clang++ -DCMAKE_ASM_COMPILER=clang
-DCMAKE_INSTALL_PREFIX=$HOME/toolchains/x86_64-pc-linux-gnu/x86_64-pc-linux-gnu
-DCMAKE_C_FLAGS="--gcc-toolchain=$HOME/toolchains/x86_64-pc-linux-gnu/x86_64-pc-linux-gnu
-fuse-ld=lld"
-DCMAKE_CXX_FLAGS="$HOME/toolchains/x86_64-pc-linux-gnu/x86_64-pc-linux-gnu
-fuse-ld=lld"
cmake: symbol lookup error: /usr/lib/libcppdap.so: undefined symbol:
_ZSt21__glibcxx_assert_failPKciS0_S0_, version GLIBCXX_3.4.30
The problem is the archlinux provides libcppdap which compiles with verbose one
but i disable the verbose build.
^ permalink raw reply [flat|nested] 15+ messages in thread
* [Bug libstdc++/115585] --disable-libstdcxx-verbose causes undefined symbol: _ZSt21__glibcxx_assert_failPKciS0_S0_, version GLIBCXX_3.4.30
2024-06-21 23:43 [Bug libstdc++/115585] New: --disable-libstdcxx-verbose causes undefined symbol: _ZSt21__glibcxx_assert_failPKciS0_S0_, version GLIBCXX_3.4.30 unlvsur at live dot com
2024-06-21 23:43 ` [Bug libstdc++/115585] " unlvsur at live dot com
@ 2024-06-22 0:35 ` unlvsur at live dot com
2024-06-22 0:44 ` pinskia at gcc dot gnu.org
` (11 subsequent siblings)
13 siblings, 0 replies; 15+ messages in thread
From: unlvsur at live dot com @ 2024-06-22 0:35 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115585
--- Comment #2 from cqwrteur <unlvsur at live dot com> ---
https://gcc.gnu.org/pipermail/gcc-patches/2024-June/655427.html
patch is here
^ permalink raw reply [flat|nested] 15+ messages in thread
* [Bug libstdc++/115585] --disable-libstdcxx-verbose causes undefined symbol: _ZSt21__glibcxx_assert_failPKciS0_S0_, version GLIBCXX_3.4.30
2024-06-21 23:43 [Bug libstdc++/115585] New: --disable-libstdcxx-verbose causes undefined symbol: _ZSt21__glibcxx_assert_failPKciS0_S0_, version GLIBCXX_3.4.30 unlvsur at live dot com
2024-06-21 23:43 ` [Bug libstdc++/115585] " unlvsur at live dot com
2024-06-22 0:35 ` unlvsur at live dot com
@ 2024-06-22 0:44 ` pinskia at gcc dot gnu.org
2024-06-22 0:58 ` pinskia at gcc dot gnu.org
` (10 subsequent siblings)
13 siblings, 0 replies; 15+ messages in thread
From: pinskia at gcc dot gnu.org @ 2024-06-22 0:44 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115585
--- Comment #3 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
https://gcc.gnu.org/onlinedocs/gcc-14.1.0/libstdc++/manual/manual/configure.html
--disable-libstdcxx-verbose
By default, the library is configured to write descriptive messages to standard
error for certain events such as calling a pure virtual function or the
invocation of the standard terminate handler. Those messages cause the library
to depend on the demangler and standard I/O facilities, which might be
undesirable in a low-memory environment or when standard error is not
available. This option disables those messages. This option does not change the
library ABI.
Either the documentation is incorrect or we should provide an empty one.
^ permalink raw reply [flat|nested] 15+ messages in thread
* [Bug libstdc++/115585] --disable-libstdcxx-verbose causes undefined symbol: _ZSt21__glibcxx_assert_failPKciS0_S0_, version GLIBCXX_3.4.30
2024-06-21 23:43 [Bug libstdc++/115585] New: --disable-libstdcxx-verbose causes undefined symbol: _ZSt21__glibcxx_assert_failPKciS0_S0_, version GLIBCXX_3.4.30 unlvsur at live dot com
` (2 preceding siblings ...)
2024-06-22 0:44 ` pinskia at gcc dot gnu.org
@ 2024-06-22 0:58 ` pinskia at gcc dot gnu.org
2024-06-22 3:17 ` unlvsur at live dot com
` (9 subsequent siblings)
13 siblings, 0 replies; 15+ messages in thread
From: pinskia at gcc dot gnu.org @ 2024-06-22 0:58 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115585
--- Comment #4 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Hmm, why was libcppdap.so compiled with _GLIBCXX_DEBUG turned on in the first
place?
^ permalink raw reply [flat|nested] 15+ messages in thread
* [Bug libstdc++/115585] --disable-libstdcxx-verbose causes undefined symbol: _ZSt21__glibcxx_assert_failPKciS0_S0_, version GLIBCXX_3.4.30
2024-06-21 23:43 [Bug libstdc++/115585] New: --disable-libstdcxx-verbose causes undefined symbol: _ZSt21__glibcxx_assert_failPKciS0_S0_, version GLIBCXX_3.4.30 unlvsur at live dot com
` (3 preceding siblings ...)
2024-06-22 0:58 ` pinskia at gcc dot gnu.org
@ 2024-06-22 3:17 ` unlvsur at live dot com
2024-06-22 3:18 ` unlvsur at live dot com
` (8 subsequent siblings)
13 siblings, 0 replies; 15+ messages in thread
From: unlvsur at live dot com @ 2024-06-22 3:17 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115585
--- Comment #5 from cqwrteur <unlvsur at live dot com> ---
(In reply to Andrew Pinski from comment #4)
> Hmm, why was libcppdap.so compiled with _GLIBCXX_DEBUG turned on in the
> first place?
i don't know. That was a packaging thing from arch. I just got the raw binary
from it.
^ permalink raw reply [flat|nested] 15+ messages in thread
* [Bug libstdc++/115585] --disable-libstdcxx-verbose causes undefined symbol: _ZSt21__glibcxx_assert_failPKciS0_S0_, version GLIBCXX_3.4.30
2024-06-21 23:43 [Bug libstdc++/115585] New: --disable-libstdcxx-verbose causes undefined symbol: _ZSt21__glibcxx_assert_failPKciS0_S0_, version GLIBCXX_3.4.30 unlvsur at live dot com
` (4 preceding siblings ...)
2024-06-22 3:17 ` unlvsur at live dot com
@ 2024-06-22 3:18 ` unlvsur at live dot com
2024-06-22 19:05 ` unlvsur at live dot com
` (7 subsequent siblings)
13 siblings, 0 replies; 15+ messages in thread
From: unlvsur at live dot com @ 2024-06-22 3:18 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115585
--- Comment #6 from cqwrteur <unlvsur at live dot com> ---
(In reply to Andrew Pinski from comment #3)
> https://gcc.gnu.org/onlinedocs/gcc-14.1.0/libstdc++/manual/manual/configure.
> html
>
>
> --disable-libstdcxx-verbose
> By default, the library is configured to write descriptive messages to
> standard error for certain events such as calling a pure virtual function or
> the invocation of the standard terminate handler. Those messages cause the
> library to depend on the demangler and standard I/O facilities, which might
> be undesirable in a low-memory environment or when standard error is not
> available. This option disables those messages. This option does not change
> the library ABI.
>
> Either the documentation is incorrect or we should provide an empty one.
i have provided an empty implementation that fixes the issue. Please review my
patch and merge it
^ permalink raw reply [flat|nested] 15+ messages in thread
* [Bug libstdc++/115585] --disable-libstdcxx-verbose causes undefined symbol: _ZSt21__glibcxx_assert_failPKciS0_S0_, version GLIBCXX_3.4.30
2024-06-21 23:43 [Bug libstdc++/115585] New: --disable-libstdcxx-verbose causes undefined symbol: _ZSt21__glibcxx_assert_failPKciS0_S0_, version GLIBCXX_3.4.30 unlvsur at live dot com
` (5 preceding siblings ...)
2024-06-22 3:18 ` unlvsur at live dot com
@ 2024-06-22 19:05 ` unlvsur at live dot com
2024-06-22 19:08 ` pinskia at gcc dot gnu.org
` (6 subsequent siblings)
13 siblings, 0 replies; 15+ messages in thread
From: unlvsur at live dot com @ 2024-06-22 19:05 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115585
--- Comment #7 from cqwrteur <unlvsur at live dot com> ---
The patch has passed the CI. It is time to review and merge my patch. Thank
you.
https://gcc.gnu.org/pipermail/gcc-patches/2024-June/655430.html
https://patchwork.sourceware.org/project/gcc/patch/SA1PR11MB713044B81EAB485B95D8FB7FB2CA2@SA1PR11MB7130.namprd11.prod.outlook.com/
^ permalink raw reply [flat|nested] 15+ messages in thread
* [Bug libstdc++/115585] --disable-libstdcxx-verbose causes undefined symbol: _ZSt21__glibcxx_assert_failPKciS0_S0_, version GLIBCXX_3.4.30
2024-06-21 23:43 [Bug libstdc++/115585] New: --disable-libstdcxx-verbose causes undefined symbol: _ZSt21__glibcxx_assert_failPKciS0_S0_, version GLIBCXX_3.4.30 unlvsur at live dot com
` (6 preceding siblings ...)
2024-06-22 19:05 ` unlvsur at live dot com
@ 2024-06-22 19:08 ` pinskia at gcc dot gnu.org
2024-06-22 20:20 ` unlvsur at live dot com
` (5 subsequent siblings)
13 siblings, 0 replies; 15+ messages in thread
From: pinskia at gcc dot gnu.org @ 2024-06-22 19:08 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115585
--- Comment #8 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
(In reply to cqwrteur from comment #7)
> The patch has passed the CI. It is time to review and merge my patch. Thank
> you.
Before we can review it, can you make sure you follow
https://gcc.gnu.org/contribute.html ?
You are missing a changelog for one.
Second since you are not using your real name, do you have a copyright
assignment on file with the FSF? If not please resubmit with your real name and
add a signed-off by. Or put in place a copyright assignment.
^ permalink raw reply [flat|nested] 15+ messages in thread
* [Bug libstdc++/115585] --disable-libstdcxx-verbose causes undefined symbol: _ZSt21__glibcxx_assert_failPKciS0_S0_, version GLIBCXX_3.4.30
2024-06-21 23:43 [Bug libstdc++/115585] New: --disable-libstdcxx-verbose causes undefined symbol: _ZSt21__glibcxx_assert_failPKciS0_S0_, version GLIBCXX_3.4.30 unlvsur at live dot com
` (7 preceding siblings ...)
2024-06-22 19:08 ` pinskia at gcc dot gnu.org
@ 2024-06-22 20:20 ` unlvsur at live dot com
2024-06-22 20:27 ` unlvsur at live dot com
` (4 subsequent siblings)
13 siblings, 0 replies; 15+ messages in thread
From: unlvsur at live dot com @ 2024-06-22 20:20 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115585
--- Comment #9 from cqwrteur <unlvsur at live dot com> ---
(In reply to Andrew Pinski from comment #8)
> (In reply to cqwrteur from comment #7)
> > The patch has passed the CI. It is time to review and merge my patch. Thank
> > you.
>
> Before we can review it, can you make sure you follow
> https://gcc.gnu.org/contribute.html ?
> You are missing a changelog for one.
> Second since you are not using your real name, do you have a copyright
> assignment on file with the FSF? If not please resubmit with your real name
> and add a signed-off by. Or put in place a copyright assignment.
https://gcc.gnu.org/pipermail/gcc-patches/2024-June/655461.html
Is this ok now?
^ permalink raw reply [flat|nested] 15+ messages in thread
* [Bug libstdc++/115585] --disable-libstdcxx-verbose causes undefined symbol: _ZSt21__glibcxx_assert_failPKciS0_S0_, version GLIBCXX_3.4.30
2024-06-21 23:43 [Bug libstdc++/115585] New: --disable-libstdcxx-verbose causes undefined symbol: _ZSt21__glibcxx_assert_failPKciS0_S0_, version GLIBCXX_3.4.30 unlvsur at live dot com
` (8 preceding siblings ...)
2024-06-22 20:20 ` unlvsur at live dot com
@ 2024-06-22 20:27 ` unlvsur at live dot com
2024-06-25 1:02 ` unlvsur at live dot com
` (3 subsequent siblings)
13 siblings, 0 replies; 15+ messages in thread
From: unlvsur at live dot com @ 2024-06-22 20:27 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115585
--- Comment #10 from cqwrteur <unlvsur at live dot com> ---
https://gcc.gnu.org/pipermail/gcc-patches/2024-June/655462.html
^ permalink raw reply [flat|nested] 15+ messages in thread
* [Bug libstdc++/115585] --disable-libstdcxx-verbose causes undefined symbol: _ZSt21__glibcxx_assert_failPKciS0_S0_, version GLIBCXX_3.4.30
2024-06-21 23:43 [Bug libstdc++/115585] New: --disable-libstdcxx-verbose causes undefined symbol: _ZSt21__glibcxx_assert_failPKciS0_S0_, version GLIBCXX_3.4.30 unlvsur at live dot com
` (9 preceding siblings ...)
2024-06-22 20:27 ` unlvsur at live dot com
@ 2024-06-25 1:02 ` unlvsur at live dot com
2024-06-25 12:57 ` redi at gcc dot gnu.org
` (2 subsequent siblings)
13 siblings, 0 replies; 15+ messages in thread
From: unlvsur at live dot com @ 2024-06-25 1:02 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115585
--- Comment #11 from cqwrteur <unlvsur at live dot com> ---
Hi? Could anyone help review my patch and merge it? Ty
https://patchwork.sourceware.org/project/gcc/patch/SA1PR11MB71305D480B48400426C253D9B2CA2@SA1PR11MB7130.namprd11.prod.outlook.com/
^ permalink raw reply [flat|nested] 15+ messages in thread
* [Bug libstdc++/115585] --disable-libstdcxx-verbose causes undefined symbol: _ZSt21__glibcxx_assert_failPKciS0_S0_, version GLIBCXX_3.4.30
2024-06-21 23:43 [Bug libstdc++/115585] New: --disable-libstdcxx-verbose causes undefined symbol: _ZSt21__glibcxx_assert_failPKciS0_S0_, version GLIBCXX_3.4.30 unlvsur at live dot com
` (10 preceding siblings ...)
2024-06-25 1:02 ` unlvsur at live dot com
@ 2024-06-25 12:57 ` redi at gcc dot gnu.org
2024-06-28 14:09 ` [Bug libstdc++/115585] [12/13/14/15 Regression] " redi at gcc dot gnu.org
2024-06-28 19:23 ` cvs-commit at gcc dot gnu.org
13 siblings, 0 replies; 15+ messages in thread
From: redi at gcc dot gnu.org @ 2024-06-25 12:57 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115585
Jonathan Wakely <redi at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Ever confirmed|0 |1
Last reconfirmed| |2024-06-25
^ permalink raw reply [flat|nested] 15+ messages in thread
* [Bug libstdc++/115585] [12/13/14/15 Regression] --disable-libstdcxx-verbose causes undefined symbol: _ZSt21__glibcxx_assert_failPKciS0_S0_, version GLIBCXX_3.4.30
2024-06-21 23:43 [Bug libstdc++/115585] New: --disable-libstdcxx-verbose causes undefined symbol: _ZSt21__glibcxx_assert_failPKciS0_S0_, version GLIBCXX_3.4.30 unlvsur at live dot com
` (11 preceding siblings ...)
2024-06-25 12:57 ` redi at gcc dot gnu.org
@ 2024-06-28 14:09 ` redi at gcc dot gnu.org
2024-06-28 19:23 ` cvs-commit at gcc dot gnu.org
13 siblings, 0 replies; 15+ messages in thread
From: redi at gcc dot gnu.org @ 2024-06-28 14:09 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115585
Jonathan Wakely <redi at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Summary|--disable-libstdcxx-verbose |[12/13/14/15 Regression]
|causes undefined symbol: |--disable-libstdcxx-verbose
|_ZSt21__glibcxx_assert_fail |causes undefined symbol:
|PKciS0_S0_, version |_ZSt21__glibcxx_assert_fail
|GLIBCXX_3.4.30 |PKciS0_S0_, version
| |GLIBCXX_3.4.30
Target Milestone|--- |12.5
Known to work| |11.4.0
Known to fail| |12.1.0
Keywords| |ABI
^ permalink raw reply [flat|nested] 15+ messages in thread
* [Bug libstdc++/115585] [12/13/14/15 Regression] --disable-libstdcxx-verbose causes undefined symbol: _ZSt21__glibcxx_assert_failPKciS0_S0_, version GLIBCXX_3.4.30
2024-06-21 23:43 [Bug libstdc++/115585] New: --disable-libstdcxx-verbose causes undefined symbol: _ZSt21__glibcxx_assert_failPKciS0_S0_, version GLIBCXX_3.4.30 unlvsur at live dot com
` (12 preceding siblings ...)
2024-06-28 14:09 ` [Bug libstdc++/115585] [12/13/14/15 Regression] " redi at gcc dot gnu.org
@ 2024-06-28 19:23 ` cvs-commit at gcc dot gnu.org
13 siblings, 0 replies; 15+ messages in thread
From: cvs-commit at gcc dot gnu.org @ 2024-06-28 19:23 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115585
--- Comment #12 from GCC Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Jonathan Wakely <redi@gcc.gnu.org>:
https://gcc.gnu.org/g:52370c839edd04df86d3ff2b71fcdca0c7376a7f
commit r15-1716-g52370c839edd04df86d3ff2b71fcdca0c7376a7f
Author: Jonathan Wakely <jwakely@redhat.com>
Date: Fri Jun 28 15:14:15 2024 +0100
libstdc++: Define __glibcxx_assert_fail for non-verbose build [PR115585]
When the library is configured with --disable-libstdcxx-verbose the
assertions just abort instead of calling __glibcxx_assert_fail, and so I
didn't export that function for the non-verbose build. However, that
option is documented to not change the library ABI, so we still need to
export the symbol from the library. It could be needed by programs
compiled against the headers from a verbose build.
The non-verbose definition can just call abort so that it doesn't pull
in I/O symbols, which are unwanted in a non-verbose build.
libstdc++-v3/ChangeLog:
PR libstdc++/115585
* src/c++11/assert_fail.cc (__glibcxx_assert_fail): Add
definition for non-verbose builds.
^ permalink raw reply [flat|nested] 15+ messages in thread
end of thread, other threads:[~2024-06-28 19:23 UTC | newest]
Thread overview: 15+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-06-21 23:43 [Bug libstdc++/115585] New: --disable-libstdcxx-verbose causes undefined symbol: _ZSt21__glibcxx_assert_failPKciS0_S0_, version GLIBCXX_3.4.30 unlvsur at live dot com
2024-06-21 23:43 ` [Bug libstdc++/115585] " unlvsur at live dot com
2024-06-22 0:35 ` unlvsur at live dot com
2024-06-22 0:44 ` pinskia at gcc dot gnu.org
2024-06-22 0:58 ` pinskia at gcc dot gnu.org
2024-06-22 3:17 ` unlvsur at live dot com
2024-06-22 3:18 ` unlvsur at live dot com
2024-06-22 19:05 ` unlvsur at live dot com
2024-06-22 19:08 ` pinskia at gcc dot gnu.org
2024-06-22 20:20 ` unlvsur at live dot com
2024-06-22 20:27 ` unlvsur at live dot com
2024-06-25 1:02 ` unlvsur at live dot com
2024-06-25 12:57 ` redi at gcc dot gnu.org
2024-06-28 14:09 ` [Bug libstdc++/115585] [12/13/14/15 Regression] " redi at gcc dot gnu.org
2024-06-28 19:23 ` cvs-commit 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).