This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] PPC64: First in the series of patches implementing POWER8 vector math.


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]