RTEMS-4.10 toolchain on OS X

Ralf Corsepius ralf.corsepius at rtems.org
Thu Aug 25 17:49:59 CDT 2011


On 08/25/2011 07:25 PM, Eric Norum wrote:

> 3 -- OS X 10.7.1 (Lion) Host compilerApple clang version 2.1
> (tags/Apple/clang-163.7.1) (based on LLVM 3.0svn) Target:
> x86_64-apple-darwin11.1.0 Thread model: posix
> * This time the GMP and MPFR libraries build and test fine.
> * But the compile fails:
>
>     ../../gcc-4.4.6/gcc/toplev.c:536:1: error: redefinition of a 'extern
>     inline' function 'floor_log2' is not supported in C99 mode
>     floor_log2 (unsigned HOST_WIDE_INT x)
>     ^
>     ../../gcc-4.4.6/gcc/toplev.h:190:1: note: previous definition is here
>     floor_log2 (unsigned HOST_WIDE_INT x)
>     ^
>     ../../gcc-4.4.6/gcc/toplev.c:571:1: error: redefinition of a 'extern
>     inline' function 'exact_log2' is not supported in C99 mode
>     exact_log2 (unsigned HOST_WIDE_INT x)
>     ^
>     ../../gcc-4.4.6/gcc/toplev.h:196:1: note: previous definition is here
>     exact_log2 (unsigned HOST_WIDE_INT x)
FWIW: I can reproduce this issue with clang-2.8 under Fedora 14.

> So the takeaway message is, "Don't use this version of OS X Lion if you
> want to use RTEMS-4.10".

My takeaway message of is a bit different: You can't build gcc-4.4.x and 
probably also gcc-4.5.x with "i686-apple-darwin11-llvm-gcc-4.2" :)

My recommendation: File a bug on the toplev* issue into GCC's bugzilla 
and into Apple's bugtracking system (should there be one - I don't know).

Ralf



More information about the rtems-users mailing list