Created attachment 180148 [details] math/p5-Math-Pari build log math/p5-Math-Pari from ports is failing to build for me. At least one other person could not reproduce the problem on the same platform and version (amd64/11.0) and it also builds successfully in poudriere. Full build log is attached. I've also tried to disable CPU_OPTS for gmp but no change. Depconfig tree: ===> The following configuration options are available for p5-Math-Pari-2.01080900 and dependencies ===> The following configuration options are available for perl5-5.24.1: DEBUG=off: Build with debugging support DTRACE=off: Build with DTrace probes GDBM=off: GDBM_File extension MULTIPLICITY=on: Use multiplicity PERL_64BITINT=on: Use 64 bit integers (on i386) PTHREAD=on: Build with -lpthread SITECUSTOMIZE=off: Run-time customization of @INC ====> Exclusive OPTIONS: you can only select none or one of them THREADS=on: Build threaded perl PERL_MALLOC=off: Use Perl malloc ===> Use 'make config' to modify these settings ===> The following configuration options are available for gmp-6.1.2: CPU_OPTS=on: Enable assembly optimizations for your CPU ===> Use 'make config' to modify these settings ===> The following configuration options are available for texinfo-6.1.20160425,1: NLS=on: Native Language Support ===> Use 'make config' to modify these settings ===> The following configuration options are available for help2man-1.47.4: NLS=on: Native Language Support ===> Use 'make config' to modify these settings ===> The following configuration options are available for gettext-tools-0.19.8.1: DOCS=on: Build and/or install documentation THREADS=on: Threading support ===> Use 'make config' to modify these settings ===> The following configuration options are available for libiconv-1.14_10: DOCS=on: Build and/or install documentation ENCODINGS=on: Include extra character sets PATCHES=on: Apply patches to fix CP932, add EUCJP-MS ===> Use 'make config' to modify these settings ===> The following configuration options are available for gmake-4.2.1_1: NLS=on: Native Language Support ===> Use 'make config' to modify these settings
The problematic file is /usr/local/include/pari/paridecl.h I don't have it on my system. I grepped in the portstree all pkg-plists with no result. Try pkg which /usr/local/include/pari/paridecl.h to find out which package has installed it. Maybe, it is a rest of an old install. Maybe, you can try to rename this file.
Sorry, my statement was wrong. paridecl.h is installed by /usr/ports/math/pari. (I puzzled it with p5-Math-Pari).
As workaround: deinstall math/pari install math/p5-Math-Pari install math/pari again. This is working.
Found another solution: change in files/patch-Makefile.PL the line + INC => '-I$(PREFIX)/include/pari -I$(PARI_DIR)/src', to + INC => '-I$(PARI_DIR)/src',
Yep, that works.
A commit references this bug: Author: mat Date: Fri Feb 24 14:22:13 UTC 2017 New revision: 434719 URL: https://svnweb.freebsd.org/changeset/ports/434719 Log: Fix build if math/pari is installed. PR: 217233 Submitted by: w schwarzenfeld utanet at Reported by: nico lifeisabug com Sponsored by: Absolight Changes: head/math/p5-Math-Pari/files/patch-Makefile.PL
Thanks for the patch.