Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 5 Mar 2017 15:04:23 +0100
From:      Tijl Coosemans <tijl@FreeBSD.org>
To:        =?UTF-8?B?T3RhY8OtbGlv?= <otacilio.neto@bsd.com.br>
Cc:        freebsd-ports@freebsd.org
Subject:   Re: /usr/local/lib/gcc49/libgfortran.so: undefined reference to `fpgetsticky' on ARM
Message-ID:  <20170305150423.30f9ec45@kalimero.tijl.coosemans.org>
In-Reply-To: <c6cfe544-a377-811f-4de9-4c7d453c7371@bsd.com.br>
References:  <c6cfe544-a377-811f-4de9-4c7d453c7371@bsd.com.br>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sun, 5 Mar 2017 08:03:56 -0300 Otac=C3=ADlio <otacilio.neto@bsd.com.br> =
wrote:
> I'm trying compile math/openblas on a Beaglebone black. The compilations=
=20
> stops at this point with this error message:
>=20
> root@beaglebone:/usr/ports/math/openblas/work/OpenBLAS-0.2.19/lapack-netl=
ib/INSTALL=20
> # gfortran49 -Wall -fPIC -marm -mfpu=3Dvfp -mfloat-abi=3Dhard -march=3Dar=
mv6=20
> -O2 -lm -gfortran49 -Wall -fPIC -marm -mfpu=3Dvfp -mfloat-abi=3Dhard=20
> -march=3Darmv6 -O2 -lm -Wl,-rpath=3D/usr/local/lib/gcc49=20
> -L/usr/local/lib/gcc49 -B/usr/local/bin -fstack-protector=20
> -Wl,-rpath=3D/usr/local/lib/gcc49 -L/usr/local/lib/gcc49 -lgfortran -o=20
> tprotector -o testlsame lsame.o lsametst.o
> /usr/local/lib/gcc49/libgfortran.so: undefined reference to `fpgetsticky'
> collect2: error: ld returned 1 exit status
>=20
> This other port biology/psi88 has a identically problem:
>=20
> =3D=3D=3D>  Building for psi88-1.0_9 =20
> (cd src/ && make all)
> gfortran49 -O -Wl,-rpath=3D/usr/local/lib/gcc49 psi1.f -o PSI1=20
> -Wl,-rpath=3D/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
>=20
> I found a source of fpgetsticky here:
>=20
> root@beaglebone:/usr/ports/biology/psi88 # ls=20
> /usr/src/lib/libc/arm/gen/fpgetsticky_vfp.c
> /usr/src/lib/libc/arm/gen/fpgetsticky_vfp.c
>=20
>=20
> 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=3Drevision&revision=3D313873




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20170305150423.30f9ec45>