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.


> You're now testing a macro POWERPC64 in the header, but GCC doesn't
> predefine that macro, only powerpc64. You need to test properly that
> the header you have really does work to cause appropriately built code,
> using the installed headers, to call these functions. (glibc's own
> testsuite doesn't verify that, only that the internal functions work as
> expected by their mangled names. So you need appropriate manual tests of
> using installed glibc with a suitable compiler to make sure calls get
> vectorized as expected and the vectorized calls work - and you should give
> details of that testing in the proposed commit message, to demonstrate
> that the patch has been sufficiently tested.)
>

So, I'm trying to test the newly-built glibc to verify the installed
headers as asked for above. I am unable to compile against the new glibc.

The sequence of steps taken is this:

"Compile against glibc in an installed location", on this sourceware
URL: https://sourceware.org/glibc/wiki/Testing/Builds

The installation steps came from a section at the same URL with
title: "Building glibc with intent to install". Here I did everything
including the final step of obtaining gcc's helper library for
cancellation.

My intention is to compare outputs of the simple test programs given
here: https://sourceware.org/glibc/wiki/libmvec as Examples 1 and 2.
For each of them, I run them as given, using the normal non-vector
cosine. Then I replace the calls to cosine with calls to the new
vector cosine. With manual, direct calls to the vector cosine since
GCC does not yet perform vectorization for PPC64.

The error I get when I try to compile against the new glibc:

/usr/bin/ld:
cannot find /usr/lib64/libmvec_nonshared.a inside /home/fedora/my-install-glibc

collect2: error: ld returned 1 exit status

The compile command used:

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

SYSROOT is set to the same directory I used for DESTDIR in the make install step.

I'm uncertain on how to proceed. I appreciate any and all assistance in solving this.

Thanks.
Bert.


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