Dominique Dhumieres wrote:
On OSX 1Â0.3 updating to gcc-4.3-20061209 failed with:
...
cc1: warnings being treated as errors
../../gcc-4.3-20061209/gcc/varasm.c: In function 'elf_record_gcc_switches':
../../gcc-4.3-20061209/gcc/varasm.c:6268: warning: format '%llu' expects type
'long long unsigned int', but argument 3 has type 'long int'
../../gcc-4.3-20061209/gcc/varasm.c:6275: warning: format '%llu' expects type
'long long unsigned int', but argument 3 has type 'long int'
../../gcc-4.3-20061209/gcc/varasm.c:6283: warning: format '%llu' expects type
'long long unsigned int', but argument 3 has type 'long int'
../../gcc-4.3-20061209/gcc/varasm.c:6302: warning: format '%llu' expects type
'long long unsigned int', but argument 3 has type 'long int'
make[3]: *** [varasm.o] Error 1
...
Any idea around about the cause and/or the way to fix it?
This is known to break on all 32-bit targets. (afaik) On 64-bit targets
it works.
You can either wait until the patch is reverted or the correct fix is done.
A third possibility would be a workaround, replace the 1UL in varasm.c
with 1ULL.
But as said, this is only a workaround!!!
Andreas