bgkillas / kalc

a complex numbers, 2d/3d graphing, arbitrary precision, vector/matrix, cli calculator with real-time output and support for units
GNU General Public License v3.0
177 stars 5 forks source link

Cannot compile on Arch Linux #17

Open xero-lib opened 4 weeks ago

xero-lib commented 4 weeks ago

Unable to compile due to gmp-mpfr-sys:

Kernel: 6.9.3-arch1-1 CPU: Intel i9-14900K GPU: Nvidia GeForce RTX 4070 Ti

  --- 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: 170597 Segmentation fault      (core dumped) "$@" > $log_file 2>&1
  ../../../gmp-src/test-driver: line 107: 170599 Segmentation fault      (core dumped) "$@" > $log_file 2>&1
  ../../../gmp-src/test-driver: line 107: 170610 Segmentation fault      (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/helix/.cargo/registry/src/index.crates.io-6f17d22bba15001f/gmp-mpfr-sys-1.6.2/build.rs:1210:13:
  Program failed with code 2: cd "/home/helix/.cache/paru/clone/kalc/src/kalc-1.1.5/target/release/build/gmp-mpfr-sys-3e032f41abdecb88/out/build/gmp-build" && "make" "-j" "32" "check"
  stack backtrace:
     0:     0x59c49660d812 - <unknown>
     1:     0x59c496631cbc - <unknown>
     2:     0x59c49660b24f - <unknown>
     3:     0x59c49660d5e4 - <unknown>
     4:     0x59c49660eb1b - <unknown>
     5:     0x59c49660e873 - <unknown>
     6:     0x59c49660efbd - <unknown>
     7:     0x59c49660ee92 - <unknown>
     8:     0x59c49660dce6 - <unknown>
     9:     0x59c49660ebc4 - <unknown>
    10:     0x59c4965c1285 - <unknown>
    11:     0x59c4965d1182 - <unknown>
    12:     0x59c4965d0aec - <unknown>
    13:     0x59c4965c9ca4 - <unknown>
    14:     0x59c4965c4a9e - <unknown>
    15:     0x59c4965c29a4 - <unknown>
    16:     0x59c4965e73ce - <unknown>
    17:     0x59c4965e34b1 - <unknown>
    18:     0x59c4965de454 - <unknown>
    19:     0x59c496607883 - <unknown>
    20:     0x59c4965de428 - <unknown>
    21:     0x59c4965d20f1 - <unknown>
    22:     0x7eb8bdd61c88 - <unknown>
    23:     0x7eb8bdd61d4c - __libc_start_main
    24:     0x59c4965c1865 - <unknown>
    25:                0x0 - <unknown>
==> ERROR: A failure occurred in build().
    Aborting...
   0: anyhow::context::<impl anyhow::Context<T,E> for core::result::Result<T,E>>::with_context
   1: paru::install::Installer::build_pkgbuild
   2: paru::install::Installer::resolve_targets::{{closure}}
   3: paru::install::Installer::install::{{closure}}
   4: paru::handle_sync::{{closure}}
   5: paru::run2::{{closure}}
   6: paru::main::{{closure}}
   7: paru::main
   8: std::sys_common::backtrace::__rust_begin_short_backtrace
   9: main
  10: <unknown>
  11: __libc_start_main
  12: _start
error: failed to build 'kalc-1.1.5-1':
   0: anyhow::kind::Adhoc::new
   1: paru::install::Installer::resolve_targets::{{closure}}
   2: paru::install::Installer::install::{{closure}}
   3: paru::handle_sync::{{closure}}
   4: paru::run2::{{closure}}
   5: paru::main::{{closure}}
   6: paru::main
   7: std::sys_common::backtrace::__rust_begin_short_backtrace
   8: main
   9: <unknown>
  10: __libc_start_main
  11: _start
bgkillas commented 4 weeks ago

just built it in a chroot from aur, you have base-devel i assume?

bgkillas commented 4 weeks ago

it says stderr, can i assume no relevent output from stdout?

xero-lib commented 3 weeks ago

just built it in a chroot from aur, you have base-devel i assume?

Yes

xero-lib commented 3 weeks ago

it says stderr, can i assume no relevent output from stdout?

I have attached the full output paru_output.txt

bgkillas commented 3 weeks ago

yeah i don't know, probably just have to build it in a clean chroot for some reason

xero-lib commented 3 weeks ago

yeah i don't know, probably just have to build it in a clean chroot for some reason

Same issue in a clean chroot environment. I have attached the output file. chroot.txt

bgkillas commented 3 weeks ago

yeah i dont understand, you could either use the bin from my releases or just report it to https://gitlab.com/tspiteri/gmp-mpfr-sys

bgkillas commented 2 days ago

did you try what the person in the aur page suggested? using 'features = ["use-system-libs"]' under '[dependencies.gmp-mpfr-sys]' in Cargo.toml