rip icon indicating copy to clipboard operation
rip copied to clipboard

yay install fails

Open NightMachinery opened this issue 1 year ago • 9 comments

I am using Arch under https://github.com/fsquillace/junest .

❯ sudo-junest yay -S --noconfirm rm-improved
AUR Explicit (1): rm-improved-0.13.1-1
Sync Make Dependency (1): rust-1:1.79.0-1
:: PKGBUILD up to date, skipping download: rm-improved
  1 rm-improved                              (Build Files Exist)
==> Packages to cleanBuild?
==> [N]one [A]ll [Ab]ort [I]nstalled [No]tInstalled or (1 2 3, 1-3, ^4)
==> 
  1 rm-improved                              (Build Files Exist)
==> Diffs to show?
==> [N]one [A]ll [Ab]ort [I]nstalled [No]tInstalled or (1 2 3, 1-3, ^4)
==> 
==> ERROR: Running makepkg as root is not allowed as it can cause permanent,
catastrophic damage to your system.
 -> error downloading sources: /home/guest/.cache/yay/rm-improved 
	context: exit status 10 
	

:: (1/1) Parsing SRCINFO: rm-improved
resolving dependencies...
looking for conflicting packages...

Packages (2) llvm-libs-17.0.6-5  rust-1:1.79.0-1

Total Download Size:    90.80 MiB
Total Installed Size:  385.89 MiB

:: Proceed with installation? [Y/n] 
:: Retrieving packages...
 rust-1:1.79.0-1-x...    58.6 MiB  14.8 MiB/s 00:04 [##########################] 100%
 llvm-libs-17.0.6-...    32.1 MiB  12.8 MiB/s 00:03 [##########################] 100%
 Total (2/2)             90.8 MiB  13.7 MiB/s 00:07 [##########################] 100%
(2/2) checking keys in keyring                      [##########################] 100%
(2/2) checking package integrity                    [##########################] 100%
(2/2) loading package files                         [##########################] 100%
(2/2) checking for file conflicts                   [##########################] 100%
(2/2) checking available disk space                 [##########################] 100%
:: Processing package changes...
(1/2) installing llvm-libs                          [##########################] 100%
(2/2) installing rust                               [##########################] 100%
Optional dependencies for rust
    gdb: rust-gdb script
    lldb: rust-lldb script
==> ERROR: Running makepkg as root is not allowed as it can cause permanent,
catastrophic damage to your system.
 -> error making: rm-improved-exit status 10
 -> Failed to install the following packages. Manual intervention is required:
rm-improved - exit status 10

NightMachinery avatar Jun 21 '24 23:06 NightMachinery

From the line that starts with ERROR, you shouldn't be running yay as root. Can you install other packages that way?

Jun 21, 2024 4:58:36 PM Feraidoon Mehri @.***>:

I am using Arch under https://github.com/fsquillace/junest .

*❯ sudo-junest yay -S --noconfirm rm-improved AUR Explicit (1): rm-improved-0.13.1-1 Sync Make Dependency (1): rust-1:1.79.0-1 :: PKGBUILD up to date, skipping download: rm-improved 1 rm-improved (Build Files Exist) ==> Packages to cleanBuild? ==> [N]one [A]ll [Ab]ort [I]nstalled [No]tInstalled or (1 2 3, 1-3, ^4) ==> 1 rm-improved (Build Files Exist) ==> Diffs to show? ==> [N]one [A]ll [Ab]ort [I]nstalled [No]tInstalled or (1 2 3, 1-3, ^4) ==> ==> ERROR: Running makepkg as root is not allowed as it can cause permanent, catastrophic damage to your system. -> error downloading sources: /home/guest/.cache/yay/rm-improved context: exit status 10

:: (1/1) Parsing SRCINFO: rm-improved resolving dependencies... looking for conflicting packages...

Packages (2) llvm-libs-17.0.6-5 rust-1:1.79.0-1

Total Download Size: 90.80 MiB Total Installed Size: 385.89 MiB

:: Proceed with installation? [Y/n] :: Retrieving packages... rust-1:1.79.0-1-x... 58.6 MiB 14.8 MiB/s 00:04 [##########################] 100% llvm-libs-17.0.6-... 32.1 MiB 12.8 MiB/s 00:03 [##########################] 100% Total (2/2) 90.8 MiB 13.7 MiB/s 00:07 [##########################] 100% (2/2) checking keys in keyring [##########################] 100% (2/2) checking package integrity [##########################] 100% (2/2) loading package files [##########################] 100% (2/2) checking for file conflicts [##########################] 100% (2/2) checking available disk space [##########################] 100% :: Processing package changes... (1/2) installing llvm-libs [##########################] 100% (2/2) installing rust [##########################] 100% Optional dependencies for rust gdb: rust-gdb script lldb: rust-lldb script ==> ERROR: Running makepkg as root is not allowed as it can cause permanent, catastrophic damage to your system. -> error making: rm-improved-exit status 10 -> Failed to install the following packages. Manual intervention is required: rm-improved - exit status 10 * — Reply to this email directly, view it on GitHub[https://github.com/nivekuil/rip/issues/43], or unsubscribe[https://github.com/notifications/unsubscribe-auth/ABDLDWG7H2H3BLCDBDT2MTDZIS42JAVCNFSM6AAAAABJW44LBGVHI2DSMVQWIX3LMV43ASLTON2WKOZSGM3DOMZWHA2TEMQ]. You are receiving this because you are subscribed to this thread. [Tracking image][https://github.com/notifications/beacon/ABDLDWAQT6VP6PMYU6QLFN3ZIS42JA5CNFSM6AAAAABJW44LBGWGG33NNVSW45C7OR4XAZNFJFZXG5LFVJRW63LNMVXHIX3JMTHI2GZNJI.gif]

nivekuil avatar Jun 22 '24 01:06 nivekuil

Hi @nivekuil,

I am also having yay install fail without running sudo:

error: linking with `cc` failed: exit status: 1
  |
  = note: LC_ALL="C" PATH="/usr/lib64/rustlib/x86_64-unknown-linux-gnu/bin:/usr/lib64/rustlib/x86_64-unknown-linux-gnu/bin:/usr/lib64/rustlib/x86_64-unknown-linux-gnu/bin:/usr/local/sbin:/usr/local/bin:/usr/bin:/usr/local/sbin:/usr/local/sbin:/usr/local/bin:/usr/bin:/home/valdor/.local/bin:/usr/bin/site_perl:/usr/bin/vendor_perl:/usr/bin/core_perl:/usr/local/sbin:/usr/local/sbin:/usr/local/bin:/usr/bin:/usr/local/sbin:/usr/local/sbin:/usr/local/bin:/usr/bin:/home/valdor/.local/bin:/usr/bin/site_perl:/usr/bin/vendor_perl:/usr/bin/core_perl:/home/valdor/.local/bin:/usr/local/sbin:/usr/local/sbin:/usr/local/bin:/usr/bin:/usr/local/sbin:/usr/local/sbin:/usr/local/bin:/usr/bin:/home/valdor/.local/bin:/usr/bin/site_perl:/usr/bin/vendor_perl:/usr/bin/core_perl:/usr/local/sbin:/usr/local/sbin:/usr/local/bin:/usr/bin:/usr/local/sbin:/usr/local/sbin:/usr/local/bin:/usr/bin:/home/valdor/.local/bin:/usr/bin/site_perl:/usr/bin/vendor_perl:/usr/bin/core_perl:/home/valdor/.local/bin:/home/valdor/.local/bin" VSLANG="1033" "cc" "-m64" "/tmp/rustcH6bdE2/symbols.o" "/home/valdor/.cache/yay/rm-improved/src/rip-0.13.1/target/release/deps/rip-08bf3669bf513e48.rip.6ff852e8e0441f2f-cgu.0.rcgu.o" "/home/valdor/.cache/yay/rm-improved/src/rip-0.13.1/target/release/deps/rip-08bf3669bf513e48.rip.6ff852e8e0441f2f-cgu.1.rcgu.o" "/home/valdor/.cache/yay/rm-improved/src/rip-0.13.1/target/release/deps/rip-08bf3669bf513e48.rip.6ff852e8e0441f2f-cgu.2.rcgu.o" "/home/valdor/.cache/yay/rm-improved/src/rip-0.13.1/target/release/deps/rip-08bf3669bf513e48.rip.6ff852e8e0441f2f-cgu.3.rcgu.o" "/home/valdor/.cache/yay/rm-improved/src/rip-0.13.1/target/release/deps/rip-08bf3669bf513e48.rip.6ff852e8e0441f2f-cgu.4.rcgu.o" "/home/valdor/.cache/yay/rm-improved/src/rip-0.13.1/target/release/deps/rip-08bf3669bf513e48.rip.6ff852e8e0441f2f-cgu.5.rcgu.o" "/home/valdor/.cache/yay/rm-improved/src/rip-0.13.1/target/release/deps/rip-08bf3669bf513e48.rip.6ff852e8e0441f2f-cgu.6.rcgu.o" "/home/valdor/.cache/yay/rm-improved/src/rip-0.13.1/target/release/deps/rip-08bf3669bf513e48.1saxm7x1qglm4pr6xvkb7usq9.rcgu.o" "-Wl,--as-needed" "-L" "/home/valdor/.cache/yay/rm-improved/src/rip-0.13.1/target/release/deps" "-L" "/home/valdor/.cache/yay/rm-improved/src/rip-0.13.1/target/release/build/backtrace-sys-beecb3030e8102a8/out" "-L" "/usr/lib64/rustlib/x86_64-unknown-linux-gnu/lib" "-Wl,-Bstatic" "/home/valdor/.cache/yay/rm-improved/src/rip-0.13.1/target/release/deps/libwalkdir-c76ef05d9549aa96.rlib" "/home/valdor/.cache/yay/rm-improved/src/rip-0.13.1/target/release/deps/libsame_file-3c3595b21ebb299b.rlib" "/home/valdor/.cache/yay/rm-improved/src/rip-0.13.1/target/release/deps/libtime-e8086ba89c108c23.rlib" "/home/valdor/.cache/yay/rm-improved/src/rip-0.13.1/target/release/deps/liberror_chain-3a9d37b9841a0165.rlib" "/home/valdor/.cache/yay/rm-improved/src/rip-0.13.1/target/release/deps/libbacktrace-1de55a8e282ba423.rlib" "/home/valdor/.cache/yay/rm-improved/src/rip-0.13.1/target/release/deps/libbacktrace_sys-abf3fddf30942753.rlib" "/home/valdor/.cache/yay/rm-improved/src/rip-0.13.1/target/release/deps/libcfg_if-b790b645f88dc44c.rlib" "/home/valdor/.cache/yay/rm-improved/src/rip-0.13.1/target/release/deps/librustc_demangle-0c67b5e26a58c955.rlib" "/home/valdor/.cache/yay/rm-improved/src/rip-0.13.1/target/release/deps/libclap-69eabb514f8eb4cb.rlib" "/home/valdor/.cache/yay/rm-improved/src/rip-0.13.1/target/release/deps/libvec_map-d67947328cac48cf.rlib" "/home/valdor/.cache/yay/rm-improved/src/rip-0.13.1/target/release/deps/libtextwrap-281f78b2f7b62455.rlib" "/home/valdor/.cache/yay/rm-improved/src/rip-0.13.1/target/release/deps/libunicode_width-314c3836a40f66cf.rlib" "/home/valdor/.cache/yay/rm-improved/src/rip-0.13.1/target/release/deps/libstrsim-27e12c0c20b58175.rlib" "/home/valdor/.cache/yay/rm-improved/src/rip-0.13.1/target/release/deps/libbitflags-eef43ea002731399.rlib" "/home/valdor/.cache/yay/rm-improved/src/rip-0.13.1/target/release/deps/libatty-403b7e149e56a251.rlib" "/home/valdor/.cache/yay/rm-improved/src/rip-0.13.1/target/release/deps/liblibc-a34a5a7c753c4061.rlib" "/home/valdor/.cache/yay/rm-improved/src/rip-0.13.1/target/release/deps/libansi_term-3d50a3842f9f3ed8.rlib" "/usr/lib64/rustlib/x86_64-unknown-linux-gnu/lib/libstd-975ad26df43f3092.rlib" "/usr/lib64/rustlib/x86_64-unknown-linux-gnu/lib/libpanic_unwind-854d359d815154a1.rlib" "/usr/lib64/rustlib/x86_64-unknown-linux-gnu/lib/libobject-1adba7de6291c957.rlib" "/usr/lib64/rustlib/x86_64-unknown-linux-gnu/lib/libmemchr-2f003cc5096f2a41.rlib" "/usr/lib64/rustlib/x86_64-unknown-linux-gnu/lib/libaddr2line-1940fdd05db36b65.rlib" "/usr/lib64/rustlib/x86_64-unknown-linux-gnu/lib/libgimli-6affaed698e37946.rlib" "/usr/lib64/rustlib/x86_64-unknown-linux-gnu/lib/librustc_demangle-59090bd5092c735e.rlib" "/usr/lib64/rustlib/x86_64-unknown-linux-gnu/lib/libstd_detect-95e6adcbe5e3e3b6.rlib" "/usr/lib64/rustlib/x86_64-unknown-linux-gnu/lib/libhashbrown-0b7c2ec24db7ead0.rlib" "/usr/lib64/rustlib/x86_64-unknown-linux-gnu/lib/librustc_std_workspace_alloc-f07917aaf98e9537.rlib" "/usr/lib64/rustlib/x86_64-unknown-linux-gnu/lib/libminiz_oxide-3d4fee16d8573795.rlib" "/usr/lib64/rustlib/x86_64-unknown-linux-gnu/lib/libadler-31d2edee42aa9f31.rlib" "/usr/lib64/rustlib/x86_64-unknown-linux-gnu/lib/libunwind-09f6820ab6e8fa52.rlib" "/usr/lib64/rustlib/x86_64-unknown-linux-gnu/lib/libcfg_if-67b9ce86c9dd6f1e.rlib" "/usr/lib64/rustlib/x86_64-unknown-linux-gnu/lib/liblibc-e318bc901c18d569.rlib" "/usr/lib64/rustlib/x86_64-unknown-linux-gnu/lib/liballoc-fa5228cf59161233.rlib" "/usr/lib64/rustlib/x86_64-unknown-linux-gnu/lib/librustc_std_workspace_core-2356df8ff6149061.rlib" "/usr/lib64/rustlib/x86_64-unknown-linux-gnu/lib/libcore-972c7c6eb3eb878d.rlib" "/usr/lib64/rustlib/x86_64-unknown-linux-gnu/lib/libcompiler_builtins-288663704b9edb44.rlib" "-Wl,-Bdynamic" "-lutil" "-ldl" "-lutil" "-lgcc_s" "-lutil" "-lrt" "-lpthread" "-lm" "-ldl" "-lc" "-Wl,--eh-frame-hdr" "-Wl,-z,noexecstack" "-L" "/usr/lib64/rustlib/x86_64-unknown-linux-gnu/lib" "-o" "/home/valdor/.cache/yay/rm-improved/src/rip-0.13.1/target/release/deps/rip-08bf3669bf513e48" "-Wl,--gc-sections" "-pie" "-Wl,-z,relro,-z,now" "-Wl,--strip-debug" "-nodefaultlibs"
  = note: /usr/bin/ld: /home/valdor/.cache/yay/rm-improved/src/rip-0.13.1/target/release/deps/libbacktrace-1de55a8e282ba423.rlib(backtrace-1de55a8e282ba423.backtrace.3fe344ba5bf89dff-cgu.0.rcgu.o): in function `backtrace::symbolize::libbacktrace::init_state':
          /home/valdor/.cargo/registry/src/index.crates.io-6f17d22bba15001f/backtrace-0.3.44/src/symbolize/libbacktrace.rs:266:(.text._ZN9backtrace9symbolize12libbacktrace10syminfo_cb17h09099748f8745a28E+0x40): undefined reference to `__rbt_backtrace_create_state'
          /usr/bin/ld: /home/valdor/.cache/yay/rm-improved/src/rip-0.13.1/target/release/deps/libbacktrace-1de55a8e282ba423.rlib(backtrace-1de55a8e282ba423.backtrace.3fe344ba5bf89dff-cgu.0.rcgu.o): in function `backtrace::symbolize::libbacktrace::syminfo_cb':
          /home/valdor/.cargo/registry/src/index.crates.io-6f17d22bba15001f/backtrace-0.3.44/src/symbolize/libbacktrace.rs:189:(.text._ZN9backtrace9symbolize12libbacktrace10syminfo_cb17h09099748f8745a28E+0x69): undefined reference to `__rbt_backtrace_pcinfo'
          /usr/bin/ld: /home/valdor/.cache/yay/rm-improved/src/rip-0.13.1/target/release/deps/libbacktrace-1de55a8e282ba423.rlib(backtrace-1de55a8e282ba423.backtrace.3fe344ba5bf89dff-cgu.0.rcgu.o): in function `backtrace::symbolize::libbacktrace::init_state':
          /home/valdor/.cargo/registry/src/index.crates.io-6f17d22bba15001f/backtrace-0.3.44/src/symbolize/libbacktrace.rs:266:(.text._ZN9backtrace9symbolize12libbacktrace7resolve17h2ef77c90966515e6E+0x66): undefined reference to `__rbt_backtrace_create_state'
          /usr/bin/ld: /home/valdor/.cache/yay/rm-improved/src/rip-0.13.1/target/release/deps/libbacktrace-1de55a8e282ba423.rlib(backtrace-1de55a8e282ba423.backtrace.3fe344ba5bf89dff-cgu.0.rcgu.o): in function `backtrace::symbolize::libbacktrace::resolve':
          /home/valdor/.cargo/registry/src/index.crates.io-6f17d22bba15001f/backtrace-0.3.44/src/symbolize/libbacktrace.rs:469:(.text._ZN9backtrace9symbolize12libbacktrace7resolve17h2ef77c90966515e6E+0xc0): undefined reference to `__rbt_backtrace_syminfo'
          collect2: error: ld returned 1 exit status

  = note: some `extern` functions couldn't be found; some native libraries may need to be installed or have their path specified
  = note: use the `-l` flag to specify native libraries to link
  = note: use the `cargo:rustc-link-lib` directive to specify the native libraries to link with Cargo (see https://doc.rust-lang.org/cargo/reference/build-scripts.html#rustc-link-lib)

error: could not compile `rm-improved` (bin "rip") due to 1 previous error
==> ERROR: A failure occurred in build().
    Aborting...
 -> error making: rm-improved-exit status 4

Not sure if I am doing something wrong though :/

Thanks

just-shrubs avatar Oct 07 '24 07:10 just-shrubs

@nivekuil,

Any tips on troubleshooting this further?

I am happy to, just not sure how to.

Thanks

just-shrubs avatar Oct 09 '24 07:10 just-shrubs

Does it work when you build it directly?

cd /tmp/yay/rm-improved/src/rip-0.13.1 cargo run --release

That works for me and I'm not sure how makepkg is linking the build differently.

nivekuil avatar Oct 10 '24 17:10 nivekuil

Hi @nivekuil,

It works when I build rm-improved directly, or install via cargo.

Just when using yay, it errors

Cheers

just-shrubs avatar Oct 13 '24 03:10 just-shrubs

Had the same issue. Trying to install the rm-improved AUR package with paru throws the same critical error:

error: linking with `cc` failed

Installing the rm-improved-git package works fine as long as rustup is properly up to date.

I've checked the PKGBUILD file and as I'm not very familiar with them I'm not sure if there's actually anything wrong. The tarball source is fine so it's probably something wrong with the build toolchain used.

At least for now just use the rm-improved-git package.

dante-e-v avatar Sep 24 '25 11:09 dante-e-v

If rip builds normally but not through yay, then its almost certainly a packaging issue. please bring these issues up with the proper channels, ie https://aur.archlinux.org/packages/rm-improved

richard-hajek avatar Oct 09 '25 07:10 richard-hajek