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: =?UTF-8?Q?Rodrigo_G=2E_L=C3=B3pez?= Date: Sun, 22 Sep 2019 01:00:47 +0200 Message-ID: To: Fans of the OS Plan 9 from Bell Labs <9fans@9fans.net> Content-Type: multipart/alternative; boundary="000000000000f63604059318281a" Subject: Re: [9fans] building Alef language Topicbox-Message-UUID: 0a70e986-eada-11e9-9d60-3106f5b1d025 --000000000000f63604059318281a Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable wth. they are the same plus an offset, which you can set to -1LL to replicate 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 buil= d > > > tests. And can't build any alef program. > > > > > > I think, than linker can't find /$object/lib/alef path (386 in my cas= e) > > > > > > 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 kind > of > > > > running under 9front/386. I kind of got the same thing at one point= , > 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, last > name: > > > > > Fconv > > > > > mk: 8c -w -I../port cinit.c : exit status=3Drc 40921: 8c 409= 25: > 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 > 40912: error > > > > > mk: mk $objtype.all : exit status=3Drc 40906: mk 40908: erro= r > > > > > % > > > > > > > > > > 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 > --000000000000f63604059318281a Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
wth. they are the same plus an offset, which you can= set to -1LL to replicate the behavior of read(2) (/sys/src/libc/9sys/read.= c)


-rodri

On Sat, Sep 21, 2019, 10:45 PM = Phil Kulin <schors@gmail.com> 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 <schors@gmail.com> 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 <
schors@gmail.c= om> wrote:
> >
> > Thank you. I used this snapshot and I built alef. But I couldn= 9;t build
> > tests. And can't build any alef program.
> >
> > I think, than linker can't find /$object/lib/alef path (386 i= n my case)
> >
> > On Sat, Sep 21, 2019 at 5:41 AM Sean Hinchee <hen= esy.dev@gmail.com> wrote:
> > >
> > > As rodri states BurnZeZ has a copy of Alef he got building a= nd kind of
> > > running under 9front/386. I kind of got the same thing at on= e point, but
> > > his is way better :)
> > >
> > > I know a snapshot of it is on mycroftiv's public grid ar= ound
> > > /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 <schors@gmail.com
> > > > <mailto:schors@gmail.com>> wrote:=
> > > >
> > > >=C2=A0 =C2=A0 =C2=A0I try to build Alef language
> > > >=C2=A0 =C2=A0 =C2=A0latest 9front iso
> > > >
> > > >=C2=A0 =C2=A0 =C2=A0%9fs 9pio
> > > >=C2=A0 =C2=A0 =C2=A0# I don't know why, but "ta= r x alef.tgz" command do nothing...
> > > >=C2=A0 =C2=A0 =C2=A0%tarfs /n/sources/extra/alef.tgz
> > > >=C2=A0 =C2=A0 =C2=A0%dircp /n/tapefs/sys /sys
> > > >=C2=A0 =C2=A0 =C2=A0% cd /sys/src/alef
> > > >=C2=A0 =C2=A0 =C2=A0% mk all
> > > >=C2=A0 =C2=A0 =C2=A0mk $objtype.all
> > > >=C2=A0 =C2=A0 =C2=A0@{cd v; mk all }
> > > >=C2=A0 =C2=A0 =C2=A0@{cd k; mk all }
> > > >=C2=A0 =C2=A0 =C2=A0@{cd 8; mk all }
> > > >=C2=A0 =C2=A0 =C2=A0@{cd lib; mk all }
> > > >=C2=A0 =C2=A0 =C2=A0yacc -d ../port/parl.y
> > > >
> > > >=C2=A0 =C2=A0 =C2=A0conflicts: 2 shift/reduce
> > > >=C2=A0 =C2=A0 =C2=A0mv y.tab.h ../port/y.tab.h
> > > >=C2=A0 =C2=A0 =C2=A08c -w -I../port cinit.c
> > > >=C2=A0 =C2=A0 =C2=A08c -w -I../port code.c
> > > >=C2=A0 =C2=A0 =C2=A0machdep.h:329 ../port/parl.h:332 cin= it.c:6 syntax error, last name:
> > > >=C2=A0 =C2=A0 =C2=A0Fconv
> > > >=C2=A0 =C2=A0 =C2=A0mk: 8c -w -I../port cinit.c=C2=A0 : = exit status=3Drc 40921: 8c 40925: error
> > > >=C2=A0 =C2=A0 =C2=A0machdep.h:329 ../port/parl.h:332 cod= e.c:6 syntax error, last name: Fconv
> > > >=C2=A0 =C2=A0 =C2=A0mk: @{cd v; mk ...=C2=A0 : exit stat= us=3Drc 40909: rc 40911: mk 40912: error
> > > >=C2=A0 =C2=A0 =C2=A0mk: mk $objtype.all=C2=A0 : exit sta= tus=3Drc 40906: mk 40908: error
> > > >=C2=A0 =C2=A0 =C2=A0%
> > > >
> > > >=C2=A0 =C2=A0 =C2=A0I think that problem in "Fconv&= quot; definition...
> > > >
> > > >=C2=A0 =C2=A0 =C2=A0--
> > > >=C2=A0 =C2=A0 =C2=A0Non nobis Domine non nobis sed Nomin= i Tuo da gloriam
> > > >=C2=A0 =C2=A0 =C2=A0Phil 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
--000000000000f63604059318281a--