Skip to content

Failed to build the AUR package on CachyOS #173

Description

@rempas

I'm trying to build the AUR package and I do get an error when building SDL2. More specific:

/home/rempas/.cache/paru/clone/joyshockmapper-git/src/JoyShockMapper/build/_deps/sdl2-src/src/audio/pipewire/SDL_pipewire.c: In function ‘node_event_info’:
/home/rempas/.cache/paru/clone/joyshockmapper-git/src/JoyShockMapper/build/_deps/sdl2-src/src/audio/pipewire/SDL_pipewire.c:593:37: error: passing argument 1 of ‘pw_node_enum_params’ from incompatible pointer type [-Wincompatible-pointer-types]
  593 |             pw_node_enum_params(node->proxy, 0, info->params[i].id, 0, 0, NULL);
      |                                 ~~~~^~~~~~~
      |                                     |
      |                                     struct pw_proxy *
In file included from /usr/include/pipewire-0.3/pipewire/pipewire.h:30,
                 from /home/rempas/.cache/paru/clone/joyshockmapper-git/src/JoyShockMapper/build/_deps/sdl2-src/src/audio/pipewire/SDL_pipewire.h:28,
                 from /home/rempas/.cache/paru/clone/joyshockmapper-git/src/JoyShockMapper/build/_deps/sdl2-src/src/audio/pipewire/SDL_pipewire.c:29:
/usr/include/pipewire-0.3/pipewire/node.h:208:58: note: expected ‘struct pw_node *’ but argument is of type ‘struct pw_proxy *’
  208 | PW_API_NODE_IMPL int pw_node_enum_params(struct pw_node *object,
      |                                          ~~~~~~~~~~~~~~~~^~~~~~
make[2]: *** [_deps/sdl2-build/CMakeFiles/SDL2-static.dir/build.make:2165: _deps/sdl2-build/CMakeFiles/SDL2-static.dir/src/audio/pipewire/SDL_pipewire.c.o] Error 1
make[2]: *** Waiting for unfinished jobs....
[ 66%] Building C object _deps/sdl2-build/CMakeFiles/SDL2-static.dir/src/video/x11/SDL_x11modes.c.o
[ 66%] Building C object _deps/sdl2-build/CMakeFiles/SDL2-static.dir/src/video/x11/SDL_x11messagebox.c.o
make[1]: *** [CMakeFiles/Makefile2:265: _deps/sdl2-build/CMakeFiles/SDL2.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
make[1]: *** [CMakeFiles/Makefile2:297: _deps/sdl2-build/CMakeFiles/SDL2-static.dir/all] Error 2
make: *** [Makefile:136: all] Error 2
==> ERROR: A failure occurred in build().
    Aborting...
error: failed to build 'joyshockmapper-git-v1.6.1.r3.g084480c-2':

Is there a chance changing the package to sdl2-compact or even better porting to sdl3 fix it?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions