[PATCH] PPC64: First in the series of patches implementing POWER8 vector math.
Joseph Myers
joseph@codesourcery.com
Mon Feb 25 17:21:00 GMT 2019
On Sun, 24 Feb 2019, GT wrote:
> gcc -L${SYSROOT}/usr/lib64/ -I${SYSROOT}/include/ --sysroot=${SYSROOT} \
> -Wl,-rpath=${SYSROOT}/lib64 -Wl,--dynamic-linker=${SYSROOT}/lib64/ld-2.29.9000.so \
> -O1 -fopenmp -ffast-math -lm -mvsx -o testcos testcos.c
Don't use -L (or -I) options pointing into a sysroot; ld cares about
whether it found a given library via a sysrooted or nonsysrooted path, so
using such a -L option can result in a linker script in the sysroot being
misinterpreted (absolute paths therein not being interpreted as relative
to the sysroot).
However, I don't think that's your issue. You should have
libmvec_nonshared.a; it's needed to deal with cases when the compiler
generates calls to _Z*___*_finite because of bits/math-finite.h being in
effect together with bits/math-vector.h (see
sysdeps/x86_64/fpu/svml_finite_alias.S and
<https://gcc.gnu.org/ml/gcc/2015-06/msg00173.html>).
--
Joseph S. Myers
joseph@codesourcery.com
More information about the Libc-alpha
mailing list