public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/98821] New: modules : c++tools configures with CC but code fragments assume CXX.
@ 2021-01-25 13:18 iains at gcc dot gnu.org
2021-07-21 12:41 ` [Bug c++/98821] " cvs-commit at gcc dot gnu.org
` (4 more replies)
0 siblings, 5 replies; 6+ messages in thread
From: iains at gcc dot gnu.org @ 2021-01-25 13:18 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98821
Bug ID: 98821
Summary: modules : c++tools configures with CC but code
fragments assume CXX.
Product: gcc
Version: 11.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
Assignee: unassigned at gcc dot gnu.org
Reporter: iains at gcc dot gnu.org
Target Milestone: ---
On at least Darwin, c++tools misconfigures because of things like:
configure:4019: x86_64-apple-darwin16-gcc -c -g -O2 conftest.c >&5
conftest.c: In function 'main':
conftest.c:30:1: error: unknown type name 'sockaddr_un'; use 'struct' keyword
to refer to the type
30 | sockaddr_un un;
Which leads to the server missing support for networking on Darwin.
Patching the configure fragments to be C-friendly fixes the problem, but
perhaps you intend that the configure should be run with C++?
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug c++/98821] modules : c++tools configures with CC but code fragments assume CXX.
2021-01-25 13:18 [Bug c++/98821] New: modules : c++tools configures with CC but code fragments assume CXX iains at gcc dot gnu.org
@ 2021-07-21 12:41 ` cvs-commit at gcc dot gnu.org
2021-10-24 15:37 ` iains at gcc dot gnu.org
` (3 subsequent siblings)
4 siblings, 0 replies; 6+ messages in thread
From: cvs-commit at gcc dot gnu.org @ 2021-07-21 12:41 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98821
--- Comment #1 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Iain D Sandoe <iains@gcc.gnu.org>:
https://gcc.gnu.org/g:e4d306cf706eef83f99d510c308eda1539d05875
commit r12-2436-ge4d306cf706eef83f99d510c308eda1539d05875
Author: Iain Sandoe <iain@sandoe.co.uk>
Date: Tue Jul 20 14:00:38 2021 +0100
c++tools, configury: Configure with C++; test checking status [PR98821].
The c++tools configure fragments need to be built with a C++ compiler.
In addition, the stand-alone server uses diagnostic mechanisms in common
with GCC, but needs to define implementations for gcc_assert and
supporting output functions.
Signed-off-by: Iain Sandoe <iain@sandoe.co.uk>
PR c++/98821 - modules : c++tools configures with CC but code fragments
assume CXX.
PR c++/98821
c++tools/ChangeLog:
* config.h.in: Regenerate.
* configure: Regenerate.
* configure.ac: Configure using C++. Pull logic to
detect enabled checking modes; default to release
checking.
* server.cc (AI_NUMERICSERV): Define a fallback value.
(gcc_assert): New.
(gcc_unreachable): New.
(fancy_abort): Only build when checking is enabled.
Co-authored-by: Jakub Jelinek <jakub@redhat.com>
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug c++/98821] modules : c++tools configures with CC but code fragments assume CXX.
2021-01-25 13:18 [Bug c++/98821] New: modules : c++tools configures with CC but code fragments assume CXX iains at gcc dot gnu.org
2021-07-21 12:41 ` [Bug c++/98821] " cvs-commit at gcc dot gnu.org
@ 2021-10-24 15:37 ` iains at gcc dot gnu.org
2022-04-21 7:48 ` rguenth at gcc dot gnu.org
` (2 subsequent siblings)
4 siblings, 0 replies; 6+ messages in thread
From: iains at gcc dot gnu.org @ 2021-10-24 15:37 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98821
Iain Sandoe <iains at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |ASSIGNED
Target Milestone|--- |11.3
Assignee|unassigned at gcc dot gnu.org |iains at gcc dot gnu.org
Last reconfirmed| |2021-10-24
Ever confirmed|0 |1
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug c++/98821] modules : c++tools configures with CC but code fragments assume CXX.
2021-01-25 13:18 [Bug c++/98821] New: modules : c++tools configures with CC but code fragments assume CXX iains at gcc dot gnu.org
2021-07-21 12:41 ` [Bug c++/98821] " cvs-commit at gcc dot gnu.org
2021-10-24 15:37 ` iains at gcc dot gnu.org
@ 2022-04-21 7:48 ` rguenth at gcc dot gnu.org
2023-05-18 15:39 ` cvs-commit at gcc dot gnu.org
2023-05-18 15:40 ` iains at gcc dot gnu.org
4 siblings, 0 replies; 6+ messages in thread
From: rguenth at gcc dot gnu.org @ 2022-04-21 7:48 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98821
Richard Biener <rguenth at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|11.3 |11.4
--- Comment #2 from Richard Biener <rguenth at gcc dot gnu.org> ---
GCC 11.3 is being released, retargeting bugs to GCC 11.4.
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug c++/98821] modules : c++tools configures with CC but code fragments assume CXX.
2021-01-25 13:18 [Bug c++/98821] New: modules : c++tools configures with CC but code fragments assume CXX iains at gcc dot gnu.org
` (2 preceding siblings ...)
2022-04-21 7:48 ` rguenth at gcc dot gnu.org
@ 2023-05-18 15:39 ` cvs-commit at gcc dot gnu.org
2023-05-18 15:40 ` iains at gcc dot gnu.org
4 siblings, 0 replies; 6+ messages in thread
From: cvs-commit at gcc dot gnu.org @ 2023-05-18 15:39 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98821
--- Comment #3 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The releases/gcc-11 branch has been updated by Iain D Sandoe
<iains@gcc.gnu.org>:
https://gcc.gnu.org/g:ae5112f230f05e8a693931a44bf2fd20bef58f85
commit r11-10792-gae5112f230f05e8a693931a44bf2fd20bef58f85
Author: Iain Sandoe <iain@sandoe.co.uk>
Date: Tue Jul 20 14:00:38 2021 +0100
c++tools, configury: Configure with C++; test checking status [PR98821].
The c++tools configure fragments need to be built with a C++ compiler.
In addition, the stand-alone server uses diagnostic mechanisms in common
with GCC, but needs to define implementations for gcc_assert and
supporting output functions.
Signed-off-by: Iain Sandoe <iain@sandoe.co.uk>
PR c++/98821 - modules : c++tools configures with CC but code fragments
assume CXX.
PR c++/98821
c++tools/ChangeLog:
* config.h.in: Regenerate.
* configure: Regenerate.
* configure.ac: Configure using C++. Pull logic to
detect enabled checking modes; default to release
checking.
* server.cc (AI_NUMERICSERV): Define a fallback value.
(gcc_assert): New.
(gcc_unreachable): New.
(fancy_abort): Only build when checking is enabled.
Co-authored-by: Jakub Jelinek <jakub@redhat.com>
(cherry picked from commit e4d306cf706eef83f99d510c308eda1539d05875)
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug c++/98821] modules : c++tools configures with CC but code fragments assume CXX.
2021-01-25 13:18 [Bug c++/98821] New: modules : c++tools configures with CC but code fragments assume CXX iains at gcc dot gnu.org
` (3 preceding siblings ...)
2023-05-18 15:39 ` cvs-commit at gcc dot gnu.org
@ 2023-05-18 15:40 ` iains at gcc dot gnu.org
4 siblings, 0 replies; 6+ messages in thread
From: iains at gcc dot gnu.org @ 2023-05-18 15:40 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98821
Iain Sandoe <iains at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution|--- |FIXED
--- Comment #4 from Iain Sandoe <iains at gcc dot gnu.org> ---
fixed on relevant branches.
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2023-05-18 15:40 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-01-25 13:18 [Bug c++/98821] New: modules : c++tools configures with CC but code fragments assume CXX iains at gcc dot gnu.org
2021-07-21 12:41 ` [Bug c++/98821] " cvs-commit at gcc dot gnu.org
2021-10-24 15:37 ` iains at gcc dot gnu.org
2022-04-21 7:48 ` rguenth at gcc dot gnu.org
2023-05-18 15:39 ` cvs-commit at gcc dot gnu.org
2023-05-18 15:40 ` iains 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).