From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <0512e2aede262f37ed92b1d9a8902ad6@quintile.net> From: "Steve Simon" Date: Wed, 21 Nov 2012 13:21:31 +0000 To: 9fans@9fans.net MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Subject: [9fans] 8c - is this leagal? Topicbox-Message-UUID: dbc3d1d6-ead7-11e9-9d60-3106f5b1d025 I'am trying (again) to build svn for plan9 native. 8c is blowing up with the error: bad in naddr: NAME cache_init_state the offending like is: static volatile svn_atomic_t cache_init_state = 0; Is this legal c code, static and volatile? if it is anyone any ideas how to fix 8c - compilers are a closed book to me. -Steve From mboxrd@z Thu Jan 1 00:00:00 1970 MIME-Version: 1.0 In-Reply-To: <0512e2aede262f37ed92b1d9a8902ad6@quintile.net> References: <0512e2aede262f37ed92b1d9a8902ad6@quintile.net> Date: Wed, 21 Nov 2012 13:30:25 +0000 Message-ID: From: Charles Forsyth To: Fans of the OS Plan 9 from Bell Labs <9fans@9fans.net> Content-Type: text/plain; charset=UTF-8 Subject: Re: [9fans] 8c - is this leagal? Topicbox-Message-UUID: dc6a57d6-ead7-11e9-9d60-3106f5b1d025 static is scope, volatile has dynamic effects, very dynamic. you should be able to #define volatile to nothing (-Dvolatile'=') and it will usually work. certainly for statics and externals. the one real effect it might have is on automatic variables if the usage in conjunction with setjmp is a little strange (straightforward uses are fine with setjmp). On 21 November 2012 13:21, Steve Simon wrote: > Is this legal c code, static and volatile? From mboxrd@z Thu Jan 1 00:00:00 1970 MIME-Version: 1.0 In-Reply-To: <0512e2aede262f37ed92b1d9a8902ad6@quintile.net> References: <0512e2aede262f37ed92b1d9a8902ad6@quintile.net> Date: Wed, 21 Nov 2012 14:30:48 +0100 Message-ID: From: =?UTF-8?B?QmVuY2UgRsOhYmnDoW4=?= To: Fans of the OS Plan 9 from Bell Labs <9fans@9fans.net> Content-Type: multipart/alternative; boundary=047d7b33c664c0a70904cf015b10 Subject: Re: [9fans] 8c - is this leagal? Topicbox-Message-UUID: dbcaa402-ead7-11e9-9d60-3106f5b1d025 --047d7b33c664c0a70904cf015b10 Content-Type: text/plain; charset=UTF-8 8c is for Plan9's C dialect. Look into /sys/doc/ape.ps 2012/11/21 Steve Simon > I'am trying (again) to build svn for plan9 native. > > 8c is blowing up with the error: > > bad in naddr: NAME cache_init_state > > the offending like is: > > static volatile svn_atomic_t cache_init_state = 0; > > Is this legal c code, static and volatile? > > if it is anyone any ideas how to fix 8c - compilers are a closed book to > me. > > -Steve > > --047d7b33c664c0a70904cf015b10 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable 8c is for Plan9's C dialect.
Look into /sys/doc/ape.ps


2012/11/21 Steve Simon <steve@quintile.net>
I'am trying (again) to build svn for pla= n9 native.

8c is blowing up with the error:

=C2=A0 =C2=A0 =C2=A0 =C2=A0 bad in naddr: NAME cache_init_state

the offending like is:

=C2=A0 static volatile svn_atomic_t cache_init_state =3D 0;

Is this legal c code, static and volatile?

if it is anyone any ideas how to fix 8c - compilers are a closed book to me= .

-Steve


--047d7b33c664c0a70904cf015b10-- From mboxrd@z Thu Jan 1 00:00:00 1970 MIME-Version: 1.0 In-Reply-To: References: <0512e2aede262f37ed92b1d9a8902ad6@quintile.net> Date: Wed, 21 Nov 2012 13:31:41 +0000 Message-ID: From: Charles Forsyth To: Fans of the OS Plan 9 from Bell Labs <9fans@9fans.net> Content-Type: text/plain; charset=UTF-8 Subject: Re: [9fans] 8c - is this leagal? Topicbox-Message-UUID: dc782d02-ead7-11e9-9d60-3106f5b1d025 >static volatile svn_atomic_t cache_init_state = 0; svn_atomic_t? has it got its own thread library? coroutines? From mboxrd@z Thu Jan 1 00:00:00 1970 MIME-Version: 1.0 In-Reply-To: References: <0512e2aede262f37ed92b1d9a8902ad6@quintile.net> Date: Wed, 21 Nov 2012 14:09:40 +0000 Message-ID: From: Charles Forsyth To: Fans of the OS Plan 9 from Bell Labs <9fans@9fans.net> Content-Type: text/plain; charset=UTF-8 Subject: Re: [9fans] 8c - is this leagal? Topicbox-Message-UUID: dc817db2-ead7-11e9-9d60-3106f5b1d025 By which I meant that yes, it's legal ANSI C code to combine them. The strange way the compiler implements volatile references probably led to that odd diagnostic. As I said, I'd try nopping the volatile. On 21 November 2012 13:30, Charles Forsyth wrote: > static is scope, volatile has dynamic effects, very dynamic. From mboxrd@z Thu Jan 1 00:00:00 1970 MIME-Version: 1.0 In-Reply-To: References: <0512e2aede262f37ed92b1d9a8902ad6@quintile.net> From: Dan Cross Date: Wed, 21 Nov 2012 09:56:55 -0500 Message-ID: To: Fans of the OS Plan 9 from Bell Labs <9fans@9fans.net> Content-Type: multipart/alternative; boundary=00151758a6e6f30cd704cf0290c0 Subject: Re: [9fans] 8c - is this leagal? Topicbox-Message-UUID: dc874026-ead7-11e9-9d60-3106f5b1d025 --00151758a6e6f30cd704cf0290c0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On Wed, Nov 21, 2012 at 8:30 AM, Bence F=C3=A1bi=C3=A1n = wrote: > 8c is for Plan9's C dialect. > Look into /sys/doc/ape.ps > This was not a useful answer to Steve's question. - Dan C. --00151758a6e6f30cd704cf0290c0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On Wed, Nov 21, 2012 at 8:30 AM, Bence F=C3=A1bi=C3=A1n &= lt;begnoc@gmail.com> wrote:
8c is for Plan9's C dialect.

T= his was not a useful answer to Steve's question.

=C2=A0 =C2=A0 =C2=A0 =C2=A0 - Dan C.

=C2=A0
<= /div>
--00151758a6e6f30cd704cf0290c0-- From mboxrd@z Thu Jan 1 00:00:00 1970 MIME-Version: 1.0 In-Reply-To: References: <0512e2aede262f37ed92b1d9a8902ad6@quintile.net> Date: Wed, 21 Nov 2012 16:03:02 +0100 Message-ID: From: =?UTF-8?B?QmVuY2UgRsOhYmnDoW4=?= To: Fans of the OS Plan 9 from Bell Labs <9fans@9fans.net> Content-Type: multipart/alternative; boundary=f46d042ef581a30c2304cf02a53a Subject: Re: [9fans] 8c - is this leagal? Topicbox-Message-UUID: dc8bf5bc-ead7-11e9-9d60-3106f5b1d025 --f46d042ef581a30c2304cf02a53a Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable yeah i realized since. sorry 2012/11/21 Dan Cross > On Wed, Nov 21, 2012 at 8:30 AM, Bence F=C3=A1bi=C3=A1n wrote: > >> 8c is for Plan9's C dialect. >> Look into /sys/doc/ape.ps >> > > This was not a useful answer to Steve's question. > > - Dan C. > > > --f46d042ef581a30c2304cf02a53a Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable yeah i realized since. sorry


2012/11/21 Dan Cross <crossd@gmail.com>
<= blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1px= #ccc solid;padding-left:1ex">
On Wed, Nov 21, 2012 at 8:30 AM, Bence F=C3=A1bi=C3=A1n <= span dir=3D"ltr"><= begnoc@gmail.com> wrote:
=
8c is for Plan9's C dialect.
Look into /sys/doc/ape.ps

=
This was not a useful answer to Steve's question.

=C2=A0 =C2=A0 =C2=A0 =C2=A0 - Dan C.

=C2=A0
<= /div>

--f46d042ef581a30c2304cf02a53a-- From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <28728d03c1c0103d3956ff5fd3667e65@quintile.net> From: "Steve Simon" Date: Wed, 21 Nov 2012 15:51:22 +0000 To: 9fans@9fans.net In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Subject: Re: [9fans] 8c - is this leagal? Topicbox-Message-UUID: dc90ea68-ead7-11e9-9d60-3106f5b1d025 Thanks for the comments, I dropped the volatile and that bit compiles, I am getting close I think. And in answer to charles, there is all sorts going on in there. counting the semicolons gives: Apache portable utils 16049 Apache portable runtime 24852 sqlite3 43944 subversion 343690 Total 428535 and for context: /sys/src/9 107216 -Steve From mboxrd@z Thu Jan 1 00:00:00 1970 From: erik quanstrom Date: Wed, 21 Nov 2012 10:53:35 -0500 To: 9fans@9fans.net Message-ID: <82b9b6e77f922ecdd2c87d77e130be96@ladd.quanstro.net> In-Reply-To: <28728d03c1c0103d3956ff5fd3667e65@quintile.net> References: <28728d03c1c0103d3956ff5fd3667e65@quintile.net> MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Subject: Re: [9fans] 8c - is this leagal? Topicbox-Message-UUID: dc984e84-ead7-11e9-9d60-3106f5b1d025 > and for context: > > /sys/src/9 107216 half of that is for obsolete pc drivers. - erik