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

xpra: fix xpraWithNvenc build #365793

Merged
merged 1 commit into from
Dec 23, 2024
Merged

xpra: fix xpraWithNvenc build #365793

merged 1 commit into from
Dec 23, 2024

Conversation

hxtmdev
Copy link
Member

@hxtmdev hxtmdev commented Dec 17, 2024

fs/bin/build_cuda_kernels.py was missing shebang fixup.

Tested-by: Corbin Wunderlich [email protected]

5 packages built:                                                                                                                                                                     
run-scaled xpra xpra.dist xpraWithNvenc xpraWithNvenc.dist                                                                                                                            

🥳

closes #363390

Things done

  • Built on platform(s)
    • x86_64-linux
    • aarch64-linux
    • x86_64-darwin
    • aarch64-darwin
  • For non-Linux: Is sandboxing enabled in nix.conf? (See Nix manual)
    • sandbox = relaxed
    • sandbox = true
  • Tested, as applicable:
  • Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
  • Tested basic functionality of all binary files (usually in ./result/bin/)
  • 25.05 Release Notes (or backporting 24.11 and 25.05 Release notes)
    • (Package updates) Added a release notes entry if the change is major or breaking
    • (Module updates) Added a release notes entry if the change is significant
    • (Module addition) Added a release notes entry if adding a new NixOS module
  • Fits CONTRIBUTING.md.

Add a 👍 reaction to pull requests you find important.

@github-actions github-actions bot added 10.rebuild-darwin: 0 This PR does not cause any packages to rebuild on Darwin 10.rebuild-linux: 1-10 labels Dec 17, 2024
@wegank wegank added the 12.approvals: 1 This PR was reviewed and approved by one reputable person label Dec 18, 2024
Copy link
Contributor

@numinit numinit left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice find!

@numinit numinit added the backport release-24.11 Backport PR automatically label Dec 18, 2024
@numinit
Copy link
Contributor

numinit commented Dec 18, 2024

Backport, since it's broken in 24.11 I believe.

@wegank wegank added 12.approvals: 2 This PR was reviewed and approved by two reputable people 12.approved-by: package-maintainer This PR was reviewed and approved by a maintainer listed in the package and removed 12.approvals: 1 This PR was reviewed and approved by one reputable person labels Dec 19, 2024
@FliegendeWurst
Copy link
Member

On staging-next, the build for xpra fails:

Sourcing python-remove-tests-dir-hook
Sourcing python-catch-conflicts-hook.sh
Sourcing python-remove-bin-bytecode-hook.sh
Sourcing setuptools-build-hook
Using setuptoolsBuildPhase
Sourcing pypa-install-hook
Using pypaInstallPhase
Sourcing python-imports-check-hook.sh
Using pythonImportsCheckPhase
Sourcing python-namespaces-hook
Sourcing python-catch-conflicts-hook.sh
Running phase: unpackPhase
@nix { "action": "setPhase", "phase": "unpackPhase" }
unpacking source archive /nix/store/jyjbxv1va55fals3c45aq3xgv5wq6amv-source
source root is source
setting SOURCE_DATE_EPOCH to timestamp 315619200 of file "source/xpra/x11/xsettings_prop.py"
Running phase: patchPhase
@nix { "action": "setPhase", "phase": "patchPhase" }
applying patch /nix/store/j4ffy36swjfyh516b7g7ws4sp76y3wd0-fix-41106.patch
patching file xpra/server/util.py
applying patch /nix/store/a7hy8iznvzjah2g6xzcjm3bbw6sf2snp-fix-122159.patch
patching file xpra/scripts/main.py
Hunk #1 succeeded at 445 (offset 1 line).
patching script interpreter paths in fs/bin/build_cuda_kernels.py
fs/bin/build_cuda_kernels.py: interpreter directive changed from "#!/usr/bin/env python3" to "/nix/store/i3ld89k1vrg2j0wy14bvmkxvas8aay3n-python3-3.12.8/bin/python3"
Running phase: updateAutotoolsGnuConfigScriptsPhase
@nix { "action": "setPhase", "phase": "updateAutotoolsGnuConfigScriptsPhase" }
Running phase: configurePhase
@nix { "action": "setPhase", "phase": "configurePhase" }
no configure script, doing nothing
Running phase: buildPhase
@nix { "action": "setPhase", "phase": "buildPhase" }
Executing setuptoolsBuildPhase
nix_run_setup build_ext --with-Xdummy --without-Xdummy_wrapper --without-strict --with-gtk3 --with-pam --with-vsock --with-nvenc --parallel 32 bdist_wheel
Xpra version 6.2.1
Python version 3.12.8
found pkg-config version: 0.29.2
ARCH=x86_64
using INCLUDE_DIRS=['/nix/store/q9nz6ph5bv1m365y16v3vcybjqd4axcz-linux-pam-1.6.1/include']
CC=gcc
CPP=cpp
build switches:
* Os                   : No
* PIC                  : Yes
* Xdummy               : Yes
* Xdummy_wrapper       : No
* annotate             : No
* argb                 : Yes
* argb_encoder         : Yes
* audio                : Yes
* avif                 : No
* avif_decoder         : No
* avif_encoder         : No
* brotli               : No
* bundle_tests         : No
* cityhash             : No
* client               : Yes
* clipboard            : Yes
* codecs               : Yes
* csc_cython           : Yes
* csc_libyuv           : No
* cuda_kernels         : Yes
* cuda_rebuild         : Auto
* cython               : Yes
* cython_tracing       : No
* cythonize_more       : No
* data                 : Yes
* dbus                 : Yes
* debug                : No
* decoders             : Yes
* docs                 : /nix/store/siysam0ac58lxcwbv6h2lc4ij6l7j5xy-pandoc-cli-3.1.11.1/bin/pandoc
* drm                  : Yes
* enc_proxy            : Yes
* enc_x264             : Yes
* encoders             : Yes
* evdi                 : No
* example              : Yes
* gstreamer            : Yes
* gstreamer_audio      : Yes
* gstreamer_video      : Yes
* gtk3                 : Yes
* gtk_x11              : Yes
* http                 : Yes
* ism_ext              : Yes
* jpeg_decoder         : Yes
* jpeg_encoder         : Yes
* keyboard             : Yes
* lz4                  : Yes
* mdns                 : Yes
* modules              : Yes
* netdev               : Yes
* notifications        : Yes
* nvdec                : No
* nvenc                : Yes
* nvfbc                : No
* nvidia               : Yes
* nvjpeg_decoder       : No
* nvjpeg_encoder       : No
* opengl               : Yes
* openh264             : No
* openh264_decoder     : No
* openh264_encoder     : No
* pam                  : Yes
* pandoc_lua           : Yes
* pillow               : Yes
* pillow_decoder       : Yes
* pillow_encoder       : Yes
* printing             : Yes
* proc                 : No
* proxy                : Yes
* qrencode             : No
* qt6_client           : No
* quic                 : Yes
* rebuild              : Yes
* rencodeplus          : Yes
* rfb                  : Yes
* scripts              : Yes
* sd_listen            : No
* server               : Yes
* service              : Yes
* shadow               : Yes
* spng_decoder         : No
* spng_encoder         : No
* ssh                  : Yes
* strict               : No
* tests                : No
* uinput               : Yes
* v4l2                 : Yes
* verbose              : No
* vpx                  : Yes
* vpx_decoder          : Yes
* vpx_encoder          : Yes
* vsock                : Yes
* warn                 : Yes
* webcam               : Yes
* webp                 : Yes
* webp_decoder         : Yes
* webp_encoder         : Yes
* websockets           : Yes
* win32_tools          : No
* x11                  : Yes
* xdg_open             : Yes
* xinput               : Yes
found Cython version 3.0.11
Warning: could not get branch information
'git describe --long --always --tags' failed with return code 127
updated './xpra/src_info.py' with:
* BRANCH               = unknown
* COMMIT               = unknown
* LOCAL_MODIFICATIONS  = 0
* REVISION             = unknown
error running (['pip3', 'freeze'],),{'stdout': -1, 'stderr': -2}: [Errno 2] No such file or directory: 'pip3'
updated './xpra/build_info.py' with:
* BUILD_BIT            = 64bit
* BUILD_CPU            = AMD Ryzen 9 5950X 16-Core Processor
* BUILD_DATE           = 1980-01-02
* BUILD_MACHINE        = x86_64
* BUILD_OS             = linux
* BUILD_TIME           = 00:00
* BUILD_TYPE           = 
* COMPILER_VERSION     = gcc (GCC) 14.2.1 20241116
* CYTHON_VERSION       = 3.0.11
* LINKER_VERSION       = GNU ld (GNU Binutils) 2.43.1
* NVCC_VERSION         = 
* PYTHON_VERSION       = 3.12.8
* lib_gobjectintrospection10 = 1.82.0
* lib_gtk30            = 3.24.43
* lib_gtkx1130         = 3.24.43
* lib_nvenc            = 10
* lib_py3cairo         = 1.27.0
* lib_pygobject30      = 3.50.0
* lib_python3          = 3.12
* lib_vpx              = 1.15.0
* lib_x11              = 1.8.10
* lib_x264             = 0.164.x
* lib_xcomposite       = 0.4.6
* lib_xdamage          = 1.1.6
* lib_xext             = 1.3.6
* lib_xfixes           = 6.0.1
* lib_xkbfile          = 1.1.3
* lib_xrandr           = 1.5.4
* lib_xtst             = 1.2.5
* rebuilding XRGB_to_NV12: no file
* rebuilding XRGB_to_YUV444: no file
* rebuilding BGRX_to_NV12: no file
* rebuilding BGRX_to_YUV444: no file
* rebuilding BGRX_to_RGB: no file
* rebuilding RGBX_to_RGB: no file
* rebuilding RGBA_to_RGBAP: no file
* rebuilding BGRA_to_RGBAP: no file
found CUDA compiler '/nix/store/j3vxf5qwvsx8h0jb5ygkhv3g4km54v1x-cuda-merged-12.4/bin/nvcc' :  version 12.4.99
clang++ not found, compilation may fail
compiling CUDA kernels with:
 '/nix/store/j3vxf5qwvsx8h0jb5ygkhv3g4km54v1x-cuda-merged-12.4/bin/nvcc' '-fatbin' '-std=c++11' '-arch=all' '-Wno-deprecated-gpu-targets' '-Xnvlink' '-ignore-host-info' '--allow-unsupported-compiler'
* XRGB_to_NV12
* XRGB_to_YUV444
* BGRX_to_NV12
* BGRX_to_YUV444
* BGRX_to_RGB
* RGBX_to_RGB
* RGBA_to_RGBAP
* BGRA_to_RGBAP
Error: failed to compile CUDA kernel BGRA_to_RGBAP
 using command: ['/nix/store/j3vxf5qwvsx8h0jb5ygkhv3g4km54v1x-cuda-merged-12.4/bin/nvcc', '-fatbin', '-std=c++11', '-arch=all', '-Wno-deprecated-gpu-targets', '-Xnvlink', '-ignore-host-info', '--allow-unsupported-compiler', '-c', 'fs/share/xpra/cuda/BGRX_to_NV12.cu', '-o', 'fs/share/xpra/cuda/BGRX_to_NV12.fatbin']

/nix/store/5iypf3qjpn0vc09j964i18p95v34py3c-gcc-14-20241116/include/c++/14-20241116/x86_64-unknown-linux-gnu/bits/c++config.h(827): error: user-defined literal operator not found
    typedef __decltype(0.0bf16) __bfloat16_t;
                       ^

/nix/store/5iypf3qjpn0vc09j964i18p95v34py3c-gcc-14-20241116/include/c++/14-20241116/type_traits(529): error: type name is not allowed
      : public __bool_constant<__is_array(_Tp)>
                                          ^

/nix/store/5iypf3qjpn0vc09j964i18p95v34py3c-gcc-14-20241116/include/c++/14-20241116/type_traits(529): error: identifier "__is_array" is undefined
      : public __bool_constant<__is_array(_Tp)>
                               ^

/nix/store/5iypf3qjpn0vc09j964i18p95v34py3c-gcc-14-20241116/include/c++/14-20241116/type_traits(581): error: type name is not allowed
      : public __bool_constant<__is_member_object_pointer(_Tp)>
                                                          ^

/nix/store/5iypf3qjpn0vc09j964i18p95v34py3c-gcc-14-20241116/include/c++/14-20241116/type_traits(581): error: identifier "__is_member_object_pointer" is undefined
      : public __bool_constant<__is_member_object_pointer(_Tp)>
                               ^

/nix/store/5iypf3qjpn0vc09j964i18p95v34py3c-gcc-14-20241116/include/c++/14-20241116/type_traits(603): error: type name is not allowed
      : public __bool_constant<__is_member_function_pointer(_Tp)>
                                                            ^

/nix/store/5iypf3qjpn0vc09j964i18p95v34py3c-gcc-14-20241116/include/c++/14-20241116/type_traits(603): error: identifier "__is_member_function_pointer" is undefined
      : public __bool_constant<__is_member_function_pointer(_Tp)>
                               ^

/nix/store/5iypf3qjpn0vc09j964i18p95v34py3c-gcc-14-20241116/include/c++/14-20241116/type_traits(695): error: type name is not allowed
      : public __bool_constant<__is_reference(_Tp)>
                                              ^

/nix/store/5iypf3qjpn0vc09j964i18p95v34py3c-gcc-14-20241116/include/c++/14-20241116/type_traits(695): error: identifier "__is_reference" is undefined
      : public __bool_constant<__is_reference(_Tp)>
                               ^

/nix/store/5iypf3qjpn0vc09j964i18p95v34py3c-gcc-14-20241116/include/c++/14-20241116/type_traits(731): error: type name is not allowed
      : public __bool_constant<__is_object(_Tp)>
                                           ^

/nix/store/5iypf3qjpn0vc09j964i18p95v34py3c-gcc-14-20241116/include/c++/14-20241116/type_traits(731): error: identifier "__is_object" is undefined
      : public __bool_constant<__is_object(_Tp)>
                               ^

/nix/store/5iypf3qjpn0vc09j964i18p95v34py3c-gcc-14-20241116/include/c++/14-20241116/type_traits(760): error: type name is not allowed
      : public __bool_constant<__is_member_pointer(_Tp)>
                                                   ^

/nix/store/5iypf3qjpn0vc09j964i18p95v34py3c-gcc-14-20241116/include/c++/14-20241116/type_traits(760): error: identifier "__is_member_pointer" is undefined
      : public __bool_constant<__is_member_pointer(_Tp)>
                               ^

/nix/store/5iypf3qjpn0vc09j964i18p95v34py3c-gcc-14-20241116/include/c++/14-20241116/type_traits(1610): error: "__is_nothrow_new_constructible" is not a function or static data member
      constexpr bool __is_nothrow_new_constructible
                     ^

/nix/store/5iypf3qjpn0vc09j964i18p95v34py3c-gcc-14-20241116/include/c++/14-20241116/type_traits(1610): error: "constexpr" is not valid here
      constexpr bool __is_nothrow_new_constructible
      ^

/nix/store/5iypf3qjpn0vc09j964i18p95v34py3c-gcc-14-20241116/include/c++/14-20241116/bits/utility.h(237): error: __type_pack_element is not a template
      { using type = __type_pack_element<_Np, _Types...>; };
                     ^

16 errors detected in the compilation of "fs/share/xpra/cuda/BGRX_to_NV12.cu".

Error: failed to compile CUDA kernel BGRA_to_RGBAP
 using command: ['/nix/store/j3vxf5qwvsx8h0jb5ygkhv3g4km54v1x-cuda-merged-12.4/bin/nvcc', '-fatbin', '-std=c++11', '-arch=all', '-Wno-deprecated-gpu-targets', '-Xnvlink', '-ignore-host-info', '--allow-unsupported-compiler', '-c', 'fs/share/xpra/cuda/XRGB_to_NV12.cu', '-o', 'fs/share/xpra/cuda/XRGB_to_NV12.fatbin']

/nix/store/5iypf3qjpn0vc09j964i18p95v34py3c-gcc-14-20241116/include/c++/14-20241116/x86_64-unknown-linux-gnu/bits/c++config.h(827): error: user-defined literal operator not found
    typedef __decltype(0.0bf16) __bfloat16_t;
                       ^

/nix/store/5iypf3qjpn0vc09j964i18p95v34py3c-gcc-14-20241116/include/c++/14-20241116/type_traits(529): error: type name is not allowed
      : public __bool_constant<__is_array(_Tp)>
                                          ^

/nix/store/5iypf3qjpn0vc09j964i18p95v34py3c-gcc-14-20241116/include/c++/14-20241116/type_traits(529): error: identifier "__is_array" is undefined
      : public __bool_constant<__is_array(_Tp)>
                               ^

/nix/store/5iypf3qjpn0vc09j964i18p95v34py3c-gcc-14-20241116/include/c++/14-20241116/type_traits(581): error: type name is not allowed
      : public __bool_constant<__is_member_object_pointer(_Tp)>
                                                          ^

/nix/store/5iypf3qjpn0vc09j964i18p95v34py3c-gcc-14-20241116/include/c++/14-20241116/type_traits(581): error: identifier "__is_member_object_pointer" is undefined
      : public __bool_constant<__is_member_object_pointer(_Tp)>
                               ^

/nix/store/5iypf3qjpn0vc09j964i18p95v34py3c-gcc-14-20241116/include/c++/14-20241116/type_traits(603): error: type name is not allowed
      : public __bool_constant<__is_member_function_pointer(_Tp)>
                                                            ^

/nix/store/5iypf3qjpn0vc09j964i18p95v34py3c-gcc-14-20241116/include/c++/14-20241116/type_traits(603): error: identifier "__is_member_function_pointer" is undefined
      : public __bool_constant<__is_member_function_pointer(_Tp)>
                               ^

/nix/store/5iypf3qjpn0vc09j964i18p95v34py3c-gcc-14-20241116/include/c++/14-20241116/type_traits(695): error: type name is not allowed
      : public __bool_constant<__is_reference(_Tp)>
                                              ^

/nix/store/5iypf3qjpn0vc09j964i18p95v34py3c-gcc-14-20241116/include/c++/14-20241116/type_traits(695): error: identifier "__is_reference" is undefined
      : public __bool_constant<__is_reference(_Tp)>
                               ^

/nix/store/5iypf3qjpn0vc09j964i18p95v34py3c-gcc-14-20241116/include/c++/14-20241116/type_traits(731): error: type name is not allowed
      : public __bool_constant<__is_object(_Tp)>
                                           ^

/nix/store/5iypf3qjpn0vc09j964i18p95v34py3c-gcc-14-20241116/include/c++/14-20241116/type_traits(731): error: identifier "__is_object" is undefined
      : public __bool_constant<__is_object(_Tp)>
                               ^

/nix/store/5iypf3qjpn0vc09j964i18p95v34py3c-gcc-14-20241116/include/c++/14-20241116/type_traits(760): error: type name is not allowed
      : public __bool_constant<__is_member_pointer(_Tp)>
                                                   ^

/nix/store/5iypf3qjpn0vc09j964i18p95v34py3c-gcc-14-20241116/include/c++/14-20241116/type_traits(760): error: identifier "__is_member_pointer" is undefined
      : public __bool_constant<__is_member_pointer(_Tp)>
                               ^

/nix/store/5iypf3qjpn0vc09j964i18p95v34py3c-gcc-14-20241116/include/c++/14-20241116/type_traits(1610): error: "__is_nothrow_new_constructible" is not a function or static data member
      constexpr bool __is_nothrow_new_constructible
                     ^

/nix/store/5iypf3qjpn0vc09j964i18p95v34py3c-gcc-14-20241116/include/c++/14-20241116/type_traits(1610): error: "constexpr" is not valid here
      constexpr bool __is_nothrow_new_constructible
      ^

/nix/store/5iypf3qjpn0vc09j964i18p95v34py3c-gcc-14-20241116/include/c++/14-20241116/bits/utility.h(237): error: __type_pack_element is not a template
      { using type = __type_pack_element<_Np, _Types...>; };
                     ^

16 errors detected in the compilation of "fs/share/xpra/cuda/XRGB_to_NV12.cu".

Error: failed to compile CUDA kernel BGRA_to_RGBAP
Error: failed to compile CUDA kernel BGRA_to_RGBAP
 using command: ['/nix/store/j3vxf5qwvsx8h0jb5ygkhv3g4km54v1x-cuda-merged-12.4/bin/nvcc', '-fatbin', '-std=c++11', '-arch=all', '-Wno-deprecated-gpu-targets', '-Xnvlink', '-ignore-host-info', '--allow-unsupported-compiler', '-c', 'fs/share/xpra/cuda/BGRX_to_YUV444.cu', '-o', 'fs/share/xpra/cuda/BGRX_to_YUV444.fatbin']
 using command: ['/nix/store/j3vxf5qwvsx8h0jb5ygkhv3g4km54v1x-cuda-merged-12.4/bin/nvcc', '-fatbin', '-std=c++11', '-arch=all', '-Wno-deprecated-gpu-targets', '-Xnvlink', '-ignore-host-info', '--allow-unsupported-compiler', '-c', 'fs/share/xpra/cuda/RGBA_to_RGBAP.cu', '-o', 'fs/share/xpra/cuda/RGBA_to_RGBAP.fatbin']


/nix/store/5iypf3qjpn0vc09j964i18p95v34py3c-gcc-14-20241116/include/c++/14-20241116/x86_64-unknown-linux-gnu/bits/c++config.h(827): error: user-defined literal operator not found
    typedef __decltype(0.0bf16) __bfloat16_t;
                       ^

/nix/store/5iypf3qjpn0vc09j964i18p95v34py3c-gcc-14-20241116/include/c++/14-20241116/type_traits(529): error: type name is not allowed
      : public __bool_constant<__is_array(_Tp)>
                                          ^

/nix/store/5iypf3qjpn0vc09j964i18p95v34py3c-gcc-14-20241116/include/c++/14-20241116/type_traits(529): error: identifier "__is_array" is undefined
      : public __bool_constant<__is_array(_Tp)>
                               ^

/nix/store/5iypf3qjpn0vc09j964i18p95v34py3c-gcc-14-20241116/include/c++/14-20241116/type_traits(581): error: type name is not allowed
      : public __bool_constant<__is_member_object_pointer(_Tp)>
                                                          ^

/nix/store/5iypf3qjpn0vc09j964i18p95v34py3c-gcc-14-20241116/include/c++/14-20241116/type_traits(581): error: identifier "__is_member_object_pointer" is undefined
      : public __bool_constant<__is_member_object_pointer(_Tp)>
                               ^

/nix/store/5iypf3qjpn0vc09j964i18p95v34py3c-gcc-14-20241116/include/c++/14-20241116/type_traits(603): error: type name is not allowed
      : public __bool_constant<__is_member_function_pointer(_Tp)>
                                                            ^

/nix/store/5iypf3qjpn0vc09j964i18p95v34py3c-gcc-14-20241116/include/c++/14-20241116/type_traits(603): error: identifier "__is_member_function_pointer" is undefined
      : public __bool_constant<__is_member_function_pointer(_Tp)>
                               ^

/nix/store/5iypf3qjpn0vc09j964i18p95v34py3c-gcc-14-20241116/include/c++/14-20241116/type_traits(695): error: type name is not allowed
      : public __bool_constant<__is_reference(_Tp)>
                                              ^

/nix/store/5iypf3qjpn0vc09j964i18p95v34py3c-gcc-14-20241116/include/c++/14-20241116/type_traits(695): error: identifier "__is_reference" is undefined
      : public __bool_constant<__is_reference(_Tp)>
                               ^

/nix/store/5iypf3qjpn0vc09j964i18p95v34py3c-gcc-14-20241116/include/c++/14-20241116/type_traits(731): error: type name is not allowed
      : public __bool_constant<__is_object(_Tp)>
                                           ^

/nix/store/5iypf3qjpn0vc09j964i18p95v34py3c-gcc-14-20241116/include/c++/14-20241116/type_traits(731): error: identifier "__is_object" is undefined
      : public __bool_constant<__is_object(_Tp)>
                               ^

/nix/store/5iypf3qjpn0vc09j964i18p95v34py3c-gcc-14-20241116/include/c++/14-20241116/type_traits(760): error: type name is not allowed
      : public __bool_constant<__is_member_pointer(_Tp)>
                                                   ^

/nix/store/5iypf3qjpn0vc09j964i18p95v34py3c-gcc-14-20241116/include/c++/14-20241116/type_traits(760): error: identifier "__is_member_pointer" is undefined
      : public __bool_constant<__is_member_pointer(_Tp)>
                               ^

/nix/store/5iypf3qjpn0vc09j964i18p95v34py3c-gcc-14-20241116/include/c++/14-20241116/type_traits(1610): error: "__is_nothrow_new_constructible" is not a function or static data member
      constexpr bool __is_nothrow_new_constructible
                     ^

/nix/store/5iypf3qjpn0vc09j964i18p95v34py3c-gcc-14-20241116/include/c++/14-20241116/type_traits(1610): error: "constexpr" is not valid here
      constexpr bool __is_nothrow_new_constructible
      ^

/nix/store/5iypf3qjpn0vc09j964i18p95v34py3c-gcc-14-20241116/include/c++/14-20241116/bits/utility.h(237): error: __type_pack_element is not a template
      { using type = __type_pack_element<_Np, _Types...>; };
                     ^

16 errors detected in the compilation of "fs/share/xpra/cuda/BGRX_to_YUV444.cu".
Error: failed to compile CUDA kernel BGRA_to_RGBAP

 using command: ['/nix/store/j3vxf5qwvsx8h0jb5ygkhv3g4km54v1x-cuda-merged-12.4/bin/nvcc', '-fatbin', '-std=c++11', '-arch=all', '-Wno-deprecated-gpu-targets', '-Xnvlink', '-ignore-host-info', '--allow-unsupported-compiler', '-c', 'fs/share/xpra/cuda/XRGB_to_YUV444.cu', '-o', 'fs/share/xpra/cuda/XRGB_to_YUV444.fatbin']
/nix/store/5iypf3qjpn0vc09j964i18p95v34py3c-gcc-14-20241116/include/c++/14-20241116/x86_64-unknown-linux-gnu/bits/c++config.h(827): error: user-defined literal operator not found
    typedef __decltype(0.0bf16) __bfloat16_t;
                       ^

/nix/store/5iypf3qjpn0vc09j964i18p95v34py3c-gcc-14-20241116/include/c++/14-20241116/type_traits(529): error: type name is not allowed
      : public __bool_constant<__is_array(_Tp)>
                                          ^

/nix/store/5iypf3qjpn0vc09j964i18p95v34py3c-gcc-14-20241116/include/c++/14-20241116/type_traits(529): error: identifier "__is_array" is undefined
      : public __bool_constant<__is_array(_Tp)>
                               ^

/nix/store/5iypf3qjpn0vc09j964i18p95v34py3c-gcc-14-20241116/include/c++/14-20241116/type_traits(581): error: type name is not allowed
      : public __bool_constant<__is_member_object_pointer(_Tp)>
                                                          ^

/nix/store/5iypf3qjpn0vc09j964i18p95v34py3c-gcc-14-20241116/include/c++/14-20241116/type_traits(581): error: identifier "__is_member_object_pointer" is undefined
      : public __bool_constant<__is_member_object_pointer(_Tp)>
                               ^

/nix/store/5iypf3qjpn0vc09j964i18p95v34py3c-gcc-14-20241116/include/c++/14-20241116/type_traits(603): error: type name is not allowed
      : public __bool_constant<__is_member_function_pointer(_Tp)>
                                                            ^

/nix/store/5iypf3qjpn0vc09j964i18p95v34py3c-gcc-14-20241116/include/c++/14-20241116/type_traits(603): error: identifier "__is_member_function_pointer" is undefined
      : public __bool_constant<__is_member_function_pointer(_Tp)>
                               ^

/nix/store/5iypf3qjpn0vc09j964i18p95v34py3c-gcc-14-20241116/include/c++/14-20241116/type_traits(695): error: type name is not allowed
      : public __bool_constant<__is_reference(_Tp)>
                                              ^

/nix/store/5iypf3qjpn0vc09j964i18p95v34py3c-gcc-14-20241116/include/c++/14-20241116/type_traits(695): error: identifier "__is_reference" is undefined
      : public __bool_constant<__is_reference(_Tp)>
                               ^

/nix/store/5iypf3qjpn0vc09j964i18p95v34py3c-gcc-14-20241116/include/c++/14-20241116/type_traits(731): error: type name is not allowed
      : public __bool_constant<__is_object(_Tp)>
                                           ^

/nix/store/5iypf3qjpn0vc09j964i18p95v34py3c-gcc-14-20241116/include/c++/14-20241116/type_traits(731): error: identifier "__is_object" is undefined
      : public __bool_constant<__is_object(_Tp)>
                               ^

/nix/store/5iypf3qjpn0vc09j964i18p95v34py3c-gcc-14-20241116/include/c++/14-20241116/type_traits(760): error: type name is not allowed
      : public __bool_constant<__is_member_pointer(_Tp)>
                                                   ^

/nix/store/5iypf3qjpn0vc09j964i18p95v34py3c-gcc-14-20241116/include/c++/14-20241116/type_traits(760): error: identifier "__is_member_pointer" is undefined
      : public __bool_constant<__is_member_pointer(_Tp)>
                               ^

/nix/store/5iypf3qjpn0vc09j964i18p95v34py3c-gcc-14-20241116/include/c++/14-20241116/type_traits(1610): error: "__is_nothrow_new_constructible" is not a function or static data member
      constexpr bool __is_nothrow_new_constructible
                     ^

/nix/store/5iypf3qjpn0vc09j964i18p95v34py3c-gcc-14-20241116/include/c++/14-20241116/type_traits(1610): error: "constexpr" is not valid here
      constexpr bool __is_nothrow_new_constructible
      ^

/nix/store/5iypf3qjpn0vc09j964i18p95v34py3c-gcc-14-20241116/include/c++/14-20241116/bits/utility.h(237): error: __type_pack_element is not a template
      { using type = __type_pack_element<_Np, _Types...>; };
                     ^

16 errors detected in the compilation of "fs/share/xpra/cuda/RGBA_to_RGBAP.cu".


/nix/store/5iypf3qjpn0vc09j964i18p95v34py3c-gcc-14-20241116/include/c++/14-20241116/x86_64-unknown-linux-gnu/bits/c++config.h(827): error: user-defined literal operator not found
    typedef __decltype(0.0bf16) __bfloat16_t;
                       ^

/nix/store/5iypf3qjpn0vc09j964i18p95v34py3c-gcc-14-20241116/include/c++/14-20241116/type_traits(529): error: type name is not allowed
      : public __bool_constant<__is_array(_Tp)>
                                          ^

/nix/store/5iypf3qjpn0vc09j964i18p95v34py3c-gcc-14-20241116/include/c++/14-20241116/type_traits(529): error: identifier "__is_array" is undefined
      : public __bool_constant<__is_array(_Tp)>
                               ^

/nix/store/5iypf3qjpn0vc09j964i18p95v34py3c-gcc-14-20241116/include/c++/14-20241116/type_traits(581): error: type name is not allowed
      : public __bool_constant<__is_member_object_pointer(_Tp)>
                                                          ^

/nix/store/5iypf3qjpn0vc09j964i18p95v34py3c-gcc-14-20241116/include/c++/14-20241116/type_traits(581): error: identifier "__is_member_object_pointer" is undefined
      : public __bool_constant<__is_member_object_pointer(_Tp)>
                               ^

/nix/store/5iypf3qjpn0vc09j964i18p95v34py3c-gcc-14-20241116/include/c++/14-20241116/type_traits(603): error: type name is not allowed
      : public __bool_constant<__is_member_function_pointer(_Tp)>
                                                            ^

/nix/store/5iypf3qjpn0vc09j964i18p95v34py3c-gcc-14-20241116/include/c++/14-20241116/type_traits(603): error: identifier "__is_member_function_pointer" is undefined
      : public __bool_constant<__is_member_function_pointer(_Tp)>
                               ^

/nix/store/5iypf3qjpn0vc09j964i18p95v34py3c-gcc-14-20241116/include/c++/14-20241116/type_traits(695): error: type name is not allowed
      : public __bool_constant<__is_reference(_Tp)>
                                              ^

/nix/store/5iypf3qjpn0vc09j964i18p95v34py3c-gcc-14-20241116/include/c++/14-20241116/type_traits(695): error: identifier "__is_reference" is undefined
      : public __bool_constant<__is_reference(_Tp)>
                               ^

/nix/store/5iypf3qjpn0vc09j964i18p95v34py3c-gcc-14-20241116/include/c++/14-20241116/type_traits(731): error: type name is not allowed
      : public __bool_constant<__is_object(_Tp)>
                                           ^

/nix/store/5iypf3qjpn0vc09j964i18p95v34py3c-gcc-14-20241116/include/c++/14-20241116/type_traits(731): error: identifier "__is_object" is undefined
      : public __bool_constant<__is_object(_Tp)>
                               ^

/nix/store/5iypf3qjpn0vc09j964i18p95v34py3c-gcc-14-20241116/include/c++/14-20241116/type_traits(760): error: type name is not allowed
      : public __bool_constant<__is_member_pointer(_Tp)>
                                                   ^

/nix/store/5iypf3qjpn0vc09j964i18p95v34py3c-gcc-14-20241116/include/c++/14-20241116/type_traits(760): error: identifier "__is_member_pointer" is undefined
      : public __bool_constant<__is_member_pointer(_Tp)>
                               ^

/nix/store/5iypf3qjpn0vc09j964i18p95v34py3c-gcc-14-20241116/include/c++/14-20241116/type_traits(1610): error: "__is_nothrow_new_constructible" is not a function or static data member
      constexpr bool __is_nothrow_new_constructible
                     ^

/nix/store/5iypf3qjpn0vc09j964i18p95v34py3c-gcc-14-20241116/include/c++/14-20241116/type_traits(1610): error: "constexpr" is not valid here
      constexpr bool __is_nothrow_new_constructible
      ^

/nix/store/5iypf3qjpn0vc09j964i18p95v34py3c-gcc-14-20241116/include/c++/14-20241116/bits/utility.h(237): error: __type_pack_element is not a template
      { using type = __type_pack_element<_Np, _Types...>; };
                     ^

16 errors detected in the compilation of "fs/share/xpra/cuda/XRGB_to_YUV444.cu".

Error: failed to compile CUDA kernel BGRA_to_RGBAP
 using command: ['/nix/store/j3vxf5qwvsx8h0jb5ygkhv3g4km54v1x-cuda-merged-12.4/bin/nvcc', '-fatbin', '-std=c++11', '-arch=all', '-Wno-deprecated-gpu-targets', '-Xnvlink', '-ignore-host-info', '--allow-unsupported-compiler', '-c', 'fs/share/xpra/cuda/BGRX_to_RGB.cu', '-o', 'fs/share/xpra/cuda/BGRX_to_RGB.fatbin']

/nix/store/5iypf3qjpn0vc09j964i18p95v34py3c-gcc-14-20241116/include/c++/14-20241116/x86_64-unknown-linux-gnu/bits/c++config.h(827): error: user-defined literal operator not found
    typedef __decltype(0.0bf16) __bfloat16_t;
                       ^

/nix/store/5iypf3qjpn0vc09j964i18p95v34py3c-gcc-14-20241116/include/c++/14-20241116/type_traits(529): error: type name is not allowed
      : public __bool_constant<__is_array(_Tp)>
                                          ^

/nix/store/5iypf3qjpn0vc09j964i18p95v34py3c-gcc-14-20241116/include/c++/14-20241116/type_traits(529): error: identifier "__is_array" is undefined
      : public __bool_constant<__is_array(_Tp)>
                               ^

/nix/store/5iypf3qjpn0vc09j964i18p95v34py3c-gcc-14-20241116/include/c++/14-20241116/type_traits(581): error: type name is not allowed
      : public __bool_constant<__is_member_object_pointer(_Tp)>
                                                          ^

/nix/store/5iypf3qjpn0vc09j964i18p95v34py3c-gcc-14-20241116/include/c++/14-20241116/type_traits(581): error: identifier "__is_member_object_pointer" is undefined
      : public __bool_constant<__is_member_object_pointer(_Tp)>
                               ^

/nix/store/5iypf3qjpn0vc09j964i18p95v34py3c-gcc-14-20241116/include/c++/14-20241116/type_traits(603): error: type name is not allowed
      : public __bool_constant<__is_member_function_pointer(_Tp)>
                                                            ^

/nix/store/5iypf3qjpn0vc09j964i18p95v34py3c-gcc-14-20241116/include/c++/14-20241116/type_traits(603): error: identifier "__is_member_function_pointer" is undefined
      : public __bool_constant<__is_member_function_pointer(_Tp)>
                               ^

/nix/store/5iypf3qjpn0vc09j964i18p95v34py3c-gcc-14-20241116/include/c++/14-20241116/type_traits(695): error: type name is not allowed
      : public __bool_constant<__is_reference(_Tp)>
                                              ^

/nix/store/5iypf3qjpn0vc09j964i18p95v34py3c-gcc-14-20241116/include/c++/14-20241116/type_traits(695): error: identifier "__is_reference" is undefined
      : public __bool_constant<__is_reference(_Tp)>
                               ^

/nix/store/5iypf3qjpn0vc09j964i18p95v34py3c-gcc-14-20241116/include/c++/14-20241116/type_traits(731): error: type name is not allowed
      : public __bool_constant<__is_object(_Tp)>
                                           ^

/nix/store/5iypf3qjpn0vc09j964i18p95v34py3c-gcc-14-20241116/include/c++/14-20241116/type_traits(731): error: identifier "__is_object" is undefined
      : public __bool_constant<__is_object(_Tp)>
                               ^

/nix/store/5iypf3qjpn0vc09j964i18p95v34py3c-gcc-14-20241116/include/c++/14-20241116/type_traits(760): error: type name is not allowed
      : public __bool_constant<__is_member_pointer(_Tp)>
                                                   ^

/nix/store/5iypf3qjpn0vc09j964i18p95v34py3c-gcc-14-20241116/include/c++/14-20241116/type_traits(760): error: identifier "__is_member_pointer" is undefined
      : public __bool_constant<__is_member_pointer(_Tp)>
                               ^

/nix/store/5iypf3qjpn0vc09j964i18p95v34py3c-gcc-14-20241116/include/c++/14-20241116/type_traits(1610): error: "__is_nothrow_new_constructible" is not a function or static data member
      constexpr bool __is_nothrow_new_constructible
                     ^

/nix/store/5iypf3qjpn0vc09j964i18p95v34py3c-gcc-14-20241116/include/c++/14-20241116/type_traits(1610): error: "constexpr" is not valid here
      constexpr bool __is_nothrow_new_constructible
      ^

/nix/store/5iypf3qjpn0vc09j964i18p95v34py3c-gcc-14-20241116/include/c++/14-20241116/bits/utility.h(237): error: __type_pack_element is not a template
      { using type = __type_pack_element<_Np, _Types...>; };
                     ^

16 errors detected in the compilation of "fs/share/xpra/cuda/BGRX_to_RGB.cu".

Error: failed to compile CUDA kernel BGRA_to_RGBAP
 using command: ['/nix/store/j3vxf5qwvsx8h0jb5ygkhv3g4km54v1x-cuda-merged-12.4/bin/nvcc', '-fatbin', '-std=c++11', '-arch=all', '-Wno-deprecated-gpu-targets', '-Xnvlink', '-ignore-host-info', '--allow-unsupported-compiler', '-c', 'fs/share/xpra/cuda/RGBX_to_RGB.cu', '-o', 'fs/share/xpra/cuda/RGBX_to_RGB.fatbin']

/nix/store/5iypf3qjpn0vc09j964i18p95v34py3c-gcc-14-20241116/include/c++/14-20241116/x86_64-unknown-linux-gnu/bits/c++config.h(827): error: user-defined literal operator not found
    typedef __decltype(0.0bf16) __bfloat16_t;
                       ^

/nix/store/5iypf3qjpn0vc09j964i18p95v34py3c-gcc-14-20241116/include/c++/14-20241116/type_traits(529): error: type name is not allowed
      : public __bool_constant<__is_array(_Tp)>
                                          ^

/nix/store/5iypf3qjpn0vc09j964i18p95v34py3c-gcc-14-20241116/include/c++/14-20241116/type_traits(529): error: identifier "__is_array" is undefined
      : public __bool_constant<__is_array(_Tp)>
                               ^

/nix/store/5iypf3qjpn0vc09j964i18p95v34py3c-gcc-14-20241116/include/c++/14-20241116/type_traits(581): error: type name is not allowed
      : public __bool_constant<__is_member_object_pointer(_Tp)>
                                                          ^

/nix/store/5iypf3qjpn0vc09j964i18p95v34py3c-gcc-14-20241116/include/c++/14-20241116/type_traits(581): error: identifier "__is_member_object_pointer" is undefined
      : public __bool_constant<__is_member_object_pointer(_Tp)>
                               ^

/nix/store/5iypf3qjpn0vc09j964i18p95v34py3c-gcc-14-20241116/include/c++/14-20241116/type_traits(603): error: type name is not allowed
      : public __bool_constant<__is_member_function_pointer(_Tp)>
                                                            ^

/nix/store/5iypf3qjpn0vc09j964i18p95v34py3c-gcc-14-20241116/include/c++/14-20241116/type_traits(603): error: identifier "__is_member_function_pointer" is undefined
      : public __bool_constant<__is_member_function_pointer(_Tp)>
                               ^

/nix/store/5iypf3qjpn0vc09j964i18p95v34py3c-gcc-14-20241116/include/c++/14-20241116/type_traits(695): error: type name is not allowed
      : public __bool_constant<__is_reference(_Tp)>
                                              ^

/nix/store/5iypf3qjpn0vc09j964i18p95v34py3c-gcc-14-20241116/include/c++/14-20241116/type_traits(695): error: identifier "__is_reference" is undefined
      : public __bool_constant<__is_reference(_Tp)>
                               ^

/nix/store/5iypf3qjpn0vc09j964i18p95v34py3c-gcc-14-20241116/include/c++/14-20241116/type_traits(731): error: type name is not allowed
      : public __bool_constant<__is_object(_Tp)>
                                           ^

/nix/store/5iypf3qjpn0vc09j964i18p95v34py3c-gcc-14-20241116/include/c++/14-20241116/type_traits(731): error: identifier "__is_object" is undefined
      : public __bool_constant<__is_object(_Tp)>
                               ^

/nix/store/5iypf3qjpn0vc09j964i18p95v34py3c-gcc-14-20241116/include/c++/14-20241116/type_traits(760): error: type name is not allowed
      : public __bool_constant<__is_member_pointer(_Tp)>
                                                   ^

/nix/store/5iypf3qjpn0vc09j964i18p95v34py3c-gcc-14-20241116/include/c++/14-20241116/type_traits(760): error: identifier "__is_member_pointer" is undefined
      : public __bool_constant<__is_member_pointer(_Tp)>
                               ^

/nix/store/5iypf3qjpn0vc09j964i18p95v34py3c-gcc-14-20241116/include/c++/14-20241116/type_traits(1610): error: "__is_nothrow_new_constructible" is not a function or static data member
      constexpr bool __is_nothrow_new_constructible
                     ^

/nix/store/5iypf3qjpn0vc09j964i18p95v34py3c-gcc-14-20241116/include/c++/14-20241116/type_traits(1610): error: "constexpr" is not valid here
      constexpr bool __is_nothrow_new_constructible
      ^

/nix/store/5iypf3qjpn0vc09j964i18p95v34py3c-gcc-14-20241116/include/c++/14-20241116/bits/utility.h(237): error: __type_pack_element is not a template
      { using type = __type_pack_element<_Np, _Types...>; };
                     ^

16 errors detected in the compilation of "fs/share/xpra/cuda/RGBX_to_RGB.cu".

Error: failed to compile CUDA kernel BGRA_to_RGBAP
 using command: ['/nix/store/j3vxf5qwvsx8h0jb5ygkhv3g4km54v1x-cuda-merged-12.4/bin/nvcc', '-fatbin', '-std=c++11', '-arch=all', '-Wno-deprecated-gpu-targets', '-Xnvlink', '-ignore-host-info', '--allow-unsupported-compiler', '-c', 'fs/share/xpra/cuda/BGRA_to_RGBAP.cu', '-o', 'fs/share/xpra/cuda/BGRA_to_RGBAP.fatbin']

/nix/store/5iypf3qjpn0vc09j964i18p95v34py3c-gcc-14-20241116/include/c++/14-20241116/x86_64-unknown-linux-gnu/bits/c++config.h(827): error: user-defined literal operator not found
    typedef __decltype(0.0bf16) __bfloat16_t;
                       ^

/nix/store/5iypf3qjpn0vc09j964i18p95v34py3c-gcc-14-20241116/include/c++/14-20241116/type_traits(529): error: type name is not allowed
      : public __bool_constant<__is_array(_Tp)>
                                          ^

/nix/store/5iypf3qjpn0vc09j964i18p95v34py3c-gcc-14-20241116/include/c++/14-20241116/type_traits(529): error: identifier "__is_array" is undefined
      : public __bool_constant<__is_array(_Tp)>
                               ^

/nix/store/5iypf3qjpn0vc09j964i18p95v34py3c-gcc-14-20241116/include/c++/14-20241116/type_traits(581): error: type name is not allowed
      : public __bool_constant<__is_member_object_pointer(_Tp)>
                                                          ^

/nix/store/5iypf3qjpn0vc09j964i18p95v34py3c-gcc-14-20241116/include/c++/14-20241116/type_traits(581): error: identifier "__is_member_object_pointer" is undefined
      : public __bool_constant<__is_member_object_pointer(_Tp)>
                               ^

/nix/store/5iypf3qjpn0vc09j964i18p95v34py3c-gcc-14-20241116/include/c++/14-20241116/type_traits(603): error: type name is not allowed
      : public __bool_constant<__is_member_function_pointer(_Tp)>
                                                            ^

/nix/store/5iypf3qjpn0vc09j964i18p95v34py3c-gcc-14-20241116/include/c++/14-20241116/type_traits(603): error: identifier "__is_member_function_pointer" is undefined
      : public __bool_constant<__is_member_function_pointer(_Tp)>
                               ^

/nix/store/5iypf3qjpn0vc09j964i18p95v34py3c-gcc-14-20241116/include/c++/14-20241116/type_traits(695): error: type name is not allowed
      : public __bool_constant<__is_reference(_Tp)>
                                              ^

/nix/store/5iypf3qjpn0vc09j964i18p95v34py3c-gcc-14-20241116/include/c++/14-20241116/type_traits(695): error: identifier "__is_reference" is undefined
      : public __bool_constant<__is_reference(_Tp)>
                               ^

/nix/store/5iypf3qjpn0vc09j964i18p95v34py3c-gcc-14-20241116/include/c++/14-20241116/type_traits(731): error: type name is not allowed
      : public __bool_constant<__is_object(_Tp)>
                                           ^

/nix/store/5iypf3qjpn0vc09j964i18p95v34py3c-gcc-14-20241116/include/c++/14-20241116/type_traits(731): error: identifier "__is_object" is undefined
      : public __bool_constant<__is_object(_Tp)>
                               ^

/nix/store/5iypf3qjpn0vc09j964i18p95v34py3c-gcc-14-20241116/include/c++/14-20241116/type_traits(760): error: type name is not allowed
      : public __bool_constant<__is_member_pointer(_Tp)>
                                                   ^

/nix/store/5iypf3qjpn0vc09j964i18p95v34py3c-gcc-14-20241116/include/c++/14-20241116/type_traits(760): error: identifier "__is_member_pointer" is undefined
      : public __bool_constant<__is_member_pointer(_Tp)>
                               ^

/nix/store/5iypf3qjpn0vc09j964i18p95v34py3c-gcc-14-20241116/include/c++/14-20241116/type_traits(1610): error: "__is_nothrow_new_constructible" is not a function or static data member
      constexpr bool __is_nothrow_new_constructible
                     ^

/nix/store/5iypf3qjpn0vc09j964i18p95v34py3c-gcc-14-20241116/include/c++/14-20241116/type_traits(1610): error: "constexpr" is not valid here
      constexpr bool __is_nothrow_new_constructible
      ^

/nix/store/5iypf3qjpn0vc09j964i18p95v34py3c-gcc-14-20241116/include/c++/14-20241116/bits/utility.h(237): error: __type_pack_element is not a template
      { using type = __type_pack_element<_Np, _Types...>; };
                     ^

16 errors detected in the compilation of "fs/share/xpra/cuda/BGRA_to_RGBAP.cu".

failed to rebuild the cuda kernels ['XRGB_to_NV12', 'XRGB_to_YUV444', 'BGRX_to_NV12', 'BGRX_to_YUV444', 'BGRX_to_RGB', 'RGBX_to_RGB', 'RGBA_to_RGBAP', 'BGRA_to_RGBAP']

@CorbinWunderlich
Copy link
Member

It says the error. Maybe try adding clang to the build inputs? @FliegendeWurst

@FliegendeWurst
Copy link
Member

Indeed that works.

diff --git a/pkgs/tools/X11/xpra/default.nix b/pkgs/tools/X11/xpra/default.nix
index 34b4d0f97737..1de161cc0629 100644
--- a/pkgs/tools/X11/xpra/default.nix
+++ b/pkgs/tools/X11/xpra/default.nix
@@ -39,6 +39,7 @@
   xorg,
   xorgserver,
   xxHash,
+  clang,
 }:
 
 let
@@ -99,6 +100,7 @@ buildPythonApplication rec {
   INCLUDE_DIRS = "${pam}/include";
 
   nativeBuildInputs = [
+    clang
     gobject-introspection
     pkg-config
     wrapGAppsHook3

@hxtmdev
Copy link
Member Author

hxtmdev commented Dec 21, 2024

I bisected some, so far I got it down to a staging merge commit 3f0a5da, I'll try and find out a bit about why the staging changes made this necessary and in any case update the PR in the next day or so. (Unless you prefer to merge as-is and open another.)

@hxtmdev
Copy link
Member Author

hxtmdev commented Dec 22, 2024

Bisect on staging runs until the heat death of the universe on my machine. I simply applied your suggestion and rebuilt.

@CorbinWunderlich can you verify that it works as intended on your hardware again?

@CorbinWunderlich
Copy link
Member

Bisect on staging runs until the heat death of the universe on my machine. I simply applied your suggestion and rebuilt.

@CorbinWunderlich can you verify that it works as intended on your hardware again?

Seems good on nvidia 550.90.7-grid (vgpu guest driver)

@FliegendeWurst
Copy link
Member

Technically it should be patchShebangs --build, to get the right Python when cross-compiling.

@FliegendeWurst
Copy link
Member

FliegendeWurst commented Dec 23, 2024

Unless the script is used at runtime. Not really obvious to me. Nevermind, the linked issue states it is used at build time.

fs/bin/build_cuda_kernels.py was missing shebang fixup.

clang will be necessary for incoming staging changes.

Tested-by: Corbin Wunderlich <[email protected]>
With-suggestions-by: Corbin Wunderlich <[email protected]>
Co-authored-by: Arne Keller <[email protected]>
@hxtmdev
Copy link
Member Author

hxtmdev commented Dec 23, 2024

Technically it should be patchShebangs --build, to get the right Python when cross-compiling.

Thanks!

the linked issue states it is used at build time

I also verified that it is not included in the final output at all for some fallback path.

@FliegendeWurst
Copy link
Member

FliegendeWurst commented Dec 23, 2024

I think you also need a python in the nativeBuildInputs (only strictly required if strictDeps = true). Unless one of the other inputs there propagates python.

@hxtmdev
Copy link
Member Author

hxtmdev commented Dec 23, 2024

only strictly required if strictDeps = true

nix eval -f . xpraWithNvenc.strictDeps says true so I suppose some other input does do this.

Should it be added anyway somewhere for clarity? So far, python3 is only in propagatedBuildInputs and I'm not 100% certain where buildPythonApplication puts those.

@FliegendeWurst
Copy link
Member

Oh, I somehow missed this package is a python application already. In that case it is available automatically.

@FliegendeWurst FliegendeWurst merged commit b9c3779 into NixOS:master Dec 23, 2024
23 of 24 checks passed
@nixpkgs-ci
Copy link
Contributor

nixpkgs-ci bot commented Dec 23, 2024

Successfully created backport PR for release-24.11:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
10.rebuild-darwin: 0 This PR does not cause any packages to rebuild on Darwin 10.rebuild-linux: 1-10 12.approvals: 2 This PR was reviewed and approved by two reputable people 12.approved-by: package-maintainer This PR was reviewed and approved by a maintainer listed in the package backport release-24.11 Backport PR automatically
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Build failure: xpraWithNvenc
5 participants