New comment by motorto on void-packages repository https://github.com/void-linux/void-packages/issues/23692#issuecomment-662047185 Comment: That solved the issue ! Thanks, now I am getting an error: `=> ERROR: pari-gp-2.11.4_1: cannot access wrksrc directory [/builddir/pari]` Well this is turning harder than I tough --------------------------------------------------------------- Well, update fixed that error by inspiring myself on bc template, and now the error is compiler option: ``` ld: unrecognized option '-Wl,-z,relro' ld: use the --help option for usage information make[1]: *** [Makefile:1030: gp-dyn] Error 1 make[1]: Leaving directory '/builddir/pari-2.11.4/Olinux-x86_64' make: *** [Makefile:34: install] Error 2 => ERROR: pari-2.11.4_1: do_install: 'make install' exited with 2 => ERROR: in do_install() at srcpkgs/pari/template:31 ``` My template ``` # Template file for 'pari' pkgname=pari version=2.11.4 revision=1 makedepends="perl texlive-core" depends="gmp libX11 readline" short_desc="Pari/gp is designed for fast computations in number theory" maintainer="André Cerqueira " license="GPL-3.0-or-later" homepage="https://pari.math.u-bordeaux.fr" distfiles="https://pari.math.u-bordeaux.fr/pub/pari/unix/${pkgname}-${version}.tar.gz" checksum="bfc88fc4f7352f4840e6e352c72f0369cbea8a45403b1834a6269f3709970b1c" do_build() { export CFLAGS+=' -flto' ./Configure \ --prefix=/usr \ --with-readline \ --mt=pthread \ --with-gmp \ make all } post_build() { make bench } do_install() { make install ln -sf gp.1.gz /usr/share/man/man1/pari.1 cd Olinux-x86_64 make install-bin-sta } ```