Re: pil21 on Mac, some errors

2020-10-26 Thread Mike
October 26, 2020 10:08 AM, "Jon Kleiser"  wrote:

> Hi,
> 
> Yesterday I tried installing pil21 on my Mac, following Mike Pechkin's 
> instructions here:
> 
> https://git.envs.net/mpech/pil21-tests/src/branch/master/INSTALL-.md
> 
> Here’s the output from the last line:
> 
> $ gcc sysdefs.c && ./a.out > ../lib/sysdefs
> sysdefs.c:45:21: error: use of undeclared identifier '_OS'
> printf("# %s\n", _OS);
> ^
> sysdefs.c:46:21: error: use of undeclared identifier '_CPU'
> printf("# %s\n", _CPU);
> ^
> 2 errors generated.
> 
> And here’s the output from my first attempt to use pil:
> 
> $ ../pil
> [../lib/net.l:3] !? (in (or "Alt" "@lib/sysdefs") (if (from (pack "^J[" "Sym" 
> "]^J")) (while (and
> (skip) (<> "[" @)) (def (read) (read))) (quit "No sysdefs" "Sym")))
> "@lib/sysdefs" -- Open error: No such file or directory
> ?
> : (version)
> 21.0.0
> -> (21 0 0)
> : (bye)
> 
> Is there some easy fix to get rid of these errors?
> 

I've updated and tested Macos compilation:
https://git.envs.net/mpech/pil21-tests/commit/fa7dee9050b736ecc9067433e3c0006b71a5e514

In general MacOs platform works except (native) interface.
It requires additional research in portability.

(mike)

--
UNSUBSCRIBE: mailto:picolisp@software-lab.de?subject=Unsubscribe



Re: pil21 on Mac, some errors

2020-10-26 Thread Mike
> I'm not sure, but after I sent Mike's link to another MacOS user, he answered:
> 
> By following his instruction for macOS 10.15, I was able to build/run on Mac.
> I just needed to upgrade homebrew tools, and use GCC-9 for opt assembler.
> 
> No idea what that means, but perhaps you know?
> 

"opt" tool is part of LLVM ecosystem and Pil21 depends only on LLVM.

(mike)

--
UNSUBSCRIBE: mailto:picolisp@software-lab.de?subject=Unsubscribe


Re: pil21 on Mac, some errors

2020-10-26 Thread Mike
> It boils down to: use current versions of your toolchain. On my mint19
> machine i had to manually update llvm from 6(?) to 10 :)
> 

Right, pil21 only works in LLVM7+ environment.

(mike)

--
UNSUBSCRIBE: mailto:picolisp@software-lab.de?subject=Unsubscribe


Re: pil21 on Mac, some errors

2020-10-26 Thread Mike
> Is there some easy fix to get rid of these errors?

Sure, I will try repeat steps from scratch this evening on Mac and will update 
the steps

p.s. BTW, homebrew switched to LLVM11. Lucky pil21 supports and tested on 
LLVM11 too.

(mike)

--
UNSUBSCRIBE: mailto:picolisp@software-lab.de?subject=Unsubscribe


Re: pil21 on Mac, some errors

2020-10-26 Thread Karl-Heinz Kreis
Am Mon, 26 Oct 2020 11:15:02 +0100
schrieb Alexander Burger :

> Hi Jon,
> 
> > Yesterday I tried installing pil21 on my Mac, following Mike
> > Pechkin's instructions here:
> > https://git.envs.net/mpech/pil21-tests/src/branch/master/INSTALL-.md
> > 
> > 
> > Here’s the output from the last line:
> > ...  
> 
> I'm not sure, but after I sent Mike's link to another MacOS user, he
> answered:
> 
>By following his instruction for macOS 10.15, I was able to
> build/run on Mac. I just needed to upgrade homebrew tools, and use
> GCC-9 for opt assembler.
> 
> No idea what that means, but perhaps you know?
> 
> ☺/ A!ex
> 

Hi,

It boils down to: use current versions of your toolchain. On my mint19
machine i had to manually update llvm from 6(?) to 10 :)

Karl-Heinz


pgpJ4yGMGcuFQ.pgp
Description: Digitale Signatur von OpenPGP


pil21 on Mac, some errors

2020-10-26 Thread Jon Kleiser
Hi,

Yesterday I tried installing pil21 on my Mac, following Mike Pechkin's 
instructions here:
https://git.envs.net/mpech/pil21-tests/src/branch/master/INSTALL-.md 


Here’s the output from the last line:

$ gcc sysdefs.c && ./a.out > ../lib/sysdefs
sysdefs.c:45:21: error: use of undeclared identifier '_OS'
   printf("# %s\n", _OS);
^
sysdefs.c:46:21: error: use of undeclared identifier '_CPU'
   printf("# %s\n", _CPU);
^
2 errors generated.

And here’s the output from my first attempt to use pil:

$ ../pil
[../lib/net.l:3] !? (in (or "Alt" "@lib/sysdefs") (if (from (pack "^J[" "Sym" 
"]^J")) (while (and (skip) (<> "[" @)) (def (read) (read))) (quit "No sysdefs" 
"Sym")))
"@lib/sysdefs" -- Open error: No such file or directory
? 
: (version)
21.0.0
-> (21 0 0)
: (bye)

Is there some easy fix to get rid of these errors?

/Jon

Re: PilBox problem

2020-10-26 Thread Alexander Burger
Hi Olaf,

> (does db stuff already work?)

Yes, should all work :)

We spent the last week with the stress tests

   $ ./pil misc/stress.l -main -go -bye

☺/ A!ex

-- 
UNSUBSCRIBE: mailto:picolisp@software-lab.de?subject=Unsubscribe


Re: PilBox problem

2020-10-26 Thread O.Hamann
pilBox REPL:

(version)

-> 21.0.0

nice :-)


(does db stuff already work?)

I always forget how to run the picolisp testsuite ...


On 24.10.20 18:06, Alexander Burger wrote:
> On Fri, Oct 23, 2020 at 04:53:24PM +0200, Alexander Burger wrote:
>> Seems I should release PilBox/21 asap ...
> Done! :)
>
> PilBox is now at PlayStore, with pil21 as core engine.
>
> ☺/ A!ex
>



--
UNSUBSCRIBE: mailto:picolisp@software-lab.de?subject=Unsubscribe


Re: pil21 on Mac, some errors

2020-10-26 Thread Alexander Burger
Hi Jon,

> Yesterday I tried installing pil21 on my Mac, following Mike Pechkin's 
> instructions here:
> https://git.envs.net/mpech/pil21-tests/src/branch/master/INSTALL-.md 
> 
> 
> Here’s the output from the last line:
> ...

I'm not sure, but after I sent Mike's link to another MacOS user, he answered:

   By following his instruction for macOS 10.15, I was able to build/run on Mac.
   I just needed to upgrade homebrew tools, and use GCC-9 for opt assembler.

No idea what that means, but perhaps you know?

☺/ A!ex

-- 
UNSUBSCRIBE: mailto:picolisp@software-lab.de?subject=Unsubscribe