[GH-ISSUE #557] undefined reference to `llvm.x86.addcarry.64' on debian buster #355

Closed
opened 2026-02-27 19:30:11 +03:00 by kerem · 7 comments
Owner

Originally created by @christf on GitHub (Dec 31, 2020).
Original GitHub issue: https://github.com/librespot-org/librespot/issues/557

compiling version 0adb8516a6 on buster fails with

cc --version
cc (Debian 8.3.0-6) 8.3.0
Copyright (C) 2018 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

christof@build:~/librespot$ gcc --version
gcc (Debian 8.3.0-6) 8.3.0
Copyright (C) 2018 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

christof@build:~/librespot$ rustc --version
rustc 1.41.1

The error message is:

   Compiling librespot-core v0.1.3 (/home/christof/librespot/core)
   Compiling librespot-audio v0.1.3 (/home/christof/librespot/audio)
   Compiling librespot-metadata v0.1.3 (/home/christof/librespot/metadata)
   Compiling librespot-playback v0.1.3 (/home/christof/librespot/playback)
   Compiling librespot-connect v0.1.3 (/home/christof/librespot/connect)
   Compiling librespot v0.1.3 (/home/christof/librespot)
error: linking with `cc` failed: exit code: 1
  |
  = note: "cc" "-Wl,--as-needed" "-Wl,-z,noexecstack" "-m64" "-L" "/usr/lib/rustlib/x86_64-unknown-linux-gnu/lib" "/home/christof/librespot/target/release/deps/librespot-5b93096c48f4124f.librespot.2euxypc2-cgu.6.rcgu.o" "-o" "/home/christof/librespot/target/release/deps/librespot-5b93096c48f4124f" "-Wl,--gc-sections" "-pie" "-Wl,-zrelro" "-Wl,-znow" "-Wl,-O1" "-nodefaultlibs" "-L" "/home/christof/librespot/target/release/deps" "-L" "/usr/lib/x86_64-linux-gnu" "-L" "/usr/lib/rustlib/x86_64-unknown-linux-gnu/lib" "-Wl,--start-group" "-Wl,-Bstatic" "/tmp/rustcX0FmzN/libbacktrace_sys-2b9293c7b8f41cd3.rlib" "-Wl,--end-group" "/usr/lib/rustlib/x86_64-unknown-linux-gnu/lib/libcompiler_builtins-a5f50861fed71e63.rlib" "-Wl,-Bdynamic" "-lasound" "-lutil" "-ldl" "-lutil" "-ldl" "-lrt" "-lpthread" "-lgcc_s" "-lc" "-lm" "-lrt" "-lpthread" "-lutil" "-lutil"
  = note: /usr/bin/ld: /home/christof/librespot/target/release/deps/librespot-5b93096c48f4124f.librespot.2euxypc2-cgu.6.rcgu.o: in function `<num_bigint::biguint::BigUint as core::ops::arith::Add<&num_bigint::biguint::BigUint>>::add':
          librespot.2euxypc2-cgu.6:(.text._ZN110_$LT$num_bigint..biguint..BigUint$u20$as$u20$core..ops..arith..Add$LT$$RF$num_bigint..biguint..BigUint$GT$$GT$3add17h32ddd009c8dee726E+0xa7): undefined reference to `llvm.x86.addcarry.64'
          /usr/bin/ld: librespot.2euxypc2-cgu.6:(.text._ZN110_$LT$num_bigint..biguint..BigUint$u20$as$u20$core..ops..arith..Add$LT$$RF$num_bigint..biguint..BigUint$GT$$GT$3add17h32ddd009c8dee726E+0x115): undefined reference to `llvm.x86.addcarry.64'
          /usr/bin/ld: librespot.2euxypc2-cgu.6:(.text._ZN110_$LT$num_bigint..biguint..BigUint$u20$as$u20$core..ops..arith..Add$LT$$RF$num_bigint..biguint..BigUint$GT$$GT$3add17h32ddd009c8dee726E+0x1b9): undefined reference to `llvm.x86.addcarry.64'
          /usr/bin/ld: librespot.2euxypc2-cgu.6:(.text._ZN110_$LT$num_bigint..biguint..BigUint$u20$as$u20$core..ops..arith..Add$LT$$RF$num_bigint..biguint..BigUint$GT$$GT$3add17h32ddd009c8dee726E+0x229): undefined reference to `llvm.x86.addcarry.64'
          /usr/bin/ld: librespot.2euxypc2-cgu.6:(.text._ZN110_$LT$num_bigint..biguint..BigUint$u20$as$u20$core..ops..arith..Add$LT$$RF$num_bigint..biguint..BigUint$GT$$GT$3add17h32ddd009c8dee726E+0x248): undefined reference to `llvm.x86.addcarry.64'
          /usr/bin/ld: /home/christof/librespot/target/release/deps/librespot-5b93096c48f4124f.librespot.2euxypc2-cgu.6.rcgu.o:librespot.2euxypc2-cgu.6:(.text._ZN110_$LT$num_bigint..biguint..BigUint$u20$as$u20$core..ops..arith..Add$LT$$RF$num_bigint..biguint..BigUint$GT$$GT$3add17h32ddd009c8dee726E+0x346): more undefined references to `llvm.x86.addcarry.64' follow
          /usr/bin/ld: /home/christof/librespot/target/release/deps/librespot-5b93096c48f4124f.librespot.2euxypc2-cgu.6.rcgu.o: in function `<num_bigint::biguint::BigUint as core::ops::arith::SubAssign<&num_bigint::biguint::BigUint>>::sub_assign':
          librespot.2euxypc2-cgu.6:(.text._ZN116_$LT$num_bigint..biguint..BigUint$u20$as$u20$core..ops..arith..SubAssign$LT$$RF$num_bigint..biguint..BigUint$GT$$GT$10sub_assign17hc19fdd40e107d0e9E+0x6f): undefined reference to `llvm.x86.subborrow.64'
          /usr/bin/ld: librespot.2euxypc2-cgu.6:(.text._ZN116_$LT$num_bigint..biguint..BigUint$u20$as$u20$core..ops..arith..SubAssign$LT$$RF$num_bigint..biguint..BigUint$GT$$GT$10sub_assign17hc19fdd40e107d0e9E+0xca): undefined reference to `llvm.x86.subborrow.64'
          /usr/bin/ld: librespot.2euxypc2-cgu.6:(.text._ZN116_$LT$num_bigint..biguint..BigUint$u20$as$u20$core..ops..arith..SubAssign$LT$$RF$num_bigint..biguint..BigUint$GT$$GT$10sub_assign17hc19fdd40e107d0e9E+0x106): undefined reference to `llvm.x86.subborrow.64'
          /usr/bin/ld: /home/christof/librespot/target/release/deps/librespot-5b93096c48f4124f.librespot.2euxypc2-cgu.6.rcgu.o: in function `<&num_bigint::biguint::BigUint as core::ops::arith::Sub<num_bigint::biguint::BigUint>>::sub':
          librespot.2euxypc2-cgu.6:(.text._ZN110_$LT$$RF$num_bigint..biguint..BigUint$u20$as$u20$core..ops..arith..Sub$LT$num_bigint..biguint..BigUint$GT$$GT$3sub17h510083729c18f3b7E+0x98): undefined reference to `llvm.x86.subborrow.64'
          /usr/bin/ld: librespot.2euxypc2-cgu.6:(.text._ZN110_$LT$$RF$num_bigint..biguint..BigUint$u20$as$u20$core..ops..arith..Sub$LT$num_bigint..biguint..BigUint$GT$$GT$3sub17h510083729c18f3b7E+0x10c): undefined reference to `llvm.x86.subborrow.64'
          /usr/bin/ld: /home/christof/librespot/target/release/deps/librespot-5b93096c48f4124f.librespot.2euxypc2-cgu.6.rcgu.o:librespot.2euxypc2-cgu.6:(.text._ZN110_$LT$$RF$num_bigint..biguint..BigUint$u20$as$u20$core..ops..arith..Sub$LT$num_bigint..biguint..BigUint$GT$$GT$3sub17h510083729c18f3b7E+0x1bd): more undefined references to `llvm.x86.subborrow.64' follow
          /usr/bin/ld: /home/christof/librespot/target/release/deps/librespot-5b93096c48f4124f.librespot.2euxypc2-cgu.6.rcgu.o: in function `_ZN10num_bigint7biguint10algorithms4mac317hbf30062440c4d6c2E.llvm.677551670652487827':
          librespot.2euxypc2-cgu.6:(.text._ZN10num_bigint7biguint10algorithms4mac317hbf30062440c4d6c2E.llvm.677551670652487827+0x1c5): undefined reference to `llvm.x86.addcarry.64'
          /usr/bin/ld: librespot.2euxypc2-cgu.6:(.text._ZN10num_bigint7biguint10algorithms4mac317hbf30062440c4d6c2E.llvm.677551670652487827+0x205): undefined reference to `llvm.x86.addcarry.64'
          /usr/bin/ld: librespot.2euxypc2-cgu.6:(.text._ZN10num_bigint7biguint10algorithms4mac317hbf30062440c4d6c2E.llvm.677551670652487827+0x390): undefined reference to `llvm.x86.addcarry.64'
          /usr/bin/ld: librespot.2euxypc2-cgu.6:(.text._ZN10num_bigint7biguint10algorithms4mac317hbf30062440c4d6c2E.llvm.677551670652487827+0xe57): undefined reference to `llvm.x86.addcarry.64'
          /usr/bin/ld: librespot.2euxypc2-cgu.6:(.text._ZN10num_bigint7biguint10algorithms4mac317hbf30062440c4d6c2E.llvm.677551670652487827+0xeb2): undefined reference to `llvm.x86.addcarry.64'
          /usr/bin/ld: /home/christof/librespot/target/release/deps/librespot-5b93096c48f4124f.librespot.2euxypc2-cgu.6.rcgu.o:librespot.2euxypc2-cgu.6:(.text._ZN10num_bigint7biguint10algorithms4mac317hbf30062440c4d6c2E.llvm.677551670652487827+0xf02): more undefined references to `llvm.x86.addcarry.64' follow
          /usr/bin/ld: /home/christof/librespot/target/release/deps/librespot-5b93096c48f4124f.librespot.2euxypc2-cgu.6.rcgu.o: in function `_ZN10num_bigint7biguint10algorithms4mac317hbf30062440c4d6c2E.llvm.677551670652487827':
          librespot.2euxypc2-cgu.6:(.text._ZN10num_bigint7biguint10algorithms4mac317hbf30062440c4d6c2E.llvm.677551670652487827+0x39e7): undefined reference to `llvm.x86.subborrow.64'
          /usr/bin/ld: librespot.2euxypc2-cgu.6:(.text._ZN10num_bigint7biguint10algorithms4mac317hbf30062440c4d6c2E.llvm.677551670652487827+0x3a53): undefined reference to `llvm.x86.subborrow.64'
          /usr/bin/ld: librespot.2euxypc2-cgu.6:(.text._ZN10num_bigint7biguint10algorithms4mac317hbf30062440c4d6c2E.llvm.677551670652487827+0x3ab8): undefined reference to `llvm.x86.subborrow.64'
          /usr/bin/ld: /home/christof/librespot/target/release/deps/librespot-5b93096c48f4124f.librespot.2euxypc2-cgu.6.rcgu.o: in function `num_bigint::biguint::algorithms::sub_sign':
          librespot.2euxypc2-cgu.6:(.text._ZN10num_bigint7biguint10algorithms8sub_sign17hb8b20674cf81a27cE+0x1dc): undefined reference to `llvm.x86.subborrow.64'
          /usr/bin/ld: librespot.2euxypc2-cgu.6:(.text._ZN10num_bigint7biguint10algorithms8sub_sign17hb8b20674cf81a27cE+0x235): undefined reference to `llvm.x86.subborrow.64'
          /usr/bin/ld: /home/christof/librespot/target/release/deps/librespot-5b93096c48f4124f.librespot.2euxypc2-cgu.6.rcgu.o:librespot.2euxypc2-cgu.6:(.text._ZN10num_bigint7biguint10algorithms8sub_sign17hb8b20674cf81a27cE+0x27c): more undefined references to `llvm.x86.subborrow.64' follow
          /usr/bin/ld: /home/christof/librespot/target/release/deps/librespot-5b93096c48f4124f.librespot.2euxypc2-cgu.6.rcgu.o: in function `num_bigint::biguint::algorithms::div_rem_core':
          librespot.2euxypc2-cgu.6:(.text._ZN10num_bigint7biguint10algorithms12div_rem_core17hffb51c4bf0711330E+0x3f5): undefined reference to `llvm.x86.addcarry.64'
          /usr/bin/ld: librespot.2euxypc2-cgu.6:(.text._ZN10num_bigint7biguint10algorithms12div_rem_core17hffb51c4bf0711330E+0x450): undefined reference to `llvm.x86.addcarry.64'
          /usr/bin/ld: librespot.2euxypc2-cgu.6:(.text._ZN10num_bigint7biguint10algorithms12div_rem_core17hffb51c4bf0711330E+0x4a5): undefined reference to `llvm.x86.addcarry.64'
          collect2: error: ld returned 1 exit status
          

error: aborting due to previous error

error: could not compile `librespot`.

On https://github.com/rust-lang/rust/issues/47493 I found that enabling lto might fix the problem so I tried that - the output is the same though. What could I try next?

Originally created by @christf on GitHub (Dec 31, 2020). Original GitHub issue: https://github.com/librespot-org/librespot/issues/557 compiling version 0adb8516a65f551211a9ce78c2d822b85454546c on buster fails with ``` cc --version cc (Debian 8.3.0-6) 8.3.0 Copyright (C) 2018 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. christof@build:~/librespot$ gcc --version gcc (Debian 8.3.0-6) 8.3.0 Copyright (C) 2018 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. christof@build:~/librespot$ rustc --version rustc 1.41.1 ``` The error message is: ``` Compiling librespot-core v0.1.3 (/home/christof/librespot/core) Compiling librespot-audio v0.1.3 (/home/christof/librespot/audio) Compiling librespot-metadata v0.1.3 (/home/christof/librespot/metadata) Compiling librespot-playback v0.1.3 (/home/christof/librespot/playback) Compiling librespot-connect v0.1.3 (/home/christof/librespot/connect) Compiling librespot v0.1.3 (/home/christof/librespot) error: linking with `cc` failed: exit code: 1 | = note: "cc" "-Wl,--as-needed" "-Wl,-z,noexecstack" "-m64" "-L" "/usr/lib/rustlib/x86_64-unknown-linux-gnu/lib" "/home/christof/librespot/target/release/deps/librespot-5b93096c48f4124f.librespot.2euxypc2-cgu.6.rcgu.o" "-o" "/home/christof/librespot/target/release/deps/librespot-5b93096c48f4124f" "-Wl,--gc-sections" "-pie" "-Wl,-zrelro" "-Wl,-znow" "-Wl,-O1" "-nodefaultlibs" "-L" "/home/christof/librespot/target/release/deps" "-L" "/usr/lib/x86_64-linux-gnu" "-L" "/usr/lib/rustlib/x86_64-unknown-linux-gnu/lib" "-Wl,--start-group" "-Wl,-Bstatic" "/tmp/rustcX0FmzN/libbacktrace_sys-2b9293c7b8f41cd3.rlib" "-Wl,--end-group" "/usr/lib/rustlib/x86_64-unknown-linux-gnu/lib/libcompiler_builtins-a5f50861fed71e63.rlib" "-Wl,-Bdynamic" "-lasound" "-lutil" "-ldl" "-lutil" "-ldl" "-lrt" "-lpthread" "-lgcc_s" "-lc" "-lm" "-lrt" "-lpthread" "-lutil" "-lutil" = note: /usr/bin/ld: /home/christof/librespot/target/release/deps/librespot-5b93096c48f4124f.librespot.2euxypc2-cgu.6.rcgu.o: in function `<num_bigint::biguint::BigUint as core::ops::arith::Add<&num_bigint::biguint::BigUint>>::add': librespot.2euxypc2-cgu.6:(.text._ZN110_$LT$num_bigint..biguint..BigUint$u20$as$u20$core..ops..arith..Add$LT$$RF$num_bigint..biguint..BigUint$GT$$GT$3add17h32ddd009c8dee726E+0xa7): undefined reference to `llvm.x86.addcarry.64' /usr/bin/ld: librespot.2euxypc2-cgu.6:(.text._ZN110_$LT$num_bigint..biguint..BigUint$u20$as$u20$core..ops..arith..Add$LT$$RF$num_bigint..biguint..BigUint$GT$$GT$3add17h32ddd009c8dee726E+0x115): undefined reference to `llvm.x86.addcarry.64' /usr/bin/ld: librespot.2euxypc2-cgu.6:(.text._ZN110_$LT$num_bigint..biguint..BigUint$u20$as$u20$core..ops..arith..Add$LT$$RF$num_bigint..biguint..BigUint$GT$$GT$3add17h32ddd009c8dee726E+0x1b9): undefined reference to `llvm.x86.addcarry.64' /usr/bin/ld: librespot.2euxypc2-cgu.6:(.text._ZN110_$LT$num_bigint..biguint..BigUint$u20$as$u20$core..ops..arith..Add$LT$$RF$num_bigint..biguint..BigUint$GT$$GT$3add17h32ddd009c8dee726E+0x229): undefined reference to `llvm.x86.addcarry.64' /usr/bin/ld: librespot.2euxypc2-cgu.6:(.text._ZN110_$LT$num_bigint..biguint..BigUint$u20$as$u20$core..ops..arith..Add$LT$$RF$num_bigint..biguint..BigUint$GT$$GT$3add17h32ddd009c8dee726E+0x248): undefined reference to `llvm.x86.addcarry.64' /usr/bin/ld: /home/christof/librespot/target/release/deps/librespot-5b93096c48f4124f.librespot.2euxypc2-cgu.6.rcgu.o:librespot.2euxypc2-cgu.6:(.text._ZN110_$LT$num_bigint..biguint..BigUint$u20$as$u20$core..ops..arith..Add$LT$$RF$num_bigint..biguint..BigUint$GT$$GT$3add17h32ddd009c8dee726E+0x346): more undefined references to `llvm.x86.addcarry.64' follow /usr/bin/ld: /home/christof/librespot/target/release/deps/librespot-5b93096c48f4124f.librespot.2euxypc2-cgu.6.rcgu.o: in function `<num_bigint::biguint::BigUint as core::ops::arith::SubAssign<&num_bigint::biguint::BigUint>>::sub_assign': librespot.2euxypc2-cgu.6:(.text._ZN116_$LT$num_bigint..biguint..BigUint$u20$as$u20$core..ops..arith..SubAssign$LT$$RF$num_bigint..biguint..BigUint$GT$$GT$10sub_assign17hc19fdd40e107d0e9E+0x6f): undefined reference to `llvm.x86.subborrow.64' /usr/bin/ld: librespot.2euxypc2-cgu.6:(.text._ZN116_$LT$num_bigint..biguint..BigUint$u20$as$u20$core..ops..arith..SubAssign$LT$$RF$num_bigint..biguint..BigUint$GT$$GT$10sub_assign17hc19fdd40e107d0e9E+0xca): undefined reference to `llvm.x86.subborrow.64' /usr/bin/ld: librespot.2euxypc2-cgu.6:(.text._ZN116_$LT$num_bigint..biguint..BigUint$u20$as$u20$core..ops..arith..SubAssign$LT$$RF$num_bigint..biguint..BigUint$GT$$GT$10sub_assign17hc19fdd40e107d0e9E+0x106): undefined reference to `llvm.x86.subborrow.64' /usr/bin/ld: /home/christof/librespot/target/release/deps/librespot-5b93096c48f4124f.librespot.2euxypc2-cgu.6.rcgu.o: in function `<&num_bigint::biguint::BigUint as core::ops::arith::Sub<num_bigint::biguint::BigUint>>::sub': librespot.2euxypc2-cgu.6:(.text._ZN110_$LT$$RF$num_bigint..biguint..BigUint$u20$as$u20$core..ops..arith..Sub$LT$num_bigint..biguint..BigUint$GT$$GT$3sub17h510083729c18f3b7E+0x98): undefined reference to `llvm.x86.subborrow.64' /usr/bin/ld: librespot.2euxypc2-cgu.6:(.text._ZN110_$LT$$RF$num_bigint..biguint..BigUint$u20$as$u20$core..ops..arith..Sub$LT$num_bigint..biguint..BigUint$GT$$GT$3sub17h510083729c18f3b7E+0x10c): undefined reference to `llvm.x86.subborrow.64' /usr/bin/ld: /home/christof/librespot/target/release/deps/librespot-5b93096c48f4124f.librespot.2euxypc2-cgu.6.rcgu.o:librespot.2euxypc2-cgu.6:(.text._ZN110_$LT$$RF$num_bigint..biguint..BigUint$u20$as$u20$core..ops..arith..Sub$LT$num_bigint..biguint..BigUint$GT$$GT$3sub17h510083729c18f3b7E+0x1bd): more undefined references to `llvm.x86.subborrow.64' follow /usr/bin/ld: /home/christof/librespot/target/release/deps/librespot-5b93096c48f4124f.librespot.2euxypc2-cgu.6.rcgu.o: in function `_ZN10num_bigint7biguint10algorithms4mac317hbf30062440c4d6c2E.llvm.677551670652487827': librespot.2euxypc2-cgu.6:(.text._ZN10num_bigint7biguint10algorithms4mac317hbf30062440c4d6c2E.llvm.677551670652487827+0x1c5): undefined reference to `llvm.x86.addcarry.64' /usr/bin/ld: librespot.2euxypc2-cgu.6:(.text._ZN10num_bigint7biguint10algorithms4mac317hbf30062440c4d6c2E.llvm.677551670652487827+0x205): undefined reference to `llvm.x86.addcarry.64' /usr/bin/ld: librespot.2euxypc2-cgu.6:(.text._ZN10num_bigint7biguint10algorithms4mac317hbf30062440c4d6c2E.llvm.677551670652487827+0x390): undefined reference to `llvm.x86.addcarry.64' /usr/bin/ld: librespot.2euxypc2-cgu.6:(.text._ZN10num_bigint7biguint10algorithms4mac317hbf30062440c4d6c2E.llvm.677551670652487827+0xe57): undefined reference to `llvm.x86.addcarry.64' /usr/bin/ld: librespot.2euxypc2-cgu.6:(.text._ZN10num_bigint7biguint10algorithms4mac317hbf30062440c4d6c2E.llvm.677551670652487827+0xeb2): undefined reference to `llvm.x86.addcarry.64' /usr/bin/ld: /home/christof/librespot/target/release/deps/librespot-5b93096c48f4124f.librespot.2euxypc2-cgu.6.rcgu.o:librespot.2euxypc2-cgu.6:(.text._ZN10num_bigint7biguint10algorithms4mac317hbf30062440c4d6c2E.llvm.677551670652487827+0xf02): more undefined references to `llvm.x86.addcarry.64' follow /usr/bin/ld: /home/christof/librespot/target/release/deps/librespot-5b93096c48f4124f.librespot.2euxypc2-cgu.6.rcgu.o: in function `_ZN10num_bigint7biguint10algorithms4mac317hbf30062440c4d6c2E.llvm.677551670652487827': librespot.2euxypc2-cgu.6:(.text._ZN10num_bigint7biguint10algorithms4mac317hbf30062440c4d6c2E.llvm.677551670652487827+0x39e7): undefined reference to `llvm.x86.subborrow.64' /usr/bin/ld: librespot.2euxypc2-cgu.6:(.text._ZN10num_bigint7biguint10algorithms4mac317hbf30062440c4d6c2E.llvm.677551670652487827+0x3a53): undefined reference to `llvm.x86.subborrow.64' /usr/bin/ld: librespot.2euxypc2-cgu.6:(.text._ZN10num_bigint7biguint10algorithms4mac317hbf30062440c4d6c2E.llvm.677551670652487827+0x3ab8): undefined reference to `llvm.x86.subborrow.64' /usr/bin/ld: /home/christof/librespot/target/release/deps/librespot-5b93096c48f4124f.librespot.2euxypc2-cgu.6.rcgu.o: in function `num_bigint::biguint::algorithms::sub_sign': librespot.2euxypc2-cgu.6:(.text._ZN10num_bigint7biguint10algorithms8sub_sign17hb8b20674cf81a27cE+0x1dc): undefined reference to `llvm.x86.subborrow.64' /usr/bin/ld: librespot.2euxypc2-cgu.6:(.text._ZN10num_bigint7biguint10algorithms8sub_sign17hb8b20674cf81a27cE+0x235): undefined reference to `llvm.x86.subborrow.64' /usr/bin/ld: /home/christof/librespot/target/release/deps/librespot-5b93096c48f4124f.librespot.2euxypc2-cgu.6.rcgu.o:librespot.2euxypc2-cgu.6:(.text._ZN10num_bigint7biguint10algorithms8sub_sign17hb8b20674cf81a27cE+0x27c): more undefined references to `llvm.x86.subborrow.64' follow /usr/bin/ld: /home/christof/librespot/target/release/deps/librespot-5b93096c48f4124f.librespot.2euxypc2-cgu.6.rcgu.o: in function `num_bigint::biguint::algorithms::div_rem_core': librespot.2euxypc2-cgu.6:(.text._ZN10num_bigint7biguint10algorithms12div_rem_core17hffb51c4bf0711330E+0x3f5): undefined reference to `llvm.x86.addcarry.64' /usr/bin/ld: librespot.2euxypc2-cgu.6:(.text._ZN10num_bigint7biguint10algorithms12div_rem_core17hffb51c4bf0711330E+0x450): undefined reference to `llvm.x86.addcarry.64' /usr/bin/ld: librespot.2euxypc2-cgu.6:(.text._ZN10num_bigint7biguint10algorithms12div_rem_core17hffb51c4bf0711330E+0x4a5): undefined reference to `llvm.x86.addcarry.64' collect2: error: ld returned 1 exit status error: aborting due to previous error error: could not compile `librespot`. ``` On https://github.com/rust-lang/rust/issues/47493 I found that enabling lto might fix the problem so I tried that - the output is the same though. What could I try next?
kerem 2026-02-27 19:30:11 +03:00
  • closed this issue
  • added the
    duplicate
    label
Author
Owner

@ashthespy commented on GitHub (Dec 31, 2020):

Why are you building directly with rustc?
PS: Dupe of https://github.com/librespot-org/librespot/issues/555

<!-- gh-comment-id:753001619 --> @ashthespy commented on GitHub (Dec 31, 2020): Why are you building directly with `rustc`? PS: Dupe of https://github.com/librespot-org/librespot/issues/555
Author
Owner

@christf commented on GitHub (Jan 2, 2021):

I am not directly building with rustc but with cargo instead. As suggested in #555 I supplied --locked but that did not change the behavior:

 cargo build --locked --release
<!-- gh-comment-id:753491438 --> @christf commented on GitHub (Jan 2, 2021): I am not directly building with rustc but with cargo instead. As suggested in #555 I supplied --locked but that did not change the behavior: ``` cargo build --locked --release ```
Author
Owner

@ashthespy commented on GitHub (Jan 2, 2021):

Are you sure this is on a fresh checkout?

<!-- gh-comment-id:753509850 --> @ashthespy commented on GitHub (Jan 2, 2021): Are you sure this is on a fresh checkout?
Author
Owner

@christf commented on GitHub (Jan 7, 2021):

Edit clarifying the language:

this was attempted to be built with 414383db18 and 06f5aa9c90. Both yield the same result as described above

<!-- gh-comment-id:756145488 --> @christf commented on GitHub (Jan 7, 2021): Edit clarifying the language: this was attempted to be built with 414383db18a95af76359ac0adb53cbd4f78b52ce and 06f5aa9c907f6702ecba4147d6291c1cc448b295. Both yield the same result as described above
Author
Owner

@ashthespy commented on GitHub (Jan 7, 2021):

Sorry, I don't follow - are you saying with a fresh checkout and --locked, github.com/librespot-org/librespot@414383db18 build fine, but github.com/librespot-org/librespot@06f5aa9c90 doesn't?
If so, then probably in all the version bumping b/w the commits, some Cargo.lock gremlins crept it..

<!-- gh-comment-id:756180677 --> @ashthespy commented on GitHub (Jan 7, 2021): Sorry, I don't follow - are you saying with a fresh checkout and `--locked`, https://github.com/librespot-org/librespot/commit/414383db18a95af76359ac0adb53cbd4f78b52ce build fine, but https://github.com/librespot-org/librespot/commit/06f5aa9c907f6702ecba4147d6291c1cc448b295 doesn't? If so, then probably in all the version bumping b/w the commits, some `Cargo.lock` gremlins crept it..
Author
Owner

@christf commented on GitHub (Jan 7, 2021):

the error message appears no matter whether --locked is specified or not. So the project does not build.

<!-- gh-comment-id:756197917 --> @christf commented on GitHub (Jan 7, 2021): the error message appears no matter whether --locked is specified or not. So the project does not build.
Author
Owner

@sashahilton00 commented on GitHub (Jan 19, 2021):

This is indeed a dupe of #555, please move discussion there.

<!-- gh-comment-id:762555388 --> @sashahilton00 commented on GitHub (Jan 19, 2021): This is indeed a dupe of #555, please move discussion there.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/librespot#355
No description provided.