Skip to content

Linking fails against bevy when using dynamic linking #84

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

Closed
nightkr opened this issue Sep 29, 2024 · 7 comments
Closed

Linking fails against bevy when using dynamic linking #84

nightkr opened this issue Sep 29, 2024 · 7 comments
Labels
blocked Progress is halted

Comments

@nightkr
Copy link

nightkr commented Sep 29, 2024

The following Cargo.toml (Cargo.lock):

[package]
name = "hello-vello"
version = "0.1.0"
edition = "2021"

[dependencies]
bevy = { version = "0.14.2", features = ["dynamic_linking"] }
bevy_vello = { version = "0.6.1", default-features = false }

fails to compile with:

[snip]
   Compiling bevy_dylib v0.14.2
error: linking with `cc` failed: exit status: 1
  |
  = note: LC_ALL="C" PATH="/home/n/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/bin:/home/n/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/bin:/home/n/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/bin:/home/n/.krew/bin:/home/n/.cargo/bin:/home/n/opt/android-sdk/platform-tools:/home/n/opt/android-sdk/tools/bin:/home/n/bin:/home/n/.nix-profile/bin:/bin:/usr/bin:/usr/local/bin:/usr/local/sbin:/opt/adobe-air-sdk/bin:/var/lib/flatpak/exports/bin:/usr/lib/jvm/default/bin:/usr/bin/site_perl:/usr/bin/vendor_perl:/usr/bin/core_perl:/opt/rocm/bin:/usr/lib/rustup/bin" VSLANG="1033" "cc" "-Wl,--version-script=/tmp/rustcLVaJKU/list" "-Wl,--no-undefined-version" "-m64" "/tmp/rustcLVaJKU/symbols.o" "/home/n/Documents/hope/hello-vello/target/debug/deps/bevy_dylib-9a8e6c6ba14b53bd.bevy_dylib.a6a721db5fb7d337-cgu.0.rcgu.o" "/home/n/Documents/hope/hello-vello/target/debug/deps/bevy_dylib-9a8e6c6ba14b53bd.789s0wefz941n0oneokpgqaha.rcgu.rmeta" "-Wl,--as-needed" "-L" "/home/n/Documents/hope/hello-vello/target/debug/deps" "-L" "/home/n/Documents/hope/hello-vello/target/debug/build/blake3-6c9b60e31ec7b71e/out" "-L" "/home/n/Documents/hope/hello-vello/target/debug/build/blake3-6c9b60e31ec7b71e/out" "-L" "/usr/lib" "-L" "/usr/lib" "-L" "/home/n/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib" "-Wl,-Bstatic" "/home/n/Documents/hope/hello-vello/target/debug/deps/libbevy_internal-75f86444bcf7a280.rlib" "/home/n/Documents/hope/hello-vello/target/debug/deps/libbevy_winit-6640ad617d37ae65.rlib" "/home/n/Documents/hope/hello-vello/target/debug/deps/libaccesskit_winit-bcea6f755de6b120.rlib" "/home/n/Documents/hope/hello-vello/target/debug/deps/libwinit-724aee4e9566601c.rlib" "/home/n/Documents/hope/hello-vello/target/debug/deps/libx11rb-62835635786e622d.rlib" "/home/n/Documents/hope/hello-vello/target/debug/deps/libas_raw_xcb_connection-84aa0294efafd6a1.rlib" "/home/n/Documents/hope/hello-vello/target/debug/deps/libx11rb_protocol-ef26ad27e20e479e.rlib" "/home/n/Documents/hope/hello-vello/target/debug/deps/libcalloop-c4d2334a913cd6ff.rlib" "/home/n/Documents/hope/hello-vello/target/debug/deps/libpolling-5b3470ee796e730c.rlib" "/home/n/Documents/hope/hello-vello/target/debug/deps/librustix-429008dccf17e2f3.rlib" "/home/n/Documents/hope/hello-vello/target/debug/deps/liblinux_raw_sys-7825de04927fe5d5.rlib" "/home/n/Documents/hope/hello-vello/target/debug/deps/libx11_dl-75b5b1b2027bec06.rlib" "/home/n/Documents/hope/hello-vello/target/debug/deps/libxkbcommon_dl-71f7e175d455aeb3.rlib" "/home/n/Documents/hope/hello-vello/target/debug/deps/libxkeysym-5daac4b42a2b0693.rlib" "/home/n/Documents/hope/hello-vello/target/debug/deps/libdlib-0a4a7340c9757dfb.rlib" "/home/n/Documents/hope/hello-vello/target/debug/deps/libcursor_icon-12866a88fa73b145.rlib" "/home/n/Documents/hope/hello-vello/target/debug/deps/libdpi-ffb51dcbbc669577.rlib" "/home/n/Documents/hope/hello-vello/target/debug/deps/libbevy_ui-d48a76cc2df8c86b.rlib" "/home/n/Documents/hope/hello-vello/target/debug/deps/libtaffy-bc58f0af9854ff9a.rlib" "/home/n/Documents/hope/hello-vello/target/debug/deps/libslotmap-b0cf315dfaa10a4e.rlib" "/home/n/Documents/hope/hello-vello/target/debug/deps/libgrid-e6f69de4bb7a5f83.rlib" "/home/n/Documents/hope/hello-vello/target/debug/deps/libbevy_text-70b63eefed9eb3ad.rlib" "/home/n/Documents/hope/hello-vello/target/debug/deps/libglyph_brush_layout-928315eb74326a84.rlib" "/home/n/Documents/hope/hello-vello/target/debug/deps/libxi_unicode-6e2e7d2c69e6998b.rlib" "/home/n/Documents/hope/hello-vello/target/debug/deps/libapprox-245069f0adb88769.rlib" "/home/n/Documents/hope/hello-vello/target/debug/deps/libab_glyph-d94601f4ec88cec4.rlib" "/home/n/Documents/hope/hello-vello/target/debug/deps/libowned_ttf_parser-228cb7bfff339060.rlib" "/home/n/Documents/hope/hello-vello/target/debug/deps/libttf_parser-d16e1adbe4db0294.rlib" "/home/n/Documents/hope/hello-vello/target/debug/deps/libab_glyph_rasterizer-e3a57608f36ce2fa.rlib" "/home/n/Documents/hope/hello-vello/target/debug/deps/libbevy_state-fa795dc0c86f1358.rlib" "/home/n/Documents/hope/hello-vello/target/debug/deps/libbevy_log-fbdf2f20e3b6e993.rlib" "/home/n/Documents/hope/hello-vello/target/debug/deps/libtracing_subscriber-fdb63f6dd8fabfe0.rlib" "/home/n/Documents/hope/hello-vello/target/debug/deps/libnu_ansi_term-14b1cebec8107f85.rlib" "/home/n/Documents/hope/hello-vello/target/debug/deps/liboverload-84bdf0bd1da5024d.rlib" "/home/n/Documents/hope/hello-vello/target/debug/deps/libsharded_slab-dc42b4cf0b68f086.rlib" "/home/n/Documents/hope/hello-vello/target/debug/deps/libmatchers-9c403ebffdcdfb1d.rlib" "/home/n/Documents/hope/hello-vello/target/debug/deps/libregex_automata-5f8b5dfdaa1804cb.rlib" "/home/n/Documents/hope/hello-vello/target/debug/deps/libregex_syntax-ef64ce6801229105.rlib" "/home/n/Documents/hope/hello-vello/target/debug/deps/libtracing_log-b91c9bf6d0a8c318.rlib" "/home/n/Documents/hope/hello-vello/target/debug/deps/libbevy_gltf-718340243fb12402.rlib" "/home/n/Documents/hope/hello-vello/target/debug/deps/libpercent_encoding-af92bab38c7d9d14.rlib" "/home/n/Documents/hope/hello-vello/target/debug/deps/libbase64-3e48162b60077e41.rlib" "/home/n/Documents/hope/hello-vello/target/debug/deps/libgltf-6021af9479102f4e.rlib" "/home/n/Documents/hope/hello-vello/target/debug/deps/libgltf_json-378da3dfefb68f1a.rlib" "/home/n/Documents/hope/hello-vello/target/debug/deps/libserde_json-e72c70b33a1f602e.rlib" "/home/n/Documents/hope/hello-vello/target/debug/deps/libitoa-82ded8792af696b7.rlib" "/home/n/Documents/hope/hello-vello/target/debug/deps/libryu-d8b58d36d8b0724c.rlib" "/home/n/Documents/hope/hello-vello/target/debug/deps/liblazy_static-b42abb07402f835f.rlib" "/home/n/Documents/hope/hello-vello/target/debug/deps/libbevy_scene-fafcb4f837ea6802.rlib" "/home/n/Documents/hope/hello-vello/target/debug/deps/libbevy_gizmos-6cbe47ce48f8032d.rlib" "/home/n/Documents/hope/hello-vello/target/debug/deps/libbevy_sprite-fbb31370f7937752.rlib" "/home/n/Documents/hope/hello-vello/target/debug/deps/librectangle_pack-f7eed6ea60419bc5.rlib" "/home/n/Documents/hope/hello-vello/target/debug/deps/libguillotiere-c236622520af06fe.rlib" "/home/n/Documents/hope/hello-vello/target/debug/deps/libsvg_fmt-9fda5efa4b5845a0.rlib" "/home/n/Documents/hope/hello-vello/target/debug/deps/libeuclid-52998bdcd89f871f.rlib" "/home/n/Documents/hope/hello-vello/target/debug/deps/libbevy_pbr-2fecd6cd443f460f.rlib" "/home/n/Documents/hope/hello-vello/target/debug/deps/libbevy_gilrs-6bab554b3ae02e89.rlib" "/home/n/Documents/hope/hello-vello/target/debug/deps/libgilrs-3db6bf39670de5f8.rlib" "/home/n/Documents/hope/hello-vello/target/debug/deps/libfnv-741ffac72e6b3b10.rlib" "/home/n/Documents/hope/hello-vello/target/debug/deps/libgilrs_core-91c1e73753bdaa5a.rlib" "/home/n/Documents/hope/hello-vello/target/debug/deps/liblibudev_sys-a08fc835b376a47b.rlib" "/home/n/Documents/hope/hello-vello/target/debug/deps/libinotify-5ac89c334530c52f.rlib" "/home/n/Documents/hope/hello-vello/target/debug/deps/libinotify_sys-cc088c5dcfe90872.rlib" "/home/n/Documents/hope/hello-vello/target/debug/deps/libvec_map-d528ffc218cd4e79.rlib" "/home/n/Documents/hope/hello-vello/target/debug/deps/libnix-ef098e34125cf4a7.rlib" "/home/n/Documents/hope/hello-vello/target/debug/deps/libbevy_input-c846f46275c987bf.rlib" "/home/n/Documents/hope/hello-vello/target/debug/deps/libbevy_core_pipeline-1e70d3fee7b3ce2b.rlib" "/home/n/Documents/hope/hello-vello/target/debug/deps/libradsort-20900534a42a911f.rlib" "/home/n/Documents/hope/hello-vello/target/debug/deps/libbevy_audio-a1db5840ce25dbc7.rlib" "/home/n/Documents/hope/hello-vello/target/debug/deps/librodio-efa650fed207df16.rlib" "/home/n/Documents/hope/hello-vello/target/debug/deps/liblewton-74d60ec987db244e.rlib" "/home/n/Documents/hope/hello-vello/target/debug/deps/libogg-1b53bbb02f3eb425.rlib" "/home/n/Documents/hope/hello-vello/target/debug/deps/libtinyvec-4ab568e110947abf.rlib" "/home/n/Documents/hope/hello-vello/target/debug/deps/libtinyvec_macros-4da7d5e792afed94.rlib" "/home/n/Documents/hope/hello-vello/target/debug/deps/libbyteorder-a10fc72e606712ab.rlib" "/home/n/Documents/hope/hello-vello/target/debug/deps/libcpal-d1ab904a3058237a.rlib" "/home/n/Documents/hope/hello-vello/target/debug/deps/libdasp_sample-da218e71aae08180.rlib" "/home/n/Documents/hope/hello-vello/target/debug/deps/libalsa-1d2b93ed51b32197.rlib" "/home/n/Documents/hope/hello-vello/target/debug/deps/libalsa_sys-19dca7cbb782d0a4.rlib" "/home/n/Documents/hope/hello-vello/target/debug/deps/libbevy_animation-5a5afb7ea2ec3b4a.rlib" "/home/n/Documents/hope/hello-vello/target/debug/deps/libbevy_render-74027476267a8b41.rlib" "/home/n/Documents/hope/hello-vello/target/debug/deps/libruzstd-5e377850679cd3aa.rlib" "/home/n/Documents/hope/hello-vello/target/debug/deps/libtwox_hash-4433fec1f9ef874d.rlib" "/home/n/Documents/hope/hello-vello/target/debug/deps/libnaga_oil-257f7be4f958acbe.rlib" "/home/n/Documents/hope/hello-vello/target/debug/deps/libdata_encoding-f3909469606a35ce.rlib" "/home/n/Documents/hope/hello-vello/target/debug/deps/libunicode_ident-3afac799bfc21c5c.rlib" "/home/n/Documents/hope/hello-vello/target/debug/deps/libregex-6ebc7cdcf9f69e7d.rlib" "/home/n/Documents/hope/hello-vello/target/debug/deps/libregex_automata-b1e6f05c7ec886ba.rlib" "/home/n/Documents/hope/hello-vello/target/debug/deps/libaho_corasick-80b8549e799cfab3.rlib" "/home/n/Documents/hope/hello-vello/target/debug/deps/libmemchr-8804f38d7bdc2b45.rlib" "/home/n/Documents/hope/hello-vello/target/debug/deps/libregex_syntax-b0799e08b95087b0.rlib" "/home/n/Documents/hope/hello-vello/target/debug/deps/libbevy_mikktspace-d320e32a17a9436b.rlib" "/home/n/Documents/hope/hello-vello/target/debug/deps/libktx2-1c9b940ff58c5817.rlib" "/home/n/Documents/hope/hello-vello/target/debug/deps/libimage-77be0ae52696cb4d.rlib" "/home/n/Documents/hope/hello-vello/target/debug/deps/libbyteorder_lite-615680ef8c9a16b7.rlib" "/home/n/Documents/hope/hello-vello/target/debug/deps/libpng-f129819dac6ecc5d.rlib" "/home/n/Documents/hope/hello-vello/target/debug/deps/libbitflags-3bd726391f06c998.rlib" "/home/n/Documents/hope/hello-vello/target/debug/deps/libflate2-d6f6db8ba67ed54f.rlib" "/home/n/Documents/hope/hello-vello/target/debug/deps/libminiz_oxide-f21c9d4d9d828771.rlib" "/home/n/Documents/hope/hello-vello/target/debug/deps/libfdeflate-8d88a52cfc1a8c91.rlib" "/home/n/Documents/hope/hello-vello/target/debug/deps/libsimd_adler32-2b62cfda7ff5e5ac.rlib" "/home/n/Documents/hope/hello-vello/target/debug/deps/libcrc32fast-3b6f6052d9c9f328.rlib" "/home/n/Documents/hope/hello-vello/target/debug/deps/libzune_jpeg-c65e7919b4f733d9.rlib" "/home/n/Documents/hope/hello-vello/target/debug/deps/libzune_core-23842268149e7150.rlib" "/home/n/Documents/hope/hello-vello/target/debug/deps/libgif-037da423577938c1.rlib" "/home/n/Documents/hope/hello-vello/target/debug/deps/libcolor_quant-720c5fff3c9b02aa.rlib" "/home/n/Documents/hope/hello-vello/target/debug/deps/libweezl-f2a19f6a655a56cb.rlib" "/home/n/Documents/hope/hello-vello/target/debug/deps/libnum_traits-ea7981da7f232949.rlib" "/home/n/Documents/hope/hello-vello/target/debug/deps/libhexasphere-5f072d8f5c25b5d5.rlib" "/home/n/Documents/hope/hello-vello/target/debug/deps/libconstgebra-21806b615c984150.rlib" "/home/n/Documents/hope/hello-vello/target/debug/deps/libconst_soft_float-49f5cc459e42b989.rlib" "/home/n/Documents/hope/hello-vello/target/debug/deps/libbevy_diagnostic-c845e4846b9fc4b0.rlib" "/home/n/Documents/hope/hello-vello/target/debug/deps/libconst_fnv1a_hash-6d1b69f220527581.rlib" "/home/n/Documents/hope/hello-vello/target/debug/deps/libbevy_window-f892149503306710.rlib" "/home/n/Documents/hope/hello-vello/target/debug/deps/libwgpu-c7934af010b3566f.rlib" "/home/n/Documents/hope/hello-vello/target/debug/deps/libstatic_assertions-1b9352faa5372f04.rlib" "/home/n/Documents/hope/hello-vello/target/debug/deps/libwgpu_core-d57700dfaf805e3c.rlib" "/home/n/Documents/hope/hello-vello/target/debug/deps/libwgpu_hal-eb22936a7c04d161.rlib" "/home/n/Documents/hope/hello-vello/target/debug/deps/librenderdoc_sys-436c9062b945fb93.rlib" "/home/n/Documents/hope/hello-vello/target/debug/deps/libgpu_descriptor-5e37dde6985e4d79.rlib" "/home/n/Documents/hope/hello-vello/target/debug/deps/libgpu_descriptor_types-21708ef83515767b.rlib" "/home/n/Documents/hope/hello-vello/target/debug/deps/libkhronos_egl-41e9093c57218faa.rlib" "/home/n/Documents/hope/hello-vello/target/debug/deps/liblibloading-831924a2cad94882.rlib" "/home/n/Documents/hope/hello-vello/target/debug/deps/libprofiling-fc602b66710f4e43.rlib" "/home/n/Documents/hope/hello-vello/target/debug/deps/libgpu_alloc-902ddec6786f236c.rlib" "/home/n/Documents/hope/hello-vello/target/debug/deps/libgpu_alloc_types-0d9b7a7e6876ed60.rlib" "/home/n/Documents/hope/hello-vello/target/debug/deps/libash-e8c3de998e2fa493.rlib" "/home/n/Documents/hope/hello-vello/target/debug/deps/liblibloading-afd0414d21a7a04c.rlib" "/home/n/Documents/hope/hello-vello/target/debug/deps/libnaga-0dc5dc13ccb46123.rlib" "/home/n/Documents/hope/hello-vello/target/debug/deps/librustc_hash-268715751ebfebe7.rlib" "/home/n/Documents/hope/hello-vello/target/debug/deps/libhexf_parse-e93c3887d5edcb45.rlib" "/home/n/Documents/hope/hello-vello/target/debug/deps/libunicode_xid-389f8ccf7c4bbf27.rlib" "/home/n/Documents/hope/hello-vello/target/debug/deps/liblog-338e91a6dc6c2c96.rlib" "/home/n/Documents/hope/hello-vello/target/debug/deps/libcodespan_reporting-7c84291c4094714b.rlib" "/home/n/Documents/hope/hello-vello/target/debug/deps/libunicode_width-43d208d40ede62e0.rlib" "/home/n/Documents/hope/hello-vello/target/debug/deps/libtermcolor-cb3fedd3c60f9e72.rlib" "/home/n/Documents/hope/hello-vello/target/debug/deps/libspirv-48b49a5eda87968f.rlib" "/home/n/Documents/hope/hello-vello/target/debug/deps/libbit_set-6e69b8e86796c6dc.rlib" "/home/n/Documents/hope/hello-vello/target/debug/deps/libbit_vec-924fd4a814f7e7bd.rlib" "/home/n/Documents/hope/hello-vello/target/debug/deps/libraw_window_handle-7515a6b2ee9706ce.rlib" "/home/n/Documents/hope/hello-vello/target/debug/deps/libglow-97114a74024cbd72.rlib" "/home/n/Documents/hope/hello-vello/target/debug/deps/libbevy_time-f53f1d8dc1df741a.rlib" "/home/n/Documents/hope/hello-vello/target/debug/deps/libbevy_asset-97a4ecdfc9cabb5b.rlib" "/home/n/Documents/hope/hello-vello/target/debug/deps/libblake3-b6aba8840f20cef1.rlib" "/home/n/Documents/hope/hello-vello/target/debug/deps/libconstant_time_eq-36c1c2dc556678aa.rlib" "/home/n/Documents/hope/hello-vello/target/debug/deps/libarrayref-e2c87e5ff36248f2.rlib" "/home/n/Documents/hope/hello-vello/target/debug/deps/libasync_broadcast-1970aba53d23608d.rlib" "/home/n/Documents/hope/hello-vello/target/debug/deps/libevent_listener-0649dd04a6c61dcb.rlib" "/home/n/Documents/hope/hello-vello/target/debug/deps/libron-be9b1ae1f8c90be2.rlib" "/home/n/Documents/hope/hello-vello/target/debug/deps/libbase64-a6fb0f9e86693bab.rlib" "/home/n/Documents/hope/hello-vello/target/debug/deps/libparking_lot-5f7bb22b28249cd8.rlib" "/home/n/Documents/hope/hello-vello/target/debug/deps/libparking_lot_core-a4c0793908922a89.rlib" "/home/n/Documents/hope/hello-vello/target/debug/deps/liblock_api-2fdb65c66a758d10.rlib" "/home/n/Documents/hope/hello-vello/target/debug/deps/libscopeguard-50a4a54143557e77.rlib" "/home/n/Documents/hope/hello-vello/target/debug/deps/libcrossbeam_channel-daff864f1b1465da.rlib" "/home/n/Documents/hope/hello-vello/target/debug/deps/libasync_fs-5b5fcf34495e691e.rlib" "/home/n/Documents/hope/hello-vello/target/debug/deps/libblocking-c6935a7e9d71f19f.rlib" "/home/n/Documents/hope/hello-vello/target/debug/deps/libpiper-ed9bc09fd022be82.rlib" "/home/n/Documents/hope/hello-vello/target/debug/deps/libatomic_waker-6a545ff6dd71f9ba.rlib" "/home/n/Documents/hope/hello-vello/target/debug/deps/libasync_lock-15ad3d6ce12d6d1b.rlib" "/home/n/Documents/hope/hello-vello/target/debug/deps/libbevy_transform-92cf3aa3fe429244.rlib" "/home/n/Documents/hope/hello-vello/target/debug/deps/libbevy_hierarchy-ac4eb33cdaea7f8a.rlib" "/home/n/Documents/hope/hello-vello/target/debug/deps/libbevy_core-eb2125bf768fd767.rlib" "/home/n/Documents/hope/hello-vello/target/debug/deps/libbevy_color-7ee1a4e11a27161b.rlib" "/home/n/Documents/hope/hello-vello/target/debug/deps/libencase-b63d6ec589ce993f.rlib" "/home/n/Documents/hope/hello-vello/target/debug/deps/libconst_panic-13e515910c064977.rlib" "/home/n/Documents/hope/hello-vello/target/debug/deps/libwgpu_types-d5e17b15119406a0.rlib" "/home/n/Documents/hope/hello-vello/target/debug/deps/libbevy_math-846e3eff459b206e.rlib" "/home/n/Documents/hope/hello-vello/target/debug/deps/libbevy_a11y-b8fa1658cc4f29cf.rlib" "/home/n/Documents/hope/hello-vello/target/debug/deps/libaccesskit-6f0e3ebbf3339fe0.rlib" "/home/n/Documents/hope/hello-vello/target/debug/deps/libbevy_app-d3374174ce840040.rlib" "/home/n/Documents/hope/hello-vello/target/debug/deps/libbevy_ecs-2f9c47958eae89b3.rlib" "/home/n/Documents/hope/hello-vello/target/debug/deps/libbitflags-ef17cd339f202d91.rlib" "/home/n/Documents/hope/hello-vello/target/debug/deps/libnonmax-83325526885eea0c.rlib" "/home/n/Documents/hope/hello-vello/target/debug/deps/libbevy_tasks-1438eda07fa361fb.rlib" "/home/n/Documents/hope/hello-vello/target/debug/deps/libasync_channel-3faed156008b0592.rlib" "/home/n/Documents/hope/hello-vello/target/debug/deps/libevent_listener_strategy-1c1c8060587e9fc3.rlib" "/home/n/Documents/hope/hello-vello/target/debug/deps/libevent_listener-5ebdb821d1bda385.rlib" "/home/n/Documents/hope/hello-vello/target/debug/deps/libasync_executor-158be652d5d75604.rlib" "/home/n/Documents/hope/hello-vello/target/debug/deps/libslab-7a814c04877c4354.rlib" "/home/n/Documents/hope/hello-vello/target/debug/deps/libfutures_lite-04bf6e7063f4b38d.rlib" "/home/n/Documents/hope/hello-vello/target/debug/deps/libfutures_io-3d706f6b8deded75.rlib" "/home/n/Documents/hope/hello-vello/target/debug/deps/libfutures_core-9a17581a02a3acca.rlib" "/home/n/Documents/hope/hello-vello/target/debug/deps/libparking-9c7a75c563eb2e1d.rlib" "/home/n/Documents/hope/hello-vello/target/debug/deps/libfastrand-1f2a754460f5396d.rlib" "/home/n/Documents/hope/hello-vello/target/debug/deps/libconcurrent_queue-05e17fecc6af4e27.rlib" "/home/n/Documents/hope/hello-vello/target/debug/deps/libcrossbeam_utils-36673e289ed053a5.rlib" "/home/n/Documents/hope/hello-vello/target/debug/deps/libasync_task-a14c15fac64f86ae.rlib" "/home/n/Documents/hope/hello-vello/target/debug/deps/libarrayvec-d519a8bab08efe1a.rlib" "/home/n/Documents/hope/hello-vello/target/debug/deps/libfixedbitset-8590b2b11fc379f1.rlib" "/home/n/Documents/hope/hello-vello/target/debug/deps/libbevy_reflect-e893e23137354113.rlib" "/home/n/Documents/hope/hello-vello/target/debug/deps/libuuid-b7ce9df40ebbaa00.rlib" "/home/n/Documents/hope/hello-vello/target/debug/deps/libsmol_str-8c084ff4e706cf03.rlib" "/home/n/Documents/hope/hello-vello/target/debug/deps/libpetgraph-66e64fdec99524a3.rlib" "/home/n/Documents/hope/hello-vello/target/debug/deps/libindexmap-c12460b854a3e92d.rlib" "/home/n/Documents/hope/hello-vello/target/debug/deps/libequivalent-bfabe55b464a2c7d.rlib" "/home/n/Documents/hope/hello-vello/target/debug/deps/libfixedbitset-41123a2b2d2a90ac.rlib" "/home/n/Documents/hope/hello-vello/target/debug/deps/liberased_serde-5cd804d721fead3d.rlib" "/home/n/Documents/hope/hello-vello/target/debug/deps/libtypeid-1e4a3f24bffb8a20.rlib" "/home/n/Documents/hope/hello-vello/target/debug/deps/libsmallvec-e2c35cb34a4d8a07.rlib" "/home/n/Documents/hope/hello-vello/target/debug/deps/libglam-81587cd2c0a4dc62.rlib" "/home/n/Documents/hope/hello-vello/target/debug/deps/librand-e7b67eed8e12308d.rlib" "/home/n/Documents/hope/hello-vello/target/debug/deps/librand_core-f89cde6c7486e313.rlib" "/home/n/Documents/hope/hello-vello/target/debug/deps/libbytemuck-79914c1b15495404.rlib" "/home/n/Documents/hope/hello-vello/target/debug/deps/libdowncast_rs-8ee09b28fab68b49.rlib" "/home/n/Documents/hope/hello-vello/target/debug/deps/libthiserror-3f525388c795f764.rlib" "/home/n/Documents/hope/hello-vello/target/debug/deps/libbevy_utils-4d4bebb2909d0751.rlib" "/home/n/Documents/hope/hello-vello/target/debug/deps/libweb_time-cc890f4e6ded3cc8.rlib" "/home/n/Documents/hope/hello-vello/target/debug/deps/libtracing-8da7b04e5c28b03f.rlib" "/home/n/Documents/hope/hello-vello/target/debug/deps/libpin_project_lite-0dd21cfc832f61c6.rlib" "/home/n/Documents/hope/hello-vello/target/debug/deps/libtracing_core-9c6e285ed6bb6dad.rlib" "/home/n/Documents/hope/hello-vello/target/debug/deps/libhashbrown-d48d2260f4841f01.rlib" "/home/n/Documents/hope/hello-vello/target/debug/deps/libserde-453a500b371999f4.rlib" "/home/n/Documents/hope/hello-vello/target/debug/deps/liballocator_api2-ea0036a3907c3fa4.rlib" "/home/n/Documents/hope/hello-vello/target/debug/deps/libahash-2fe7de11b16a35a7.rlib" "/home/n/Documents/hope/hello-vello/target/debug/deps/libgetrandom-bf76720f1b0681b8.rlib" "/home/n/Documents/hope/hello-vello/target/debug/deps/liblibc-0eae5198be917537.rlib" "/home/n/Documents/hope/hello-vello/target/debug/deps/libzerocopy-63bc1f408be68282.rlib" "/home/n/Documents/hope/hello-vello/target/debug/deps/libthread_local-00912af29dff2fa0.rlib" "/home/n/Documents/hope/hello-vello/target/debug/deps/libcfg_if-6afc45ef9c22aff9.rlib" "/home/n/Documents/hope/hello-vello/target/debug/deps/libonce_cell-f93295385662c4fb.rlib" "/home/n/Documents/hope/hello-vello/target/debug/deps/libbevy_ptr-eff41dcdbb8177d2.rlib" "-Wl,-Bdynamic" "/home/n/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libstd-1c4b19562077c20d.so" "-Wl,-Bstatic" "/home/n/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libcompiler_builtins-06dfbf1de02fde3b.rlib" "-Wl,-Bdynamic" "-ldl" "-ludev" "-lasound" "-ldl" "-ldl" "-lgcc_s" "-lutil" "-lrt" "-lpthread" "-lm" "-ldl" "-lc" "-Wl,--eh-frame-hdr" "-Wl,-z,noexecstack" "-L" "/home/n/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib" "-o" "/home/n/Documents/hope/hello-vello/target/debug/deps/libbevy_dylib-9a8e6c6ba14b53bd.so" "-shared" "-Wl,-soname=libbevy_dylib-9a8e6c6ba14b53bd.so" "-Wl,-z,relro,-z,now" "-nodefaultlibs"
  = note: /bin/ld: __rust_realloc: undefined version: 
          /bin/ld: __rust_no_alloc_shim_is_unstable: undefined version: 
          /bin/ld: __rust_dealloc: undefined version: 
          /bin/ld: __rust_alloc_zeroed: undefined version: 
          /bin/ld: __rust_alloc_error_handler_should_panic: undefined version: 
          /bin/ld: __rust_alloc_error_handler: undefined version: 
          /bin/ld: __rust_alloc: undefined version: 
          /bin/ld: failed to set dynamic section sizes: bad value
          collect2: error: ld returned 1 exit status

Removing the bevy/dynamic_linking feature makes it build fine (Cargo.lock):

[package]
name = "hello-vello"
version = "0.1.0"
edition = "2021"

[dependencies]
bevy = { version = "0.14.2", features = [] }
bevy_vello = { version = "0.6.1", default-features = false }
@nightkr
Copy link
Author

nightkr commented Sep 29, 2024

Looks like the issue is that bevy_vello unconditionally pulls in image/jpeg via vello_svg. Enabling bevy/jpeg seems to cause the same issue.

Arguably this isn't a bevy_vello issue at its core, but maybe it would be possible to add a feature flag for JPEG support?

@nightkr
Copy link
Author

nightkr commented Sep 29, 2024

Bevy already has a corresponding issue: bevyengine/bevy#14117.

@simbleau
Copy link
Member

Hm, interesting find. I'll keep an eye on the bevy issue, because whether or not we fix it I think depends on bevy fixing it first.

@simbleau simbleau added the blocked Progress is halted label Sep 30, 2024
@nightkr
Copy link
Author

nightkr commented Sep 30, 2024

zune-image has fixed it in 0.5.x (etemesi254/zune-image#187), but there seems to be ~no movement in the issue towards backporting it.

Personally I was able to get around it with acceptable performance by switching to static linking with Mold.

@DJMcNab
Copy link
Member

DJMcNab commented Sep 30, 2024

I don't think this issue tracks anything useful on our side. We can't fix this until Bevy updates to the latest version of Zune, and we won't need to do anything to fix it when they do.

Feel free to re-open if you disagree.

@DJMcNab DJMcNab closed this as not planned Won't fix, can't repro, duplicate, stale Sep 30, 2024
@nightkr
Copy link
Author

nightkr commented Oct 1, 2024

I guess I'd mostly consider it to be a documentation issue. "This is why it's currently broken, it's not on us but here's how you can work around it."

@DJMcNab
Copy link
Member

DJMcNab commented Oct 1, 2024

I'll defer to @simbleau here

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

No branches or pull requests

3 participants