You are not logged in.

#1 2024-01-17 10:51:42

Nico792
Member
Registered: 2023-09-24
Posts: 13

Kalker AUR package not compiling

Hi, I'm relatively new to Arch and this is the first time an AUR package didn't compile off drop, so I'm a bit unsure on what to do.

For clarity up front, my system is completely up to date (checked as I'm writing this) and the AUR package is on the latest commit on main (also checked as I'm writing this).

Let met start by just putting the compilation error out here (from makepkg):

 ....
============================================================================
  # TOTAL: 197
  # PASS:  193
  # SKIP:  3
  # XFAIL: 0
  # FAIL:  1
  # XPASS: 0
  # ERROR: 0
  ============================================================================
  See tests/test-suite.log
  ============================================================================
  make[3]: Leaving directory '/home/nico/.aur/kalker/src/kalker-2.0.4/target/release/build/gmp-mpfr-sys-481c823d649b7b1c/out/build/mpfr-build/tests'
  make[2]: Leaving directory '/home/nico/.aur/kalker/src/kalker-2.0.4/target/release/build/gmp-mpfr-sys-481c823d649b7b1c/out/build/mpfr-build/tests'
  make[1]: Leaving directory '/home/nico/.aur/kalker/src/kalker-2.0.4/target/release/build/gmp-mpfr-sys-481c823d649b7b1c/out/build/mpfr-build/tests'

  --- stderr
  ../../gmp-src/tests/misc.c: In function ‘seed_from_urandom’:
  ../../gmp-src/tests/misc.c:109:3: warning: ignoring return value of ‘fread’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
    109 |   fread (buf, 1, 6, fs);
        |   ^~~~~~~~~~~~~~~~~~~~~
  In function ‘check_bad’,
      inlined from ‘main’ at ../../mpfr-src/tests/tfpif.c:428:3:
  ../../mpfr-src/tests/tfpif.c:265:7: warning: argument 1 null where non-null expected [-Wnonnull]
    265 |       fclose (fh);
        |       ^~~~~~~~~~~
  In file included from ../../mpfr-src/src/mpfr-impl.h:49,
                   from ../../mpfr-src/tests/mpfr-test.h:38,
                   from ../../mpfr-src/tests/tfpif.c:25:
  /usr/include/stdio.h: In function ‘main’:
  /usr/include/stdio.h:183:12: note: in a call to function ‘fclose’ declared ‘nonnull’
    183 | extern int fclose (FILE *__stream) __nonnull ((1));
        |            ^~~~~~
  In function ‘check_bad’,
      inlined from ‘main’ at ../../mpfr-src/tests/tfpif.c:428:3:
  ../../mpfr-src/tests/tfpif.c:355:9: warning: ‘emax’ may be used uninitialized [-Wmaybe-uninitialized]
    355 |         set_emax (emax);
        |         ^~~~~~~~~~~~~~~
  ../../mpfr-src/tests/tfpif.c: In function ‘main’:
  ../../mpfr-src/tests/tfpif.c:280:18: note: ‘emax’ was declared here
    280 |       mpfr_exp_t emax;
        |                  ^~~~
  make[3]: *** [Makefile:3013: test-suite.log] Error 1
  make[2]: *** [Makefile:3121: check-TESTS] Error 2
  make[1]: *** [Makefile:4566: check-am] Error 2
  make: *** [Makefile:524: check-recursive] Error 1
  thread 'main' panicked at /home/nico/.cargo/registry/src/index.crates.io-6f17d22bba15001f/gmp-mpfr-sys-1.5.0/build.rs:1196:13:
  Program failed with code 2: cd "/home/nico/.aur/kalker/src/kalker-2.0.4/target/release/build/gmp-mpfr-sys-481c823d649b7b1c/out/build/mpfr-build" && "make" "-j" "16" "check"
  note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
==> ERROR: A failure occurred in build().
    Aborting..

I'm not fully sure if it's relevant, but this is the PKGBUILD:

# Maintainer : Daniel Chesters <archlinux@coin-coin.xyz>
# Contributor : Daniel Chesters <archlinux@coin-coin.xyz>

pkgname=kalker
pkgver=2.0.4
pkgrel=1
pkgdesc="A calculator program that supports user-defined variables, functions, derivation, and integration."
url="https://github.com/PaddiM8/kalker"
depends=('gcc-libs')
makedepends=('cargo')
arch=('i686' 'x86_64' 'aarch64')
license=('MIT')
source=("$pkgname-$pkgver.tar.gz::https://github.com/PaddiM8/$pkgname/archive/v$pkgver.tar.gz")

build() {
	cd "$pkgname-$pkgver"
	cargo build --release
}

package() {
	cd "$pkgname-$pkgver"
	install -Dm755 "target/release/$pkgname" "$pkgdir/usr/bin/$pkgname"
	install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}

# vim:set ts=2 sw=2 et:
b2sums=('07faa060344afc5b8d34655062e037f1f5c43aa07efd5e5088f7b3a644e49445ee09f341e91f27b97ebfb86ad28d5c5abdf2f9192907dccf2b79c2443d9abd8c')

I took a look at the AUR page as well, it seems someone else has the same problem, I checked and it seems they are erroring in the same file and on the same line of code. Unfortunately, no one has replied to them yet. Replies from before this (version 2.0.3) do seem to have compiled.

I also looked at the PKGBUILD which seemed to just run

 cargo build --release 

to compile. I tried the same, but it led to the same error.

Reading the error message didn't help me much. I see that there are some warnings, I doubt those matter much, I think the compilation is erroring because a test failed, but I'm not sure, and even if I was I wouldn't know how to resolve that.

My question then is, is there a way I can get this compiled, and if not, how would I revert back version 2.0.3 (which does seem to have compiled). And on top of that, what is a good general procedure to follow so I can fix these issues myself in the future?

Thank you in advance!

Offline

#2 2024-01-17 11:40:45

WorMzy
Forum Moderator
From: Scotland
Registered: 2010-06-16
Posts: 11,896
Website

Re: Kalker AUR package not compiling

Mod note: moving to AUR Issues.


Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD

Making lemonade from lemons since 2015.

Online

#3 2024-01-17 13:45:47

Stefan Husmann
Member
From: Germany
Registered: 2007-08-07
Posts: 1,391

Re: Kalker AUR package not compiling

From the output I gues the "build" fails in the check phase. You can run makepkg with the --no-check option to skip checks.

Offline

#4 2024-01-17 13:47:06

Stefan Husmann
Member
From: Germany
Registered: 2007-08-07
Posts: 1,391

Re: Kalker AUR package not compiling

Scratch that. File the bug upstream or use the kalker-bin-package from AUR.

Last edited by Stefan Husmann (2024-01-17 13:56:48)

Offline

#5 2024-01-17 14:03:00

a821
Member
Registered: 2012-10-31
Posts: 381

Re: Kalker AUR package not compiling

I can reproduce the error in a clean chroot, and someone else left a comment in the AUR page with the same error. Seems like an upstream bug.

Offline

#6 2024-01-18 00:26:10

Nico792
Member
Registered: 2023-09-24
Posts: 13

Re: Kalker AUR package not compiling

Alright so it's not just me, thanks for the help!

Offline

Board footer

Powered by FluxBB