1 |
On Dec 27, 2013, at 9:10 AM, Jeremy Olexa wrote: |
2 |
|
3 |
> Hello, |
4 |
> |
5 |
> I'm seeking assistance in debugging the stage3 bootstrapping issue on OSX 10.9(.1). gcc-apple fails to build. This is my first OSX experience, so I'm somewhat lost on the standard procedures. I'll post the logs for review. http://dev.gentoo.org/~darkside/tmp/logs/ |
6 |
Starting with Xcode 5, Apple no longer distributes GCC (LLVM backend or otherwise). Instead, both gcc and llvm-gcc are symlinks to clang. |
7 |
|
8 |
What's this got to do with building Apple GCC? Well, Clang defaults to C99 mode (actually GNU-extended C99) when compiling C, but that version of GCC was written in the GNU-extended C89 dialect (-std=gnu89). So, when you try to build GCC, you get these errors: |
9 |
|
10 |
/Users/jolexa/gentoo/var/tmp/portage/sys-devel/gcc-apple-4.2.1_p5666-r1/work/gcc-5666.3/gcc/toplev.c:564:1: error: |
11 |
redefinition of a 'extern inline' function 'floor_log2' is not supported |
12 |
in C99 mode |
13 |
floor_log2 (unsigned HOST_WIDE_INT x) |
14 |
^ |
15 |
/Users/jolexa/gentoo/var/tmp/portage/sys-devel/gcc-apple-4.2.1_p5666-r1/work/gcc-5666.3/gcc/toplev.h:174:1: note: |
16 |
previous definition is here |
17 |
floor_log2 (unsigned HOST_WIDE_INT x) |
18 |
^ |
19 |
/Users/jolexa/gentoo/var/tmp/portage/sys-devel/gcc-apple-4.2.1_p5666-r1/work/gcc-5666.3/gcc/toplev.c:599:1: error: |
20 |
redefinition of a 'extern inline' function 'exact_log2' is not supported |
21 |
in C99 mode |
22 |
exact_log2 (unsigned HOST_WIDE_INT x) |
23 |
^ |
24 |
/Users/jolexa/gentoo/var/tmp/portage/sys-devel/gcc-apple-4.2.1_p5666-r1/work/gcc-5666.3/gcc/toplev.h:180:1: note: |
25 |
previous definition is here |
26 |
exact_log2 (unsigned HOST_WIDE_INT x) |
27 |
^ |
28 |
HTH. |
29 |
|
30 |
Chip |
31 |
|
32 |
> |
33 |
> Thanks all, |
34 |
> Jeremy |