This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: [PATCH] PPC64: First in the series of patches implementing POWER8 vector math.
- From: Joseph Myers <joseph at codesourcery dot com>
- To: GT <tnggil at protonmail dot com>
- Cc: "libc-alpha at sourceware dot org" <libc-alpha at sourceware dot org>
- Date: Mon, 25 Feb 2019 17:21:36 +0000
- Subject: Re: [PATCH] PPC64: First in the series of patches implementing POWER8 vector math.
- References: <nN0kG0GXbx7wYro2oE34bwvcauTJw_WuDyP-obLhVMc-zwTK071-mQXBD8hiITyOHI6WoxiwvNezhvebbsjFnNlAk8mCi5yX6NYpge4SAas=@protonmail.com> <alpine.DEB.2.21.1902190117000.480@digraph.polyomino.org.uk> <b7VIpuRTdy3ZwQBiTlgUL3a5zz5kQNT6OUuyOfyxrAhNG_1Xp8LolqtRZ1CssqxB5HAUcZ2-FYf64L8sAjgmfW4qiwng59NPWvSc8K0JQyo=@protonmail.com>
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