Package Details: lolcate 0.10.0-1

Git Clone URL: https://aur.archlinux.org/lolcate.git (read-only, click to copy)
Package Base: lolcate
Description: Lolcate -- A comically fast way of indexing and querying your filesystem. Replaces locate / mlocate / updatedb. Written in Rust.
Upstream URL: https://github.com/ngirard/lolcate-rs
Licenses: GPL-3.0
Submitter: icewind
Maintainer: saltedcoffii
Last Packager: icewind
Votes: 4
Popularity: 0.007704
First Submitted: 2020-03-03 22:22 (UTC)
Last Updated: 2021-02-09 12:06 (UTC)

Dependencies (1)

Required by (0)

Sources (1)

Latest Comments

denkijin commented on 2024-10-11 00:11 (UTC)

This does not compile for me with gcc, and if I cd to the $srcdir and cargo build it works in the default environment without the dictated CFLAGS/CCFLAGS. Here is the error:

   Compiling lolcate-rs v0.10.0 (/home/denkijin/.cache/paru/clone/lolcate/src/lolcate-rs-0.10.0)
error: linking with `cc` failed: exit status: 1
  |
  = note: LC_ALL="C" PATH="/home/denkijin/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/bin:/home/denkijin/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/bin:/home/denkijin/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/bin:/home/denkijin/.cargo/bin:/home/denkijin/.pyenv/shims:/home/denkijin/.pyenv/bin:/opt/miniconda3/bin:/usr/share/pyenv/plugins/pyenv-virtualenv/shims:/home/denkijin/.yarn/bin:/home/denkijin/.config/yarn/global/node_modules/.bin:/home/denkijin/.node_modules/bin:/home/denkijin/bin:/usr/local/sbin:/usr/local/bin:/usr/bin:/usr/bin/site_perl:/usr/bin/vendor_perl:/usr/bin/core_perl:/home/denkijin/.rvm/bin:/home/denkijin/.config/composer/vendor/bin" VSLANG="1033" "cc" "-m64" "/tmp/rustcFWaQFA/symbols.o" "/home/denkijin/.cache/paru/clone/lolcate/src/lolcate-rs-0.10.0/./target/release/deps/lolcate-edb5c340f95e6581.lolcate.424f10ffbe973812-cgu.01.rcgu.o" "-Wl,--as-needed" "-L" "/home/denkijin/.cache/paru/clone/lolcate/src/lolcate-rs-0.10.0/./target/release/deps" "-L" "/home/denkijin/.cache/paru/clone/lolcate/src/lolcate-rs-0.10.0/./target/release/build/backtrace-sys-1bba39942b5ce292/out" "-L" "/home/denkijin/.cache/paru/clone/lolcate/src/lolcate-rs-0.10.0/./target/release/build/lz4-sys-0539c5666b298f4c/out" "-L" "/home/denkijin/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib" "-Wl,-Bstatic" "/tmp/rustcFWaQFA/libbacktrace_sys-adda5f2c8759d0c6.rlib" "/tmp/rustcFWaQFA/liblz4_sys-f311ffa32bee4d32.rlib" "/home/denkijin/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libcompiler_builtins-06dfbf1de02fde3b.rlib" "-Wl,-Bdynamic" "-lutil" "-lgcc_s" "-lutil" "-lrt" "-lpthread" "-lm" "-ldl" "-lc" "-Wl,--eh-frame-hdr" "-Wl,-z,noexecstack" "-L" "/home/denkijin/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib" "-o" "/home/denkijin/.cache/paru/clone/lolcate/src/lolcate-rs-0.10.0/./target/release/deps/lolcate-edb5c340f95e6581" "-Wl,--gc-sections" "-pie" "-Wl,-z,relro,-z,now" "-Wl,-O1" "-Wl,--strip-debug" "-nodefaultlibs"
  = note: /usr/bin/ld: /home/denkijin/.cache/paru/clone/lolcate/src/lolcate-rs-0.10.0/./target/release/deps/lolcate-edb5c340f95e6581.lolcate.424f10ffbe973812-cgu.01.rcgu.o: in function `core::ptr::drop_in_place<std::io::buffered::bufreader::BufReader<lz4::decoder::Decoder<std::fs::File>>>':
          lolcate.424f10ffbe973812-cgu.01:(.text._ZN4core3ptr110drop_in_place$LT$std..io..buffered..bufreader..BufReader$LT$lz4..decoder..Decoder$LT$std..fs..File$GT$$GT$$GT$17hf32e6b307365d576E+0x1f): undefined reference to `LZ4F_freeDecompressionContext'
          /usr/bin/ld: /home/denkijin/.cache/paru/clone/lolcate/src/lolcate-rs-0.10.0/./target/release/deps/lolcate-edb5c340f95e6581.lolcate.424f10ffbe973812-cgu.01.rcgu.o: in function `lolcate::main':
          lolcate.424f10ffbe973812-cgu.01:(.text._ZN7lolcate4main17h48bdbe15839824ebE+0x5951): undefined reference to `LZ4F_createDecompressionContext'
          /usr/bin/ld: lolcate.424f10ffbe973812-cgu.01:(.text._ZN7lolcate4main17h48bdbe15839824ebE+0x614f): undefined reference to `LZ4F_freeDecompressionContext'
          /usr/bin/ld: lolcate.424f10ffbe973812-cgu.01:(.text._ZN7lolcate4main17h48bdbe15839824ebE+0x8f8c): undefined reference to `LZ4F_freeDecompressionContext'
          /usr/bin/ld: /home/denkijin/.cache/paru/clone/lolcate/src/lolcate-rs-0.10.0/./target/release/deps/lolcate-edb5c340f95e6581.lolcate.424f10ffbe973812-cgu.01.rcgu.o: in function `core::ptr::drop_in_place<lz4::decoder::Decoder<std::fs::File>>':
          lolcate.424f10ffbe973812-cgu.01:(.text._ZN4core3ptr63drop_in_place$LT$lz4..decoder..Decoder$LT$std..fs..File$GT$$GT$17he44a6935f4413c78E+0xf): undefined reference to `LZ4F_freeDecompressionContext'
          /usr/bin/ld: /home/denkijin/.cache/paru/clone/lolcate/src/lolcate-rs-0.10.0/./target/release/deps/lolcate-edb5c340f95e6581.lolcate.424f10ffbe973812-cgu.01.rcgu.o: in function `std::sys::backtrace::__rust_begin_short_backtrace':
          lolcate.424f10ffbe973812-cgu.01:(.text._ZN3std3sys9backtrace28__rust_begin_short_backtrace17hd4903a859f4dc43bE+0x7b): undefined reference to `LZ4F_createCompressionContext'
        ...

Neko-san commented on 2022-08-01 06:52 (UTC)

This doesn't compile with Clang set as either CC and/or CXX in makepkg.conf

Adding this to the top of the PKGBUILD build() function should fix it:

    if [ ${CC} != gcc ] || [ ${CXX} != g++ ]; then
        export CC=gcc
        export CXX=g++
        export LD=ld
        export AR="/usr/bin/ar"
        export NM="/usr/bin/nm"
        export AS="/usr/bin/as"
        export RANLIB="/usr/bin/ranlib"
    fi

Also consider adding !lto to options, because it doesn't like that either

bkb commented on 2022-06-16 12:42 (UTC) (edited on 2022-06-30 12:42 (UTC) by bkb)

How to install it without replacing any locate already installed?

For it to be

updatedb.lolcate

locate.lolcate

lolcate

And not

locate

updatedb