[GH-ISSUE #486] Compilation fails on Arch Linux #98

Closed
opened 2026-02-27 21:04:33 +03:00 by kerem · 7 comments
Owner

Originally created by @wantija on GitHub (Aug 20, 2024).
Original GitHub issue: https://github.com/shadps4-emu/shadPS4/issues/486

Compilation fails, here's the log. Using the shadps4-git pkgbuild from the AUR if that helps.

[ 20%] Built target sirit
In file included from /build/shadps4-git/src/shadps4/externals/tracy/public/TracyClient.cpp:25:
/build/shadps4-git/src/shadps4/externals/tracy/public/client/TracySysPower.cpp: In member function ‘void tracy::SysPower::ScanDirectory(const char*, int)’:
/build/shadps4-git/src/shadps4/externals/tracy/public/client/TracySysPower.cpp:88:27: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
   88 |                     fscanf( f, "%" PRIu64, &maxRange );
      |                     ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~
[ 20%] Linking CXX static library libTracyClient.a
[ 20%] Built target TracyClient
[ 20%] Built target shadps4_autogen_timestamp_deps
[ 20%] Automatic MOC and UIC for target shadps4
AutoGen warning: "SRC:/src/shader_recompiler/frontend/translate/flat_memory.cpp" is empty.

[ 20%] Built target shadps4_autogen

[...]

[ 27%] Building CXX object CMakeFiles/shadps4.dir/src/sdl_window.cpp.o
In file included from /build/shadps4-git/src/shadps4/src/audio_core/sdl_audio.cpp:10:
/usr/include/SDL3/SDL_init.h:98:74: error: ‘SDL_Event’ does not name a type
   98 | typedef SDL_AppResult (SDLCALL *SDL_AppEvent_func)(void *appstate, const SDL_Event *event);
      |                                                                          ^~~~~~~~~
make[2]: *** [CMakeFiles/shadps4.dir/build.make:125: CMakeFiles/shadps4.dir/src/audio_core/sdl_audio.cpp.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[1]: *** [CMakeFiles/Makefile2:223: CMakeFiles/shadps4.dir/all] Error 2
make: *** [Makefile:136: all] Error 2
==> ERROR: A failure occurred in build().
    Aborting...
==> ERROR: Build failed, check /home/user/chroot/user/build
Originally created by @wantija on GitHub (Aug 20, 2024). Original GitHub issue: https://github.com/shadps4-emu/shadPS4/issues/486 Compilation fails, here's the log. Using the shadps4-git pkgbuild from the AUR if that helps. ```[ 20%] Linking CXX static library libsirit.a [ 20%] Built target sirit In file included from /build/shadps4-git/src/shadps4/externals/tracy/public/TracyClient.cpp:25: /build/shadps4-git/src/shadps4/externals/tracy/public/client/TracySysPower.cpp: In member function ‘void tracy::SysPower::ScanDirectory(const char*, int)’: /build/shadps4-git/src/shadps4/externals/tracy/public/client/TracySysPower.cpp:88:27: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 88 | fscanf( f, "%" PRIu64, &maxRange ); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~ [ 20%] Linking CXX static library libTracyClient.a [ 20%] Built target TracyClient [ 20%] Built target shadps4_autogen_timestamp_deps [ 20%] Automatic MOC and UIC for target shadps4 AutoGen warning: "SRC:/src/shader_recompiler/frontend/translate/flat_memory.cpp" is empty. [ 20%] Built target shadps4_autogen [...] [ 27%] Building CXX object CMakeFiles/shadps4.dir/src/sdl_window.cpp.o In file included from /build/shadps4-git/src/shadps4/src/audio_core/sdl_audio.cpp:10: /usr/include/SDL3/SDL_init.h:98:74: error: ‘SDL_Event’ does not name a type 98 | typedef SDL_AppResult (SDLCALL *SDL_AppEvent_func)(void *appstate, const SDL_Event *event); | ^~~~~~~~~ make[2]: *** [CMakeFiles/shadps4.dir/build.make:125: CMakeFiles/shadps4.dir/src/audio_core/sdl_audio.cpp.o] Error 1 make[2]: *** Waiting for unfinished jobs.... make[1]: *** [CMakeFiles/Makefile2:223: CMakeFiles/shadps4.dir/all] Error 2 make: *** [Makefile:136: all] Error 2 ==> ERROR: A failure occurred in build(). Aborting... ==> ERROR: Build failed, check /home/user/chroot/user/build ```
kerem closed this issue 2026-02-27 21:04:33 +03:00
Author
Owner

@georgemoralis commented on GitHub (Aug 20, 2024):

It is quite obvious that your sdl has issues try update it to latest

<!-- gh-comment-id:2298138432 --> @georgemoralis commented on GitHub (Aug 20, 2024): It is quite obvious that your sdl has issues try update it to latest
Author
Owner

@wantija commented on GitHub (Aug 20, 2024):

hmm doesn't compile with latest git of sdl3... upstream bug possibly or something with my setup?

<!-- gh-comment-id:2298153054 --> @wantija commented on GitHub (Aug 20, 2024): hmm doesn't compile with latest git of sdl3... upstream bug possibly or something with my setup?
Author
Owner

@georgemoralis commented on GitHub (Aug 20, 2024):

We don't use the latest sdl3 upstream. Maybe they changed something since sdl3 changes quite often their API. I will try a bit later to update and check

<!-- gh-comment-id:2298185346 --> @georgemoralis commented on GitHub (Aug 20, 2024): We don't use the latest sdl3 upstream. Maybe they changed something since sdl3 changes quite often their API. I will try a bit later to update and check
Author
Owner

@abouvier commented on GitHub (Aug 20, 2024):

It seems they forgot to include SDL_events.h in SDL_init.h following this PR: https://github.com/libsdl-org/SDL/pull/10555

<!-- gh-comment-id:2298968332 --> @abouvier commented on GitHub (Aug 20, 2024): It seems they forgot to include `SDL_events.h` in `SDL_init.h` following this PR: https://github.com/libsdl-org/SDL/pull/10555
Author
Owner

@0xMillyByte commented on GitHub (Aug 20, 2024):

unable to reproduce on arch linux

<!-- gh-comment-id:2298979564 --> @0xMillyByte commented on GitHub (Aug 20, 2024): unable to reproduce on arch linux
Author
Owner

@abouvier commented on GitHub (Aug 20, 2024):

unable to reproduce on arch linux

Of course, it's fixed now :p

<!-- gh-comment-id:2298993599 --> @abouvier commented on GitHub (Aug 20, 2024): > unable to reproduce on arch linux Of course, it's [fixed](https://aur.archlinux.org/cgit/aur.git/commit/?h=shadps4-git&id=f202ccca2c009ca621d5ba8b3ab3a7796e3d2f21) now :p
Author
Owner

@wantija commented on GitHub (Aug 20, 2024):

yep looks like the new pkgbuild fixed it, thanks!

<!-- gh-comment-id:2299076673 --> @wantija commented on GitHub (Aug 20, 2024): yep looks like the new pkgbuild fixed it, thanks!
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/shadPS4#98
No description provided.