/usr/local/lib/gcc49/libgfortran.so: undefined reference to `fpgetsticky' on ARM
Tijl Coosemans
tijl at FreeBSD.org
Sun Mar 5 14:05:41 UTC 2017
On Sun, 5 Mar 2017 08:03:56 -0300 Otacílio <otacilio.neto at bsd.com.br> wrote:
> I'm trying compile math/openblas on a Beaglebone black. The compilations
> stops at this point with this error message:
>
> root at beaglebone:/usr/ports/math/openblas/work/OpenBLAS-0.2.19/lapack-netlib/INSTALL
> # gfortran49 -Wall -fPIC -marm -mfpu=vfp -mfloat-abi=hard -march=armv6
> -O2 -lm -gfortran49 -Wall -fPIC -marm -mfpu=vfp -mfloat-abi=hard
> -march=armv6 -O2 -lm -Wl,-rpath=/usr/local/lib/gcc49
> -L/usr/local/lib/gcc49 -B/usr/local/bin -fstack-protector
> -Wl,-rpath=/usr/local/lib/gcc49 -L/usr/local/lib/gcc49 -lgfortran -o
> tprotector -o testlsame lsame.o lsametst.o
> /usr/local/lib/gcc49/libgfortran.so: undefined reference to `fpgetsticky'
> collect2: error: ld returned 1 exit status
>
> This other port biology/psi88 has a identically problem:
>
> ===> Building for psi88-1.0_9
> (cd src/ && make all)
> gfortran49 -O -Wl,-rpath=/usr/local/lib/gcc49 psi1.f -o PSI1
> -Wl,-rpath=/usr/local/lib/gcc49 -L/usr/local/lib/gcc49 -B/usr/local/bin
> /usr/local/lib/gcc49/libgfortran.so: undefined reference to `fpgetsticky'
> collect2: error: ld returned 1 exit status
> *** [PSI1] Error code 1
>
> I found a source of fpgetsticky here:
>
> root at beaglebone:/usr/ports/biology/psi88 # ls
> /usr/src/lib/libc/arm/gen/fpgetsticky_vfp.c
> /usr/src/lib/libc/arm/gen/fpgetsticky_vfp.c
>
>
> So, can someone give me a hint about how to fix it?
This is a problem with libc that has been fixed in FreeBSD head but has
not been merged to stable yet:
https://svnweb.freebsd.org/base?view=revision&revision=313873
More information about the freebsd-ports
mailing list