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

Build broken with gcc-4.9.4 on OpenBSD #3295

Closed
yason opened this issue Jul 1, 2018 · 6 comments
Closed

Build broken with gcc-4.9.4 on OpenBSD #3295

yason opened this issue Jul 1, 2018 · 6 comments
Labels
BSD OS-specific issues that apply to BSD derivatives. Bug Issues involving unexpected behavior. Building Build-time issues. Stable 1.14 Issues specific to the Wesnoth 1.14 maintenance branch.

Comments

@yason
Copy link

yason commented Jul 1, 2018

Hi!
1.14.3 compiles fine with clang-6.0.0 on OpenBSD but fails when compiling witj gcc-4.9.4:
FAILED: src/CMakeFiles/wesnoth-client.dir/gui/dialogs/loading_screen.cpp.o
/tmp/pobj/wesnoth-1.14.3/bin/c++ -DFIFODIR="/var/wesnothd" -DHAS_RELATIVE_LOCALEDIR=1 -DHAVE_CONFIG_H -DHAVE_FRIBIDI -DHAVE_LIBDBUS -DLOCALEDIR="translations" -DLUA_USE_POSIX -DWESNOTH_PATH="/usr/local/share/wesnoth" -D_X11 -isystem /usr/X11R6/include -isystem /usr/X11R6/include/freetype2 -isystem /usr/local/include/pango-1.0 -isystem /usr/local/include/harfbuzz -isystem /usr/local/include -isystem /usr/local/include/fribidi -isystem /usr/local/include/cairo -isystem /usr/local/include/glib-2.0 -isystem /usr/local/lib/glib-2.0/include -isystem /usr/X11R6/include/pixman-1 -isystem /usr/local/include/libpng16 -isystem /usr/local/include/dbus-1.0 -isystem /usr/local/lib/dbus-1.0/include -isystem /usr/local/include/SDL2 -I/tmp/pobj/wesnoth-1.14.3/wesnoth-1.14.3/src -Isrc -std=c++11 -Wall -Wextra -Werror=non-virtual-dtor -Wno-unused-local-typedefs -Wno-maybe-uninitialized -Wold-style-cast -O2 -pipe -I/usr/local/include -I/usr/local/include/SDL2 -I/usr/X11R6/include -D_REENTRANT -I/usr/X11R6/include -MD -MT src/CMakeFiles/wesnoth-client.dir/gui/dialogs/loading_screen.cpp.o -MF src/CMakeFiles/wesnoth-client.dir/gui/dialogs/loading_screen.cpp.o.d -o src/CMakeFiles/wesnoth-client.dir/gui/dialogs/loading_screen.cpp.o -c /tmp/pobj/wesnoth-1.14.3/wesnoth-1.14.3/src/gui/dialogs/loading_screen.cpp
/tmp/pobj/wesnoth-1.14.3/wesnoth-1.14.3/src/gui/dialogs/loading_screen.cpp: In destructor 'virtual gui2::dialogs::loading_screen::~loading_screen()':
/tmp/pobj/wesnoth-1.14.3/wesnoth-1.14.3/src/gui/dialogs/loading_screen.cpp:208:3: error: 'quick_exit' is not a member of 'std'
std::quick_exit(0);
^

It compiles with gcc-4.9.4 when #else std::quick_exit(0) is removed.
Probably another define needed to use std::_Exit(0) instead of std::quick_exit(0) with gcc4.

@jyrkive
Copy link
Member

jyrkive commented Jul 1, 2018

That's strange. We use continuous integration with Travis CI. It builds every commit to the 1.14 branch with GCC 4.8.4 on GNU/Linux, and is working just fine.

https://travis-ci.org/wesnoth/wesnoth/jobs/398687879

@jyrkive jyrkive added Building Build-time issues. BSD OS-specific issues that apply to BSD derivatives. labels Jul 1, 2018
@gfgtdf
Copy link
Contributor

gfgtdf commented Jul 1, 2018

also note that master will no longer support gcc 4.x so this bug applies only to the 1.14 branch

@Vultraz Vultraz added the Stable 1.14 Issues specific to the Wesnoth 1.14 maintenance branch. label Jul 1, 2018
@Pentarctagon
Copy link
Member

Pentarctagon commented Jul 1, 2018

@jyrkive That's the travis version of GCC, not the docker version. Docker's GCC version for 1.14 is 5.4:
https://travis-ci.org/wesnoth/wesnoth/jobs/398687879#L494

@Vultraz Vultraz added the Needs more info Issues deemed to contain insufficient information for reproducing or fixing. label Jul 7, 2018
@yason
Copy link
Author

yason commented Aug 7, 2018

What additional info could help?

@jyrkive
Copy link
Member

jyrkive commented Aug 8, 2018

@yason This bug report doesn't need any more info. The label was incorrect.

@jyrkive jyrkive removed the Needs more info Issues deemed to contain insufficient information for reproducing or fixing. label Aug 8, 2018
@Wedge009 Wedge009 added Bug Issues involving unexpected behavior. Stable 1.14 Issues specific to the Wesnoth 1.14 maintenance branch. and removed Stable 1.14 Issues specific to the Wesnoth 1.14 maintenance branch. labels Oct 22, 2019
@Pentarctagon
Copy link
Member

Closing as 1.14 isn't intended to get any further releases at this point.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
BSD OS-specific issues that apply to BSD derivatives. Bug Issues involving unexpected behavior. Building Build-time issues. Stable 1.14 Issues specific to the Wesnoth 1.14 maintenance branch.
Projects
None yet
Development

No branches or pull requests

6 participants