Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 5 Mar 2017 08:03:56 -0300
From:      =?UTF-8?B?T3RhY8OtbGlv?= <otacilio.neto@bsd.com.br>
To:        freebsd-ports@freebsd.org
Subject:   /usr/local/lib/gcc49/libgfortran.so: undefined reference to `fpgetsticky' on ARM
Message-ID:  <c6cfe544-a377-811f-4de9-4c7d453c7371@bsd.com.br>

next in thread | raw e-mail | index | archive | help
Dears


I'm trying compile math/openblas on a Beaglebone black. The compilations 
stops at this point with this error message:

root@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@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?

Thanks a lot!

[]'s

-Otacilio





Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?c6cfe544-a377-811f-4de9-4c7d453c7371>