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

Compiling librespot for armv7-unknown-linux-musleabihf #1124

Open
Barcol opened this issue Feb 25, 2023 · 1 comment
Open

Compiling librespot for armv7-unknown-linux-musleabihf #1124

Barcol opened this issue Feb 25, 2023 · 1 comment

Comments

@Barcol
Copy link

Barcol commented Feb 25, 2023

Has anyone compiled librespot for armv7-unknown-linux-musleabihf successfully? I cant pick a proper linker.

This is how I modified yours contrib/Dockerfile as my attempt to build it:

FROM debian:stretch

RUN dpkg --add-architecture armhf
RUN dpkg --add-architecture armel
RUN apt-get update

RUN apt-get install -y curl git build-essential crossbuild-essential-armel crossbuild-essential-armhf pkg-config gcc-arm-linux-gnueabihf
RUN apt-get install -y libasound2-dev libasound2-dev:armel libasound2-dev:armhf

RUN curl https://sh.rustup.rs -sSf | sh -s -- -y
ENV PATH="/root/.cargo/bin/:${PATH}"
RUN rustup target add arm-unknown-linux-gnueabi
RUN rustup target add arm-unknown-linux-gnueabihf
RUN rustup target add armv7-unknown-linux-musleabihf

RUN mkdir /.cargo && \
echo '[target.arm-unknown-linux-gnueabihf]\nlinker = "arm-linux-gnueabihf-gcc"' >> /.cargo/config && \
echo '[target.armv7-unknown-linux-musleabihf]\nlinker = "/src/armv7l-linux-musleabihf-cross/bin/armv7l-linux-musleabihf-gcc"' >> /.cargo/config && \. <======= This is the line I've been mostly experimenting with
echo '[target.arm-unknown-linux-gnueabi]\nlinker  = "arm-linux-gnueabi-gcc"' >> /.cargo/config

RUN mkdir /build && \
mkdir /pi-tools && \
curl -L https://github.com/raspberrypi/tools/archive/648a6eeb1e3c2b40af4eb34d88941ee0edeb3e9a.tar.gz | tar xz --strip-components 1 -C /pi-tools

ENV CARGO_TARGET_DIR /build
ENV CARGO_HOME /build/cache
ENV PKG_CONFIG_ALLOW_CROSS=1
ENV PKG_CONFIG_PATH_arm-unknown-linux-gnueabihf=/usr/lib/arm-linux-gnueabihf/pkgconfig/
ENV PKG_CONFIG_PATH_armv7-unknown-linux-musleabihf=/usr/lib/armv7-linux-musleabihf/pkgconfig/
ENV PKG_CONFIG_PATH_arm-unknown-linux-gnueabi=/usr/lib/arm-linux-gnueabi/pkgconfig/

ADD . /src
WORKDIR /src
CMD ["/src/contrib/docker-build.sh"]

Docker build finishes flawlessly, but docker run -v /tmp/librespot-build:/build librespot-cross cargo build --release --target armv7-unknown-linux-musleabihf --no-default-features --features alsa-backend produces:

error: linking with `arm-linux-gnueabihf-gcc` failed: exit status: 1
  |
  = note: "arm-linux-gnueabihf-gcc" "/root/.rustup/toolchains/stable-aarch64-unknown-linux-gnu/lib/rustlib/armv7-unknown-linux-musleabihf/lib/self-contained/crt1.o" "/root/.rustup/toolchains/stable-aarch64-unknown-linux-gnu/lib/rustlib/armv7-unknown-linux-musleabihf/lib/self-contained/crti.o" "/root/.rustup/toolchains/stable-aarch64-unknown-linux-gnu/lib/rustlib/armv7-unknown-linux-musleabihf/lib/self-contained/crtbegin.o" "/tmp/rustcIvDjCJ/symbols.o" "/build/armv7-unknown-linux-musleabihf/release/deps/librespot-ab9851b389818e3d.librespot.ce3a383f-cgu.0.rcgu.o" "/build/armv7-unknown-linux-musleabihf/release/deps/librespot-ab9851b389818e3d.librespot.ce3a383f-cgu.1.rcgu.o" "/build/armv7-unknown-linux-musleabihf/release/deps/librespot-ab9851b389818e3d.librespot.ce3a383f-cgu.10.rcgu.o" "/build/armv7-unknown-linux-musleabihf/release/deps/librespot-ab9851b389818e3d.librespot.ce3a383f-cgu.11.rcgu.o" "/build/armv7-unknown-linux-musleabihf/release/deps/librespot-ab9851b389818e3d.librespot.ce3a383f-cgu.12.rcgu.o" "/build/armv7-unknown-linux-musleabihf/release/deps/librespot-ab9851b389818e3d.librespot.ce3a383f-cgu.13.rcgu.o" "/build/armv7-unknown-linux-musleabihf/release/deps/librespot-ab9851b389818e3d.librespot.ce3a383f-cgu.14.rcgu.o" "/build/armv7-unknown-linux-musleabihf/release/deps/librespot-ab9851b389818e3d.librespot.ce3a383f-cgu.15.rcgu.o" "/build/armv7-unknown-linux-musleabihf/release/deps/librespot-ab9851b389818e3d.librespot.ce3a383f-cgu.2.rcgu.o" "/build/armv7-unknown-linux-musleabihf/release/deps/librespot-ab9851b389818e3d.librespot.ce3a383f-cgu.3.rcgu.o" "/build/armv7-unknown-linux-musleabihf/release/deps/librespot-ab9851b389818e3d.librespot.ce3a383f-cgu.4.rcgu.o" "/build/armv7-unknown-linux-musleabihf/release/deps/librespot-ab9851b389818e3d.librespot.ce3a383f-cgu.5.rcgu.o" "/build/armv7-unknown-linux-musleabihf/release/deps/librespot-ab9851b389818e3d.librespot.ce3a383f-cgu.6.rcgu.o" "/build/armv7-unknown-linux-musleabihf/release/deps/librespot-ab9851b389818e3d.librespot.ce3a383f-cgu.7.rcgu.o" "/build/armv7-unknown-linux-musleabihf/release/deps/librespot-ab9851b389818e3d.librespot.ce3a383f-cgu.8.rcgu.o" "/build/armv7-unknown-linux-musleabihf/release/deps/librespot-ab9851b389818e3d.librespot.ce3a383f-cgu.9.rcgu.o" "/build/armv7-unknown-linux-musleabihf/release/deps/librespot-ab9851b389818e3d.5glzilkcet6wxs17.rcgu.o" "-Wl,--as-needed" "-L" "/build/armv7-unknown-linux-musleabihf/release/deps" "-L" "/build/release/deps" "-L" "/usr/lib/aarch64-linux-gnu" "-L" "/root/.rustup/toolchains/stable-aarch64-unknown-linux-gnu/lib/rustlib/armv7-unknown-linux-musleabihf/lib" "-Wl,-Bstatic" "/build/armv7-unknown-linux-musleabihf/release/deps/librpassword-4f6a77f43a94d55e.rlib" "/build/armv7-unknown-linux-musleabihf/release/deps/libenv_logger-01d5a0ff8807c2ba.rlib" "/build/armv7-unknown-linux-musleabihf/release/deps/libatty-197480d04d529c7b.rlib" "/build/armv7-unknown-linux-musleabihf/release/deps/libtermcolor-5716bb2cc7b03df8.rlib" "/build/armv7-unknown-linux-musleabihf/release/deps/libhumantime-5c7b0de690106d2f.rlib" "/build/armv7-unknown-linux-musleabihf/release/deps/libgetopts-107b1366be8ceaec.rlib" "/build/armv7-unknown-linux-musleabihf/release/deps/libunicode_width-ae9774d268cb1768.rlib" "/build/armv7-unknown-linux-musleabihf/release/deps/libhex-5f0fa1d448e71234.rlib" "/build/armv7-unknown-linux-musleabihf/release/deps/liblibrespot-c7aa2a4e88a7761a.rlib" "/build/armv7-unknown-linux-musleabihf/release/deps/liblibrespot_connect-8f08a3ce066d6dac.rlib" "/build/armv7-unknown-linux-musleabihf/release/deps/liblibrespot_discovery-5b588c056b73d5d8.rlib" "/build/armv7-unknown-linux-musleabihf/release/deps/liblibmdns-e55dbadcbbdb21b4.rlib" "/build/armv7-unknown-linux-musleabihf/release/deps/libhostname-dc762aa286f073b4.rlib" "/build/armv7-unknown-linux-musleabihf/release/deps/libmatch_cfg-c3c7f27a297e1aa8.rlib" "/build/armv7-unknown-linux-musleabihf/release/deps/libmultimap-5fa43fb1e5c429ac.rlib" "/build/armv7-unknown-linux-musleabihf/release/deps/libif_addrs-50a3c0e958eb347b.rlib" "/build/armv7-unknown-linux-musleabihf/release/deps/liblibrespot_playback-a2fb91846fb246a3.rlib" "/build/armv7-unknown-linux-musleabihf/release/deps/librand_distr-cf58c3796393b94d.rlib" "/build/armv7-unknown-linux-musleabihf/release/deps/liblewton-0d2c69c491b6b125.rlib" "/build/armv7-unknown-linux-musleabihf/release/deps/libogg-d7f6eff132739c67.rlib" "/build/armv7-unknown-linux-musleabihf/release/deps/libzerocopy-47ca7b661a3d5602.rlib" "/build/armv7-unknown-linux-musleabihf/release/deps/libshell_words-8877a82a29b4ff17.rlib" "/build/armv7-unknown-linux-musleabihf/release/deps/libalsa-28b0216648c1cd57.rlib" "/build/armv7-unknown-linux-musleabihf/release/deps/libnix-6d84fcb18c9f4179.rlib" "/build/armv7-unknown-linux-musleabihf/release/deps/libmemoffset-39fcfd45815bb23e.rlib" "/build/armv7-unknown-linux-musleabihf/release/deps/libalsa_sys-e38d5abb2f791cb2.rlib" "/build/armv7-unknown-linux-musleabihf/release/deps/liblibrespot_metadata-aa561da804ee08b1.rlib" "/build/armv7-unknown-linux-musleabihf/release/deps/liblibrespot_audio-9661214142c801aa.rlib" "/build/armv7-unknown-linux-musleabihf/release/deps/libtempfile-0deb424f5e251f8f.rlib" "/build/armv7-unknown-linux-musleabihf/release/deps/libfastrand-30552254845c67e3.rlib" "/build/armv7-unknown-linux-musleabihf/release/deps/libremove_dir_all-bd9706e4e998185c.rlib" "/build/armv7-unknown-linux-musleabihf/release/deps/liblibrespot_core-6416049f35cc03fe.rlib" "/build/armv7-unknown-linux-musleabihf/release/deps/libuuid-2c15213b2bc91c53.rlib" "/build/armv7-unknown-linux-musleabihf/release/deps/libserde_json-2e8550eb61778b38.rlib" "/build/armv7-unknown-linux-musleabihf/release/deps/libryu-a43ae282d798b39d.rlib" "/build/armv7-unknown-linux-musleabihf/release/deps/libtokio_stream-a15994fdfb70dd16.rlib" "/build/armv7-unknown-linux-musleabihf/release/deps/libnum_bigint-1bf72a11c3afe609.rlib" "/build/armv7-unknown-linux-musleabihf/release/deps/libnum_integer-f3eb6f01703c4078.rlib" "/build/armv7-unknown-linux-musleabihf/release/deps/libnum_traits-b512ca41679fc63a.rlib" "/build/armv7-unknown-linux-musleabihf/release/deps/libthiserror-fb7e8b2276657c51.rlib" "/build/armv7-unknown-linux-musleabihf/release/deps/librand-4ed8a47b8da0172a.rlib" "/build/armv7-unknown-linux-musleabihf/release/deps/librand_chacha-1c5dda9ca54881e3.rlib" "/build/armv7-unknown-linux-musleabihf/release/deps/libppv_lite86-d197aaa6b92e4720.rlib" "/build/armv7-unknown-linux-musleabihf/release/deps/librand_core-b436931038e15359.rlib" "/build/armv7-unknown-linux-musleabihf/release/deps/libgetrandom-518b4e1b6a494bc6.rlib" "/build/armv7-unknown-linux-musleabihf/release/deps/libtokio_util-82d79b1994bfbebe.rlib" "/build/armv7-unknown-linux-musleabihf/release/deps/libshannon-f1644b08b5f1f6d5.rlib" "/build/armv7-unknown-linux-musleabihf/release/deps/libpriority_queue-a2ba2c15680cb9a0.rlib" "/build/armv7-unknown-linux-musleabihf/release/deps/libsha1-2dcdfb630fb5ca5a.rlib" "/build/armv7-unknown-linux-musleabihf/release/deps/libblock_buffer-0b9ec0e2216e4981.rlib" "/build/armv7-unknown-linux-musleabihf/release/deps/libpbkdf2-a2ecc0c67f3d1d4d.rlib" "/build/armv7-unknown-linux-musleabihf/release/deps/libhmac-a2187e37102c177c.rlib" "/build/armv7-unknown-linux-musleabihf/release/deps/libdigest-336b90ee093c3922.rlib" "/build/armv7-unknown-linux-musleabihf/release/deps/libcrypto_mac-d4c7d88893686a68.rlib" "/build/armv7-unknown-linux-musleabihf/release/deps/libsubtle-a1190b9e34ad6b9f.rlib" "/build/armv7-unknown-linux-musleabihf/release/deps/libaes-2c7333b41f31d485.rlib" "/build/armv7-unknown-linux-musleabihf/release/deps/libbyteorder-1489dba7a191bc2f.rlib" "/build/armv7-unknown-linux-musleabihf/release/deps/liburl-84f9eea3e86a7327.rlib" "/build/armv7-unknown-linux-musleabihf/release/deps/libidna-3702d4565a837b24.rlib" "/build/armv7-unknown-linux-musleabihf/release/deps/libunicode_normalization-f6f47a98bc1d4d04.rlib" "/build/armv7-unknown-linux-musleabihf/release/deps/libtinyvec-7feb2f376c7d4f34.rlib" "/build/armv7-unknown-linux-musleabihf/release/deps/libtinyvec_macros-85f61f1975db856a.rlib" "/build/armv7-unknown-linux-musleabihf/release/deps/libunicode_bidi-2b01337b280c5956.rlib" "/build/armv7-unknown-linux-musleabihf/release/deps/libform_urlencoded-84dda55522d1aa6b.rlib" "/build/armv7-unknown-linux-musleabihf/release/deps/libpercent_encoding-61934f6f3a9afa56.rlib" "/build/armv7-unknown-linux-musleabihf/release/deps/libmatches-172e8f8f70f70e46.rlib" "/build/armv7-unknown-linux-musleabihf/release/deps/libserde-3388f3d55e9e1e80.rlib" "/build/armv7-unknown-linux-musleabihf/release/deps/libhyper_proxy-50942df218111208.rlib" "/build/armv7-unknown-linux-musleabihf/release/deps/libheaders-ad0b135a88983025.rlib" "/build/armv7-unknown-linux-musleabihf/release/deps/libsha1-fb7d67c998524b9d.rlib" "/build/armv7-unknown-linux-musleabihf/release/deps/libdigest-dad9c1477bab3583.rlib" "/build/armv7-unknown-linux-musleabihf/release/deps/libblock_buffer-e7185265cffa861e.rlib" "/build/armv7-unknown-linux-musleabihf/release/deps/libcrypto_common-b81d49a72ec0f4ec.rlib" "/build/armv7-unknown-linux-musleabihf/release/deps/libmime-3ae8925f7da23231.rlib" "/build/armv7-unknown-linux-musleabihf/release/deps/libheaders_core-161b3008358f57b3.rlib" "/build/armv7-unknown-linux-musleabihf/release/deps/libbitflags-d3eb6bd5daccc483.rlib" "/build/armv7-unknown-linux-musleabihf/release/deps/libbase64-0ecdc882420b27e2.rlib" "/build/armv7-unknown-linux-musleabihf/release/deps/libfutures-444770f29aa5c4fa.rlib" "/build/armv7-unknown-linux-musleabihf/release/deps/libfutures_executor-c6f71685e81bc432.rlib" "/build/armv7-unknown-linux-musleabihf/release/deps/libhyper-051e6f4dcad9f6e5.rlib" "/build/armv7-unknown-linux-musleabihf/release/deps/libwant-8bdf1a7db37e7d93.rlib" "/build/armv7-unknown-linux-musleabihf/release/deps/libtry_lock-e3503d83e78fc18f.rlib" "/build/armv7-unknown-linux-musleabihf/release/deps/libhttparse-c084c75ff83e42c9.rlib" "/build/armv7-unknown-linux-musleabihf/release/deps/libtower_service-01861fd504893d81.rlib" "/build/armv7-unknown-linux-musleabihf/release/deps/libtracing-c6e3bc0fb90f795c.rlib" "/build/armv7-unknown-linux-musleabihf/release/deps/libtracing_core-8444172d39251149.rlib" "/build/armv7-unknown-linux-musleabihf/release/deps/libhttp_body-e7b7930b184dba52.rlib" "/build/armv7-unknown-linux-musleabihf/release/deps/libtokio-f40cec52a205b8cc.rlib" "/build/armv7-unknown-linux-musleabihf/release/deps/libsignal_hook_registry-99502a5ec9d016b0.rlib" "/build/armv7-unknown-linux-musleabihf/release/deps/libnum_cpus-e5ced66a52c05284.rlib" "/build/armv7-unknown-linux-musleabihf/release/deps/libsocket2-e8d7c53fc0a14ae7.rlib" "/build/armv7-unknown-linux-musleabihf/release/deps/libonce_cell-bfc677aea0305406.rlib" "/build/armv7-unknown-linux-musleabihf/release/deps/libmio-f8bfaa60112c9a7b.rlib" "/build/armv7-unknown-linux-musleabihf/release/deps/libparking_lot-2f9eb048fcd187f0.rlib" "/build/armv7-unknown-linux-musleabihf/release/deps/libparking_lot_core-370bf0f00623e552.rlib" "/build/armv7-unknown-linux-musleabihf/release/deps/libthread_id-a44961a3af19ba5d.rlib" "/build/armv7-unknown-linux-musleabihf/release/deps/libpetgraph-0d8ae14682c1dcad.rlib" "/build/armv7-unknown-linux-musleabihf/release/deps/libindexmap-c6e0bd7197f784f2.rlib" "/build/armv7-unknown-linux-musleabihf/release/deps/libhashbrown-9d7fff54328aa47b.rlib" "/build/armv7-unknown-linux-musleabihf/release/deps/libfixedbitset-beaa42fb465448ff.rlib" "/build/armv7-unknown-linux-musleabihf/release/deps/libbacktrace-6890be2925c32d4f.rlib" "/build/armv7-unknown-linux-musleabihf/release/deps/libminiz_oxide-d65c6a8792d1687f.rlib" "/build/armv7-unknown-linux-musleabihf/release/deps/libadler-dacb751fedd4dc30.rlib" "/build/armv7-unknown-linux-musleabihf/release/deps/libobject-d7d53e99bf7bbd73.rlib" "/build/armv7-unknown-linux-musleabihf/release/deps/liblibc-93365035f615dfc5.rlib" "/build/armv7-unknown-linux-musleabihf/release/deps/libaddr2line-6f5688462bffb785.rlib" "/build/armv7-unknown-linux-musleabihf/release/deps/libgimli-c7f064b48bae8f7b.rlib" "/build/armv7-unknown-linux-musleabihf/release/deps/librustc_demangle-af644c2df3191aed.rlib" "/build/armv7-unknown-linux-musleabihf/release/deps/libsmallvec-0bddb8da29e915e4.rlib" "/build/armv7-unknown-linux-musleabihf/release/deps/liblock_api-90e54d4caced92c3.rlib" "/build/armv7-unknown-linux-musleabihf/release/deps/libscopeguard-3632c070c0c9e4be.rlib" "/build/armv7-unknown-linux-musleabihf/release/deps/libhttpdate-41e10fb1caba83d6.rlib" "/build/armv7-unknown-linux-musleabihf/release/deps/libhttp-689bbbe7a613e078.rlib" "/build/armv7-unknown-linux-musleabihf/release/deps/libitoa-7df763e62aa3945a.rlib" "/build/armv7-unknown-linux-musleabihf/release/deps/libbytes-de31a1253cfdca01.rlib" "/build/armv7-unknown-linux-musleabihf/release/deps/libfnv-3da20fc4ca89e7a9.rlib" "/build/armv7-unknown-linux-musleabihf/release/deps/liblibrespot_protocol-70025863c5ed38b5.rlib" "/build/armv7-unknown-linux-musleabihf/release/deps/libprotobuf-d1f3973c3ed1a9b5.rlib" "/build/armv7-unknown-linux-musleabihf/release/deps/libaes_ctr-3c87cde2969fb802.rlib" "/build/armv7-unknown-linux-musleabihf/release/deps/libctr-ac0d8b1096d36cd8.rlib" "/build/armv7-unknown-linux-musleabihf/release/deps/libaes_soft-812f77ad3ece56df.rlib" "/build/armv7-unknown-linux-musleabihf/release/deps/libopaque_debug-58123216a261e6b5.rlib" "/build/armv7-unknown-linux-musleabihf/release/deps/libcipher-4a11f9249ba7c8f8.rlib" "/build/armv7-unknown-linux-musleabihf/release/deps/libgeneric_array-98f13a29aeab927c.rlib" "/build/armv7-unknown-linux-musleabihf/release/deps/libtypenum-7e286045f89bd681.rlib" "/build/armv7-unknown-linux-musleabihf/release/deps/liblog-373e4b91c53634f6.rlib" "/build/armv7-unknown-linux-musleabihf/release/deps/libcfg_if-381a29992abfc53e.rlib" "/build/armv7-unknown-linux-musleabihf/release/deps/libfutures_util-00b8437b3b026970.rlib" "/build/armv7-unknown-linux-musleabihf/release/deps/libmemchr-3a0f66a53c6246d6.rlib" "/build/armv7-unknown-linux-musleabihf/release/deps/libfutures_io-0686079318379ffe.rlib" "/build/armv7-unknown-linux-musleabihf/release/deps/libslab-83bbba0acf33433e.rlib" "/build/armv7-unknown-linux-musleabihf/release/deps/libfutures_channel-0232253340a5aaf1.rlib" "/build/armv7-unknown-linux-musleabihf/release/deps/libpin_project_lite-8ce0aa19f51100ac.rlib" "/build/armv7-unknown-linux-musleabihf/release/deps/libfutures_sink-65db20b78703c25d.rlib" "/build/armv7-unknown-linux-musleabihf/release/deps/libfutures_task-b5b666f391b72acc.rlib" "/build/armv7-unknown-linux-musleabihf/release/deps/libpin_utils-571b6208fc60d3f1.rlib" "/build/armv7-unknown-linux-musleabihf/release/deps/libfutures_core-c467474c3ddb1115.rlib" "/root/.rustup/toolchains/stable-aarch64-unknown-linux-gnu/lib/rustlib/armv7-unknown-linux-musleabihf/lib/libstd-5b4b69dc8d03cd78.rlib" "/root/.rustup/toolchains/stable-aarch64-unknown-linux-gnu/lib/rustlib/armv7-unknown-linux-musleabihf/lib/libpanic_unwind-bb6f9c356501e371.rlib" "/root/.rustup/toolchains/stable-aarch64-unknown-linux-gnu/lib/rustlib/armv7-unknown-linux-musleabihf/lib/libobject-0ea2c6cd735b54f7.rlib" "/root/.rustup/toolchains/stable-aarch64-unknown-linux-gnu/lib/rustlib/armv7-unknown-linux-musleabihf/lib/libmemchr-5a97737012315192.rlib" "/root/.rustup/toolchains/stable-aarch64-unknown-linux-gnu/lib/rustlib/armv7-unknown-linux-musleabihf/lib/libaddr2line-3ccc4d6643a0f488.rlib" "/root/.rustup/toolchains/stable-aarch64-unknown-linux-gnu/lib/rustlib/armv7-unknown-linux-musleabihf/lib/libgimli-2b594733888631a8.rlib" "/root/.rustup/toolchains/stable-aarch64-unknown-linux-gnu/lib/rustlib/armv7-unknown-linux-musleabihf/lib/librustc_demangle-95075c7a6cc69ec1.rlib" "/root/.rustup/toolchains/stable-aarch64-unknown-linux-gnu/lib/rustlib/armv7-unknown-linux-musleabihf/lib/libstd_detect-1e0657b6d6789b2d.rlib" "/root/.rustup/toolchains/stable-aarch64-unknown-linux-gnu/lib/rustlib/armv7-unknown-linux-musleabihf/lib/libhashbrown-f435bf03ba553193.rlib" "/root/.rustup/toolchains/stable-aarch64-unknown-linux-gnu/lib/rustlib/armv7-unknown-linux-musleabihf/lib/libminiz_oxide-f10865e0680f19ae.rlib" "/root/.rustup/toolchains/stable-aarch64-unknown-linux-gnu/lib/rustlib/armv7-unknown-linux-musleabihf/lib/libadler-39238b252b9b946d.rlib" "/root/.rustup/toolchains/stable-aarch64-unknown-linux-gnu/lib/rustlib/armv7-unknown-linux-musleabihf/lib/librustc_std_workspace_alloc-109caf8c2790115b.rlib" "/root/.rustup/toolchains/stable-aarch64-unknown-linux-gnu/lib/rustlib/armv7-unknown-linux-musleabihf/lib/libunwind-c93ee9d2121c965a.rlib" "-lunwind" "/root/.rustup/toolchains/stable-aarch64-unknown-linux-gnu/lib/rustlib/armv7-unknown-linux-musleabihf/lib/libcfg_if-cd78e82c3161b3e4.rlib" "/root/.rustup/toolchains/stable-aarch64-unknown-linux-gnu/lib/rustlib/armv7-unknown-linux-musleabihf/lib/liblibc-14a0fa62820f6f01.rlib" "-lc" "/root/.rustup/toolchains/stable-aarch64-unknown-linux-gnu/lib/rustlib/armv7-unknown-linux-musleabihf/lib/liballoc-58ff758527023384.rlib" "/root/.rustup/toolchains/stable-aarch64-unknown-linux-gnu/lib/rustlib/armv7-unknown-linux-musleabihf/lib/librustc_std_workspace_core-b5efb37bb3467a37.rlib" "/root/.rustup/toolchains/stable-aarch64-unknown-linux-gnu/lib/rustlib/armv7-unknown-linux-musleabihf/lib/libcore-f890d2ae48e88fe3.rlib" "/root/.rustup/toolchains/stable-aarch64-unknown-linux-gnu/lib/rustlib/armv7-unknown-linux-musleabihf/lib/libcompiler_builtins-ecfd5f4620200cdc.rlib" "-Wl,-Bdynamic" "-lasound" "-Wl,--eh-frame-hdr" "-Wl,-znoexecstack" "-nostartfiles" "-L" "/root/.rustup/toolchains/stable-aarch64-unknown-linux-gnu/lib/rustlib/armv7-unknown-linux-musleabihf/lib" "-L" "/root/.rustup/toolchains/stable-aarch64-unknown-linux-gnu/lib/rustlib/armv7-unknown-linux-musleabihf/lib/self-contained" "-o" "/build/armv7-unknown-linux-musleabihf/release/deps/librespot-ab9851b389818e3d" "-Wl,--gc-sections" "-static" "-no-pie" "-Wl,-zrelro,-znow" "-Wl,-O1" "-nodefaultlibs" "/root/.rustup/toolchains/stable-aarch64-unknown-linux-gnu/lib/rustlib/armv7-unknown-linux-musleabihf/lib/self-contained/crtend.o" "/root/.rustup/toolchains/stable-aarch64-unknown-linux-gnu/lib/rustlib/armv7-unknown-linux-musleabihf/lib/self-contained/crtn.o"
  = note: /usr/lib/aarch64-linux-gnu/libc.a: error adding symbols: File format not recognized
          collect2: error: ld returned 1 exit status


error: could not compile `librespot` due to previous error

I don't know how to label this issue properly, as this is not a feature request, nor is it a bug report.

@benblasco
Copy link

= note: /usr/lib/aarch64-linux-gnu/libc.a: error adding symbols: File format not recognized
I believe this means you have a dependency in there somewhere for aarch64, aka armv8 or armv9. Since you are trying to compile for armv7, this dependency check fails.

More reading: https://www.quora.com/How-do-you-resolve-Gcc-error-adding-symbol-file-in-wrong-format-Linux-C-Ubuntu-GCC-development

Sorry I have no insight on how to fix the issue, but I believe this is the cause.

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

No branches or pull requests

2 participants