homebrew-embedded icon indicating copy to clipboard operation
homebrew-embedded copied to clipboard

arm-elf-gcc compiler issues

Open squiffy opened this issue 11 years ago • 1 comments

Can't compile gcc correctly since its not following C99 properly.

../../gcc/toplev.c:545:1: error: redefinition of a 'extern inline' function 'floor_log2' is not supported in C99 mode
floor_log2 (unsigned HOST_WIDE_INT x)
^
../../gcc/toplev.h:178:1: note: previous definition is here
floor_log2 (unsigned HOST_WIDE_INT x)
^
../../gcc/toplev.c:580:1: error: redefinition of a 'extern inline' function 'exact_log2' is not supported in C99 mode
exact_log2 (unsigned HOST_WIDE_INT x)
^
../../gcc/toplev.h:184:1: note: previous definition is here
exact_log2 (unsigned HOST_WIDE_INT x)
^
2 errors generated.
make[2]: *** [toplev.o] Error 1
make[2]: *** Waiting for unfinished jobs....
rm fsf-funding.pod gcov.pod gfdl.pod cpp.pod gcc.pod
make[1]: *** [all-gcc] Error 2
make: *** [all] Error 2
/usr/local/Library/Homebrew/formula.rb:613:in `system'

squiffy avatar Dec 16 '13 04:12 squiffy

I haven't throughly tested the arm-elf-gcc target in a while.

darconeous avatar Jun 11 '14 00:06 darconeous