Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Do not use std::quick_exit on macOS with libstdc++ or otherwise fix it: error: 'quick_exit' is not a member of 'std' #7813

Closed
barracuda156 opened this issue Jul 24, 2023 · 3 comments
Labels
Bug Issues involving unexpected behavior. Building Build-time issues. macOS OS-specific issues that apply to Apple macOS.

Comments

@barracuda156
Copy link

Game and System Information

wesnoth 1.16.9
macOS 10.6
GCC 12.3.0

Description of the bug

:info:build /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_games_wesnoth/wesnoth/work/wesnoth-1.16.9/src/gui/dialogs/loading_screen.cpp:185:22: error: 'quick_exit' is not a member of 'std'
:info:build   185 |                 std::quick_exit(0);
:info:build       |                      ^~~~~~~~~~

There is also another error, which seems not to stop the build from proceeding though:

:info:build /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_games_wesnoth/wesnoth/work/wesnoth-1.16.9/src/serialization/schema/type.cpp:38:36: error: 'monostate' in namespace 'std' does not name a type
:info:build    38 |         bool operator()(const std::monostate&) const
:info:build       |                                    ^~~~~~~~~

Steps to reproduce the behavior

Build with GCC on macOS

Expected behavior

It should build fine :)

Additional context

See the comment of @ryandesign on some details: https://trac.macports.org/ticket/67811#comment:1

@barracuda156 barracuda156 added the Bug Issues involving unexpected behavior. label Jul 24, 2023
soliton- added a commit that referenced this issue Jul 24, 2023
Fixes part of #7813.
soliton- added a commit that referenced this issue Jul 24, 2023
Fixes part of #7813.
@soliton-
Copy link
Member

Should be fixed with 6ce218f. Thanks for the report!

CelticMinstrel added a commit that referenced this issue Jul 24, 2023
Fixes the other error noted in #7813
@Wedge009 Wedge009 added macOS OS-specific issues that apply to Apple macOS. Building Build-time issues. labels Jul 24, 2023
CelticMinstrel added a commit that referenced this issue Jul 24, 2023
Fixes the other error noted in #7813
@CelticMinstrel
Copy link
Member

I also fixed your second error.

@barracuda156
Copy link
Author

@CelticMinstrel Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Issues involving unexpected behavior. Building Build-time issues. macOS OS-specific issues that apply to Apple macOS.
Projects
None yet
Development

No branches or pull requests

4 participants