Menu

#713 Segfault while compiling DXX-Rebirth

v1.0 (example)
open
nobody
None
9
2018-03-25
2018-03-23
No

While trying to compile the DXX-Rebirth project on Arch Linux using the latest 7.3.0 version of mingw-w64-gcc-bin from the AUR, I receive a segfault:

common/2d/bitblt.cpp: In substitution of template<class F> void dcx::gr_for_each_bitmap_line(grs_canvas&, unsigned int, unsigned int, const grs_bitmap&, F) [with F = <missing>]:
common/2d/bitblt.cpp:96:52:   required from here
common/2d/bitblt.cpp:96:52: internal compiler error: Segmentation fault
  gr_for_each_bitmap_line(canvas, x, y, bm, d_memcpy);
                                                    ^
CXX dxx . common/2d/rect.cpp
Please submit a full bug report,
with preprocessed source if appropriate.
See <https://gcc.gnu.org/bugs/> for instructions.
scons: *** [common/2d/bitblt.o] Error 1
scons: building terminated because of errors.
Failed target count: total=1; targets with enable_build_failure_summary=1: 1
Failed node list:
    common/2d/bitblt.o
Failed command list:
 /usr/bin/i686-w64-mingw32-g++ -c -g -O2 -ftabstop=4 -Wall -Werror=extra -Werror=format=2 -Werror=missing-braces -Werror=missing-include-dirs -Werror=uninitialized -Werror=undef -Werror=pointer-arith -Werror=cast-qual -Werror=missing-declarations -Werror=redundant-decls -Werror=vla -funsigned-char -std=gnu++14 -Werror=unused -Werror=useless-cast -fvisibility=hidden -Wsuggest-attribute=noreturn -Wlogical-op -Wold-style-cast -Wno-format-truncation -Wno-implicit-fallthrough -Wno-sign-compare -D_WIN32 -DWIN32_LEAN_AND_MEAN -DPHYSFS_DEPRECATED= -DNDEBUG -DRELEASE -D_WIN32_WINNT=1536 -Icommon/include -Icommon/main -I. -I/usr/i686-w64-mingw32/include/libpng16 -I/usr/i686-w64-mingw32/include -I/usr/i686-w64-mingw32/include/SDL "common/2d/bitblt.cpp" -o "common/2d/bitblt.o"
Compilation failedn

Discussion

  • NightStrike

    NightStrike - 2018-03-23

    As per that error message, you should open a bug report with gcc and include the full pre-processed source that's causing the problem. It will help greatly if you can get a reduced testcase.

    Also... I love your project! I play it often :)

     
  • John Ackerman

    John Ackerman - 2018-03-25

    Thanks! :) The reason I thought I should report it here instead of with gcc is because the segfault only happens with mingw gcc.

     

    Last edit: John Ackerman 2018-03-25

Log in to post a comment.