Gentoo Archives: gentoo-alt

From: Charles Davis <cdavis5x@×××××.com>
To: gentoo-alt@l.g.o
Subject: Re: [gentoo-alt] OSX 10.9(.1): stage3 failure (gcc-apple)
Date: Fri, 27 Dec 2013 22:01:23
Message-Id: 66595B1E-C09C-4EA7-93CD-00562B5F15CF@gmail.com
In Reply to: [gentoo-alt] OSX 10.9(.1): stage3 failure (gcc-apple) by Jeremy Olexa
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

Replies

Subject Author
RE: [gentoo-alt] OSX 10.9(.1): stage3 failure (gcc-apple) Francois Bissey <francois.bissey@×××××××××××××.nz>