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

add wgpu-native 0.19.4.1 #23963

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

add wgpu-native 0.19.4.1 #23963

wants to merge 2 commits into from

Conversation

Sahnvour
Copy link
Contributor

@Sahnvour Sahnvour commented May 12, 2024

Specify library name and version: wgpu-native/0.19.4.1

WebGPU, despite its name, is not only usable from web browsers. wgpu-native is Mozilla's native implementation in rust.
It's useful to various graphical native applications and games.

This recipe uses prebuilt binaries from the project, to avoid dependency on the rust toolchain.

I haven't tried with hooks enabled, since they don't seem to be supported by conan 2.x.


@conan-center-bot

This comment has been minimized.

@conan-center-bot

This comment has been minimized.

Copy link
Contributor

Hooks produced the following warnings for commit 4ac05c6
wgpu_native/0.19.4.1@#714909218daa4897966171a6d49d49d3
post_package(): WARN: [MISSING SYSTEM LIBS (KB-H043)] Library './lib/libwgpu_native.so' links to system library 'm' but it is not in cpp_info.system_libs.
post_package(): WARN: [MISSING SYSTEM LIBS (KB-H043)] Library './lib/libwgpu_native.so' links to system library 'pthread' but it is not in cpp_info.system_libs.
post_package(): WARN: [MISSING SYSTEM LIBS (KB-H043)] Library './lib/libwgpu_native.so' links to system library 'dl' but it is not in cpp_info.system_libs.

@AbrilRBS
Copy link
Member

Hi @Sahnvour thanks a lot for taking the time to create the recipe and submit the PR, we really appreciate it!

I have a general question before being able to review this: What's the general use-case of this recipe in the context of Conan? Do you have any insight on that? Thanks! :)

@conan-center-bot

This comment has been minimized.

@Sahnvour
Copy link
Contributor Author

Hi @Sahnvour thanks a lot for taking the time to create the recipe and submit the PR, we really appreciate it!

I have a general question before being able to review this: What's the general use-case of this recipe in the context of Conan? Do you have any insight on that? Thanks! :)

WebGPU is a cross-platform low-level graphics API to do rendering with GPUs.
Although it's currently used in recent/nightly builds of web browsers, it can be used to make games among other things. You can think of it as an alternative to OpenGL or Vulkan.

Having it in conan is useful because it isn't packaged with the OSes or drivers, and allows to benefit from conan-center and local conan cache (I'm thinking of CI in particular).

PS: I'm working through the errors as they come from the github actions.

@Sahnvour
Copy link
Contributor Author

Sahnvour commented May 12, 2024

Hope this is clear enough @AbrilRBS.

I have two questions:

  • the prebuilt archives from the project do not contain any license files (and you can see it's dual-licensed), but this fails a hook, what's the best way to add them to the package?
  • it seems test_package using meson is not supported in the pipeline? Should I change it to cmake?

@AbrilRBS
Copy link
Member

Hi @Sahnvour check 072a28e for the license and 7a500ac for how to use something other than cmake in the test_package (We usually prefer CMake because we assume it's installed in the agents, unlike other build tools)

The first commit seems to have a few linter issues, let me quickly fix it :)

@conan-io conan-io deleted a comment from conan-center-bot May 12, 2024
@conan-center-bot

This comment has been minimized.

@conan-center-bot

This comment has been minimized.

@conan-center-bot

This comment has been minimized.

@conan-center-bot

This comment has been minimized.

@conan-center-bot
Copy link
Collaborator

Conan v1 pipeline ❌

Failure in build 12 (acdc5ecc9edd43be33a30a5da586f5da58f63bc0):

  • wgpu_native/0.19.4.1:
    CI failed to create some packages (All logs)

    Logs for packageID 24647d9fe8ec489125dfbae4b3ebefaf7581674c:
    [settings]
    arch=x86_64
    build_type=Release
    compiler=gcc
    compiler.libcxx=libstdc++11
    compiler.version=5
    os=Linux
    [options]
    wgpu_native:shared=False
    
    [...]
    /rustc/25ef9e3d85d934b27d9dada2f9dd52b1dc63bb04/library/std/src/sys/pal/unix/thread_local_key.rs:27: undefined reference to `pthread_key_delete'
    /rustc/25ef9e3d85d934b27d9dada2f9dd52b1dc63bb04/library/std/src/sys/pal/unix/thread_local_key.rs:27: undefined reference to `pthread_key_delete'
    /home/conan/workspace/prod-v1/bsr/42496/cbada/.conan/data/wgpu_native/0.19.4.1/_/_/package/24647d9fe8ec489125dfbae4b3ebefaf7581674c/lib/libwgpu_native.a(wgpu_hal-75b7d8b4dbc25ba7.wgpu_hal.7a4e391671d33bba-cgu.09.rcgu.o): In function `libloading::os::unix::Library::open::h2a6cfbcdfc6662c2':
    wgpu_hal.7a4e391671d33bba-cgu.09:(.text._ZN10libloading2os4unix7Library4open17h2a6cfbcdfc6662c2E+0x66): undefined reference to `dlopen'
    wgpu_hal.7a4e391671d33bba-cgu.09:(.text._ZN10libloading2os4unix7Library4open17h2a6cfbcdfc6662c2E+0xbe): undefined reference to `dlerror'
    /home/conan/workspace/prod-v1/bsr/42496/cbada/.conan/data/wgpu_native/0.19.4.1/_/_/package/24647d9fe8ec489125dfbae4b3ebefaf7581674c/lib/libwgpu_native.a(wgpu_hal-75b7d8b4dbc25ba7.wgpu_hal.7a4e391671d33bba-cgu.09.rcgu.o): In function `libloading::os::unix::Library::open::h3fbff0cde178eb51':
    wgpu_hal.7a4e391671d33bba-cgu.09:(.text._ZN10libloading2os4unix7Library4open17h3fbff0cde178eb51E+0x70): undefined reference to `dlopen'
    wgpu_hal.7a4e391671d33bba-cgu.09:(.text._ZN10libloading2os4unix7Library4open17h3fbff0cde178eb51E+0xc8): undefined reference to `dlerror'
    /home/conan/workspace/prod-v1/bsr/42496/cbada/.conan/data/wgpu_native/0.19.4.1/_/_/package/24647d9fe8ec489125dfbae4b3ebefaf7581674c/lib/libwgpu_native.a(wgpu_hal-75b7d8b4dbc25ba7.wgpu_hal.7a4e391671d33bba-cgu.09.rcgu.o): In function `libloading::os::unix::Library::get_impl::h0094871d966ffab9':
    wgpu_hal.7a4e391671d33bba-cgu.09:(.text._ZN10libloading2os4unix7Library8get_impl17h0094871d966ffab9E+0x4a): undefined reference to `dlerror'
    wgpu_hal.7a4e391671d33bba-cgu.09:(.text._ZN10libloading2os4unix7Library8get_impl17h0094871d966ffab9E+0x57): undefined reference to `dlsym'
    wgpu_hal.7a4e391671d33bba-cgu.09:(.text._ZN10libloading2os4unix7Library8get_impl17h0094871d966ffab9E+0x87): undefined reference to `dlerror'
    /home/conan/workspace/prod-v1/bsr/42496/cbada/.conan/data/wgpu_native/0.19.4.1/_/_/package/24647d9fe8ec489125dfbae4b3ebefaf7581674c/lib/libwgpu_native.a(libloading-d7b1c0dba78e6808.libloading.960988fec167d8ba-cgu.0.rcgu.o): In function `libloading::os::unix::Library::close::hb08310e01485de2b':
    libloading.960988fec167d8ba-cgu.0:(.text._ZN10libloading2os4unix7Library5close17hb08310e01485de2bE+0x13): undefined reference to `dlclose'
    libloading.960988fec167d8ba-cgu.0:(.text._ZN10libloading2os4unix7Library5close17hb08310e01485de2bE+0x1d): undefined reference to `dlerror'
    libloading.960988fec167d8ba-cgu.0:(.text._ZN10libloading2os4unix7Library5close17hb08310e01485de2bE+0x84): undefined reference to `dlclose'
    /home/conan/workspace/prod-v1/bsr/42496/cbada/.conan/data/wgpu_native/0.19.4.1/_/_/package/24647d9fe8ec489125dfbae4b3ebefaf7581674c/lib/libwgpu_native.a(libloading-d7b1c0dba78e6808.libloading.960988fec167d8ba-cgu.0.rcgu.o): In function `_$LT$libloading..os..unix..Library$u20$as$u20$core..ops..drop..Drop$GT$::drop::h3f69a76e8f64e06c':
    libloading.960988fec167d8ba-cgu.0:(.text._ZN71_$LT$libloading..os..unix..Library$u20$as$u20$core..ops..drop..Drop$GT$4drop17h3f69a76e8f64e06cE+0x5): undefined reference to `dlclose'
    /home/conan/workspace/prod-v1/bsr/42496/cbada/.conan/data/wgpu_native/0.19.4.1/_/_/package/24647d9fe8ec489125dfbae4b3ebefaf7581674c/lib/libwgpu_native.a(libloading-d7b1c0dba78e6808.libloading.960988fec167d8ba-cgu.0.rcgu.o): In function `libloading::safe::Library::close::h10914456ece3b642':
    libloading.960988fec167d8ba-cgu.0:(.text._ZN10libloading4safe7Library5close17h10914456ece3b642E+0x13): undefined reference to `dlclose'
    libloading.960988fec167d8ba-cgu.0:(.text._ZN10libloading4safe7Library5close17h10914456ece3b642E+0x1d): undefined reference to `dlerror'
    libloading.960988fec167d8ba-cgu.0:(.text._ZN10libloading4safe7Library5close17h10914456ece3b642E+0x84): undefined reference to `dlclose'
    /home/conan/workspace/prod-v1/bsr/42496/cbada/.conan/data/wgpu_native/0.19.4.1/_/_/package/24647d9fe8ec489125dfbae4b3ebefaf7581674c/lib/libwgpu_native.a(ash-3bac2f1a1c9f563a.ash.2b846bd33479919b-cgu.4.rcgu.o): In function `libloading::os::unix::Library::open::hf6fb946ba4998b43':
    ash.2b846bd33479919b-cgu.4:(.text._ZN10libloading2os4unix7Library4open17hf6fb946ba4998b43E+0x62): undefined reference to `dlopen'
    ash.2b846bd33479919b-cgu.4:(.text._ZN10libloading2os4unix7Library4open17hf6fb946ba4998b43E+0xb6): undefined reference to `dlerror'
    /home/conan/workspace/prod-v1/bsr/42496/cbada/.conan/data/wgpu_native/0.19.4.1/_/_/package/24647d9fe8ec489125dfbae4b3ebefaf7581674c/lib/libwgpu_native.a(ash-3bac2f1a1c9f563a.ash.2b846bd33479919b-cgu.4.rcgu.o): In function `libloading::os::unix::Library::get_impl::h1014dcd2bc1ee1af':
    ash.2b846bd33479919b-cgu.4:(.text._ZN10libloading2os4unix7Library8get_impl17h1014dcd2bc1ee1afE+0x4a): undefined reference to `dlerror'
    ash.2b846bd33479919b-cgu.4:(.text._ZN10libloading2os4unix7Library8get_impl17h1014dcd2bc1ee1afE+0x57): undefined reference to `dlsym'
    ash.2b846bd33479919b-cgu.4:(.text._ZN10libloading2os4unix7Library8get_impl17h1014dcd2bc1ee1afE+0x87): undefined reference to `dlerror'
    /home/conan/workspace/prod-v1/bsr/42496/cbada/.conan/data/wgpu_native/0.19.4.1/_/_/package/24647d9fe8ec489125dfbae4b3ebefaf7581674c/lib/libwgpu_native.a(libloading-5f9a4fb6a436313e.libloading.c1936189b829da65-cgu.0.rcgu.o): In function `libloading::os::unix::Library::close::h2a070ac4c347cc61':
    libloading.c1936189b829da65-cgu.0:(.text._ZN10libloading2os4unix7Library5close17h2a070ac4c347cc61E+0x13): undefined reference to `dlclose'
    libloading.c1936189b829da65-cgu.0:(.text._ZN10libloading2os4unix7Library5close17h2a070ac4c347cc61E+0x1d): undefined reference to `dlerror'
    libloading.c1936189b829da65-cgu.0:(.text._ZN10libloading2os4unix7Library5close17h2a070ac4c347cc61E+0x84): undefined reference to `dlclose'
    /home/conan/workspace/prod-v1/bsr/42496/cbada/.conan/data/wgpu_native/0.19.4.1/_/_/package/24647d9fe8ec489125dfbae4b3ebefaf7581674c/lib/libwgpu_native.a(libloading-5f9a4fb6a436313e.libloading.c1936189b829da65-cgu.0.rcgu.o): In function `_$LT$libloading..os..unix..Library$u20$as$u20$core..ops..drop..Drop$GT$::drop::ha8b3826103e27e21':
    libloading.c1936189b829da65-cgu.0:(.text._ZN71_$LT$libloading..os..unix..Library$u20$as$u20$core..ops..drop..Drop$GT$4drop17ha8b3826103e27e21E+0x5): undefined reference to `dlclose'
    /home/conan/workspace/prod-v1/bsr/42496/cbada/.conan/data/wgpu_native/0.19.4.1/_/_/package/24647d9fe8ec489125dfbae4b3ebefaf7581674c/lib/libwgpu_native.a(libloading-5f9a4fb6a436313e.libloading.c1936189b829da65-cgu.0.rcgu.o): In function `libloading::safe::Library::close::h6e3866a40fd7bd76':
    libloading.c1936189b829da65-cgu.0:(.text._ZN10libloading4safe7Library5close17h6e3866a40fd7bd76E+0x13): undefined reference to `dlclose'
    libloading.c1936189b829da65-cgu.0:(.text._ZN10libloading4safe7Library5close17h6e3866a40fd7bd76E+0x1d): undefined reference to `dlerror'
    libloading.c1936189b829da65-cgu.0:(.text._ZN10libloading4safe7Library5close17h6e3866a40fd7bd76E+0x84): undefined reference to `dlclose'
    collect2: error: ld returned 1 exit status
    make[2]: *** [test_package] Error 1
    make[1]: *** [CMakeFiles/test_package.dir/all] Error 2
    make: *** [all] Error 2
    WARN: *** Conan 1 is legacy and on a deprecation path ***
    WARN: *** Please upgrade to Conan 2 ***
    wgpu_native/0.19.4.1 (test package): WARN: Using the new toolchains and generators without specifying a build profile (e.g: -pr:b=default) is discouraged and might cause failures and unexpected behavior
    wgpu_native/0.19.4.1 (test package): WARN: Using the new toolchains and generators without specifying a build profile (e.g: -pr:b=default) is discouraged and might cause failures and unexpected behavior
    ERROR: wgpu_native/0.19.4.1 (test package): Error in build() method, line 20
    	cmake.build()
    	ConanException: Error 2 while executing cmake --build "/home/conan/workspace/prod-v1/bsr/cci-9967f624/recipes/wgpu_native/all/test_package/build/Release" '--' '-j3'
    

Note: To save resources, CI tries to finish as soon as an error is found. For this reason you might find that not all the references have been launched or not all the configurations for a given reference. Also, take into account that we cannot guarantee the order of execution as it depends on CI workload and workers availability.


Conan v2 pipeline ❌

Note: Conan v2 builds are now mandatory. Please read our discussion about it.

The v2 pipeline failed. Please, review the errors and note this is required for pull requests to be merged. In case this recipe is still not ported to Conan 2.x, please, ping @conan-io/barbarians on the PR and we will help you.

See details:

Failure in build 12 (acdc5ecc9edd43be33a30a5da586f5da58f63bc0):

  • wgpu_native/0.19.4.1:
    CI failed to create some packages (All logs)

    Logs for packageID 4e8d97aca26e12a63ead9fc2a8fa0d78647207f5:
    [settings]
    arch=x86_64
    build_type=Release
    compiler=gcc
    compiler.cppstd=17
    compiler.libcxx=libstdc++11
    compiler.version=11
    os=Linux
    [options]
    */*:shared=False
    
    [...]
    /rustc/25ef9e3d85d934b27d9dada2f9dd52b1dc63bb04/library/std/src/sys/pal/unix/thread_local_key.rs:27: undefined reference to `pthread_key_delete'
    /opt/conan/binutils/bin/ld: /rustc/25ef9e3d85d934b27d9dada2f9dd52b1dc63bb04/library/std/src/sys/pal/unix/thread_local_key.rs:27: undefined reference to `pthread_key_delete'
    /opt/conan/binutils/bin/ld: /home/conan/workspace/prod-v2/bsr/38061/ebeab/p/b/wgpu_23bb309e6e13f/p/lib/libwgpu_native.a(wgpu_hal-75b7d8b4dbc25ba7.wgpu_hal.7a4e391671d33bba-cgu.09.rcgu.o): in function `libloading::os::unix::Library::open':
    wgpu_hal.7a4e391671d33bba-cgu.09:(.text._ZN10libloading2os4unix7Library4open17h2a6cfbcdfc6662c2E+0x66): undefined reference to `dlopen'
    /opt/conan/binutils/bin/ld: wgpu_hal.7a4e391671d33bba-cgu.09:(.text._ZN10libloading2os4unix7Library4open17h2a6cfbcdfc6662c2E+0xbe): undefined reference to `dlerror'
    /opt/conan/binutils/bin/ld: /home/conan/workspace/prod-v2/bsr/38061/ebeab/p/b/wgpu_23bb309e6e13f/p/lib/libwgpu_native.a(wgpu_hal-75b7d8b4dbc25ba7.wgpu_hal.7a4e391671d33bba-cgu.09.rcgu.o): in function `libloading::os::unix::Library::open':
    wgpu_hal.7a4e391671d33bba-cgu.09:(.text._ZN10libloading2os4unix7Library4open17h3fbff0cde178eb51E+0x70): undefined reference to `dlopen'
    /opt/conan/binutils/bin/ld: wgpu_hal.7a4e391671d33bba-cgu.09:(.text._ZN10libloading2os4unix7Library4open17h3fbff0cde178eb51E+0xc8): undefined reference to `dlerror'
    /opt/conan/binutils/bin/ld: /home/conan/workspace/prod-v2/bsr/38061/ebeab/p/b/wgpu_23bb309e6e13f/p/lib/libwgpu_native.a(wgpu_hal-75b7d8b4dbc25ba7.wgpu_hal.7a4e391671d33bba-cgu.09.rcgu.o): in function `libloading::os::unix::Library::get_impl':
    wgpu_hal.7a4e391671d33bba-cgu.09:(.text._ZN10libloading2os4unix7Library8get_impl17h0094871d966ffab9E+0x4a): undefined reference to `dlerror'
    /opt/conan/binutils/bin/ld: wgpu_hal.7a4e391671d33bba-cgu.09:(.text._ZN10libloading2os4unix7Library8get_impl17h0094871d966ffab9E+0x57): undefined reference to `dlsym'
    /opt/conan/binutils/bin/ld: wgpu_hal.7a4e391671d33bba-cgu.09:(.text._ZN10libloading2os4unix7Library8get_impl17h0094871d966ffab9E+0x87): undefined reference to `dlerror'
    /opt/conan/binutils/bin/ld: /home/conan/workspace/prod-v2/bsr/38061/ebeab/p/b/wgpu_23bb309e6e13f/p/lib/libwgpu_native.a(libloading-d7b1c0dba78e6808.libloading.960988fec167d8ba-cgu.0.rcgu.o): in function `libloading::os::unix::Library::close':
    libloading.960988fec167d8ba-cgu.0:(.text._ZN10libloading2os4unix7Library5close17hb08310e01485de2bE+0x13): undefined reference to `dlclose'
    /opt/conan/binutils/bin/ld: libloading.960988fec167d8ba-cgu.0:(.text._ZN10libloading2os4unix7Library5close17hb08310e01485de2bE+0x1d): undefined reference to `dlerror'
    /opt/conan/binutils/bin/ld: libloading.960988fec167d8ba-cgu.0:(.text._ZN10libloading2os4unix7Library5close17hb08310e01485de2bE+0x84): undefined reference to `dlclose'
    /opt/conan/binutils/bin/ld: /home/conan/workspace/prod-v2/bsr/38061/ebeab/p/b/wgpu_23bb309e6e13f/p/lib/libwgpu_native.a(libloading-d7b1c0dba78e6808.libloading.960988fec167d8ba-cgu.0.rcgu.o): in function `<libloading::os::unix::Library as core::ops::drop::Drop>::drop':
    libloading.960988fec167d8ba-cgu.0:(.text._ZN71_$LT$libloading..os..unix..Library$u20$as$u20$core..ops..drop..Drop$GT$4drop17h3f69a76e8f64e06cE+0x5): undefined reference to `dlclose'
    /opt/conan/binutils/bin/ld: /home/conan/workspace/prod-v2/bsr/38061/ebeab/p/b/wgpu_23bb309e6e13f/p/lib/libwgpu_native.a(libloading-d7b1c0dba78e6808.libloading.960988fec167d8ba-cgu.0.rcgu.o): in function `libloading::safe::Library::close':
    libloading.960988fec167d8ba-cgu.0:(.text._ZN10libloading4safe7Library5close17h10914456ece3b642E+0x13): undefined reference to `dlclose'
    /opt/conan/binutils/bin/ld: libloading.960988fec167d8ba-cgu.0:(.text._ZN10libloading4safe7Library5close17h10914456ece3b642E+0x1d): undefined reference to `dlerror'
    /opt/conan/binutils/bin/ld: libloading.960988fec167d8ba-cgu.0:(.text._ZN10libloading4safe7Library5close17h10914456ece3b642E+0x84): undefined reference to `dlclose'
    /opt/conan/binutils/bin/ld: /home/conan/workspace/prod-v2/bsr/38061/ebeab/p/b/wgpu_23bb309e6e13f/p/lib/libwgpu_native.a(ash-3bac2f1a1c9f563a.ash.2b846bd33479919b-cgu.4.rcgu.o): in function `libloading::os::unix::Library::open':
    ash.2b846bd33479919b-cgu.4:(.text._ZN10libloading2os4unix7Library4open17hf6fb946ba4998b43E+0x62): undefined reference to `dlopen'
    /opt/conan/binutils/bin/ld: ash.2b846bd33479919b-cgu.4:(.text._ZN10libloading2os4unix7Library4open17hf6fb946ba4998b43E+0xb6): undefined reference to `dlerror'
    /opt/conan/binutils/bin/ld: /home/conan/workspace/prod-v2/bsr/38061/ebeab/p/b/wgpu_23bb309e6e13f/p/lib/libwgpu_native.a(ash-3bac2f1a1c9f563a.ash.2b846bd33479919b-cgu.4.rcgu.o): in function `libloading::os::unix::Library::get_impl':
    ash.2b846bd33479919b-cgu.4:(.text._ZN10libloading2os4unix7Library8get_impl17h1014dcd2bc1ee1afE+0x4a): undefined reference to `dlerror'
    /opt/conan/binutils/bin/ld: ash.2b846bd33479919b-cgu.4:(.text._ZN10libloading2os4unix7Library8get_impl17h1014dcd2bc1ee1afE+0x57): undefined reference to `dlsym'
    /opt/conan/binutils/bin/ld: ash.2b846bd33479919b-cgu.4:(.text._ZN10libloading2os4unix7Library8get_impl17h1014dcd2bc1ee1afE+0x87): undefined reference to `dlerror'
    /opt/conan/binutils/bin/ld: /home/conan/workspace/prod-v2/bsr/38061/ebeab/p/b/wgpu_23bb309e6e13f/p/lib/libwgpu_native.a(libloading-5f9a4fb6a436313e.libloading.c1936189b829da65-cgu.0.rcgu.o): in function `libloading::os::unix::Library::close':
    libloading.c1936189b829da65-cgu.0:(.text._ZN10libloading2os4unix7Library5close17h2a070ac4c347cc61E+0x13): undefined reference to `dlclose'
    /opt/conan/binutils/bin/ld: libloading.c1936189b829da65-cgu.0:(.text._ZN10libloading2os4unix7Library5close17h2a070ac4c347cc61E+0x1d): undefined reference to `dlerror'
    /opt/conan/binutils/bin/ld: libloading.c1936189b829da65-cgu.0:(.text._ZN10libloading2os4unix7Library5close17h2a070ac4c347cc61E+0x84): undefined reference to `dlclose'
    /opt/conan/binutils/bin/ld: /home/conan/workspace/prod-v2/bsr/38061/ebeab/p/b/wgpu_23bb309e6e13f/p/lib/libwgpu_native.a(libloading-5f9a4fb6a436313e.libloading.c1936189b829da65-cgu.0.rcgu.o): in function `<libloading::os::unix::Library as core::ops::drop::Drop>::drop':
    libloading.c1936189b829da65-cgu.0:(.text._ZN71_$LT$libloading..os..unix..Library$u20$as$u20$core..ops..drop..Drop$GT$4drop17ha8b3826103e27e21E+0x5): undefined reference to `dlclose'
    /opt/conan/binutils/bin/ld: /home/conan/workspace/prod-v2/bsr/38061/ebeab/p/b/wgpu_23bb309e6e13f/p/lib/libwgpu_native.a(libloading-5f9a4fb6a436313e.libloading.c1936189b829da65-cgu.0.rcgu.o): in function `libloading::safe::Library::close':
    libloading.c1936189b829da65-cgu.0:(.text._ZN10libloading4safe7Library5close17h6e3866a40fd7bd76E+0x13): undefined reference to `dlclose'
    /opt/conan/binutils/bin/ld: libloading.c1936189b829da65-cgu.0:(.text._ZN10libloading4safe7Library5close17h6e3866a40fd7bd76E+0x1d): undefined reference to `dlerror'
    /opt/conan/binutils/bin/ld: libloading.c1936189b829da65-cgu.0:(.text._ZN10libloading4safe7Library5close17h6e3866a40fd7bd76E+0x84): undefined reference to `dlclose'
    collect2: error: ld returned 1 exit status
    CMakeFiles/test_package.dir/build.make:84: recipe for target 'test_package' failed
    make[2]: *** [test_package] Error 1
    CMakeFiles/Makefile2:75: recipe for target 'CMakeFiles/test_package.dir/all' failed
    make[1]: *** [CMakeFiles/test_package.dir/all] Error 2
    Makefile:83: recipe for target 'all' failed
    make: *** [all] Error 2
    
    ERROR: wgpu_native/0.19.4.1 (test package): Error in build() method, line 20
    	cmake.build()
    	ConanException: Error 2 while executing
    

Note: To save resources, CI tries to finish as soon as an error is found. For this reason you might find that not all the references have been launched or not all the configurations for a given reference. Also, take into account that we cannot guarantee the order of execution as it depends on CI workload and workers availability.

@Sahnvour
Copy link
Contributor Author

Sahnvour commented May 13, 2024

I think I made progress but I'm not sure why the link fails, since the recipe adds the required linux libraries (I don't know about MacOS yet though). It also works both in static and shared on my machine. Do you have any idea @AbrilRBS ?

@AbrilRBS AbrilRBS self-assigned this May 13, 2024
@Sahnvour
Copy link
Contributor Author

Sahnvour commented Aug 2, 2024

Hi, I'm still interested in getting this merged, but was blocked at the time. Let me know how we can go further.

@Sahnvour
Copy link
Contributor Author

Hi @AbrilRBS, sorry to ping you directly, I'm just checking if you might have a clue or if I can do something about it.

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

Successfully merging this pull request may close these issues.

3 participants