Opened 14 months ago

Closed 13 months ago

Last modified 4 months ago

#10405 closed defect (fixed)

Building on MSYS2/Mingw-w64 currently completely broken

Reported by: rootfather Owned by: rootfather
Priority: high Component: Port: Win64
Keywords: Cc:
Game:

Description

After some time of absence, I tried to build ScummVM on a freshly updated MSYS2/Mingw-w64 environment. It seems that building is currently broken. I tried to build v2.0.0 which worked fine in the past but it failed too, so this might be introduced by some update to the toolchain.

In file included from C:/msys64/mingw64/include/SDL2/SDL_stdinc.h:66:0,
                 from C:/msys64/mingw64/include/SDL2/SDL_main.h:25,
                 from C:/msys64/mingw64/include/SDL2/SDL.h:32,
                 from ./backends/platform/sdl/sdl-sys.h:151,
                 from ./backends/mixer/sdl/sdl-mixer.h:26,
                 from ./gui/EventRecorder.h:40,
                 from base/main.cpp:45:
C:/msys64/mingw64/x86_64-w64-mingw32/include/wchar.h:55:23: error: conflicting declaration of C function 'FAKE_FILE* __acrt_iob_func(unsigned int)'
 _CRTIMP FILE *__cdecl __acrt_iob_func(unsigned index);
                       ^~~~~~~~~~~~~~~

wjp suggested to build with --disable-eventrecorder, but this results in many more errors in backends/graphics/:

    C++      backends/graphics/opengl/pipelines/clut8.o
In file included from C:/msys64/mingw64/include/SDL2/SDL_stdinc.h:66:0,
                 from C:/msys64/mingw64/include/SDL2/SDL_main.h:25,
                 from C:/msys64/mingw64/include/SDL2/SDL.h:32,
                 from ./backends/platform/sdl/sdl-sys.h:151,
                 from ./backends/graphics/opengl/opengl-sys.h:30,
                 from backends/graphics/opengl/context.cpp:23:
C:/msys64/mingw64/x86_64-w64-mingw32/include/wchar.h:55:23: error: conflicting declaration of C function 'FAKE_FILE* __acrt_iob_func(unsigned int)'
 _CRTIMP FILE *__cdecl __acrt_iob_func(unsigned index);

...

make: *** [Makefile.common:103: backends/graphics/opengl/debug.o] Fehler 1
make: *** Es wird auf noch nicht beendete Prozesse gewartet....
make: *** [Makefile.common:103: backends/graphics/opengl/context.o] Fehler 1
make: *** [Makefile.common:103: backends/graphics/opengl/framebuffer.o] Fehler 1
make: *** [Makefile.common:103: backends/graphics/opengl/shader.o] Fehler 1
make: *** [Makefile.common:103: backends/graphics/opengl/opengl-graphics.o] Fehler 1
make: *** [Makefile.common:103: backends/graphics/opengl/texture.o] Fehler 1
make: *** [Makefile.common:103: backends/graphics/opengl/pipelines/clut8.o] Fehler 1
make: *** [Makefile.common:103: backends/graphics/opengl/pipelines/fixed.o] Fehler 1
make: *** [Makefile.common:103: backends/graphics/opengl/pipelines/pipeline.o] Fehler 1
make: *** [Makefile.common:103: backends/graphics/opengl/pipelines/shader.o] Fehler 1
make: *** [Makefile.common:103: backends/events/sdl/sdl-events.o] Fehler 1

Change History (3)

comment:1 Changed 13 months ago by rootfather

Owner: set to rootfather
Resolution: fixed
Status: newclosed

comment:2 Changed 10 months ago by bonki

Just for the record, this was fixed in commit f3f508882430221f26d346d532434bf14da9e503.

comment:3 Changed 4 months ago by digitall

Component: PortsPort: Win64
Note: See TracTickets for help on using tickets.