Package Details: kalc 1.3.3-3

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: 2
Popularity: 0.009906
First Submitted: 2023-05-27 13:42 (UTC)
Last Updated: 2024-09-26 11:46 (UTC)

Dependencies (7)

Required by (0)

Sources (1)

Latest Comments

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.

jone1974 commented on 2024-04-22 13:55 (UTC)

Having the same problem; unable to build gmp-mpfr-sys.

make[4]: Entering directory '/home/jon/Code/AUR/kalc/src/kalc-1.1.2/target/release/build/gmp-mpfr-sys-fcd93152b85c5645/out/build/gmp-build/tests/mpq'
make[4]: 't-aors' is up to date.
make[4]: 't-cmp' is up to date.
make[4]: 't-cmp_ui' is up to date.
make[4]: 't-cmp_si' is up to date.
make[4]: 't-equal' is up to date.
make[4]: 't-get_d' is up to date.
make[4]: 't-get_str' is up to date.
make[4]: 't-inp_str' is up to date.
make[4]: 't-inv' is up to date.
make[4]: 't-md_2exp' is up to date.
make[4]: 't-set_f' is up to date.
make[4]: 't-set_str' is up to date.
make[4]: 'io' is up to date.
make[4]: 'reuse' is up to date.
make[4]: 't-cmp_z' is up to date.
make[4]: Leaving directory '/home/jon/Code/AUR/kalc/src/kalc-1.1.2/target/release/build/gmp-mpfr-sys-fcd93152b85c5645/out/build/gmp-build/tests/mpq'
make  check-TESTS
make[4]: Entering directory '/home/jon/Code/AUR/kalc/src/kalc-1.1.2/target/release/build/gmp-mpfr-sys-fcd93152b85c5645/out/build/gmp-build/tests/mpq'
make[5]: Entering directory '/home/jon/Code/AUR/kalc/src/kalc-1.1.2/target/release/build/gmp-mpfr-sys-fcd93152b85c5645/out/build/gmp-build/tests/mpq'
PASS: t-cmp_si
PASS: t-equal
PASS: t-aors
PASS: t-get_str
PASS: t-inp_str
PASS: t-get_d
PASS: t-inv
PASS: t-set_f
PASS: t-md_2exp
PASS: t-set_str
../../../gmp-src/test-driver: line 107: 119056 Segmentation fault      (core dumped) "$@" > $log_file 2>&1
FAIL: t-cmp_ui
PASS: reuse
../../../gmp-src/test-driver: line 107: 119055 Segmentation fault      (core dumped) "$@" > $log_file 2>&1
FAIL: t-cmp
PASS: io
../../../gmp-src/test-driver: line 107: 119128 Segmentation fault      (core dumped) "$@" > $log_file 2>&1
FAIL: t-cmp_z
============================================================================
Testsuite summary for GNU MP 6.3.0
============================================================================
# TOTAL: 15
# PASS:  12
# SKIP:  0
# XFAIL: 0
# FAIL:  3
# XPASS: 0
# ERROR: 0
============================================================================
See tests/mpq/test-suite.log
Please report to gmp-bugs@gmplib.org (see https://gmplib.org/manual/Reporting-Bugs.html)
============================================================================
make[5]: *** [Makefile:833: test-suite.log] Error 1
make[5]: Leaving directory '/home/jon/Code/AUR/kalc/src/kalc-1.1.2/target/release/build/gmp-mpfr-sys-fcd93152b85c5645/out/build/gmp-build/tests/mpq'
make[4]: *** [Makefile:941: check-TESTS] Error 2
make[4]: Leaving directory '/home/jon/Code/AUR/kalc/src/kalc-1.1.2/target/release/build/gmp-mpfr-sys-fcd93152b85c5645/out/build/gmp-build/tests/mpq'
make[3]: *** [Makefile:1110: check-am] Error 2
make[3]: Leaving directory '/home/jon/Code/AUR/kalc/src/kalc-1.1.2/target/release/build/gmp-mpfr-sys-fcd93152b85c5645/out/build/gmp-build/tests/mpq'
make[2]: *** [Makefile:823: check-recursive] Error 1
make[2]: Leaving directory '/home/jon/Code/AUR/kalc/src/kalc-1.1.2/target/release/build/gmp-mpfr-sys-fcd93152b85c5645/out/build/gmp-build/tests'
make[1]: *** [Makefile:998: check-recursive] Error 1
make[1]: Leaving directory '/home/jon/Code/AUR/kalc/src/kalc-1.1.2/target/release/build/gmp-mpfr-sys-fcd93152b85c5645/out/build/gmp-build'
make: *** [Makefile:1290: check] Error 2

test-suite.log doesn't add much info:

============================================
   GNU MP 6.3.0: tests/mpq/test-suite.log
============================================

# TOTAL: 15
# PASS:  12
# SKIP:  0
# XFAIL: 0
# FAIL:  3
# XPASS: 0
# ERROR: 0

.. contents:: :depth: 2

FAIL: t-cmp
===========

FAIL t-cmp (exit status: 139)

FAIL: t-cmp_ui
==============

FAIL t-cmp_ui (exit status: 139)

FAIL: t-cmp_z
=============

FAIL t-cmp_z (exit status: 139)

bgkillas commented on 2024-04-08 14:05 (UTC)

rillioy, I forgot to put the dependencys in the pkgbuild since I thought they where all apart of base-devel, doesn't seem like diffutils is, probably your issue, please make a github issue if it still persists.

rillioy commented on 2024-02-23 21:32 (UTC)

I cannot compile kalc since the last 0.9 release, it fails when trying to build the "gmp-mpfr-sys(build)" dependency.

make[5]: Leaving directory '/home/mainuser/.cache/paru/clone/kalc/src/kalc-1.0.1/target/release/build/gmp-mpfr-sys-2bce8074f6ab1351/out/build/gmp-build/tests/mpq' make[4]: Leaving directory '/home/mainuser/.cache/paru/clone/kalc/src/kalc-1.0.1/target/release/build/gmp-mpfr-sys-2bce8074f6ab1351/out/build/gmp-build/tests/mpq' make[3]: Leaving directory '/home/mainuser/.cache/paru/clone/kalc/src/kalc-1.0.1/target/release/build/gmp-mpfr-sys-2bce8074f6ab1351/out/build/gmp-build/tests/mpq' make[2]: Leaving directory '/home/mainuser/.cache/paru/clone/kalc/src/kalc-1.0.1/target/release/build/gmp-mpfr-sys-2bce8074f6ab1351/out/build/gmp-build/tests' make[1]: Leaving directory '/home/mainuser/.cache/paru/clone/kalc/src/kalc-1.0.1/target/release/build/gmp-mpfr-sys-2bce8074f6ab1351/out/build/gmp-build'

--- stderr ../../gmp-src/tests/misc.c: In function ‘seed_from_urandom’: ../../gmp-src/tests/misc.c:102:3: warning: ignoring return value of ‘fread’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 102 | fread (buf, 1, 6, fs); | ^ ../../../gmp-src/test-driver: line 107: 382042 Bus error (core dumped) "$@" > $log_file 2>&1 ../../../gmp-src/test-driver: line 107: 382086 Bus error (core dumped) "$@" > $log_file 2>&1 ../../../gmp-src/test-driver: line 107: 382040 Bus error (core dumped) "$@" > $log_file 2>&1 make[5]: *** [Makefile:833: test-suite.log] Error 1 make[4]: *** [Makefile:941: check-TESTS] Error 2 make[3]: *** [Makefile:1110: check-am] Error 2 make[2]: *** [Makefile:823: check-recursive] Error 1 make[1]: *** [Makefile:998: check-recursive] Error 1 make: *** [Makefile:1290: check] Error 2 thread 'main' panicked at /home/mainuser/.cargo/registry/src/index.crates.io-6f17d22bba15001f/gmp-mpfr-sys-1.6.2/build.rs:1210:13: Program failed with code 2: cd "/home/mainuser/.cache/paru/clone/kalc/src/kalc-1.0.1/target/release/build/gmp-mpfr-sys-2bce8074f6ab1351/out/build/gmp-build" && "make" "-j" "8" "check" note: run with RUST_BACKTRACE=1 environment variable to display a backtrace ==> ERROR: A failure occurred in build(). Aborting... error: failed to build 'kalc-1.0.1-1': error: packages failed to build: kalc-1.0.1-1