public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug libstdc++/112997] New: _Unwind_Exception conflicts with void*. failed to build with clang
@ 2023-12-13 7:55 unlvsur at live dot com
2023-12-13 8:01 ` [Bug libstdc++/112997] " pinskia at gcc dot gnu.org
` (10 more replies)
0 siblings, 11 replies; 12+ messages in thread
From: unlvsur at live dot com @ 2023-12-13 7:55 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112997
Bug ID: 112997
Summary: _Unwind_Exception conflicts with void*. failed to
build with clang
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: ---
../../../gcc/libstdc++-v3/libsupc++/eh_call.cc:39:1: error: conflicting types
for '__cxa_call_terminate'
39 | __cxa_call_terminate(void* ue_header_in) throw ()
| ^
../../../gcc/libstdc++-v3/libsupc++/unwind-cxx.h:170:17: note: previous
declaration is here
170 | extern "C" void __cxa_call_terminate (_Unwind_Exception*) throw ()
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Bug libstdc++/112997] _Unwind_Exception conflicts with void*. failed to build with clang
2023-12-13 7:55 [Bug libstdc++/112997] New: _Unwind_Exception conflicts with void*. failed to build with clang unlvsur at live dot com
@ 2023-12-13 8:01 ` pinskia at gcc dot gnu.org
2023-12-13 8:01 ` pinskia at gcc dot gnu.org
` (9 subsequent siblings)
10 siblings, 0 replies; 12+ messages in thread
From: pinskia at gcc dot gnu.org @ 2023-12-13 8:01 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112997
Andrew Pinski <pinskia at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Last reconfirmed| |2023-12-13
Status|UNCONFIRMED |WAITING
Ever confirmed|0 |1
--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Why are you building libstdc++ sources with clang? I doubt that is supported.
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Bug libstdc++/112997] _Unwind_Exception conflicts with void*. failed to build with clang
2023-12-13 7:55 [Bug libstdc++/112997] New: _Unwind_Exception conflicts with void*. failed to build with clang unlvsur at live dot com
2023-12-13 8:01 ` [Bug libstdc++/112997] " pinskia at gcc dot gnu.org
@ 2023-12-13 8:01 ` pinskia at gcc dot gnu.org
2023-12-13 9:25 ` redi at gcc dot gnu.org
` (8 subsequent siblings)
10 siblings, 0 replies; 12+ messages in thread
From: pinskia at gcc dot gnu.org @ 2023-12-13 8:01 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112997
--- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Also can you provide the full command line that is failing?
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Bug libstdc++/112997] _Unwind_Exception conflicts with void*. failed to build with clang
2023-12-13 7:55 [Bug libstdc++/112997] New: _Unwind_Exception conflicts with void*. failed to build with clang unlvsur at live dot com
2023-12-13 8:01 ` [Bug libstdc++/112997] " pinskia at gcc dot gnu.org
2023-12-13 8:01 ` pinskia at gcc dot gnu.org
@ 2023-12-13 9:25 ` redi at gcc dot gnu.org
2023-12-13 22:43 ` unlvsur at live dot com
` (7 subsequent siblings)
10 siblings, 0 replies; 12+ messages in thread
From: redi at gcc dot gnu.org @ 2023-12-13 9:25 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112997
--- Comment #3 from Jonathan Wakely <redi at gcc dot gnu.org> ---
It's not supported. If you need to make it work, that's your problem. Just do
something like:
--- a/libstdc++-v3/libsupc++/eh_call.cc
+++ b/libstdc++-v3/libsupc++/eh_call.cc
@@ -25,7 +25,9 @@
#include <bits/c++config.h>
#include <cstdlib>
#include <bits/exception_defines.h>
+#define __cxa_call_terminate __cxa_call_terminatexxx
#include "unwind-cxx.h"
+#undef __cxa_call_terminate
using namespace __cxxabiv1;
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Bug libstdc++/112997] _Unwind_Exception conflicts with void*. failed to build with clang
2023-12-13 7:55 [Bug libstdc++/112997] New: _Unwind_Exception conflicts with void*. failed to build with clang unlvsur at live dot com
` (2 preceding siblings ...)
2023-12-13 9:25 ` redi at gcc dot gnu.org
@ 2023-12-13 22:43 ` unlvsur at live dot com
2023-12-14 0:29 ` pinskia at gcc dot gnu.org
` (6 subsequent siblings)
10 siblings, 0 replies; 12+ messages in thread
From: unlvsur at live dot com @ 2023-12-13 22:43 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112997
--- Comment #4 from cqwrteur <unlvsur at live dot com> ---
(In reply to Andrew Pinski from comment #1)
> Why are you building libstdc++ sources with clang? I doubt that is supported.
GCC does not support WebAssembly backend
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Bug libstdc++/112997] _Unwind_Exception conflicts with void*. failed to build with clang
2023-12-13 7:55 [Bug libstdc++/112997] New: _Unwind_Exception conflicts with void*. failed to build with clang unlvsur at live dot com
` (3 preceding siblings ...)
2023-12-13 22:43 ` unlvsur at live dot com
@ 2023-12-14 0:29 ` pinskia at gcc dot gnu.org
2023-12-14 0:54 ` redi at gcc dot gnu.org
` (5 subsequent siblings)
10 siblings, 0 replies; 12+ messages in thread
From: pinskia at gcc dot gnu.org @ 2023-12-14 0:29 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112997
Andrew Pinski <pinskia at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|WAITING |RESOLVED
Resolution|--- |WONTFIX
--- Comment #5 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
(In reply to cqwrteur from comment #4)
> (In reply to Andrew Pinski from comment #1)
> > Why are you building libstdc++ sources with clang? I doubt that is supported.
>
> GCC does not support WebAssembly backend
Then libstdc++ has not been ported . Or you implement add a WebAssembly backend
to GCC.
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Bug libstdc++/112997] _Unwind_Exception conflicts with void*. failed to build with clang
2023-12-13 7:55 [Bug libstdc++/112997] New: _Unwind_Exception conflicts with void*. failed to build with clang unlvsur at live dot com
` (4 preceding siblings ...)
2023-12-14 0:29 ` pinskia at gcc dot gnu.org
@ 2023-12-14 0:54 ` redi at gcc dot gnu.org
2023-12-14 2:15 ` unlvsur at live dot com
` (4 subsequent siblings)
10 siblings, 0 replies; 12+ messages in thread
From: redi at gcc dot gnu.org @ 2023-12-14 0:54 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112997
--- Comment #6 from Jonathan Wakely <redi at gcc dot gnu.org> ---
I think we can just change the declaration in unwind-cxx.h
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Bug libstdc++/112997] _Unwind_Exception conflicts with void*. failed to build with clang
2023-12-13 7:55 [Bug libstdc++/112997] New: _Unwind_Exception conflicts with void*. failed to build with clang unlvsur at live dot com
` (5 preceding siblings ...)
2023-12-14 0:54 ` redi at gcc dot gnu.org
@ 2023-12-14 2:15 ` unlvsur at live dot com
2023-12-14 10:37 ` arsen at gcc dot gnu.org
` (3 subsequent siblings)
10 siblings, 0 replies; 12+ messages in thread
From: unlvsur at live dot com @ 2023-12-14 2:15 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112997
--- Comment #7 from cqwrteur <unlvsur at live dot com> ---
(In reply to Andrew Pinski from comment #5)
> (In reply to cqwrteur from comment #4)
> > (In reply to Andrew Pinski from comment #1)
> > > Why are you building libstdc++ sources with clang? I doubt that is supported.
> >
> > GCC does not support WebAssembly backend
>
> Then libstdc++ has not been ported . Or you implement add a WebAssembly
> backend to GCC.
i do not know whether binutils has implemented wasm. Or i would like to
implement a wasm backend to GCC tbh.
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Bug libstdc++/112997] _Unwind_Exception conflicts with void*. failed to build with clang
2023-12-13 7:55 [Bug libstdc++/112997] New: _Unwind_Exception conflicts with void*. failed to build with clang unlvsur at live dot com
` (6 preceding siblings ...)
2023-12-14 2:15 ` unlvsur at live dot com
@ 2023-12-14 10:37 ` arsen at gcc dot gnu.org
2024-01-07 1:00 ` cvs-commit at gcc dot gnu.org
` (2 subsequent siblings)
10 siblings, 0 replies; 12+ messages in thread
From: arsen at gcc dot gnu.org @ 2023-12-14 10:37 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112997
Arsen Arsenović <arsen at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |arsen at gcc dot gnu.org
--- Comment #8 from Arsen Arsenović <arsen at gcc dot gnu.org> ---
(In reply to cqwrteur from comment #7)
> (In reply to Andrew Pinski from comment #5)
> > (In reply to cqwrteur from comment #4)
> > > (In reply to Andrew Pinski from comment #1)
> > > > Why are you building libstdc++ sources with clang? I doubt that is supported.
> > >
> > > GCC does not support WebAssembly backend
> >
> > Then libstdc++ has not been ported . Or you implement add a WebAssembly
> > backend to GCC.
>
> i do not know whether binutils has implemented wasm. Or i would like to
> implement a wasm backend to GCC tbh.
Binutils also do not have WASM. Please do give writing a backend a shot. I've
been interested in such a project in the past but I've not had time to study
wasm or to actually initiate codewriting.
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Bug libstdc++/112997] _Unwind_Exception conflicts with void*. failed to build with clang
2023-12-13 7:55 [Bug libstdc++/112997] New: _Unwind_Exception conflicts with void*. failed to build with clang unlvsur at live dot com
` (7 preceding siblings ...)
2023-12-14 10:37 ` arsen at gcc dot gnu.org
@ 2024-01-07 1:00 ` cvs-commit at gcc dot gnu.org
2024-01-07 1:01 ` redi at gcc dot gnu.org
2024-01-08 10:11 ` tschwinge at gcc dot gnu.org
10 siblings, 0 replies; 12+ messages in thread
From: cvs-commit at gcc dot gnu.org @ 2024-01-07 1:00 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112997
--- Comment #9 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:8c5d00f8291d718ef64c742b9c971e16f75e5074
commit r14-6975-g8c5d00f8291d718ef64c742b9c971e16f75e5074
Author: Jonathan Wakely <jwakely@redhat.com>
Date: Wed Dec 13 09:45:44 2023 +0000
libstdc++: Avoid conflicting declaration in eh_call.cc [PR112997]
r14-1527-g2415024e0f81f8 changed the parameter of the
__cxa_call_terminate definition, but there's also a declaration in
unwind-cxx.h which should have been changed too.
libstdc++-v3/ChangeLog:
PR libstdc++/112997
* libsupc++/unwind-cxx.h (__cxa_call_terminate): Change first
parameter to void*.
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Bug libstdc++/112997] _Unwind_Exception conflicts with void*. failed to build with clang
2023-12-13 7:55 [Bug libstdc++/112997] New: _Unwind_Exception conflicts with void*. failed to build with clang unlvsur at live dot com
` (8 preceding siblings ...)
2024-01-07 1:00 ` cvs-commit at gcc dot gnu.org
@ 2024-01-07 1:01 ` redi at gcc dot gnu.org
2024-01-08 10:11 ` tschwinge at gcc dot gnu.org
10 siblings, 0 replies; 12+ messages in thread
From: redi at gcc dot gnu.org @ 2024-01-07 1:01 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112997
Jonathan Wakely <redi at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Resolution|WONTFIX |FIXED
Target Milestone|--- |14.0
--- Comment #10 from Jonathan Wakely <redi at gcc dot gnu.org> ---
Fixed
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Bug libstdc++/112997] _Unwind_Exception conflicts with void*. failed to build with clang
2023-12-13 7:55 [Bug libstdc++/112997] New: _Unwind_Exception conflicts with void*. failed to build with clang unlvsur at live dot com
` (9 preceding siblings ...)
2024-01-07 1:01 ` redi at gcc dot gnu.org
@ 2024-01-08 10:11 ` tschwinge at gcc dot gnu.org
10 siblings, 0 replies; 12+ messages in thread
From: tschwinge at gcc dot gnu.org @ 2024-01-08 10:11 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112997
Thomas Schwinge <tschwinge at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |jason at gcc dot gnu.org,
| |tschwinge at gcc dot gnu.org
--- Comment #11 from Thomas Schwinge <tschwinge at gcc dot gnu.org> ---
ACK; I had the same change in my WIP tree:
In my GCN and nvptx target libstdc++ work (WIP), I see:
[...]/source-gcc/libstdc++-v3/libsupc++/eh_call.cc:39:1: error:
conflicting C language linkage declaration ‘void __cxa_call_terminate(void*)’
[-Werror]
39 | __cxa_call_terminate(void* ue_header_in) throw ()
| ^~~~~~~~~~~~~~~~~~~~
In file included from
[...]/source-gcc/libstdc++-v3/libsupc++/eh_call.cc:28:
[...]/source-gcc/libstdc++-v3/libsupc++/unwind-cxx.h:170:17: note:
previous declaration ‘void
__cxxabiv1::__cxa_call_terminate(_Unwind_Exception*)’
170 | extern "C" void __cxa_call_terminate (_Unwind_Exception*) throw
()
| ^~~~~~~~~~~~~~~~~~~~
cc1plus: all warnings being treated as errors
make[4]: *** [eh_call.lo] Error 1
^ permalink raw reply [flat|nested] 12+ messages in thread
end of thread, other threads:[~2024-01-08 10:11 UTC | newest]
Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-12-13 7:55 [Bug libstdc++/112997] New: _Unwind_Exception conflicts with void*. failed to build with clang unlvsur at live dot com
2023-12-13 8:01 ` [Bug libstdc++/112997] " pinskia at gcc dot gnu.org
2023-12-13 8:01 ` pinskia at gcc dot gnu.org
2023-12-13 9:25 ` redi at gcc dot gnu.org
2023-12-13 22:43 ` unlvsur at live dot com
2023-12-14 0:29 ` pinskia at gcc dot gnu.org
2023-12-14 0:54 ` redi at gcc dot gnu.org
2023-12-14 2:15 ` unlvsur at live dot com
2023-12-14 10:37 ` arsen at gcc dot gnu.org
2024-01-07 1:00 ` cvs-commit at gcc dot gnu.org
2024-01-07 1:01 ` redi at gcc dot gnu.org
2024-01-08 10:11 ` tschwinge 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).