ppc64le test build failure on glibc 2.23.

Carlos Eduardo Seo cseo@linux.vnet.ibm.com
Fri Feb 19 03:32:00 GMT 2016



On 2/19/16 12:47 AM, Carlos O'Donell wrote:
> Carlos, Tulio,
>
> I see the following when trying to make check for ppc64le:
>
> ../sysdeps/powerpc/test-get_hwcap.c:26:22: fatal error: sys/auxv.h: No such file or directory
>   #include <sys/auxv.h>
>                        ^
> compilation terminated.
>
> A test can't include "<sys/auxv.h>" because we don't have
> a redirecting header in include/sys/ for auxv.h.
>
> You either have to include "<misx/sys/auxv.h>" or add a
> redirecting header.
>
> How did you guys get this to compile? :-)
>

Looking at the preprocessor output for test-get_hwcap, I see it's 
getting the header from the system:

Fedora 21:

# 1 "/usr/include/sys/auxv.h" 1 3 4
# 20 "/usr/include/sys/auxv.h" 3 4

Ubuntu 14.04:

# 1 "/usr/include/powerpc64le-linux-gnu/sys/auxv.h" 1 3 4
# 20 "/usr/include/powerpc64le-linux-gnu/sys/auxv.h" 3 4

I suppose we can't always rely on this and it has to be fixed for 2.23. 
What solution do you prefer?

Thanks,

-- 
Carlos Eduardo Seo
Software Engineer - Linux on Power Toolchain
cseo@linux.vnet.ibm.com



More information about the Libc-alpha mailing list