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

Wayland build fails #176

Open
SHU-red opened this issue Jul 11, 2024 · 1 comment
Open

Wayland build fails #176

SHU-red opened this issue Jul 11, 2024 · 1 comment

Comments

@SHU-red
Copy link

SHU-red commented Jul 11, 2024

I recently tried to fix my go-release-action used to build my fyne application with this configuration

on:
  release:
    types: [published]

permissions:
  contents: write
  packages: write

name: build_linux

jobs:
  release-linux-amd64_x11:
    name: release linux/amd64 X11
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v4
      - uses: wangyoucao577/go-release-action@v1
        with:
          github_token: ${{ secrets.BUILD }}
          goos: linux
          goarch: amd64
          pre_command: "apt-get -y update ; apt-get -y upgrade ; apt-get -y -f install libasound2-dev libudev-dev ; apt-get -y -f install alsa-utils alsa-tools libgl1-mesa-dev xorg-dev"
          binary_name: xxxx_X11
  release-linux-amd64_wayland:
    name: release linux/amd64 Wayland
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v4
      - uses: wangyoucao577/go-release-action@v1
        with:
          github_token: ${{ secrets.BUILD }}
          goos: linux
          goarch: amd64
          pre_command: "apt-get -y update ; apt-get -y upgrade ; apt -y -f install libasound2-dev libudev-dev libsdl2-dev ; apt-get -y -f install alsa-utils alsa-tools libgl1-mesa-dev xorg-dev libwayland-dev libxkbcommon-dev qtwayland5 libwayland-egl-backend-dev libnvidia-egl-wayland-dev libegl1-mesa-dev"
          build_flags: -tags wayland
          binary_name: xxxx_Wayland

It breaks somehow on glfw stuff
I tried installing additional packages

Can someone help me figuring out where the problem could be?

 # github.com/go-gl/glfw/v3.3/glfw
In file included from ./glfw/src/wl_platform.h:59,
                 from ./glfw/src/internal.h:190,
                 from /go/pkg/mod/github.com/go-gl/glfw/v3.3/[email protected]/vulkan.go:4:
./glfw/src/wayland-xdg-shell-client-protocol.h: In function 'xdg_wm_base_destroy':
./glfw/src/wayland-xdg-shell-client-protocol.h:495:87: error: 'WL_MARSHAL_FLAG_DESTROY' undeclared (first use in this function); did you mean 'WL_SHM_POOL_DESTROY'?
     XDG_WM_BASE_DESTROY, NULL, wl_proxy_get_version((struct wl_proxy *) xdg_wm_base), WL_MARSHAL_FLAG_DESTROY);
                                                                                       ^~~~~~~~~~~~~~~~~~~~~~~
                                                                                       WL_SHM_POOL_DESTROY
./glfw/src/wayland-xdg-shell-client-protocol.h:495:87: note: each undeclared identifier is reported only once for each function it appears in
In file included from ./glfw/src/wl_platform.h:59,
                 from ./glfw/src/internal.h:190,
                 from /go/pkg/mod/github.com/go-gl/glfw/v3.3/[email protected]/vulkan.go:4:
./glfw/src/wayland-xdg-shell-client-protocol.h: In function 'xdg_positioner_destroy':
./glfw/src/wayland-xdg-shell-client-protocol.h:788:93: error: 'WL_MARSHAL_FLAG_DESTROY' undeclared (first use in this function); did you mean 'WL_SHM_POOL_DESTROY'?
     XDG_POSITIONER_DESTROY, NULL, wl_proxy_get_version((struct wl_proxy *) xdg_positioner), WL_MARSHAL_FLAG_DESTROY);
                                                                                             ^~~~~~~~~~~~~~~~~~~~~~~
                                                                                             WL_SHM_POOL_DESTROY
./glfw/src/wayland-xdg-shell-client-protocol.h: In function 'xdg_surface_destroy':
./glfw/src/wayland-xdg-shell-client-protocol.h:1097:87: error: 'WL_MARSHAL_FLAG_DESTROY' undeclared (first use in this function); did you mean 'WL_SHM_POOL_DESTROY'?
     XDG_SURFACE_DESTROY, NULL, wl_proxy_get_version((struct wl_proxy *) xdg_surface), WL_MARSHAL_FLAG_DESTROY);
                                                                                       ^~~~~~~~~~~~~~~~~~~~~~~
                                                                                       WL_SHM_POOL_DESTROY
./glfw/src/wayland-xdg-shell-client-protocol.h: In function 'xdg_toplevel_destroy':
./glfw/src/wayland-xdg-shell-client-protocol.h:1654:89: error: 'WL_MARSHAL_FLAG_DESTROY' undeclared (first use in this function); did you mean 'WL_SHM_POOL_DESTROY'?
     XDG_TOPLEVEL_DESTROY, NULL, wl_proxy_get_version((struct wl_proxy *) xdg_toplevel), WL_MARSHAL_FLAG_DESTROY);
                                                                                         ^~~~~~~~~~~~~~~~~~~~~~~
                                                                                         WL_SHM_POOL_DESTROY
./glfw/src/wayland-xdg-shell-client-protocol.h: In function 'xdg_popup_destroy':
./glfw/src/wayland-xdg-shell-client-protocol.h:2218:83: error: 'WL_MARSHAL_FLAG_DESTROY' undeclared (first use in this function); did you mean 'WL_SHM_POOL_DESTROY'?
     XDG_POPUP_DESTROY, NULL, wl_proxy_get_version((struct wl_proxy *) xdg_popup), WL_MARSHAL_FLAG_DESTROY);
                                                                                   ^~~~~~~~~~~~~~~~~~~~~~~
                                                                                   WL_SHM_POOL_DESTROY
In file included from ./glfw/src/wl_platform.h:60,
                 from ./glfw/src/internal.h:190,
                 from /go/pkg/mod/github.com/go-gl/glfw/v3.3/[email protected]/vulkan.go:4:
./glfw/src/wayland-xdg-decoration-client-protocol.h: In function 'zxdg_decoration_manager_v1_destroy':
./glfw/src/wayland-xdg-decoration-client-protocol.h:178:117: error: 'WL_MARSHAL_FLAG_DESTROY' undeclared (first use in this function); did you mean 'WL_SHM_POOL_DESTROY'?
     ZXDG_DECORATION_MANAGER_V1_DESTROY, NULL, wl_proxy_get_version((struct wl_proxy *) zxdg_decoration_manager_v1), WL_MARSHAL_FLAG_DESTROY);
                                                                                                                     ^~~~~~~~~~~~~~~~~~~~~~~
                                                                                                                     WL_SHM_POOL_DESTROY
In file included from ./glfw/src/wl_platform.h:60,
                 from ./glfw/src/internal.h:190,
                 from /go/pkg/mod/github.com/go-gl/glfw/v3.3/[email protected]/vulkan.go:4:
./glfw/src/wayland-xdg-decoration-client-protocol.h: In function 'zxdg_toplevel_decoration_v1_destroy':
./glfw/src/wayland-xdg-decoration-client-protocol.h:326:119: error: 'WL_MARSHAL_FLAG_DESTROY' undeclared (first use in this function); did you mean 'WL_SHM_POOL_DESTROY'?
     ZXDG_TOPLEVEL_DECORATION_V1_DESTROY, NULL, wl_proxy_get_version((struct wl_proxy *) zxdg_toplevel_decoration_v1), WL_MARSHAL_FLAG_DESTROY);
                                                                                                                       ^~~~~~~~~~~~~~~~~~~~~~~
                                                                                                                       WL_SHM_POOL_DESTROY
In file included from ./glfw/src/wl_platform.h:61,
                 from ./glfw/src/internal.h:190,
                 from /go/pkg/mod/github.com/go-gl/glfw/v3.3/[email protected]/vulkan.go:4:
./glfw/src/wayland-viewporter-client-protocol.h: In function 'wp_viewporter_destroy':
./glfw/src/wayland-viewporter-client-protocol.h:255:91: error: 'WL_MARSHAL_FLAG_DESTROY' undeclared (first use in this function); did you mean 'WL_SHM_POOL_DESTROY'?
     WP_VIEWPORTER_DESTROY, NULL, wl_proxy_get_version((struct wl_proxy *) wp_viewporter), WL_MARSHAL_FLAG_DESTROY);
                                                                                           ^~~~~~~~~~~~~~~~~~~~~~~
                                                                                           WL_SHM_POOL_DESTROY
In file included from ./glfw/src/wl_platform.h:61,
                 from ./glfw/src/internal.h:190,
                 from /go/pkg/mod/github.com/go-gl/glfw/v3.3/[email protected]/vulkan.go:4:
./glfw/src/wayland-viewporter-client-protocol.h: In function 'wp_viewport_destroy':
./glfw/src/wayland-viewporter-client-protocol.h:347:87: error: 'WL_MARSHAL_FLAG_DESTROY' undeclared (first use in this function); did you mean 'WL_SHM_POOL_DESTROY'?
     WP_VIEWPORT_DESTROY, NULL, wl_proxy_get_version((struct wl_proxy *) wp_viewport), WL_MARSHAL_FLAG_DESTROY);
                                                                                       ^~~~~~~~~~~~~~~~~~~~~~~
                                                                                       WL_SHM_POOL_DESTROY
In file included from ./glfw/src/wl_platform.h:62,
                 from ./glfw/src/internal.h:190,
                 from /go/pkg/mod/github.com/go-gl/glfw/v3.3/[email protected]/vulkan.go:4:
./glfw/src/wayland-relative-pointer-unstable-v1-client-protocol.h: In function 'zwp_relative_pointer_manager_v1_destroy':
./glfw/src/wayland-relative-pointer-unstable-v1-client-protocol.h:162:127: error: 'WL_MARSHAL_FLAG_DESTROY' undeclared (first use in this function); did you mean 'WL_SHM_POOL_DESTROY'?
     ZWP_RELATIVE_POINTER_MANAGER_V1_DESTROY, NULL, wl_proxy_get_version((struct wl_proxy *) zwp_relative_pointer_manager_v1), WL_MARSHAL_FLAG_DESTROY);
                                                                                                                               ^~~~~~~~~~~~~~~~~~~~~~~
                                                                                                                               WL_SHM_POOL_DESTROY
./glfw/src/wayland-relative-pointer-unstable-v1-client-protocol.h: In function 'zwp_relative_pointer_v1_destroy':
./glfw/src/wayland-relative-pointer-unstable-v1-client-protocol.h:290:111: error: 'WL_MARSHAL_FLAG_DESTROY' undeclared (first use in this function); did you mean 'WL_SHM_POOL_DESTROY'?
     ZWP_RELATIVE_POINTER_V1_DESTROY, NULL, wl_proxy_get_version((struct wl_proxy *) zwp_relative_pointer_v1), WL_MARSHAL_FLAG_DESTROY);
                                                                                                               ^~~~~~~~~~~~~~~~~~~~~~~
                                                                                                               WL_SHM_POOL_DESTROY
In file included from ./glfw/src/wl_platform.h:63,
                 from ./glfw/src/internal.h:190,
                 from /go/pkg/mod/github.com/go-gl/glfw/v3.3/[email protected]/vulkan.go:4:
./glfw/src/wayland-pointer-constraints-unstable-v1-client-protocol.h: In function 'zwp_pointer_constraints_v1_destroy':
./glfw/src/wayland-pointer-constraints-unstable-v1-client-protocol.h:323:117: error: 'WL_MARSHAL_FLAG_DESTROY' undeclared (first use in this function); did you mean 'WL_SHM_POOL_DESTROY'?
     ZWP_POINTER_CONSTRAINTS_V1_DESTROY, NULL, wl_proxy_get_version((struct wl_proxy *) zwp_pointer_constraints_v1), WL_MARSHAL_FLAG_DESTROY);
                                                                                                                     ^~~~~~~~~~~~~~~~~~~~~~~
                                                                                                                     WL_SHM_POOL_DESTROY
In file included from ./glfw/src/wl_platform.h:63,
                 from ./glfw/src/internal.h:190,
                 from /go/pkg/mod/github.com/go-gl/glfw/v3.3/[email protected]/vulkan.go:4:
./glfw/src/wayland-pointer-constraints-unstable-v1-client-protocol.h: In function 'zwp_locked_pointer_v1_destroy':
./glfw/src/wayland-pointer-constraints-unstable-v1-client-protocol.h:501:107: error: 'WL_MARSHAL_FLAG_DESTROY' undeclared (first use in this function); did you mean 'WL_SHM_POOL_DESTROY'?
     ZWP_LOCKED_POINTER_V1_DESTROY, NULL, wl_proxy_get_version((struct wl_proxy *) zwp_locked_pointer_v1), WL_MARSHAL_FLAG_DESTROY);
                                                                                                           ^~~~~~~~~~~~~~~~~~~~~~~
                                                                                                           WL_SHM_POOL_DESTROY
./glfw/src/wayland-pointer-constraints-unstable-v1-client-protocol.h: In function 'zwp_confined_pointer_v1_destroy':
./glfw/src/wayland-pointer-constraints-unstable-v1-client-protocol.h:633:111: error: 'WL_MARSHAL_FLAG_DESTROY' undeclared (first use in this function); did you mean 'WL_SHM_POOL_DESTROY'?
     ZWP_CONFINED_POINTER_V1_DESTROY, NULL, wl_proxy_get_version((struct wl_proxy *) zwp_confined_pointer_v1), WL_MARSHAL_FLAG_DESTROY);
                                                                                                               ^~~~~~~~~~~~~~~~~~~~~~~
                                                                                                               WL_SHM_POOL_DESTROY
In file included from ./glfw/src/wl_platform.h:64,
                 from ./glfw/src/internal.h:190,
                 from /go/pkg/mod/github.com/go-gl/glfw/v3.3/[email protected]/vulkan.go:4:
./glfw/src/wayland-idle-inhibit-unstable-v1-client-protocol.h: In function 'zwp_idle_inhibit_manager_v1_destroy':
./glfw/src/wayland-idle-inhibit-unstable-v1-client-protocol.h:169:119: error: 'WL_MARSHAL_FLAG_DESTROY' undeclared (first use in this function); did you mean 'WL_SHM_POOL_DESTROY'?
     ZWP_IDLE_INHIBIT_MANAGER_V1_DESTROY, NULL, wl_proxy_get_version((struct wl_proxy *) zwp_idle_inhibit_manager_v1), WL_MARSHAL_FLAG_DESTROY);
                                                                                                                       ^~~~~~~~~~~~~~~~~~~~~~~
                                                                                                                       WL_SHM_POOL_DESTROY
In file included from ./glfw/src/wl_platform.h:64,
                 from ./glfw/src/internal.h:190,
                 from /go/pkg/mod/github.com/go-gl/glfw/v3.3/[email protected]/vulkan.go:4:
./glfw/src/wayland-idle-inhibit-unstable-v1-client-protocol.h: In function 'zwp_idle_inhibitor_v1_destroy':
./glfw/src/wayland-idle-inhibit-unstable-v1-client-protocol.h:225:107: error: 'WL_MARSHAL_FLAG_DESTROY' undeclared (first use in this function); did you mean 'WL_SHM_POOL_DESTROY'?
     ZWP_IDLE_INHIBITOR_V1_DESTROY, NULL, wl_proxy_get_version((struct wl_proxy *) zwp_idle_inhibitor_v1), WL_MARSHAL_FLAG_DESTROY);
                                                                                                           ^~~~~~~~~~~~~~~~~~~~~~~
                                                                                                           WL_SHM_POOL_DESTROY
++ rm -rf /tmp/tmp.W892Q6qDf2
+ rm -rf /tmp/tmp.W892Q6qDf2
@SHU-red
Copy link
Author

SHU-red commented Jul 11, 2024

Forgot to mention:

  • X11 build works
  • Wayland build breaks showing the log above

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant