1 |
That's interesting. That should be added to |
2 |
https://bugs.gentoo.org/show_bug.cgi?id=491098 |
3 |
especially if that works. |
4 |
Do we finally have the fix for https://bugs.gentoo.org/show_bug.cgi?id=491580 |
5 |
in a snapshot? Last time I tried to build that's where it stopped (binutils-apple). |
6 |
|
7 |
François |
8 |
________________________________________ |
9 |
From: Charles Davis [cdavis5x@×××××.com] |
10 |
Sent: Saturday, 28 December 2013 11:01 |
11 |
To: gentoo-alt@l.g.o |
12 |
Subject: Re: [gentoo-alt] OSX 10.9(.1): stage3 failure (gcc-apple) |
13 |
|
14 |
On Dec 27, 2013, at 9:10 AM, Jeremy Olexa wrote: |
15 |
|
16 |
Hello, |
17 |
|
18 |
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/ |
19 |
Starting with Xcode 5, Apple no longer distributes GCC (LLVM backend or otherwise). Instead, both gcc and llvm-gcc are symlinks to clang. |
20 |
|
21 |
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: |
22 |
|
23 |
|
24 |
/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: |
25 |
redefinition of a 'extern inline' function 'floor_log2' is not supported |
26 |
in C99 mode |
27 |
floor_log2 (unsigned HOST_WIDE_INT x) |
28 |
^ |
29 |
/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: |
30 |
previous definition is here |
31 |
floor_log2 (unsigned HOST_WIDE_INT x) |
32 |
^ |
33 |
/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: |
34 |
redefinition of a 'extern inline' function 'exact_log2' is not supported |
35 |
in C99 mode |
36 |
exact_log2 (unsigned HOST_WIDE_INT x) |
37 |
^ |
38 |
/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: |
39 |
previous definition is here |
40 |
exact_log2 (unsigned HOST_WIDE_INT x) |
41 |
^ |
42 |
|
43 |
HTH. |
44 |
|
45 |
Chip |
46 |
|
47 |
|
48 |
Thanks all, |
49 |
Jeremy |
50 |
|
51 |
This email may be confidential and subject to legal privilege, it may |
52 |
not reflect the views of the University of Canterbury, and it is not |
53 |
guaranteed to be virus free. If you are not an intended recipient, |
54 |
please notify the sender immediately and erase all copies of the message |
55 |
and any attachments. |
56 |
|
57 |
Please refer to http://www.canterbury.ac.nz/emaildisclaimer for more |
58 |
information. |