From mboxrd@z Thu Jan 1 00:00:00 1970 MIME-Version: 1.0 In-Reply-To: References: <4ff62af94bac2fe7ab0d7c4d7f6ecbda@proxima.alt.za> From: Noah Evans Date: Tue, 13 Dec 2011 14:52:03 +0100 Message-ID: To: Fans of the OS Plan 9 from Bell Labs <9fans@9fans.net> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: lucio@proxima.alt.za Subject: Re: [9fans] C compiler error? Topicbox-Message-UUID: 4e5d77ca-ead7-11e9-9d60-3106f5b1d025 Erik, are you looking at the tip? IIRC the webpage points to a stable version not the tip. Noah On Tue, Dec 13, 2011 at 2:36 PM, erik quanstrom wro= te: > On Tue Dec 13 07:43:08 EST 2011, lucio@proxima.alt.za wrote: >> New features in Go require a new function in the reflect.c module >> (src/cmd/gc/reflect.c). =A0The C compiler (8c, in this case) reports an >> error which does not seem to apply: >> >> 8c -I/go/include -I/go/386/include -FTVw ../gc/reflect.c >> ../gc/reflect.c:987 switch expression must be integer >> >> This is a bit of a stumbling block. =A0I'm hoping there's someone on >> this mailing list that can address this problem quicker than it would >> be possible for me. =A0More details off line. > > i don't see 987 lines in reflect.c. =A0from http://golang.org/src/cmd/gc/= reflect.c, > i only see 939. > > in any event, it's likely that your switch type is a uvlong. =A08c doesn'= t allow > that. > > - erik >