Package Details: kalc 1.5.0-1

Git Clone URL: https://aur.archlinux.org/kalc.git (read-only, click to copy)
Package Base: kalc
Description: a complex numbers, 2d/3d graphing, arbitrary precision, vector/matrix, cli calculator with real-time output and support for units
Upstream URL: https://github.com/bgkillas/kalc
Licenses: GPL3
Submitter: bgkillas
Maintainer: bgkillas
Last Packager: bgkillas
Votes: 3
Popularity: 0.173499
First Submitted: 2023-05-27 13:42 (UTC)
Last Updated: 2025-04-26 07:13 (UTC)

Dependencies (7)

Required by (0)

Sources (1)

Latest Comments

1 2 Next › Last »

npreining commented on 2025-05-02 14:49 (UTC)

It is getting worse. With the update to gcc 15 it does not even find a gcc compiler anymore (end of makepkg output):

error: failed to run custom build command for `gmp-mpfr-sys v1.6.5`

Caused by:
  process didn't exit successfully: `/home/norbert/.cache/yay/kalc/src/kalc-1.5.0/target/release/build/gmp-mpfr-sys-2394b116cf2d95fc/build-script-build` (exit status: 101)
  --- stdout
  cargo:rerun-if-env-changed=GMP_MPFR_SYS_CACHE
  $ mkdir -p "/home/norbert/.cache/yay/kalc/src/kalc-1.5.0/target/release/build/gmp-mpfr-sys-99975725d73f8e54/out/lib"
  $ mkdir -p "/home/norbert/.cache/yay/kalc/src/kalc-1.5.0/target/release/build/gmp-mpfr-sys-99975725d73f8e54/out/include"
  $ mkdir -p "/home/norbert/.cache/yay/kalc/src/kalc-1.5.0/target/release/build/gmp-mpfr-sys-99975725d73f8e54/out/build"
  $ ln -s "/home/norbert/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/gmp-mpfr-sys-1.6.5/gmp-6.3.0-c" "/home/norbert/.cache/yay/kalc/src/kalc-1.5.0/target/release/build/gmp-mpfr-sys-99975725d73f8e54/out/build/gmp-src"
  $ mkdir -p "/home/norbert/.cache/yay/kalc/src/kalc-1.5.0/target/release/build/gmp-mpfr-sys-99975725d73f8e54/out/build/gmp-build"
  $ cd "/home/norbert/.cache/yay/kalc/src/kalc-1.5.0/target/release/build/gmp-mpfr-sys-99975725d73f8e54/out/build/gmp-build"
  $ cd "/home/norbert/.cache/yay/kalc/src/kalc-1.5.0/target/release/build/gmp-mpfr-sys-99975725d73f8e54/out/build/gmp-build" && "sh" "-c" "../gmp-src/configure --enable-fat --disable-shared --with-pic"
  checking build system type... raptorlake-pc-linux-gnu
  checking host system type... raptorlake-pc-linux-gnu
  checking for a BSD-compatible install... /usr/bin/install -c
  checking whether build environment is sane... yes
  checking for a thread-safe mkdir -p... /usr/bin/mkdir -p
  checking for gawk... gawk
  checking whether make sets $(MAKE)... yes
  checking whether make supports nested variables... yes
  checking whether to enable maintainer-specific portions of Makefiles... no
  checking ABI=64
  checking compiler gcc -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions         -Wp,-D_FORTIFY_SOURCE=3 -Wformat -Werror=format-security         -fstack-clash-protection -fcf-protection         -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -flto ... no, long long reliability test 1
  checking whether cc is gcc... yes
  checking compiler cc -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions         -Wp,-D_FORTIFY_SOURCE=3 -Wformat -Werror=format-security         -fstack-clash-protection -fcf-protection         -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -flto ... no, long long reliability test 1
  checking ABI=x32
  checking compiler gcc -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions         -Wp,-D_FORTIFY_SOURCE=3 -Wformat -Werror=format-security         -fstack-clash-protection -fcf-protection         -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -flto ... no, long long reliability test 1
  checking whether cc is gcc... yes
  checking compiler cc -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions         -Wp,-D_FORTIFY_SOURCE=3 -Wformat -Werror=format-security         -fstack-clash-protection -fcf-protection         -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -flto ... no, long long reliability test 1
  checking ABI=32
  checking compiler gcc -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions         -Wp,-D_FORTIFY_SOURCE=3 -Wformat -Werror=format-security         -fstack-clash-protection -fcf-protection         -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -flto ... no, long long reliability test 1
  checking compiler icc -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions         -Wp,-D_FORTIFY_SOURCE=3 -Wformat -Werror=format-security         -fstack-clash-protection -fcf-protection         -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -flto ... no
  checking whether cc is gcc... yes
  checking compiler cc -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions         -Wp,-D_FORTIFY_SOURCE=3 -Wformat -Werror=format-security         -fstack-clash-protection -fcf-protection         -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -flto ... no, long long reliability test 1

  --- stderr
  configure: error: could not find a working compiler, see config.log for details

Could the maintainer please provide more details about how they expect this to compile?

npreining commented on 2025-04-30 15:01 (UTC) (edited on 2025-04-30 15:27 (UTC) by npreining)

Ok, I did dig into the build failures. The differnce is in the CFLAGS that are set during the build.

I can build kalc myself simply by calling cargo --build release in the unpackaged sources, that gives no error.

But when I add all the CFLAGS that are set via the makepkg invocation, it fails:

CFLAGS='-march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=3 -Wformat -Werror=format-security -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -flto=auto' cargo build --release

These are the values set in the makepkg environment when cargo is called.

When I remove the -flto=auto from the above command line, the build succeeds.

The -flto=auto comes from /etc/makepkg.conf and the line

LTOFLAGS="-flto=auto"

Unfortunately, and strange enough, changing this to LTOFLAGS= does not help to fix the compilation.

npreining commented on 2025-04-29 18:15 (UTC)

I see the same problem with compile errors gmp-mpfr-sys. I have checked that the resut toolchain is on the latest state:

❯ rustup show
Default host: x86_64-unknown-linux-gnu
rustup home:  /home/norbert/.rustup

installed toolchains
--------------------
stable-x86_64-unknown-linux-gnu (active, default)

active toolchain
----------------
name: stable-x86_64-unknown-linux-gnu
active because: it's the default toolchain
installed targets:
  x86_64-unknown-linux-gnu

Is there a difference in the rust tool chain?

bgkillas commented on 2024-07-26 13:15 (UTC)

forgot how git works, should work now, that temp value dropped while borrowed one i am interested in, if you still have that post an issue to my github please

simona commented on 2024-07-26 13:07 (UTC)

sed: expression -e #1, character 39: Invalid end of range

simona commented on 2024-07-26 08:23 (UTC) (edited on 2024-07-26 08:23 (UTC) by simona)

error[E0716]: temporary value dropped while borrowed
For more information about this error, try rustc --explain E0716.
error: could not compile kalc (bin "kalc") due to 1 previous error

simona commented on 2024-07-03 15:03 (UTC)

fatal: impossibile accedere a 'https://aur.archlinux.org/kalc.git/': Failed to connect to aur.archlinux.org port 443 after 134645 ms: Couldn't connect to server context: exit status 128

simona commented on 2024-07-01 08:40 (UTC)

Compiling kalc v1.3.0 (/home/simona/.cache/yay/kalc/src/kalc-1.3.0) error[E0716]: temporary value dropped while borrowed --> src/graph.rs:196:14 | 190 | let base_dir = if cfg!(unix) | -------- borrow later stored here ... 196 | &dirs::cache_dir().unwrap().to_str().unwrap().to_owned() | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ creates a temporary value which is freed while still in use 197 | }; | - temporary value is freed at the end of this statement | = note: consider using a let binding to create a longer lived value

bgkillas commented on 2024-04-26 10:40 (UTC)

i never had that issue you could report upstream to gmp-mpfr-sys, https://docs.rs/gmp-mpfr-sys/latest/gmp_mpfr_sys/index.html#building-on-gnulinux doesn't mention it it seems

jone1974 commented on 2024-04-22 14:23 (UTC)

Ok - have managed to work around this issue.

% makepkg -sci

let it fail. Then edit kcalc/src/kcalc-1.1.2/Cargo.toml and add:

[dependencies.gmp-mpfr-sys]
features = ["use-system-libs"]

Then:

% makepkg -scie

and it builds. This assumes you already have libgmp installed.