From mboxrd@z Thu Jan 1 00:00:00 1970 MIME-Version: 1.0 References: <8fe7f4f0-f6bc-2ba1-468f-517d27817259@gmail.com> In-Reply-To: From: Phil Kulin Date: Sun, 22 Sep 2019 10:08:24 +0300 Message-ID: To: Fans of the OS Plan 9 from Bell Labs <9fans@9fans.net> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Subject: Re: [9fans] building Alef language Topicbox-Message-UUID: 0a7ecb28-eada-11e9-9d60-3106f5b1d025 Yes. But this requires writing wrapper code as in /sys/src/libc/9sys/write.= c I have no reason to do this. But writing wrapper may be better On Sun, Sep 22, 2019 at 2:02 AM Rodrigo G. L=C3=B3pez wrote: > > wth. they are the same plus an offset, which you can set to -1LL to repli= cate the behavior of read(2) (/sys/src/libc/9sys/read.c) > > > -rodri > > On Sat, Sep 21, 2019, 10:45 PM Phil Kulin wrote: >> >> Ok. 9front doesn't have write and read syscalls. I patched >> sys/src/alef/lib/sys/mkfile I translated _write to write and _read to >> read. Yes, dirty hack. But I don't understand pwrite and pread >> syscalls internals. >> >> ItT'S WORK!!! >> >> I'm worried I can't fix sys/src/alef/lib/rt/mkfile >> I patch libA.a manually every time >> >> On Sat, Sep 21, 2019 at 8:58 PM Phil Kulin wrote: >> > >> > Problem probably in sys/src/alef/lib/rt/ near librt.8.a >> > Build process passes with warning about file existing >> > >> > Manual command: >> > ar vu /386/lib/alef/libA.a sys/src/alef/lib/386/*.8 >> > reduces number of error messages when test builds >> > >> > There are only: >> > ALEFassert: undefined: write >> > ALEFassert: undefined: read >> > >> > >> > On Sat, Sep 21, 2019 at 5:05 PM Phil Kulin wrote: >> > > >> > > Thank you. I used this snapshot and I built alef. But I couldn't bui= ld >> > > tests. And can't build any alef program. >> > > >> > > I think, than linker can't find /$object/lib/alef path (386 in my ca= se) >> > > >> > > On Sat, Sep 21, 2019 at 5:41 AM Sean Hinchee = wrote: >> > > > >> > > > As rodri states BurnZeZ has a copy of Alef he got building and kin= d of >> > > > running under 9front/386. I kind of got the same thing at one poin= t, but >> > > > his is way better :) >> > > > >> > > > I know a snapshot of it is on mycroftiv's public grid around >> > > > /n/griddisk/burnzez >> > > > >> > > > I don't know if he has a public version-controlled copy. >> > > > >> > > > Cheers, >> > > > Sean >> > > > >> > > > On 9/20/19 2:05 PM, Rodrigo G. L=C3=B3pez wrote: >> > > > > somebody please summon The BurnZeZ. >> > > > > >> > > > > >> > > > > -rodri >> > > > > >> > > > > On Fri, Sep 20, 2019, 10:46 PM Phil Kulin > > > > > > wrote: >> > > > > >> > > > > I try to build Alef language >> > > > > latest 9front iso >> > > > > >> > > > > %9fs 9pio >> > > > > # I don't know why, but "tar x alef.tgz" command do nothing.= .. >> > > > > %tarfs /n/sources/extra/alef.tgz >> > > > > %dircp /n/tapefs/sys /sys >> > > > > % cd /sys/src/alef >> > > > > % mk all >> > > > > mk $objtype.all >> > > > > @{cd v; mk all } >> > > > > @{cd k; mk all } >> > > > > @{cd 8; mk all } >> > > > > @{cd lib; mk all } >> > > > > yacc -d ../port/parl.y >> > > > > >> > > > > conflicts: 2 shift/reduce >> > > > > mv y.tab.h ../port/y.tab.h >> > > > > 8c -w -I../port cinit.c >> > > > > 8c -w -I../port code.c >> > > > > machdep.h:329 ../port/parl.h:332 cinit.c:6 syntax error, las= t name: >> > > > > Fconv >> > > > > mk: 8c -w -I../port cinit.c : exit status=3Drc 40921: 8c 40= 925: error >> > > > > machdep.h:329 ../port/parl.h:332 code.c:6 syntax error, last= name: Fconv >> > > > > mk: @{cd v; mk ... : exit status=3Drc 40909: rc 40911: mk 4= 0912: error >> > > > > mk: mk $objtype.all : exit status=3Drc 40906: mk 40908: err= or >> > > > > % >> > > > > >> > > > > I think that problem in "Fconv" definition... >> > > > > >> > > > > -- >> > > > > Non nobis Domine non nobis sed Nomini Tuo da gloriam >> > > > > Phil Kulin >> > > > > >> > > > >> > > >> > > >> > > -- >> > > Non nobis Domine non nobis sed Nomini Tuo da gloriam >> > > Phil Kulin >> > >> > >> > >> > -- >> > Non nobis Domine non nobis sed Nomini Tuo da gloriam >> > Phil Kulin >> >> >> >> -- >> Non nobis Domine non nobis sed Nomini Tuo da gloriam >> Phil Kulin --=20 Non nobis Domine non nobis sed Nomini Tuo da gloriam Phil Kulin