link error
M0r41 opened this issue · 3 comments
Running `CARGO=/root/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/bin/cargo CARGO_BIN_NAME=heroinn CARGO_CRATE_NAME=heroinn CARGO_MANIFEST_DIR=/volume/heroinn CARGO_PKG_AUTHORS='' CARGO_PKG_DESCRIPTION='' CARGO_PKG_HOMEPAGE='' CARGO_PKG_LICENSE='' CARGO_PKG_LICENSE_FILE='' CARGO_PKG_NAME=heroinn CARGO_PKG_README='' CARGO_PKG_REPOSITORY='' CARGO_PKG_RUST_VERSION='' CARGO_PKG_VERSION=0.1.0 CARGO_PKG_VERSION_MAJOR=0 CARGO_PKG_VERSION_MINOR=1 CARGO_PKG_VERSION_PATCH=0 CARGO_PKG_VERSION_PRE='' CARGO_PRIMARY_PACKAGE=1 LD_LIBRARY_PATH='/volume/target/release/deps:/root/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib:' /root/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/bin/rustc --crate-name heroinn --edition=2021 heroinn/src/main.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts,future-incompat --diagnostic-width=127 --crate-type bin --emit=dep-info,link -C opt-level=3 -C embed-bitcode=no -C metadata=89aceeac48373e3a -C extra-filename=-89aceeac48373e3a --out-dir /volume/target/x86_64-unknown-linux-musl/release/deps --target x86_64-unknown-linux-musl -L dependency=/volume/target/x86_64-unknown-linux-musl/release/deps -L dependency=/volume/target/release/deps --extern eframe=/volume/target/x86_64-unknown-linux-musl/release/deps/libeframe-6a1e60a09aff82d4.rlib --extern egui_extras=/volume/target/x86_64-unknown-linux-musl/release/deps/libegui_extras-9466fe52f60dc96f.rlib --extern heroinn_core=/volume/target/x86_64-unknown-linux-musl/release/deps/libheroinn_core-335a78a1c133aeff.rlib --extern heroinn_util=/volume/target/x86_64-unknown-linux-musl/release/deps/libheroinn_util-db49ed8d10c1c668.rlib --extern image=/volume/target/x86_64-unknown-linux-musl/release/deps/libimage-c3ccbd01e8a420f1.rlib --extern lazy_static=/volume/target/x86_64-unknown-linux-musl/release/deps/liblazy_static-a06f353254d8d3e8.rlib --extern log=/volume/target/x86_64-unknown-linux-musl/release/deps/liblog-95563d6b19ac6752.rlib --extern rfd=/volume/target/x86_64-unknown-linux-musl/release/deps/librfd-afa29f9661c8a8b7.rlib --extern simple_logger=/volume/target/x86_64-unknown-linux-musl/release/deps/libsimple_logger-48e5e074944104af.rlib -L native=/musl/lib -L native=/usr/lib/x86_64-linux-gnu -L native=/musl/lib -L native=/usr/lib/x86_64-linux-gnu -L native=/musl/lib -L native=/usr/lib/x86_64-linux-gnu -L native=/usr/lib/x86_64-linux-gnu -L native=/musl/lib`
error: linking with `cc` failed: exit status: 1
|
= note: LC_ALL="C" PATH="/root/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/bin:/root/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/bin/self-contained:/root/.cargo/bin:/musl/bin:/usr/local/bin:/root/.cargo/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin" VSLANG="1033" "cc" "-m64" "/root/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-musl/lib/self-contained/rcrt1.o" "/root/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-musl/lib/self-contained/crti.o" "/root/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-musl/lib/self-contained/crtbeginS.o" "/tmp/rustcM3GRsh/symbols.o" "/volume/target/x86_64-unknown-linux-musl/release/deps/heroinn_ftp-fae109e45e5765a8.heroinn_ftp.87765b024551bb65-cgu.00.rcgu.o" "/volume/target/x86_64-unknown-linux-musl/release/deps/heroinn_ftp-fae109e45e5765a8.heroinn_ftp.87765b024551bb65-cgu.01.rcgu.o" "/volume/target/x86_64-unknown-linux-musl/release/deps/heroinn_ftp-fae109e45e5765a8.heroinn_ftp.87765b024551bb65-cgu.02.rcgu.o" "/volume/target/x86_64-unknown-linux-musl/release/deps/heroinn_ftp-fae109e45e5765a8.heroinn_ftp.87765b024551bb65-cgu.03.rcgu.o" "/volume/target/x86_64-unknown-linux-musl/release/deps/heroinn_ftp-fae109e45e5765a8.heroinn_ftp.87765b024551bb65-cgu.04.rcgu.o" "/volume/target/x86_64-unknown-linux-musl/release/deps/heroinn_ftp-fae109e45e5765a8.heroinn_ftp.87765b024551bb65-cgu.05.rcgu.o" "/volume/target/x86_64-unknown-linux-musl/release/deps/heroinn_ftp-fae109e45e5765a8.heroinn_ftp.87765b024551bb65-cgu.06.rcgu.o" "/volume/target/x86_64-unknown-linux-musl/release/deps/heroinn_ftp-fae109e45e5765a8.heroinn_ftp.87765b024551bb65-cgu.07.rcgu.o" "/volume/target/x86_64-unknown-linux-musl/release/deps/heroinn_ftp-fae109e45e5765a8.heroinn_ftp.87765b024551bb65-cgu.08.rcgu.o" "/volume/target/x86_64-unknown-linux-musl/release/deps/heroinn_ftp-fae109e45e5765a8.heroinn_ftp.87765b024551bb65-cgu.09.rcgu.o" "/volume/target/x86_64-unknown-linux-musl/release/deps/heroinn_ftp-fae109e45e5765a8.heroinn_ftp.87765b024551bb65-cgu.10.rcgu.o" "/volume/target/x86_64-unknown-linux-musl/release/deps/heroinn_ftp-fae109e45e5765a8.heroinn_ftp.87765b024551bb65-cgu.11.rcgu.o" "/volume/target/x86_64-unknown-linux-musl/release/deps/heroinn_ftp-fae109e45e5765a8.heroinn_ftp.87765b024551bb65-cgu.12.rcgu.o" "/volume/target/x86_64-unknown-linux-musl/release/deps/heroinn_ftp-fae109e45e5765a8.heroinn_ftp.87765b024551bb65-cgu.13.rcgu.o" "/volume/target/x86_64-unknown-linux-musl/release/deps/heroinn_ftp-fae109e45e5765a8.heroinn_ftp.87765b024551bb65-cgu.14.rcgu.o" "/volume/target/x86_64-unknown-linux-musl/release/deps/heroinn_ftp-fae109e45e5765a8.heroinn_ftp.87765b024551bb65-cgu.15.rcgu.o" "/volume/target/x86_64-unknown-linux-musl/release/deps/heroinn_ftp-fae109e45e5765a8.12i2v8flhskram5r.rcgu.o" "-Wl,--as-needed" "-L" "/volume/target/x86_64-unknown-linux-musl/release/deps" "-L" "/volume/target/release/deps" "-L" "/musl/lib" "-L" "/usr/lib/x86_64-linux-gnu" "-L" "/musl/lib" "-L" "/usr/lib/x86_64-linux-gnu" "-L" "/musl/lib" "-L" "/usr/lib/x86_64-linux-gnu" "-L" "/usr/lib/x86_64-linux-gnu" "-L" "/musl/lib" "-L" "/root/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-musl/lib" "-Wl,-Bstatic" "/volume/target/x86_64-unknown-linux-musl/release/deps/librfd-afa29f9661c8a8b7.rlib" "/volume/target/x86_64-unknown-linux-musl/release/deps/libgtk_sys-3be2f018dce75e2a.rlib" "-lgtk-3" "-lgdk-3" "-lpangocairo-1.0" "-lpango-1.0" "-lharfbuzz" "-latk-1.0" "-lcairo-gobject" "-lcairo" "-lgdk_pixbuf-2.0" "-lgio-2.0" "-lgobject-2.0" "-lglib-2.0" "/volume/target/x86_64-unknown-linux-musl/release/deps/libatk_sys-defd9557e984ef79.rlib" "-latk-1.0" "-lgobject-2.0" "-lglib-2.0" "/volume/target/x86_64-unknown-linux-musl/release/deps/libgdk_sys-46085a098ee3634d.rlib" "-lgdk-3" "-lpangocairo-1.0" "-lpango-1.0" "-lharfbuzz" "-lgdk_pixbuf-2.0" "-lcairo-gobject" "-lcairo" "-lgobject-2.0" "-lglib-2.0" "/volume/target/x86_64-unknown-linux-musl/release/deps/libpango_sys-1784086079adcada.rlib" "-lpango-1.0" "-lgobject-2.0" "-lglib-2.0" "-lharfbuzz" "/volume/target/x86_64-unknown-linux-musl/release/deps/libgdk_pixbuf_sys-d91625090a5248b5.rlib" "-lgdk_pixbuf-2.0" "-lgobject-2.0" "-lglib-2.0" "/volume/target/x86_64-unknown-linux-musl/release/deps/libgio_sys-bb20b8b42c90f3d9.rlib" "-lgio-2.0" "-lgobject-2.0" "-lglib-2.0" "/volume/target/x86_64-unknown-linux-musl/release/deps/libcairo_sys-e2754c3eafdae7b1.rlib" "-lcairo" "/volume/target/x86_64-unknown-linux-musl/release/deps/libgobject_sys-eaedd8e693fe39d8.rlib" "-lgobject-2.0" "-lglib-2.0" "/volume/target/x86_64-unknown-linux-musl/release/deps/libglib_sys-4b8e2725f08392d8.rlib" "-lgobject-2.0" "-lglib-2.0" "/volume/target/x86_64-unknown-linux-musl/release/deps/libheroinn_util-db49ed8d10c1c668.rlib" "/volume/target/x86_64-unknown-linux-musl/release/deps/libuuid-1c35cf25844dc6ca.rlib" "/volume/target/x86_64-unknown-linux-musl/release/deps/libserde_json-aa552d9beb9583dc.rlib" "/volume/target/x86_64-unknown-linux-musl/release/deps/libitoa-8e1081d9bb3f9512.rlib" "/volume/target/x86_64-unknown-linux-musl/release/deps/libryu-dccf495bd0bda089.rlib" "/volume/target/x86_64-unknown-linux-musl/release/deps/libmd5-37cd35fd9266a2c1.rlib" "/volume/target/x86_64-unknown-linux-musl/release/deps/libdigest-16968bf7102c9bf0.rlib" "/volume/target/x86_64-unknown-linux-musl/release/deps/libblock_buffer-82440a1268c6153c.rlib" "/volume/target/x86_64-unknown-linux-musl/release/deps/libcrypto_common-fd511ddb26f10057.rlib" "/volume/target/x86_64-unknown-linux-musl/release/deps/libgeneric_array-c3e78e24462bde80.rlib" "/volume/target/x86_64-unknown-linux-musl/release/deps/librust_raknet-67217e9941258f4d.rlib" "/volume/target/x86_64-unknown-linux-musl/release/deps/librand-f30deb769ec77958.rlib" "/volume/target/x86_64-unknown-linux-musl/release/deps/librand_chacha-c94ec59caacbc94e.rlib" "/volume/target/x86_64-unknown-linux-musl/release/deps/libppv_lite86-c07b888bf18136bd.rlib" "/volume/target/x86_64-unknown-linux-musl/release/deps/librand_core-3fcceeafd69f6f32.rlib" "/volume/target/x86_64-unknown-linux-musl/release/deps/libtokio-f3499ef6ff9d7b7c.rlib" "/volume/target/x86_64-unknown-linux-musl/release/deps/libsignal_hook_registry-bafd7801a3d3dd5c.rlib" "/volume/target/x86_64-unknown-linux-musl/release/deps/libsocket2-3c26c354829d96ba.rlib" "/volume/target/x86_64-unknown-linux-musl/release/deps/libbytes-053482b87e913f5c.rlib" "/volume/target/x86_64-unknown-linux-musl/release/deps/libwebsocket-7679c36a986e2438.rlib" "/volume/target/x86_64-unknown-linux-musl/release/deps/libwebsocket_base-1a865f2414df78a5.rlib" "/volume/target/x86_64-unknown-linux-musl/release/deps/libsha1-b98cc8c1a59a9331.rlib" "/volume/target/x86_64-unknown-linux-musl/release/deps/libfake_simd-2b02b28a678a36a5.rlib" "/volume/target/x86_64-unknown-linux-musl/release/deps/libdigest-f88616e505897f6f.rlib" "/volume/target/x86_64-unknown-linux-musl/release/deps/libopaque_debug-879ce2bc938b1431.rlib" "/volume/target/x86_64-unknown-linux-musl/release/deps/libblock_buffer-490fd6ddc9f4fb0c.rlib" "/volume/target/x86_64-unknown-linux-musl/release/deps/libgeneric_array-73ed01675f0a5ab5.rlib" "/volume/target/x86_64-unknown-linux-musl/release/deps/libtypenum-6376780dc2edd0c9.rlib" "/volume/target/x86_64-unknown-linux-musl/release/deps/libblock_padding-fa75995f457874d8.rlib" "/volume/target/x86_64-unknown-linux-musl/release/deps/libbyte_tools-cdd695121b5ef7d6.rlib" "/volume/target/x86_64-unknown-linux-musl/release/deps/libbase64-edd81a6978d2d0f8.rlib" "/volume/target/x86_64-unknown-linux-musl/release/deps/librand-53986769985c6299.rlib" "/volume/target/x86_64-unknown-linux-musl/release/deps/librand_xorshift-b2a7bf8a02874ecd.rlib" "/volume/target/x86_64-unknown-linux-musl/release/deps/librand_pcg-bde76133e26b123a.rlib" "/volume/target/x86_64-unknown-linux-musl/release/deps/librand_hc-51619e3d894c39ce.rlib" "/volume/target/x86_64-unknown-linux-musl/release/deps/librand_chacha-e9c6c905b714fea7.rlib" "/volume/target/x86_64-unknown-linux-musl/release/deps/librand_isaac-28a62295e4834609.rlib" "/volume/target/x86_64-unknown-linux-musl/release/deps/librand_core-c84566a133090cc9.rlib" "/volume/target/x86_64-unknown-linux-musl/release/deps/librand_os-139842da6a750b2d.rlib" "/volume/target/x86_64-unknown-linux-musl/release/deps/librand_jitter-53c19e64ddcfbd4f.rlib" "/volume/target/x86_64-unknown-linux-musl/release/deps/librand_core-03e247bd0d21eca0.rlib" "/volume/target/x86_64-unknown-linux-musl/release/deps/libtokio_tls-4773b4c86b32c3f6.rlib" "/volume/target/x86_64-unknown-linux-musl/release/deps/libtokio_tcp-a5e4ccc2b1a60b40.rlib" "/volume/target/x86_64-unknown-linux-musl/release/deps/libtokio_reactor-e7ab541f9d2cc9d0.rlib" "/volume/target/x86_64-unknown-linux-musl/release/deps/libtokio_sync-775453f2952dd0ec.rlib" "/volume/target/x86_64-unknown-linux-musl/release/deps/libfnv-37ed8539cdcbfed0.rlib" "/volume/target/x86_64-unknown-linux-musl/release/deps/libtokio_executor-b9b48be3869c2674.rlib" "/volume/target/x86_64-unknown-linux-musl/release/deps/libparking_lot-1186a55c052c7f3f.rlib" "/volume/target/x86_64-unknown-linux-musl/release/deps/libparking_lot_core-e09d2d06201f1d05.rlib" "/volume/target/x86_64-unknown-linux-musl/release/deps/libsmallvec-4e18b26ff8a1b306.rlib" "/volume/target/x86_64-unknown-linux-musl/release/deps/libmaybe_uninit-908561962b9a66e8.rlib" "/volume/target/x86_64-unknown-linux-musl/release/deps/liblock_api-89146f426cdab493.rlib" "/volume/target/x86_64-unknown-linux-musl/release/deps/libmio-3ef85dd5f1de98f5.rlib" "/volume/target/x86_64-unknown-linux-musl/release/deps/libslab-d8ebff1343e2e3be.rlib" "/volume/target/x86_64-unknown-linux-musl/release/deps/libnet2-9dd82f74c206e0bd.rlib" "/volume/target/x86_64-unknown-linux-musl/release/deps/libcrossbeam_utils-bd055683a532462a.rlib" "/volume/target/x86_64-unknown-linux-musl/release/deps/libcfg_if-53876069166687ac.rlib" "/volume/target/x86_64-unknown-linux-musl/release/deps/libtokio_codec-22300a7895f38ce5.rlib" "/volume/target/x86_64-unknown-linux-musl/release/deps/libtokio_io-97d77ab06f470317.rlib" "/volume/target/x86_64-unknown-linux-musl/release/deps/libnative_tls-988035e006a86abf.rlib" "/volume/target/x86_64-unknown-linux-musl/release/deps/libopenssl_probe-5e69acd4f835951e.rlib" "/volume/target/x86_64-unknown-linux-musl/release/deps/libopenssl-3d79c9a038a6aaca.rlib" "/volume/target/x86_64-unknown-linux-musl/release/deps/libbitflags-4cca5f958002d513.rlib" "/volume/target/x86_64-unknown-linux-musl/release/deps/libforeign_types-79d320d855a3171f.rlib" "/volume/target/x86_64-unknown-linux-musl/release/deps/libforeign_types_shared-1844fe1df1a1b98c.rlib" "/volume/target/x86_64-unknown-linux-musl/release/deps/libopenssl_sys-22fa555a390d8354.rlib" "/volume/target/x86_64-unknown-linux-musl/release/deps/libhyper-a70b9b17c68529ab.rlib" "/volume/target/x86_64-unknown-linux-musl/release/deps/libmime-e8131c08fc7157d3.rlib" "/volume/target/x86_64-unknown-linux-musl/release/deps/liblog-b2224f9c7817d536.rlib" "/volume/target/x86_64-unknown-linux-musl/release/deps/liblanguage_tags-d267b17f2ba0a190.rlib" "/volume/target/x86_64-unknown-linux-musl/release/deps/libtypeable-bf09053d407c90ac.rlib" "/volume/target/x86_64-unknown-linux-musl/release/deps/libtraitobject-93d7ede8255605d6.rlib" "/volume/target/x86_64-unknown-linux-musl/release/deps/libnum_cpus-2a9740de0d055e2e.rlib" "/volume/target/x86_64-unknown-linux-musl/release/deps/libhttparse-e128759c612f4029.rlib" "/volume/target/x86_64-unknown-linux-musl/release/deps/libunicase-53ce1ad03c9b843a.rlib" "/volume/target/x86_64-unknown-linux-musl/release/deps/liburl-0574f56c4b0b39ad.rlib" "/volume/target/x86_64-unknown-linux-musl/release/deps/libpercent_encoding-6623ea9a07c449d0.rlib" "/volume/target/x86_64-unknown-linux-musl/release/deps/libidna-369b036e4a6e3dbf.rlib" "/volume/target/x86_64-unknown-linux-musl/release/deps/libmatches-79ca70fb275a5f33.rlib" "/volume/target/x86_64-unknown-linux-musl/release/deps/libtime-d74d25d3351aecb7.rlib" "/volume/target/x86_64-unknown-linux-musl/release/deps/libbase64-439254d1f4f4e292.rlib" "/volume/target/x86_64-unknown-linux-musl/release/deps/libsafemem-db93c8c4aebfbf62.rlib" "/volume/target/x86_64-unknown-linux-musl/release/deps/libfutures-ca964ae90cdac362.rlib" "/volume/target/x86_64-unknown-linux-musl/release/deps/libbytes-cd1f0330d08a01fe.rlib" "/volume/target/x86_64-unknown-linux-musl/release/deps/libiovec-75d1c8d7c787d732.rlib" "/volume/target/x86_64-unknown-linux-musl/release/deps/libsysinfo-5a058dd311267bf8.rlib" "/volume/target/x86_64-unknown-linux-musl/release/deps/libpath_absolutize-c9d709b5980693ca.rlib" "/volume/target/x86_64-unknown-linux-musl/release/deps/libpath_dedot-949ce33d1717f3ae.rlib" "/volume/target/x86_64-unknown-linux-musl/release/deps/libchrono-9b5caeaccb162c4b.rlib" "/volume/target/x86_64-unknown-linux-musl/release/deps/libiana_time_zone-97e29e2aed7dfbb7.rlib" "/volume/target/x86_64-unknown-linux-musl/release/deps/libserde-06b0c6cf0a95fe81.rlib" "/volume/target/x86_64-unknown-linux-musl/release/deps/libegui_extras-9466fe52f60dc96f.rlib" "/volume/target/x86_64-unknown-linux-musl/release/deps/libimage-c3ccbd01e8a420f1.rlib" "/volume/target/x86_64-unknown-linux-musl/release/deps/libqoi-a3c923b952b753a7.rlib" "/volume/target/x86_64-unknown-linux-musl/release/deps/libexr-4516e000332f00ea.rlib" "/volume/target/x86_64-unknown-linux-musl/release/deps/libflume-03c7929d27f655a9.rlib" "/volume/target/x86_64-unknown-linux-musl/release/deps/libzune_inflate-1ed3197a2339e3d4.rlib" "/volume/target/x86_64-unknown-linux-musl/release/deps/libbit_field-c05c1cd4a31e5e18.rlib" "/volume/target/x86_64-unknown-linux-musl/release/deps/liblebe-ad1a25da06ad5aff.rlib" "/volume/target/x86_64-unknown-linux-musl/release/deps/libhalf-4fe826ac4f75468f.rlib" "/volume/target/x86_64-unknown-linux-musl/release/deps/libgif-6278414fff0cacce.rlib" "/volume/target/x86_64-unknown-linux-musl/release/deps/libcolor_quant-00bc9f00e1a71d21.rlib" "/volume/target/x86_64-unknown-linux-musl/release/deps/libbyteorder-183d1b16e983b183.rlib" "/volume/target/x86_64-unknown-linux-musl/release/deps/libnum_traits-a775f1302322e449.rlib" "/volume/target/x86_64-unknown-linux-musl/release/deps/libtiff-995ff7dbf5cb227c.rlib" "/volume/target/x86_64-unknown-linux-musl/release/deps/libweezl-d81171fd61e82be4.rlib" "/volume/target/x86_64-unknown-linux-musl/release/deps/libjpeg_decoder-2324ce985fb2f2f5.rlib" "/volume/target/x86_64-unknown-linux-musl/release/deps/librayon-99b8932d51674ea7.rlib" "/volume/target/x86_64-unknown-linux-musl/release/deps/librayon_core-3c2e1e863dbc8d17.rlib" "/volume/target/x86_64-unknown-linux-musl/release/deps/libcrossbeam_deque-5150c996802e6a14.rlib" "/volume/target/x86_64-unknown-linux-musl/release/deps/libcrossbeam_epoch-ad3da7ab8b004303.rlib" "/volume/target/x86_64-unknown-linux-musl/release/deps/libcrossbeam_utils-8d481224c56622cd.rlib" "/volume/target/x86_64-unknown-linux-musl/release/deps/libeither-b71edcf78a2ea1bd.rlib" "/volume/target/x86_64-unknown-linux-musl/release/deps/libeframe-6a1e60a09aff82d4.rlib" "/volume/target/x86_64-unknown-linux-musl/release/deps/libglutin-b01ce744b5a13b2b.rlib" "/volume/target/x86_64-unknown-linux-musl/release/deps/libwayland_egl-217f6e278d58ed65.rlib" "/volume/target/x86_64-unknown-linux-musl/release/deps/libosmesa_sys-783e734b144d2f7a.rlib" "/volume/target/x86_64-unknown-linux-musl/release/deps/libshared_library-abf82b76765dd8b1.rlib" "/volume/target/x86_64-unknown-linux-musl/release/deps/liblibloading-ffa64002a1c66dda.rlib" "-ldl" "/volume/target/x86_64-unknown-linux-musl/release/deps/libglutin_glx_sys-b8c679dc8e787ff0.rlib" "/volume/target/x86_64-unknown-linux-musl/release/deps/libglutin_egl_sys-773c8a446b51c52e.rlib" "/volume/target/x86_64-unknown-linux-musl/release/deps/libegui_winit-7e64cf7672099b66.rlib" "/volume/target/x86_64-unknown-linux-musl/release/deps/libwebbrowser-8f4373304a144825.rlib" "/volume/target/x86_64-unknown-linux-musl/release/deps/liburl-bd866179bd90d4c4.rlib" "/volume/target/x86_64-unknown-linux-musl/release/deps/libidna-179fde648df04055.rlib" "/volume/target/x86_64-unknown-linux-musl/release/deps/libunicode_normalization-87881db06ff380da.rlib" "/volume/target/x86_64-unknown-linux-musl/release/deps/libtinyvec-c5e07466dd3a6c11.rlib" "/volume/target/x86_64-unknown-linux-musl/release/deps/libtinyvec_macros-3c1ebe01d1e88f1a.rlib" "/volume/target/x86_64-unknown-linux-musl/release/deps/libunicode_bidi-5c382257b435bba3.rlib" "/volume/target/x86_64-unknown-linux-musl/release/deps/libform_urlencoded-cf255efdc53a985e.rlib" "/volume/target/x86_64-unknown-linux-musl/release/deps/libsmithay_clipboard-6f18118cee6f8c9d.rlib" "/volume/target/x86_64-unknown-linux-musl/release/deps/libarboard-ceeed72091e3b261.rlib" "/volume/target/x86_64-unknown-linux-musl/release/deps/libx11rb-441a08b60cbccc6a.rlib" "/volume/target/x86_64-unknown-linux-musl/release/deps/libgethostname-4ec8235c5cde0834.rlib" "/volume/target/x86_64-unknown-linux-musl/release/deps/libnix-e25a7e8710d362f0.rlib" "/volume/target/x86_64-unknown-linux-musl/release/deps/libwinit-1b03d692e8bd667b.rlib" "/volume/target/x86_64-unknown-linux-musl/release/deps/libsctk_adwaita-cf7001baa94ffd70.rlib" "/volume/target/x86_64-unknown-linux-musl/release/deps/libcrossfont-e4fa20f625f21da3.rlib" "-lfreetype" "-lpng16" "-lm" "-lbrotlidec" "-lbrotlicommon" "/volume/target/x86_64-unknown-linux-musl/release/deps/libfontconfig-ab0d17da8f388d5a.rlib" "/volume/target/x86_64-unknown-linux-musl/release/deps/libfontconfig_sys-82b025fad4f1e66f.rlib" "-lfontconfig" "-luuid" "-lexpat" "-lfreetype" "-lpng16" "-lm" "-lbrotlidec" "-lbrotlicommon" "/volume/target/x86_64-unknown-linux-musl/release/deps/libexpat_sys-655df19ce1a04199.rlib" "-lexpat" "-lm" "/volume/target/x86_64-unknown-linux-musl/release/deps/libforeign_types-acddafae4cdfd1df.rlib" "/volume/target/x86_64-unknown-linux-musl/release/deps/libforeign_types_shared-05aee94a7831f6fc.rlib" "/volume/target/x86_64-unknown-linux-musl/release/deps/libfreetype-077dde8fdd732669.rlib" "/volume/target/x86_64-unknown-linux-musl/release/deps/libfreetype_sys-4c51e513f87667e9.rlib" "-lfreetype" "-lpng16" "-lm" "-lbrotlidec" "-lbrotlicommon" "/volume/target/x86_64-unknown-linux-musl/release/deps/libtiny_skia-bd9d0d10fcc84b77.rlib" "/volume/target/x86_64-unknown-linux-musl/release/deps/libpng-f16094b8785df76e.rlib" "/volume/target/x86_64-unknown-linux-musl/release/deps/libflate2-d544ad8dfdcd000d.rlib" "/volume/target/x86_64-unknown-linux-musl/release/deps/libminiz_oxide-70b9ce041c57c157.rlib" "/volume/target/x86_64-unknown-linux-musl/release/deps/libfdeflate-59848302facd16b5.rlib" "/volume/target/x86_64-unknown-linux-musl/release/deps/libsimd_adler32-0267eac589248247.rlib" "/volume/target/x86_64-unknown-linux-musl/release/deps/libcrc32fast-1ad410ad379fd5a8.rlib" "/volume/target/x86_64-unknown-linux-musl/release/deps/libsafe_arch-868badb2c022a892.rlib" "/volume/target/x86_64-unknown-linux-musl/release/deps/libarrayvec-40a9674882ad8178.rlib" "/volume/target/x86_64-unknown-linux-musl/release/deps/libtiny_skia_path-a99af004f02260bf.rlib" "/volume/target/x86_64-unknown-linux-musl/release/deps/libarrayref-75e327fa2f03d203.rlib" "/volume/target/x86_64-unknown-linux-musl/release/deps/libraw_window_handle-37b0e6ce8dbf2803.rlib" "/volume/target/x86_64-unknown-linux-musl/release/deps/libcty-2918e1e7830f9a2f.rlib" "/volume/target/x86_64-unknown-linux-musl/release/deps/libmio-ff482de8dead5526.rlib" "/volume/target/x86_64-unknown-linux-musl/release/deps/libx11_dl-3b8de33c40e7c500.rlib" "-ldl" "/volume/target/x86_64-unknown-linux-musl/release/deps/libpercent_encoding-5391f7c34f5dce4a.rlib" "/volume/target/x86_64-unknown-linux-musl/release/deps/libsmithay_client_toolkit-3ac7cac9852b42f2.rlib" "/volume/target/x86_64-unknown-linux-musl/release/deps/libwayland_cursor-a49edc492994ac3d.rlib" "/volume/target/x86_64-unknown-linux-musl/release/deps/libxcursor-9007f93793e2a437.rlib" "/volume/target/x86_64-unknown-linux-musl/release/deps/libmemmap2-356ab9654497952d.rlib" "/volume/target/x86_64-unknown-linux-musl/release/deps/libwayland_protocols-07f88468f8578801.rlib" "/volume/target/x86_64-unknown-linux-musl/release/deps/libwayland_client-f4d00ef7bc6373ea.rlib" "/volume/target/x86_64-unknown-linux-musl/release/deps/libscoped_tls-8c8399b8fb82ae8b.rlib" "/volume/target/x86_64-unknown-linux-musl/release/deps/libwayland_commons-89ca75dfe9c12762.rlib" "/volume/target/x86_64-unknown-linux-musl/release/deps/libnix-dfc39d3386bd358c.rlib" "/volume/target/x86_64-unknown-linux-musl/release/deps/libwayland_sys-b91b7e3811dc6c70.rlib" "/volume/target/x86_64-unknown-linux-musl/release/deps/liblazy_static-a06f353254d8d3e8.rlib" "/volume/target/x86_64-unknown-linux-musl/release/deps/libcalloop-82b27ca996c5a765.rlib" "/volume/target/x86_64-unknown-linux-musl/release/deps/libthiserror-388adc8f41164652.rlib" "/volume/target/x86_64-unknown-linux-musl/release/deps/libslotmap-83faa03a06b114fd.rlib" "/volume/target/x86_64-unknown-linux-musl/release/deps/libnix-3a23bf91e5ad9ec3.rlib" "/volume/target/x86_64-unknown-linux-musl/release/deps/libpin_utils-9ff09c8b7b92f411.rlib" "/volume/target/x86_64-unknown-linux-musl/release/deps/libvec_map-0f5513a2b15cf46d.rlib" "/volume/target/x86_64-unknown-linux-musl/release/deps/libdlib-997d83b62ab28490.rlib" "/volume/target/x86_64-unknown-linux-musl/release/deps/liblibloading-8b66415806f50296.rlib" "-ldl" "/volume/target/x86_64-unknown-linux-musl/release/deps/libraw_window_handle-83a8d4eeede254fe.rlib" "/volume/target/x86_64-unknown-linux-musl/release/deps/libinstant-17f24fa18720b110.rlib" "/volume/target/x86_64-unknown-linux-musl/release/deps/libbitflags-ce3fff23681e6697.rlib" "/volume/target/x86_64-unknown-linux-musl/release/deps/liblog-95563d6b19ac6752.rlib" "/volume/target/x86_64-unknown-linux-musl/release/deps/libegui_glow-f03e029d6123fba6.rlib" "/volume/target/x86_64-unknown-linux-musl/release/deps/libtracing-24f78cbaa2394318.rlib" "/volume/target/x86_64-unknown-linux-musl/release/deps/libpin_project_lite-e96ce765ae9a3b19.rlib" "/volume/target/x86_64-unknown-linux-musl/release/deps/libtracing_core-dad191e281e4f16a.rlib" "/volume/target/x86_64-unknown-linux-musl/release/deps/libmemoffset-4d1745b52a11a095.rlib" "/volume/target/x86_64-unknown-linux-musl/release/deps/libglow-24de8ed1faa2457e.rlib" "/volume/target/x86_64-unknown-linux-musl/release/deps/libegui-0a73335e02bb6945.rlib" "/volume/target/x86_64-unknown-linux-musl/release/deps/libepaint-8d37fdf8e7679bec.rlib" "/volume/target/x86_64-unknown-linux-musl/release/deps/libnohash_hasher-006e44022dec5793.rlib" "/volume/target/x86_64-unknown-linux-musl/release/deps/libahash-29e3994321ea466c.rlib" "/volume/target/x86_64-unknown-linux-musl/release/deps/libgetrandom-d07b221d8c0fb968.rlib" "/volume/target/x86_64-unknown-linux-musl/release/deps/libonce_cell-6b9f6b26a7bfd85b.rlib" "/volume/target/x86_64-unknown-linux-musl/release/deps/libzerocopy-f971139bc4d915af.rlib" "/volume/target/x86_64-unknown-linux-musl/release/deps/libab_glyph-8a3a036893c38632.rlib" "/volume/target/x86_64-unknown-linux-musl/release/deps/libowned_ttf_parser-986ab2dc4f60fcce.rlib" "/volume/target/x86_64-unknown-linux-musl/release/deps/libttf_parser-e026b176e47a1495.rlib" "/volume/target/x86_64-unknown-linux-musl/release/deps/libab_glyph_rasterizer-0ad5c652b1dd521e.rlib" "/volume/target/x86_64-unknown-linux-musl/release/deps/libparking_lot-468b12b9482c3b7d.rlib" "/volume/target/x86_64-unknown-linux-musl/release/deps/libparking_lot_core-4d83bfb81496d655.rlib" "/volume/target/x86_64-unknown-linux-musl/release/deps/liblibc-eb73af8c325d0a12.rlib" "/volume/target/x86_64-unknown-linux-musl/release/deps/libcfg_if-3fef8de5868ae535.rlib" "/volume/target/x86_64-unknown-linux-musl/release/deps/libsmallvec-464dc61768758bf2.rlib" "/volume/target/x86_64-unknown-linux-musl/release/deps/liblock_api-8dc3883226f09c40.rlib" "/volume/target/x86_64-unknown-linux-musl/release/deps/libscopeguard-1e40dd50c805670d.rlib" "/volume/target/x86_64-unknown-linux-musl/release/deps/libemath-5ea7d88b5147e637.rlib" "/volume/target/x86_64-unknown-linux-musl/release/deps/libbytemuck-739605eb8957e7b8.rlib" "/root/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-musl/lib/libstd-d39c130c500d8439.rlib" "/root/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-musl/lib/libpanic_unwind-c0647e00ae89fcc1.rlib" "/root/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-musl/lib/libobject-02c37f90831c1c86.rlib" "/root/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-musl/lib/libmemchr-523006bceec0f004.rlib" "/root/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-musl/lib/libaddr2line-59115c4c0f6c3a27.rlib" "/root/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-musl/lib/libgimli-0b84729c3d77a3a5.rlib" "/root/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-musl/lib/librustc_demangle-2bf6265de784d715.rlib" "/root/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-musl/lib/libstd_detect-a3642d187894a083.rlib" "/root/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-musl/lib/libhashbrown-4fd3db597f7118c5.rlib" "/root/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-musl/lib/librustc_std_workspace_alloc-0a66e3c649c94c4d.rlib" "/root/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-musl/lib/libminiz_oxide-0758d7dc95a88925.rlib" "/root/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-musl/lib/libadler-579d77b36b43fa9c.rlib" "/root/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-musl/lib/libunwind-c46c60e11393d2dd.rlib" "-lunwind" "/root/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-musl/lib/libcfg_if-b99e078c45abaec8.rlib" "/root/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-musl/lib/liblibc-da1258151ec3ca67.rlib" "-lc" "/root/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-musl/lib/liballoc-24e5f3c412ebf0ab.rlib" "/root/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-musl/lib/librustc_std_workspace_core-d473d6ee09e9dfc3.rlib" "/root/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-musl/lib/libcore-7629cd91f7382b46.rlib" "/root/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-musl/lib/libcompiler_builtins-24a0066c9c663bee.rlib" "-Wl,-Bdynamic" "-Wl,--eh-frame-hdr" "-Wl,-z,noexecstack" "-nostartfiles" "-L" "/root/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-musl/lib" "-L" "/root/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-musl/lib/self-contained" "-o" "/volume/target/x86_64-unknown-linux-musl/release/deps/heroinn_ftp-fae109e45e5765a8" "-Wl,--gc-sections" "-static-pie" "-Wl,-z,relro,-z,now" "-Wl,-O1" "-nodefaultlibs" "/root/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-musl/lib/self-contained/crtendS.o" "/root/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-musl/lib/self-contained/crtn.o"
= note: /usr/bin/ld: cannot find -lgtk-3: No such file or directory
/usr/bin/ld: cannot find -lgdk-3: No such file or directory
/usr/bin/ld: cannot find -lpangocairo-1.0: No such file or directory
/usr/bin/ld: cannot find -lpango-1.0: No such file or directory
/usr/bin/ld: cannot find -latk-1.0: No such file or directory
/usr/bin/ld: cannot find -lgdk_pixbuf-2.0: No such file or directory
/usr/bin/ld: cannot find -latk-1.0: No such file or directory
/usr/bin/ld: cannot find -lgdk-3: No such file or directory
/usr/bin/ld: cannot find -lpangocairo-1.0: No such file or directory
/usr/bin/ld: cannot find -lpango-1.0: No such file or directory
/usr/bin/ld: cannot find -lgdk_pixbuf-2.0: No such file or directory
/usr/bin/ld: cannot find -lpango-1.0: No such file or directory
/usr/bin/ld: cannot find -lgdk_pixbuf-2.0: No such file or directory
collect2: error: ld returned 1 exit status
my building log ,i use the commands
apt-get update -y
apt-get upgrade -y
apt-get install -y pkg-config libfreetype6-dev libfontconfig1-dev libxcb-xfixes0-dev libxkbcommon-dev gobject-2.0 librust-atk-dev build-essential libgtk-3-dev librust-gdk-sys-dev build-essential git clang llvm-dev libclang-dev libssl-dev pkg-config libpq-dev musl-tools brotli
rustup target add x86_64-unknown-linux-musl
rustup component add rustfmt
ln -s /bin/g++ /bin/musl-g++
cargo build --release -vv --target=x86_64-unknown-linux-musl
and the got the link error
musl builds and C dependencies is it's own "can of worms" and it's non trivial to set up a good build container for this.
We are using https://github.com/clux/muslrust in https://github.com/kube-rs/version-rs/blob/main/Dockerfile and https://github.com/kube-rs/controller-rs/blob/main/justfile#L35-L44 - you could try that.
EDIT: sorry, thought this was on a different repo, ignore this.
if you want to link against extra libraries you have to compile these libraries inside the container with the musl toolchain.
it is not sufficient to apt install extra C dependencies because the apt installed ones are glibc based dylibs and will not be statically linkable (with -lgdk-3
say). See https://github.com/clux/muslrust?tab=readme-ov-file#extra-c-libraries
thx a lot, i while try building by source