Re: [9fans] Trouble compiling "Hello, world"

2022-08-02 Thread Lucio De Re
On 8/2/22, Clout Tolstoy  wrote:
> Years ago I worked at a non-profit called FreeGeek (in Portland, Oregon
> USA) . We used to do grants for computers and sent some over to Uganda,
> amongst other places. I'm not sure of their current status on their grant,
> but it could be worth a shot.  You might be able to get the hardware for
> free, and grants for shipping through someone else.
>
That is a kind response and I will let you know what will come of it.

My biggest problem, which may be more my own flawed psychology than
any real obstacle, is that I want some kind of succession planning up
front, rather than create a need I alone can fulfil (I'm not young and
I can see the gentle wear and tear having its impact on my abilities).

In fact, what I'm trying to establish is a community that can absorb
as much as I am able to guide them toward. For now, my efforts are on
identifying those analytical skills I found so useful in my own
education. I get to see a lot of youths, but few real gems that are
also interested in analytical thinking.

Lucio.

--
9fans: 9fans
Permalink: 
https://9fans.topicbox.com/groups/9fans/Te178b97d94173ff8-M1e52e938e9ebd2e5f571af6d
Delivery options: https://9fans.topicbox.com/groups/9fans/subscription


Re: [9fans] Trouble compiling "Hello, world"

2022-08-01 Thread Clout Tolstoy
Years ago I worked at a non-profit called FreeGeek (in Portland, Oregon
USA) . We used to do grants for computers and sent some over to Uganda,
amongst other places. I'm not sure of their current status on their grant,
but it could be worth a shot.  You might be able to get the hardware for
free, and grants for shipping through someone else.

On Mon, Aug 1, 2022 at 8:59 PM Lucio De Re  wrote:

> Thank, Kurt. The SDF home page no doubt needs a small fix.
>
> That is a lot of information and seems the product of much effort.
> I'll find some time to assimilate it, see if there is anything I can
> contribute.
>
> Lucio.
>
> On 8/2/22, Kurt H Maier via 9fans <9fans@9fans.net> wrote:
> > On Tue, Aug 02, 2022 at 05:38:39AM +0200, Lucio De Re wrote:
> >> It's a shame that the SDF wiki
> >> (https://wiki.sdf.org/doku.php?id=vps_-_plan_9_9front) returns a
> >> missing page.
> >
> > Looks like it just got moved:
> > https://wiki.sdf.org/doku.php?id=plan_9_9front
> >
> > khm
> 
> 
> --
> Lucio De Re
> 2 Piet Retief St
> Kestell (Eastern Free State)
> 9860 South Africa
> 
> Ph.: +27 58 653 1433
> Cell: +27 83 251 5824

--
9fans: 9fans
Permalink: 
https://9fans.topicbox.com/groups/9fans/Te178b97d94173ff8-M0672ba68a40db6c2f4baf7b0
Delivery options: https://9fans.topicbox.com/groups/9fans/subscription


Re: [9fans] Trouble compiling "Hello, world"

2022-08-01 Thread sirjofri



02.08.2022 05:38:39 Lucio De Re :

Perhaps it's a delusion, but I keep hoping to find a way to wean a
young community (black secondary education learners with much time on
their hands and very little beyond their smartphones to entertain
them) away from Tik-Tok, possibly also Whatsapp.

SDF bootcamp seems at least a seed for something at least some of
these teenagers may find instructive and a little mind expanding.


That's one of the reasons I built the open system eu.9p.zone. the idea 
was that we can build many (fileserver) systems around the world (hence 
the "eu" in the domain) with cpu servers people can join and learn how it 
is to be on a shared 9 system.



PS: We're too deep in the Global South to afford fancy equipment, even
used laptops are too expensive to ship to South Africa - never mind
the cost of laptop batteries. Maybe we can recycle the odd rPi, but
there the cost and transportation problem shifts to the display.

I am willing to listen to suggestions.


Eu.9p.zone currently runs on a VPS network and consists of 2 machines 
(one fs+cpu and one cpu-only). The auth server is one public auth server 
at 9p.zone (with some self-signup scripts I still need to improve).


The purpose of the auth server is that devs and community can provide 
many EXTRA services as they like and users in that authdom can just use 
them (provided they get access via permissions). In my case, after 
account creation at the 9p.zone auth users need to request access to the 
fs.eu.9p.zone (again, via script).


It's probably quite similar to the bootcamp, but it's more about general 
use and working on projects together than just learning, so it's also 
good for long term projects. However, I don't know if people work on 
projects there.


sirjofri

--
9fans: 9fans
Permalink: 
https://9fans.topicbox.com/groups/9fans/Te178b97d94173ff8-M113569373538c589ff1b6fc2
Delivery options: https://9fans.topicbox.com/groups/9fans/subscription


Re: [9fans] Trouble compiling "Hello, world"

2022-08-01 Thread LdBeth
Can you check `ns | grep amd64' to confirm if you have bind some other
directory to /amd64? Because I've just checked on 9p.sdf.org and
libc.a is in there.

--- 
LDB

--
9fans: 9fans
Permalink: 
https://9fans.topicbox.com/groups/9fans/Te178b97d94173ff8-M432a73867946358c635c4f18
Delivery options: https://9fans.topicbox.com/groups/9fans/subscription


Re: [9fans] Trouble compiling "Hello, world"

2022-08-01 Thread Lucio De Re
Thank, Kurt. The SDF home page no doubt needs a small fix.

That is a lot of information and seems the product of much effort.
I'll find some time to assimilate it, see if there is anything I can
contribute.

Lucio.

On 8/2/22, Kurt H Maier via 9fans <9fans@9fans.net> wrote:
> On Tue, Aug 02, 2022 at 05:38:39AM +0200, Lucio De Re wrote:
>> It's a shame that the SDF wiki
>> (https://wiki.sdf.org/doku.php?id=vps_-_plan_9_9front) returns a
>> missing page.
> 
> Looks like it just got moved:
> https://wiki.sdf.org/doku.php?id=plan_9_9front
> 
> khm


-- 
Lucio De Re
2 Piet Retief St
Kestell (Eastern Free State)
9860 South Africa

Ph.: +27 58 653 1433
Cell: +27 83 251 5824

--
9fans: 9fans
Permalink: 
https://9fans.topicbox.com/groups/9fans/Te178b97d94173ff8-M318631065d45791fddfacaa2
Delivery options: https://9fans.topicbox.com/groups/9fans/subscription


Re: [9fans] Trouble compiling "Hello, world"

2022-08-01 Thread Kurt H Maier via 9fans
On Tue, Aug 02, 2022 at 05:38:39AM +0200, Lucio De Re wrote:
> It's a shame that the SDF wiki
> (https://wiki.sdf.org/doku.php?id=vps_-_plan_9_9front) returns a
> missing page.

Looks like it just got moved:
https://wiki.sdf.org/doku.php?id=plan_9_9front

khm

--
9fans: 9fans
Permalink: 
https://9fans.topicbox.com/groups/9fans/Te178b97d94173ff8-M2a0976db78ad483a0ed8b174
Delivery options: https://9fans.topicbox.com/groups/9fans/subscription


Re: [9fans] Trouble compiling "Hello, world"

2022-08-01 Thread Lucio De Re
It's a shame that the SDF wiki
(https://wiki.sdf.org/doku.php?id=vps_-_plan_9_9front) returns a
missing page. I was hoping to find some way to help that does not
involve a financial contribution.

Perhaps it's a delusion, but I keep hoping to find a way to wean a
young community (black secondary education learners with much time on
their hands and very little beyond their smartphones to entertain
them) away from Tik-Tok, possibly also Whatsapp.

SDF bootcamp seems at least a seed for something at least some of
these teenagers may find instructive and a little mind expanding.

Lucio.

PS: We're too deep in the Global South to afford fancy equipment, even
used laptops are too expensive to ship to South Africa - never mind
the cost of laptop batteries. Maybe we can recycle the odd rPi, but
there the cost and transportation problem shifts to the display.

I am willing to listen to suggestions.


On 8/2/22, Jag Talon  wrote:
> Thanks all! Got it solved with the folks at SDF (thanks, smj!)
>
> On Mon, Aug 1, 2022, at 9:32 PM, Thaddeus Woskowiak wrote:
>> > it's a shared system that I didn't install myself.
>>
>> How are you connecting and interacting?
>> On Mon, Aug 1, 2022 at 7:47 PM Jag Talon  wrote:
>> >
>> > Thank you Skip and Jacob I'm running a Plan 9 instance through the SDF
>> > Bootcamp so it's a shared system that I didn't install myself. I'll make
>> > sure to reach out to the admins because trying to run `mk install` in
>> > /sys/src/libc is giving me permission errors.
>> >
>> > On Mon, Aug 1, 2022, at 6:53 PM, Skip Tavakkolian wrote:
>> >
>> > in /sys/src
>> >
>> > On Mon, Aug 1, 2022 at 3:51 PM Skip Tavakkolian
>> >  wrote:
>> >
>> > generally it's a good idea to rebuild and install changes for all
>> > architectures in your network.
>> > something like:
>> > for (i in (386 arm amd64 riscv mips)) {
>> >  objtype=$i mk install
>> > }
>> >
>> >
>> > On Mon, Aug 1, 2022 at 2:50 PM Jacob Moody  wrote:
>> >
>> > On 8/1/22 15:18, Jag Talon wrote:
>> > > Ah thanks for the tip. I ran `echo $objtype` and it says amd64. I
>> > > believe 6c is the compiler that I need but it seems to say another
>> > > error: `??none??: cannot open file: /amd64/lib/libc.a`
>> >
>> > It's telling you exactly what is wrong, you are missing an amd64 libc
>> > archive.
>> > I am not sure how you wound up with running an amd64 kernel with an
>> > incomplete
>> > amd64 install. For building libc again:
>> >
>> > cd /sys/src/libc/ && mk install && mk clean
>> >
>> > However, you may be missing more then just libc, in that case may just
>> > be best to rebuild
>> > the whole system as a second resort.
>> >
>> > cd /sys/src/ && mk install && mk clean
>> >
>> > How did you install this system? Did you bootstrap yourself
>> > up from 386?
>> >
>> > --
>> > moody
>> >
>> > 9fans / 9fans / see discussions + participants + delivery options
>> > Permalink


-- 
Lucio De Re
2 Piet Retief St
Kestell (Eastern Free State)
9860 South Africa

Ph.: +27 58 653 1433
Cell: +27 83 251 5824

--
9fans: 9fans
Permalink: 
https://9fans.topicbox.com/groups/9fans/Te178b97d94173ff8-M9d7609063574502fee9ec83a
Delivery options: https://9fans.topicbox.com/groups/9fans/subscription


Re: [9fans] Trouble compiling "Hello, world"

2022-08-01 Thread Jag Talon
Thanks all! Got it solved with the folks at SDF (thanks, smj!)

On Mon, Aug 1, 2022, at 9:32 PM, Thaddeus Woskowiak wrote:
> > it's a shared system that I didn't install myself.
> 
> How are you connecting and interacting?
> On Mon, Aug 1, 2022 at 7:47 PM Jag Talon  wrote:
> >
> > Thank you Skip and Jacob I'm running a Plan 9 instance through the SDF 
> > Bootcamp so it's a shared system that I didn't install myself. I'll make 
> > sure to reach out to the admins because trying to run `mk install` in 
> > /sys/src/libc is giving me permission errors.
> >
> > On Mon, Aug 1, 2022, at 6:53 PM, Skip Tavakkolian wrote:
> >
> > in /sys/src
> >
> > On Mon, Aug 1, 2022 at 3:51 PM Skip Tavakkolian 
> >  wrote:
> >
> > generally it's a good idea to rebuild and install changes for all 
> > architectures in your network.
> > something like:
> > for (i in (386 arm amd64 riscv mips)) {
> >  objtype=$i mk install
> > }
> >
> >
> > On Mon, Aug 1, 2022 at 2:50 PM Jacob Moody  wrote:
> >
> > On 8/1/22 15:18, Jag Talon wrote:
> > > Ah thanks for the tip. I ran `echo $objtype` and it says amd64. I believe 
> > > 6c is the compiler that I need but it seems to say another error: 
> > > `??none??: cannot open file: /amd64/lib/libc.a`
> > 
> > It's telling you exactly what is wrong, you are missing an amd64 libc 
> > archive.
> > I am not sure how you wound up with running an amd64 kernel with an 
> > incomplete
> > amd64 install. For building libc again:
> > 
> > cd /sys/src/libc/ && mk install && mk clean
> > 
> > However, you may be missing more then just libc, in that case may just be 
> > best to rebuild
> > the whole system as a second resort.
> > 
> > cd /sys/src/ && mk install && mk clean
> > 
> > How did you install this system? Did you bootstrap yourself
> > up from 386?
> > 
> > --
> > moody
> > 
> > 9fans / 9fans / see discussions + participants + delivery options Permalink

--
9fans: 9fans
Permalink: 
https://9fans.topicbox.com/groups/9fans/Te178b97d94173ff8-M669610bede92ef571d59babf
Delivery options: https://9fans.topicbox.com/groups/9fans/subscription


Re: [9fans] Trouble compiling "Hello, world"

2022-08-01 Thread Thaddeus Woskowiak
> it's a shared system that I didn't install myself.

How are you connecting and interacting?
On Mon, Aug 1, 2022 at 7:47 PM Jag Talon  wrote:
>
> Thank you Skip and Jacob I'm running a Plan 9 instance through the SDF 
> Bootcamp so it's a shared system that I didn't install myself. I'll make sure 
> to reach out to the admins because trying to run `mk install` in 
> /sys/src/libc is giving me permission errors.
>
> On Mon, Aug 1, 2022, at 6:53 PM, Skip Tavakkolian wrote:
>
> in /sys/src
>
> On Mon, Aug 1, 2022 at 3:51 PM Skip Tavakkolian  
> wrote:
>
> generally it's a good idea to rebuild and install changes for all 
> architectures in your network.
> something like:
> for (i in (386 arm amd64 riscv mips)) {
>  objtype=$i mk install
> }
>
>
> On Mon, Aug 1, 2022 at 2:50 PM Jacob Moody  wrote:
>
> On 8/1/22 15:18, Jag Talon wrote:
> > Ah thanks for the tip. I ran `echo $objtype` and it says amd64. I believe 
> > 6c is the compiler that I need but it seems to say another error: 
> > `??none??: cannot open file: /amd64/lib/libc.a`
> 
> It's telling you exactly what is wrong, you are missing an amd64 libc archive.
> I am not sure how you wound up with running an amd64 kernel with an incomplete
> amd64 install. For building libc again:
> 
> cd /sys/src/libc/ && mk install && mk clean
> 
> However, you may be missing more then just libc, in that case may just be 
> best to rebuild
> the whole system as a second resort.
> 
> cd /sys/src/ && mk install && mk clean
> 
> How did you install this system? Did you bootstrap yourself
> up from 386?
> 
> --
> moody
> 
> 9fans / 9fans / see discussions + participants + delivery options Permalink

--
9fans: 9fans
Permalink: 
https://9fans.topicbox.com/groups/9fans/Te178b97d94173ff8-M2bc6ad810fb31de20045ecf5
Delivery options: https://9fans.topicbox.com/groups/9fans/subscription


Re: [9fans] Trouble compiling "Hello, world"

2022-08-01 Thread Jag Talon
Thank you Skip and Jacob I'm running a Plan 9 instance through the SDF Bootcamp 
so it's a shared system that I didn't install myself. I'll make sure to reach 
out to the admins because trying to run `mk install` in /sys/src/libc is giving 
me permission errors. 

On Mon, Aug 1, 2022, at 6:53 PM, Skip Tavakkolian wrote:
> in /sys/src
> 
> On Mon, Aug 1, 2022 at 3:51 PM Skip Tavakkolian  
> wrote:
>> generally it's a good idea to rebuild and install changes for all 
>> architectures in your network.
>> something like:
>> for (i in (386 arm amd64 riscv mips)) {
>>  objtype=$i mk install
>> }
>> 
>> 
>> On Mon, Aug 1, 2022 at 2:50 PM Jacob Moody  wrote:
>>> On 8/1/22 15:18, Jag Talon wrote:
>>> > Ah thanks for the tip. I ran `echo $objtype` and it says amd64. I believe 
>>> > 6c is the compiler that I need but it seems to say another error: 
>>> > `??none??: cannot open file: /amd64/lib/libc.a`
>>> 
>>> It's telling you exactly what is wrong, you are missing an amd64 libc 
>>> archive.
>>> I am not sure how you wound up with running an amd64 kernel with an 
>>> incomplete
>>> amd64 install. For building libc again:
>>> 
>>> cd /sys/src/libc/ && mk install && mk clean
>>> 
>>> However, you may be missing more then just libc, in that case may just be 
>>> best to rebuild
>>> the whole system as a second resort.
>>> 
>>> cd /sys/src/ && mk install && mk clean
>>> 
>>> How did you install this system? Did you bootstrap yourself
>>> up from 386?
>>> 
>>> --
>>> moody
> *9fans * / 9fans / see discussions 
>  + participants 
>  + delivery options 
>  Permalink 
> 

--
9fans: 9fans
Permalink: 
https://9fans.topicbox.com/groups/9fans/Te178b97d94173ff8-Mac8d6220dad4f005c1d17561
Delivery options: https://9fans.topicbox.com/groups/9fans/subscription


Re: [9fans] Trouble compiling "Hello, world"

2022-08-01 Thread Skip Tavakkolian
in /sys/src

On Mon, Aug 1, 2022 at 3:51 PM Skip Tavakkolian 
wrote:

> generally it's a good idea to rebuild and install changes for all
> architectures in your network.
> something like:
> for (i in (386 arm amd64 riscv mips)) {
>  objtype=$i mk install
> }
>
>
> On Mon, Aug 1, 2022 at 2:50 PM Jacob Moody  wrote:
>
>> On 8/1/22 15:18, Jag Talon wrote:
>> > Ah thanks for the tip. I ran `echo $objtype` and it says amd64. I
>> believe 6c is the compiler that I need but it seems to say another error:
>> `??none??: cannot open file: /amd64/lib/libc.a`
>> 
>> It's telling you exactly what is wrong, you are missing an amd64 libc
>> archive.
>> I am not sure how you wound up with running an amd64 kernel with an
>> incomplete
>> amd64 install. For building libc again:
>> 
>> cd /sys/src/libc/ && mk install && mk clean
>> 
>> However, you may be missing more then just libc, in that case may just be
>> best to rebuild
>> the whole system as a second resort.
>> 
>> cd /sys/src/ && mk install && mk clean
>> 
>> How did you install this system? Did you bootstrap yourself
>> up from 386?
>> 
>> --
>> moody

--
9fans: 9fans
Permalink: 
https://9fans.topicbox.com/groups/9fans/Te178b97d94173ff8-Me22000ce2ef1c56d4f614ba0
Delivery options: https://9fans.topicbox.com/groups/9fans/subscription


Re: [9fans] Trouble compiling "Hello, world"

2022-08-01 Thread Skip Tavakkolian
generally it's a good idea to rebuild and install changes for all
architectures in your network.
something like:
for (i in (386 arm amd64 riscv mips)) {
 objtype=$i mk install
}


On Mon, Aug 1, 2022 at 2:50 PM Jacob Moody  wrote:

> On 8/1/22 15:18, Jag Talon wrote:
> > Ah thanks for the tip. I ran `echo $objtype` and it says amd64. I
> believe 6c is the compiler that I need but it seems to say another error:
> `??none??: cannot open file: /amd64/lib/libc.a`
> 
> It's telling you exactly what is wrong, you are missing an amd64 libc
> archive.
> I am not sure how you wound up with running an amd64 kernel with an
> incomplete
> amd64 install. For building libc again:
> 
> cd /sys/src/libc/ && mk install && mk clean
> 
> However, you may be missing more then just libc, in that case may just be
> best to rebuild
> the whole system as a second resort.
> 
> cd /sys/src/ && mk install && mk clean
> 
> How did you install this system? Did you bootstrap yourself
> up from 386?
> 
> --
> moody

--
9fans: 9fans
Permalink: 
https://9fans.topicbox.com/groups/9fans/Te178b97d94173ff8-M565bb49ffae694a571843da1
Delivery options: https://9fans.topicbox.com/groups/9fans/subscription


Re: [9fans] Trouble compiling "Hello, world"

2022-08-01 Thread Jacob Moody
On 8/1/22 15:18, Jag Talon wrote:
> Ah thanks for the tip. I ran `echo $objtype` and it says amd64. I believe 6c 
> is the compiler that I need but it seems to say another error: `??none??: 
> cannot open file: /amd64/lib/libc.a`

It's telling you exactly what is wrong, you are missing an amd64 libc archive.
I am not sure how you wound up with running an amd64 kernel with an incomplete
amd64 install. For building libc again:

cd /sys/src/libc/ && mk install && mk clean

However, you may be missing more then just libc, in that case may just be best 
to rebuild
the whole system as a second resort.

cd /sys/src/ && mk install && mk clean


How did you install this system? Did you bootstrap yourself
up from 386?


--
moody

--
9fans: 9fans
Permalink: 
https://9fans.topicbox.com/groups/9fans/Te178b97d94173ff8-Mb5347e194b8afbd0967d8a38
Delivery options: https://9fans.topicbox.com/groups/9fans/subscription


Re: [9fans] Trouble compiling "Hello, world"

2022-08-01 Thread Jag Talon
Ah thanks for the tip. I ran `echo $objtype` and it says amd64. I believe 6c is 
the compiler that I need but it seems to say another error: `??none??: cannot 
open file: /amd64/lib/libc.a`


On Mon, Aug 1, 2022, at 5:02 PM, Jacob Moody wrote:
> You would get that if you are using the wrong compilers for your architecture.
> Check the output of $objtype, unless it's 386 you're using the wrong 
> compilers.
> 2c(1) should have the full list of compilers.
> 
> --
> moody

--
9fans: 9fans
Permalink: 
https://9fans.topicbox.com/groups/9fans/Te178b97d94173ff8-M95e70d0e8f23fa0a37c27d43
Delivery options: https://9fans.topicbox.com/groups/9fans/subscription


Re: [9fans] Trouble compiling "Hello, world"

2022-08-01 Thread Jacob Moody
You would get that if you are using the wrong compilers for your architecture.
Check the output of $objtype, unless it's 386 you're using the wrong compilers.
2c(1) should have the full list of compilers.


--
moody

--
9fans: 9fans
Permalink: 
https://9fans.topicbox.com/groups/9fans/Te178b97d94173ff8-Mef3f8baf231dacf25ad52ba9
Delivery options: https://9fans.topicbox.com/groups/9fans/subscription


[9fans] Trouble compiling "Hello, world"

2022-08-01 Thread Jag Talon
Hello,

New Plan 9 user here from the SDF bootcamp! I'm trying to follow a basic hello 
world tutorial on http://sdf.org/?tutorials/Plan_9_C but I'm running into 
issues with compiling and linking with 8c and 8l.  What is causing a "exec 
header invalid" on such a basic program? I have the commands that I typed in 
the screenshot.

Switching to 6c and 6l doesn't seem to work either I'm getting when I run 6l: 
??none??: cannot open file: /amd64/lib/libc.a

Any advice is appreciated. Thanks!
--
9fans: 9fans
Permalink: 
https://9fans.topicbox.com/groups/9fans/Te178b97d94173ff8-M708b609c9f7e34eab51663e0
Delivery options: https://9fans.topicbox.com/groups/9fans/subscription