Date: Sat, 23 Oct 2021 11:19:26 -0500 From: Stephen Montgomery-Smith <montgomerysmithstephen@gmail.com> To: freebsd-ports@freebsd.org, "yuri@freebsd.org" <yuri@FreeBSD.org>, "freebsd-stable@freebsd.org" <freebsd-stable@FreeBSD.org> Subject: Strange things when trying to build math/arb Message-ID: <4a3a7b57-b13e-2823-0a46-aa8197d1ef5e@FreeBSD.org>
index | next in thread | raw e-mail
I get the weirdest errors when I try to build the port math/arb, which
was recently updated to version 2.21.0. Maybe it is a compiler error?
Here is a sample:
/usr/bin/cc -DARB_BUILD_DLL -Darb_EXPORTS -I/usr/local/include
-I/usr/ports/math/arb/work/arb-2.21.0 -O2 -pipe
-fstack-protector-strong -fno-strict-aliasing -O2 -pipe
-fstack-protector-strong -fno-strict-aliasing -fPIC -pthread -MD -MT
CMakeFiles/arb.dir/acb_hypgeom/gamma_taylor.c.o -MF
CMakeFiles/arb.dir/acb_hypgeom/gamma_taylor.c.o.d -o
CMakeFiles/arb.dir/acb_hypgeom/gamma_taylor.c.o -c
/usr/ports/math/arb/work/arb-2.21.0/acb_hypgeom/gamma_taylor.c
/usr/ports/math/arb/work/arb-2.21.0/acb_hypgeom/gamma_taylor.c:48:22:
/usr/ports/math/arb/work/arb-2.21.0/acb_hypgeom/gamma_taylor.c:87:35:
error: use of undeclared identifier 'arb_hypgeom_gamma_coeffs'; did you
mean 'arb_hypgeom_gamma_lower'?
mag_mul_2exp_si(err, err, arb_hypgeom_gamma_coeffs[N].exp);
^~~~~~~~~~~~~~~~~~~~~~~~
It is as though the c compiler failed to preprocess the source code, and
forget the include files.
Note, if I add USE_GCC=yes to the port Makefile, it builds just fine.
I am using:
cc --version
FreeBSD clang version 10.0.1 (git@github.com:llvm/llvm-project.git
llvmorg-10.0.1-0-gef32c611aa2)
uname -a
FreeBSD wilberforce 12.3-PRERELEASE FreeBSD 12.3-PRERELEASE
stable/12-n234170-35f1d655819 GENERIC amd64
home |
help
Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4a3a7b57-b13e-2823-0a46-aa8197d1ef5e>
