Build error 4.6.1 for x86_64

david.hagood@gmail.com david.hagood@gmail.com
Fri Aug 5 21:24:00 GMT 2011


> david.hagood@gmail.com writes:
>
>> /space/tools/ppc/src/gcc-4.6.1/libmudflap/mf-runtime.c:168:11: error:
>> conflicting types for ‘__mf_lc_mask’
>> /space/tools/ppc/src/gcc-4.6.1/libmudflap/mf-runtime.h:46:23: note:
>> previous declaration of ‘__mf_lc_mask’ was here
>
> Looks like uintptr_t and __mf_uintptr_t are somehow different types.
> __mf_uintptr_t is defined via
>
> typedef unsigned int __mf_uintptr_t __attribute__ ((__mode__
> (__pointer__)));
>
> uintptr_t is defined by some system header file.  I would guess that the
> types normally wind up the same, but in the C library that you are using
> they somehow wind up being different.
>
> Probably mf-runtime.c should be changed to use __mf_uintptr_t rather
> than uintptr_t.
>
> Ian
Interesting. But why does this ONLY happen when building for X86_64, and
not for PPC? It's using the same host compiler - indeed, the only
difference is the --target option to the configure command ( and the
directory I am building in) - same source directory, same other options.

None the less, I can apply a patch to mf-runtime.c and see if that helps.




More information about the Gcc-help mailing list