Date: Sat, 23 Oct 2021 20:36:11 -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: Solved: Strange things when trying to build math/arb Message-ID: <4bc377a9-0518-face-6fc7-43e6640d1bb3@FreeBSD.org> In-Reply-To: <4a3a7b57-b13e-2823-0a46-aa8197d1ef5e@FreeBSD.org> References: <4a3a7b57-b13e-2823-0a46-aa8197d1ef5e@FreeBSD.org>
next in thread | previous in thread | raw e-mail | index | archive | help
On 10/23/21 11:19 AM, Stephen Montgomery-Smith wrote: > 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 > It was because I was using portupgrade. It referenced the include files in /usr/local/include, that is, the arb include files that existed before.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4bc377a9-0518-face-6fc7-43e6640d1bb3>