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

xorg-xwayland fails to build on arch (nvidia-explicit-sync) #166

Closed
neurodiverseEsoteric opened this issue Mar 25, 2024 · 6 comments
Closed

Comments

@neurodiverseEsoteric
Copy link

==> Making package: xorg-xwayland-explicit-sync 23.2.4.r385.gbb2e2eba4-1 (Sun 24 Mar 2024 07:50:43 PM PDT)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
  -> Updating xserver git repo...
  -> Found 967.patch
==> WARNING: Skipping all source file integrity checks.
==> Removing existing $srcdir/ directory...
==> Extracting sources...
  -> Creating working copy of xserver git repo...
Cloning into 'xserver'...
done.
==> Starting prepare()...
patching file hw/xwayland/xwayland-glamor-gbm.c
patching file hw/xwayland/xwayland-glamor.h
patching file hw/xwayland/xwayland-present.c
patching file hw/xwayland/xwayland-window-buffers.c
patching file dri3/dri3_request.c
patching file include/protocol-versions.h
patching file dri3/dri3.c
patching file dri3/dri3.h
patching file dri3/dri3_priv.h
patching file dri3/dri3_request.c
patching file dri3/dri3_screen.c
patching file include/protocol-versions.h
patching file hw/xfree86/common/xf86Module.h
patching file hw/xwayland/xwayland-present.c
patching file include/protocol-versions.h
patching file present/present.c
patching file present/present_execute.c
patching file present/present_priv.h
patching file present/present_request.c
patching file present/present_scmd.c
patching file present/present_screen.c
patching file present/present_vblank.c
patching file hw/xwayland/xwayland-glamor-gbm.c
patching file hw/xwayland/xwayland-glamor.c
patching file hw/xwayland/xwayland-glamor.h
patching file hw/xwayland/xwayland-present.c
patching file hw/xwayland/xwayland-present.h
patching file hw/xwayland/xwayland-screen.h
patching file hw/xwayland/meson.build
patching file hw/xwayland/xwayland-glamor-gbm.c
patching file hw/xwayland/xwayland-glamor.c
patching file hw/xwayland/xwayland-glamor.h
patching file hw/xwayland/xwayland-present.c
patching file hw/xwayland/xwayland-screen.c
patching file hw/xwayland/xwayland-screen.h
patching file hw/xwayland/xwayland-window-buffers.c
patching file hw/xwayland/xwayland-window.c
patching file hw/xwayland/xwayland-window.h
patching file present/present_execute.c
patching file hw/xwayland/xwayland-present.c
patching file hw/xwayland/xwayland-present.h
==> Starting pkgver()...
==> Removing existing $pkgdir/ directory...
==> Starting build()...
+ exec meson setup --prefix /usr --libexecdir lib --sbindir bin --buildtype plain --auto-features enabled --wrap-mode nodownload -D b_pie=true -D python.bytecompile=1 xserver build -D ipv6=true -D xvfb=false -D xnest=false -D xcsecurity=true -D xorg=false -D xephyr=false -D xwayland=true -D xwin=false -D xquartz=false -D glamor=true -D udev=true -D systemd_logind=true -D suid_wrapper=true -D xkb_dir=/usr/share/X11/xkb -D xkb_output_dir=/var/lib/xkb
The Meson build system
Version: 1.4.0
Source dir: /cachyos-pkgbuilds/nvidia-explicit-sync/xorg-xwayland/src/xserver
Build dir: /cachyos-pkgbuilds/nvidia-explicit-sync/xorg-xwayland/src/build
Build type: native build
Project name: xserver
Project version: 21.1.99.1
C compiler for the host machine: cc (gcc 13.2.1 "cc (GCC) 13.2.1 20230801")
C linker for the host machine: cc ld.bfd 2.42.0
Host machine cpu family: x86_64
Host machine cpu: x86_64
Compiler for C supports arguments -Wall: YES 
Compiler for C supports arguments -Wpointer-arith: YES 
Compiler for C supports arguments -Wmissing-declarations: YES 
Compiler for C supports arguments -Wformat=2: YES 
Compiler for C supports arguments -Wstrict-prototypes: YES 
Compiler for C supports arguments -Wmissing-prototypes: YES 
Compiler for C supports arguments -Wnested-externs: YES 
Compiler for C supports arguments -Wbad-function-cast: YES 
Compiler for C supports arguments -Wold-style-definition: YES 
Compiler for C supports arguments -Wunused: YES 
Compiler for C supports arguments -Wuninitialized: YES 
Compiler for C supports arguments -Wshadow: YES 
Compiler for C supports arguments -Wmissing-noreturn: YES 
Compiler for C supports arguments -Wmissing-format-attribute: YES 
Compiler for C supports arguments -Wredundant-decls: YES 
Compiler for C supports arguments -Werror=implicit: YES 
Compiler for C supports arguments -Werror=nonnull: YES 
Compiler for C supports arguments -Werror=init-self: YES 
Compiler for C supports arguments -Werror=main: YES 
Compiler for C supports arguments -Werror=missing-braces: YES 
Compiler for C supports arguments -Werror=sequence-point: YES 
Compiler for C supports arguments -Werror=return-type: YES 
Compiler for C supports arguments -Werror=trigraphs: YES 
Compiler for C supports arguments -Werror=array-bounds: YES 
Compiler for C supports arguments -Werror=write-strings: YES 
Compiler for C supports arguments -Werror=address: YES 
Compiler for C supports arguments -Werror=int-to-pointer-cast: YES 
Compiler for C supports arguments -Werror=pointer-to-int-cast: YES 
xserver/meson.build:61: WARNING: Consider using the built-in warning_level option instead of using "-Wall".
Found pkg-config: YES (/usr/bin/pkg-config) 2.1.1
Run-time dependency xproto found: YES 7.0.33
Run-time dependency randrproto found: YES 1.6.0
Run-time dependency renderproto found: YES 0.11.1
Run-time dependency xextproto found: YES 7.3.0
Run-time dependency inputproto found: YES 2.3.99.2
Run-time dependency kbproto found: YES 1.0.7
Run-time dependency fontsproto found: YES 2.1.3
Run-time dependency fixesproto found: YES 6.1
Run-time dependency damageproto found: YES 1.2.1
Run-time dependency xcmiscproto found: YES 1.2.2
Run-time dependency bigreqsproto found: YES 1.1.2
Run-time dependency presentproto found: YES 1.3
Run-time dependency xtrans found: YES 1.5.0
Run-time dependency videoproto found: YES 2.3.3
Run-time dependency compositeproto found: YES 0.4.2
Run-time dependency recordproto found: YES 1.14.2
Run-time dependency scrnsaverproto found: YES 1.2.3
Run-time dependency resourceproto found: YES 1.2.0
Run-time dependency xf86driproto found: YES 2.1.1
Run-time dependency dri2proto found: YES 2.8
Run-time dependency dri3proto found: YES 1.3
Run-time dependency xineramaproto found: YES 1.2.1
Run-time dependency xf86bigfontproto found: YES 1.2.0
Run-time dependency xf86vidmodeproto found: YES 2.3.1
Found CMake: /usr/bin/cmake (3.29.0)
Run-time dependency applewmproto found: NO (tried pkgconfig and cmake)
Looking for a fallback subproject for the dependency applewmproto
Neither a subproject directory nor a xorgproto.wrap file was found.
Subproject  xorgproto is buildable: NO (disabling)
Dependency applewmproto from subproject xorgproto found: NO (subproject failed to configure)
Run-time dependency xshmfence found: YES 1.3.2
Run-time dependency xwaylandproto found: YES 1.0
Run-time dependency dpmsproto found: YES 1.2
Run-time dependency pixman-1 found: YES 0.43.4
Run-time dependency libbsd-overlay found: YES 0.12.2
Run-time dependency xkbcomp found: YES 1.4.7
Run-time dependency xkbfile found: YES 1.1.3
Run-time dependency xfont2 found: YES 2.0.6
Run-time dependency dbus-1 found: YES 1.14.10
Run-time dependency libsystemd found: YES 255
Run-time dependency fontutil found: YES 1.4.1
Run-time dependency libxcvt found: YES 0.1.2
Run-time dependency wayland-client found: YES 1.22.0
Run-time dependency wayland-protocols found: YES 1.34
Dependency libxcvt found: YES 0.1.2 (cached)
Dependency xshmfence found: YES 1.3.2 (cached)
Run-time dependency libdrm found: YES 2.4.120
Run-time dependency epoxy found: YES 1.5.10
Run-time dependency libudev found: YES 255
Run-time dependency gbm found: YES 24.0.3-arch1.2
Dependency epoxy found: YES 1.5.10 (cached)
Run-time dependency libdecor-0 found: YES 0.2.2
Run-time dependency libei-1.0 found: YES 1.2.1
Run-time dependency liboeffis-1.0 found: YES 1.2.1
Checking for function "SHA1Init" : NO 
Checking for function "CC_SHA1_Init" : NO 
Has header "wincrypt.h" : NO 
Library md found: YES
Message: Using libmd SHA1 functions
Run-time dependency xdmcp found: YES 1.1.5
Dependency libdrm found: YES 2.4.120 (cached)
Run-time dependency xf86dgaproto found: YES 2.1
Has header "linux/apm_bios.h" : YES 
Has header "sys/shm.h" : YES 
Library m found: YES
Library dl found: YES
Run-time dependency libselinux found: NO (tried pkgconfig and cmake)
Run-time dependency audit found: YES 4.0.1
Configuring Xserver.1 using configuration
Run-time dependency xorg-sgml-doctools found: NO (tried pkgconfig and cmake)
Program xmlto found: NO
Program xsltproc found: YES (/usr/bin/xsltproc)
Program fop found: NO
Run-time dependency dri found: YES 24.0.3-arch1.2
Checking if "typeof()" compiles: YES 
Checking for function "clock_gettime" : YES 
Checking if "CLOCK_MONOTONIC" compiles: YES 
Checking for size of "unsigned long" : 8 
Header "pthread.h" has symbol "PTHREAD_MUTEX_RECURSIVE" : YES 
Checking if "pthread_setname_np(tid, name)" compiles: YES 
Has header "dlfcn.h" : YES 
Has header "execinfo.h" : YES 
Has header "fnmatch.h" : YES 
Has header "linux/agpgart.h" : YES 
Has header "strings.h" : YES 
Has header "sys/agpgart.h" : NO 
Has header "sys/ucred.h" : NO 
Has header "sys/un.h" : YES 
Has header "sys/utsname.h" : YES 
Has header "sys/sysmacros.h" : YES 
Checking for function "arc4random_buf" with dependency libbsd-overlay: YES 
Checking for function "backtrace" : YES 
Checking for function "cbrt" : YES 
Checking for function "epoll_create1" : YES 
Checking for function "getuid" : YES 
Checking for function "geteuid" : YES 
Checking for function "isastream" : NO 
Checking for function "issetugid" : NO 
Checking for function "getifaddrs" : YES 
Checking for function "getpeereid" : NO 
Checking for function "getpeerucred" : NO 
Checking for function "getprogname" : NO 
Checking for function "getzoneid" : NO 
Checking for function "memfd_create" : YES 
Checking for function "mkostemp" : YES 
Checking for function "mmap" : YES 
Checking for function "open_device" : NO 
Checking for function "poll" : YES 
Checking for function "pollset_create" : NO 
Checking for function "posix_fallocate" : YES 
Checking for function "port_create" : NO 
Checking for function "reallocarray" with dependency libbsd-overlay: YES 
Checking for function "seteuid" : YES 
Checking for function "setitimer" : YES 
Checking for function "shmctl64" : NO 
Checking for function "sigaction" : YES 
Checking for function "sigprocmask" : YES 
Checking for function "strcasecmp" : YES 
Checking for function "strcasestr" : YES 
Checking for function "strlcat" with dependency libbsd-overlay: YES 
Checking for function "strlcpy" with dependency libbsd-overlay: YES 
Checking for function "strncasecmp" : YES 
Checking for function "strndup" : YES 
Header "string.h" has symbol "strndup" : YES 
Checking for function "timingsafe_memcmp" : NO 
Checking for function "vasprintf" : YES 
Checking for function "vsnprintf" : YES 
Checking for function "walkcontext" : NO 
Checking whether type "struct xucred" has member "cr_pid" : NO 
Header "sys/socket.h" has symbol "SCM_RIGHTS" : YES 
Header "sys/socket.h" has symbol "SO_PEERCRED" : YES 
Configuring dix-config.h using configuration
Configuring xorg-server.h using configuration
Configuring version-config.h using configuration
Configuring xkb-config.h using configuration
Has header "stropts.h" : NO 
Has header "sys/kd.h" : YES 
Has header "sys/vt.h" : YES 
Configuring xorg-config.h using configuration
Configuring xwin-config.h using configuration
Configuring xwayland-config.h using configuration
Run-time dependency glproto found: YES 1.4.17
Run-time dependency gl found: YES 1.2
Dependency glproto found: YES 1.4.17 (cached)
Dependency gl found: YES 1.2 (cached)
Run-time dependency libtirpc found: YES 1.3.4
Library pthread found: YES
Run-time dependency xau found: YES 1.0.11
Dependency presentproto found: YES 1.3 (cached)
Dependency epoxy found: YES 1.5.10 (cached)
Build-time dependency wayland-scanner found: YES 1.22.0
Program /usr/bin/wayland-scanner found: YES (/usr/bin/wayland-scanner)
Dependency wayland-protocols found: YES 1.34 (cached)
Configuring Xwayland.1 using configuration
Configuring org.freedesktop.Xwayland.desktop using configuration
Program rendercheck found: NO
Program scripts/xwayland-piglit.sh found: YES (/cachyos-pkgbuilds/nvidia-explicit-sync/xorg-xwayland/src/xserver/test/scripts/xwayland-piglit.sh)
Run-time dependency xcb found: YES 1.16.1
Run-time dependency xcb-xinput found: YES 1.16.1
Dependency xcb found: YES 1.16.1 (cached)
Run-time dependency xcb-damage found: YES 1.16.1
Dependency xcb found: YES 1.16.1 (cached)
Run-time dependency xcb-sync found: YES 1.16.1
Dependency xcb found: YES 1.16.1 (cached)
Run-time dependency xcb-image found: YES 0.4.1
Run-time dependency xcb-util found: YES 0.4.1
Build targets in project: 31

xserver 21.1.99.1

  Subprojects
    xorgproto         : NO Neither a subproject directory nor a xorgproto.wrap file was found.

  User defined options
    auto_features     : enabled
    buildtype         : plain
    libexecdir        : lib
    prefix            : /usr
    sbindir           : bin
    wrap_mode         : nodownload
    python.bytecompile: 1
    b_pie             : true
    glamor            : true
    ipv6              : true
    suid_wrapper      : true
    systemd_logind    : true
    udev              : true
    xcsecurity        : true
    xephyr            : false
    xkb_dir           : /usr/share/X11/xkb
    xkb_output_dir    : /var/lib/xkb
    xnest             : false
    xorg              : false
    xquartz           : false
    xvfb              : false
    xwayland          : true
    xwin              : false

Found ninja-1.11.1 at /usr/bin/ninja
ninja: Entering directory `build'                                                                                                                                                                                                                            
[36/466] Compiling C object dri3/liblibxserver_dri3.a.p/dri3_request.c.o
FAILED: dri3/liblibxserver_dri3.a.p/dri3_request.c.o 
cc -Idri3/liblibxserver_dri3.a.p -Idri3 -I../xserver/dri3 -I. -I../xserver -IXext -I../xserver/Xext -IXi -I../xserver/Xi -Icomposite -I../xserver/composite -Idamageext -I../xserver/damageext -I../xserver/exa -Ifb -I../xserver/fb -Iglamor -I../xserver/glamor -Imi -I../xserver/mi -Imiext/damage -I../xserver/miext/damage -Imiext/shadow -I../xserver/miext/shadow -Imiext/sync -I../xserver/miext/sync -Idbe -I../xserver/dbe -Idix -I../xserver/dix -Iinclude -I../xserver/include -Ipresent -I../xserver/present -Irandr -I../xserver/randr -Irender -I../xserver/render -Ixfixes -I../xserver/xfixes -I/usr/include/X11/dri -I/usr/include/pixman-1 -I/usr/include/libpng16 -I/usr/include/harfbuzz -I/usr/include/freetype2 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/sysprof-6 -I/usr/include/libdrm -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -std=gnu99 -DHAVE_DIX_CONFIG_H -fno-strict-aliasing -fvisibility=hidden -Wall -Wpointer-arith -Wmissing-declarations -Wformat=2 -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Wbad-function-cast -Wold-style-definition -Wunused -Wuninitialized -Wshadow -Wmissing-noreturn -Wmissing-format-attribute -Wredundant-decls -Werror=implicit -Werror=nonnull -Werror=init-self -Werror=main -Werror=missing-braces -Werror=sequence-point -Werror=return-type -Werror=trigraphs -Werror=array-bounds -Werror=write-strings -Werror=address -Werror=int-to-pointer-cast -Werror=pointer-to-int-cast -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -fcf-protection -fPIC -pthread -isystem /usr/include/bsd -DLIBBSD_OVERLAY -D_DEFAULT_SOURCE -D_BSD_SOURCE -DHAS_FCHOWN -DHAS_STICKY_DIR_BIT -MD -MQ dri3/liblibxserver_dri3.a.p/dri3_request.c.o -MF dri3/liblibxserver_dri3.a.p/dri3_request.c.o.d -o dri3/liblibxserver_dri3.a.p/dri3_request.c.o -c ../xserver/dri3/dri3_request.c
In file included from ../xserver/include/privates.h:151,
                 from ../xserver/include/cursor.h:53,
                 from ../xserver/include/scrnintstr.h:53,
                 from ../xserver/dri3/dri3_priv.h:28,
                 from ../xserver/dri3/dri3_request.c:23:
../xserver/dri3/dri3_request.c: In function ‘proc_dri3_import_syncobj’:
../xserver/dri3/dri3_request.c:601:13: error: unknown type name ‘xDRI3ImportSyncobjReq’
  601 |     REQUEST(xDRI3ImportSyncobjReq);
      |             ^~~~~~~~~~~~~~~~~~~~~
../xserver/include/dix.h:66:5: note: in definition of macro ‘REQUEST’
   66 |     type * stuff = (type *)client->requestBuffer;
      |     ^~~~
../xserver/dri3/dri3_request.c:601:13: error: ‘xDRI3ImportSyncobjReq’ undeclared (first use in this function)
  601 |     REQUEST(xDRI3ImportSyncobjReq);
      |             ^~~~~~~~~~~~~~~~~~~~~
../xserver/include/dix.h:66:21: note: in definition of macro ‘REQUEST’
   66 |     type * stuff = (type *)client->requestBuffer;
      |                     ^~~~
../xserver/dri3/dri3_request.c:601:13: note: each undeclared identifier is reported only once for each function it appears in
  601 |     REQUEST(xDRI3ImportSyncobjReq);
      |             ^~~~~~~~~~~~~~~~~~~~~
../xserver/include/dix.h:66:21: note: in definition of macro ‘REQUEST’
   66 |     type * stuff = (type *)client->requestBuffer;
      |                     ^~~~
../xserver/include/dix.h:66:27: error: expected expression before ‘)’ token
   66 |     type * stuff = (type *)client->requestBuffer;
      |                           ^
../xserver/dri3/dri3_request.c:601:5: note: in expansion of macro ‘REQUEST’
  601 |     REQUEST(xDRI3ImportSyncobjReq);
      |     ^~~~~~~
../xserver/dri3/dri3_request.c:609:29: error: request for member ‘syncobj’ in something not a structure or union
  609 |     LEGAL_NEW_RESOURCE(stuff->syncobj, client);
      |                             ^~
../xserver/include/dix.h:98:26: note: in definition of macro ‘LEGAL_NEW_RESOURCE’
   98 |         if (!LegalNewID((id), (client))) {      \
      |                          ^~
../xserver/dri3/dri3_request.c:609:29: error: request for member ‘syncobj’ in something not a structure or union
  609 |     LEGAL_NEW_RESOURCE(stuff->syncobj, client);
      |                             ^~
../xserver/include/dix.h:99:37: note: in definition of macro ‘LEGAL_NEW_RESOURCE’
   99 |             (client)->errorValue = (id);        \
      |                                     ^~
../xserver/dri3/dri3_request.c:611:48: error: request for member ‘drawable’ in something not a structure or union
  611 |     status = dixLookupDrawable(&drawable, stuff->drawable, client,
      |                                                ^~
../xserver/dri3/dri3_request.c:622:53: error: request for member ‘syncobj’ in something not a structure or union
  622 |     return dri3_import_syncobj(client, screen, stuff->syncobj, fd);
      |                                                     ^~
../xserver/dri3/dri3_request.c: In function ‘proc_dri3_free_syncobj’:
../xserver/dri3/dri3_request.c:628:13: error: unknown type name ‘xDRI3FreeSyncobjReq’
  628 |     REQUEST(xDRI3FreeSyncobjReq);
      |             ^~~~~~~~~~~~~~~~~~~
../xserver/include/dix.h:66:5: note: in definition of macro ‘REQUEST’
   66 |     type * stuff = (type *)client->requestBuffer;
      |     ^~~~
../xserver/dri3/dri3_request.c:628:13: error: ‘xDRI3FreeSyncobjReq’ undeclared (first use in this function)
  628 |     REQUEST(xDRI3FreeSyncobjReq);
      |             ^~~~~~~~~~~~~~~~~~~
../xserver/include/dix.h:66:21: note: in definition of macro ‘REQUEST’
   66 |     type * stuff = (type *)client->requestBuffer;
      |                     ^~~~
../xserver/include/dix.h:66:27: error: expected expression before ‘)’ token
   66 |     type * stuff = (type *)client->requestBuffer;
      |                           ^
../xserver/dri3/dri3_request.c:628:5: note: in expansion of macro ‘REQUEST’
  628 |     REQUEST(xDRI3FreeSyncobjReq);
      |     ^~~~~~~
../xserver/dri3/dri3_request.c:634:63: error: request for member ‘syncobj’ in something not a structure or union
  634 |     status = dixLookupResourceByType((void **) &syncobj, stuff->syncobj,
      |                                                               ^~
../xserver/dri3/dri3_request.c:639:23: error: request for member ‘syncobj’ in something not a structure or union
  639 |     FreeResource(stuff->syncobj, dri3_syncobj_type);
      |                       ^~
../xserver/dri3/dri3_request.c: At top level:
../xserver/dri3/dri3_request.c:654:5: warning: excess elements in array initializer
  654 |     proc_dri3_import_syncobj,           /* 10 */
      |     ^~~~~~~~~~~~~~~~~~~~~~~~
../xserver/dri3/dri3_request.c:654:5: note: (near initialization for ‘proc_dri3_vector’)
../xserver/dri3/dri3_request.c:655:5: warning: excess elements in array initializer
  655 |     proc_dri3_free_syncobj,             /* 11 */
      |     ^~~~~~~~~~~~~~~~~~~~~~
../xserver/dri3/dri3_request.c:655:5: note: (near initialization for ‘proc_dri3_vector’)
../xserver/dri3/dri3_request.c: In function ‘sproc_dri3_import_syncobj’:
../xserver/dri3/dri3_request.c:803:13: error: unknown type name ‘xDRI3ImportSyncobjReq’
  803 |     REQUEST(xDRI3ImportSyncobjReq);
      |             ^~~~~~~~~~~~~~~~~~~~~
../xserver/include/dix.h:66:5: note: in definition of macro ‘REQUEST’
   66 |     type * stuff = (type *)client->requestBuffer;
      |     ^~~~
../xserver/dri3/dri3_request.c:803:13: error: ‘xDRI3ImportSyncobjReq’ undeclared (first use in this function)
  803 |     REQUEST(xDRI3ImportSyncobjReq);
      |             ^~~~~~~~~~~~~~~~~~~~~
../xserver/include/dix.h:66:21: note: in definition of macro ‘REQUEST’
   66 |     type * stuff = (type *)client->requestBuffer;
      |                     ^~~~
../xserver/include/dix.h:66:27: error: expected expression before ‘)’ token
   66 |     type * stuff = (type *)client->requestBuffer;
      |                           ^
../xserver/dri3/dri3_request.c:803:5: note: in expansion of macro ‘REQUEST’
  803 |     REQUEST(xDRI3ImportSyncobjReq);
      |     ^~~~~~~
In file included from ../xserver/include/screenint.h:50,
                 from ../xserver/include/scrnintstr.h:50:
../xserver/dri3/dri3_request.c:806:17: error: request for member ‘length’ in something not a structure or union
  806 |     swaps(&stuff->length);
      |                 ^~
../xserver/include/misc.h:368:30: note: in definition of macro ‘swaps’
  368 |                 if (sizeof(*(x)) != 2) \
      |                              ^
../xserver/dri3/dri3_request.c:806:17: error: request for member ‘length’ in something not a structure or union
  806 |     swaps(&stuff->length);
      |                 ^~
../xserver/include/misc.h:370:19: note: in definition of macro ‘swaps’
  370 |                 *(x) = bswap_16(*(x)); \
      |                   ^
../xserver/dri3/dri3_request.c:806:17: error: request for member ‘length’ in something not a structure or union
  806 |     swaps(&stuff->length);
      |                 ^~
../xserver/include/misc.h:370:35: note: in definition of macro ‘swaps’
  370 |                 *(x) = bswap_16(*(x)); \
      |                                   ^
../xserver/dri3/dri3_request.c:807:17: error: request for member ‘syncobj’ in something not a structure or union
  807 |     swapl(&stuff->syncobj);
      |                 ^~
../xserver/include/misc.h:355:30: note: in definition of macro ‘swapl’
  355 |                 if (sizeof(*(x)) != 4) \
      |                              ^
../xserver/dri3/dri3_request.c:807:17: error: request for member ‘syncobj’ in something not a structure or union
  807 |     swapl(&stuff->syncobj);
      |                 ^~
../xserver/include/misc.h:357:19: note: in definition of macro ‘swapl’
  357 |                 *(x) = bswap_32(*(x)); \
      |                   ^
../xserver/dri3/dri3_request.c:807:17: error: request for member ‘syncobj’ in something not a structure or union
  807 |     swapl(&stuff->syncobj);
      |                 ^~
../xserver/include/misc.h:357:35: note: in definition of macro ‘swapl’
  357 |                 *(x) = bswap_32(*(x)); \
      |                                   ^
../xserver/dri3/dri3_request.c:808:17: error: request for member ‘drawable’ in something not a structure or union
  808 |     swapl(&stuff->drawable);
      |                 ^~
../xserver/include/misc.h:355:30: note: in definition of macro ‘swapl’
  355 |                 if (sizeof(*(x)) != 4) \
      |                              ^
../xserver/dri3/dri3_request.c:808:17: error: request for member ‘drawable’ in something not a structure or union
  808 |     swapl(&stuff->drawable);
      |                 ^~
../xserver/include/misc.h:357:19: note: in definition of macro ‘swapl’
  357 |                 *(x) = bswap_32(*(x)); \
      |                   ^
../xserver/dri3/dri3_request.c:808:17: error: request for member ‘drawable’ in something not a structure or union
  808 |     swapl(&stuff->drawable);
      |                 ^~
../xserver/include/misc.h:357:35: note: in definition of macro ‘swapl’
  357 |                 *(x) = bswap_32(*(x)); \
      |                                   ^
../xserver/dri3/dri3_request.c:809:36: error: request for member ‘dri3ReqType’ in something not a structure or union
  809 |     return (*proc_dri3_vector[stuff->dri3ReqType]) (client);
      |                                    ^~
../xserver/dri3/dri3_request.c: In function ‘sproc_dri3_free_syncobj’:
../xserver/dri3/dri3_request.c:815:13: error: unknown type name ‘xDRI3FreeSyncobjReq’
  815 |     REQUEST(xDRI3FreeSyncobjReq);
      |             ^~~~~~~~~~~~~~~~~~~
../xserver/include/dix.h:66:5: note: in definition of macro ‘REQUEST’
   66 |     type * stuff = (type *)client->requestBuffer;
      |     ^~~~
../xserver/dri3/dri3_request.c:815:13: error: ‘xDRI3FreeSyncobjReq’ undeclared (first use in this function)
  815 |     REQUEST(xDRI3FreeSyncobjReq);
      |             ^~~~~~~~~~~~~~~~~~~
../xserver/include/dix.h:66:21: note: in definition of macro ‘REQUEST’
   66 |     type * stuff = (type *)client->requestBuffer;
      |                     ^~~~
../xserver/include/dix.h:66:27: error: expected expression before ‘)’ token
   66 |     type * stuff = (type *)client->requestBuffer;
      |                           ^
../xserver/dri3/dri3_request.c:815:5: note: in expansion of macro ‘REQUEST’
  815 |     REQUEST(xDRI3FreeSyncobjReq);
      |     ^~~~~~~
../xserver/dri3/dri3_request.c:818:17: error: request for member ‘length’ in something not a structure or union
  818 |     swaps(&stuff->length);
      |                 ^~
../xserver/include/misc.h:368:30: note: in definition of macro ‘swaps’
  368 |                 if (sizeof(*(x)) != 2) \
      |                              ^
../xserver/dri3/dri3_request.c:818:17: error: request for member ‘length’ in something not a structure or union
  818 |     swaps(&stuff->length);
      |                 ^~
../xserver/include/misc.h:370:19: note: in definition of macro ‘swaps’
  370 |                 *(x) = bswap_16(*(x)); \
      |                   ^
../xserver/dri3/dri3_request.c:818:17: error: request for member ‘length’ in something not a structure or union
  818 |     swaps(&stuff->length);
      |                 ^~
../xserver/include/misc.h:370:35: note: in definition of macro ‘swaps’
  370 |                 *(x) = bswap_16(*(x)); \
      |                                   ^
../xserver/dri3/dri3_request.c:819:17: error: request for member ‘syncobj’ in something not a structure or union
  819 |     swapl(&stuff->syncobj);
      |                 ^~
../xserver/include/misc.h:355:30: note: in definition of macro ‘swapl’
  355 |                 if (sizeof(*(x)) != 4) \
      |                              ^
../xserver/dri3/dri3_request.c:819:17: error: request for member ‘syncobj’ in something not a structure or union
  819 |     swapl(&stuff->syncobj);
      |                 ^~
../xserver/include/misc.h:357:19: note: in definition of macro ‘swapl’
  357 |                 *(x) = bswap_32(*(x)); \
      |                   ^
../xserver/dri3/dri3_request.c:819:17: error: request for member ‘syncobj’ in something not a structure or union
  819 |     swapl(&stuff->syncobj);
      |                 ^~
../xserver/include/misc.h:357:35: note: in definition of macro ‘swapl’
  357 |                 *(x) = bswap_32(*(x)); \
      |                                   ^
../xserver/dri3/dri3_request.c:820:36: error: request for member ‘dri3ReqType’ in something not a structure or union
  820 |     return (*proc_dri3_vector[stuff->dri3ReqType]) (client);
      |                                    ^~
../xserver/dri3/dri3_request.c: At top level:
../xserver/dri3/dri3_request.c:834:5: warning: excess elements in array initializer
  834 |     sproc_dri3_import_syncobj,          /* 10 */
      |     ^~~~~~~~~~~~~~~~~~~~~~~~~
../xserver/dri3/dri3_request.c:834:5: note: (near initialization for ‘sproc_dri3_vector’)
../xserver/dri3/dri3_request.c:835:5: warning: excess elements in array initializer
  835 |     sproc_dri3_free_syncobj,            /* 11 */
      |     ^~~~~~~~~~~~~~~~~~~~~~~
../xserver/dri3/dri3_request.c:835:5: note: (near initialization for ‘sproc_dri3_vector’)
[49/466] Compiling C object glx/liblibxserver_glx.a.p/indirect_dispatch_swap.c.o
ninja: build stopped: subcommand failed.
==> ERROR: A failure occurred in build().
    Aborting...
@ptr1337
Copy link
Member

ptr1337 commented Mar 25, 2024

Hi,

You need to compile first xorgproto: https://github.com/CachyOS/CachyOS-PKGBUILDS/tree/master/nvidia-explicit-sync/xorgproto

after that you can compile xorg-xwayland/kwin.

@neurodiverseEsoteric
Copy link
Author

How do I get the xorg-xwayland build to compile/link to the xorgproto build?

@ptr1337
Copy link
Member

ptr1337 commented Mar 25, 2024

How do I get the xorg-xwayland build to compile/link to the xorgproto build?

Install the above xorgproto or the one from the CachyOS repo and then compile xwayland.

@neurodiverseEsoteric
Copy link
Author

I meant if I could add the xorgproto to the LD_LIBRARY_PATH and/or whatever other variables that need to point to that build, so I don't potentially ruin my non-CachyOS arch system trying to build one single package

@ptr1337
Copy link
Member

ptr1337 commented Mar 25, 2024

I meant if I could add the xorgproto to the LD_LIBRARY_PATH and/or whatever other variables that need to point to that build, so I don't potentially ruin my non-CachyOS arch system trying to build one single package

The patched xorgproto is required for the xwayland. You dont ruin your system due it, since you can simply install the default package again

@neurodiverseEsoteric
Copy link
Author

Fine.

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

2 participants