[adding bug-gnulib]

On 11/13/2011 06:50 AM, Stefano Lattarini wrote:
> I don't know if it's of any interest, but I'm experiencing the following
> failure while trying to test grep on an unstable Debian using pcc
> (Portable C Compiler, version 1.1.0~DEVEL+20110422-1, installed from
> experimental packages):
> 
>   CC     test-float.o
>  ./stdio.h, line 24: warning: gcc pragma unsupported

That sounds like pcc is lying.  It is claiming to be gcc, then not
supporting gcc extensions.

Is there any easy way to identify pcc at compile time, such as a
preprocessor macro it sets differently than gcc?

>  ../lib/wchar.h, line 34: warning: gcc pragma unsupported
>  ../lib/sys/types.h, line 24: warning: gcc pragma unsupported
>  ../lib/time.h, line 24: warning: gcc pragma unsupported
>  ../lib/time.h, line 24: warning: gcc pragma unsupported
>  ./stdio.h, line 1031: warning: unsupported attribute '__warning__'
>  ../lib/stdlib.h, line 21: warning: gcc pragma unsupported
>  ../lib/sys/types.h, line 24: warning: gcc pragma unsupported
>  test-float.c, line 374: unknown structure/union/enum
>  make[4]: *** [test-float.o] Error 1

Warnings like this, and the error in test-float.c, mean that all other
packages using the same gnulib modules will have the same problem.  We
should fix it upstream in gnulib.

-- 
Eric Blake   ebl...@redhat.com    +1-801-349-2682
Libvirt virtualization library http://libvirt.org

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to