Re: Trying to build pil64 on Raspberry Pi

2016-01-05 Thread Tomas Hlavaty
Hi Jon,

> just wanted to try if 64-bit PicoLisp could run on this Pi Zero, but I

Pi is 32 bit.  64 bit picolisp doesn't work there.  You could try
ersatz.  32 bit picolisp works, you just need to fix makefile manually
yourself.  If you search this mailing list, you'll find out how to
achieve this.

Cheers,

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


Re: Trying to build pil64 on Raspberry Pi

2016-01-05 Thread Alexander Williams
Hi Jon,

The RPi zero has armv6 architecture, which is 32-bit - so there's no way to
run the 64-bit PicoLisp.

Here's a patch and instructions to compile the 32-bit picolisp on ARM:

  https://gist.github.com/aw/714d1840bbabb782ecb2


AW

On Tue, Jan 5, 2016 at 8:20 AM, Jon Kleiser  wrote:

> Hi,
>
> Just before Xmas I got the brand new Raspberry Pi Zero, a tiny computer on
> a tiny card, costing $5. It has got a Broadcom BCM2835 processor (1GHz
> ARM11 core), 512MB of LPDDR2 SDRAM, and is capable of running a lot of
> useful software (browser, mail, Python, Java).
>
> 
> 
>
> As I don’t know much about the different kinds of ARM processors, I just
> wanted to try if 64-bit PicoLisp could run on this Pi Zero, but I may have
> been a little too optimistic. This is what I got:
>
> pi@raspberrypi:~/PicoLisp/picoLisp $ (cd src64; make)
> cc -o sysdefs -D_FILE_OFFSET_BITS=64 sysdefs.c
> strip sysdefs
> ./mkAsm emu "" .c Linux base "" ../lib/map  version.l glob.l main.l gc.l
> apply.l flow.l sym.l subr.l big.l io.l db.l net.l err.l sys/emu.code.l
> cc -c -O -fomit-frame-pointer -D_FILE_OFFSET_BITS=64 emu.base.c
> cc -o ../bin/picolisp emu.base.o -Wl,--no-as-needed -rdynamic -lc -lm -ldl
> strip ../bin/picolisp
> ./mkAsm emu "" .c Linux ext T ""  ext.l
> ^CMakefile:145: recipe for target 'emu.ext.c' failed
> make: *** [emu.ext.c] Interrupt
>
> I had to Ctrl-C after it had been “busy” (100% CPU) for a few hours.
>
> Building 32-bit PicoLisp wasn’t any more successful, but Ersatz ran fine
> without complains. ;-)
>
> /Jon


Re: Trying to build pil64 on Raspberry Pi

2016-01-05 Thread Jon Kleiser
Hi AW,

Thanks for the patch info! I’ll try it.

/Jon

> On 5. Jan, 2016, at 11:02, Alexander Williams  wrote:
> 
> Hi Jon,
> 
> The RPi zero has armv6 architecture, which is 32-bit - so there's no way to 
> run the 64-bit PicoLisp.
> 
> Here's a patch and instructions to compile the 32-bit picolisp on ARM:
> 
>   https://gist.github.com/aw/714d1840bbabb782ecb2
> 
> 
> AW
> 
> On Tue, Jan 5, 2016 at 8:20 AM, Jon Kleiser  wrote:
> Hi,
> 
> Just before Xmas I got the brand new Raspberry Pi Zero, a tiny computer on a 
> tiny card, costing $5. It has got a Broadcom BCM2835 processor (1GHz ARM11 
> core), 512MB of LPDDR2 SDRAM, and is capable of running a lot of useful 
> software (browser, mail, Python, Java).
> 
> 
> 
> 
> As I don’t know much about the different kinds of ARM processors, I just 
> wanted to try if 64-bit PicoLisp could run on this Pi Zero, but I may have 
> been a little too optimistic. This is what I got:
> 
> pi@raspberrypi:~/PicoLisp/picoLisp $ (cd src64; make)
> cc -o sysdefs -D_FILE_OFFSET_BITS=64 sysdefs.c
> strip sysdefs
> /mkAsm emu "" .c Linux base "" ../lib/map  version.l glob.l main.l gc.l 
> apply.l flow.l sym.l subr.l big.l io.l db.l net.l err.l sys/emu.code.l
> cc -c -O -fomit-frame-pointer -D_FILE_OFFSET_BITS=64 emu.base.c
> cc -o ../bin/picolisp emu.base.o -Wl,--no-as-needed -rdynamic -lc -lm -ldl
> strip ../bin/picolisp
> /mkAsm emu "" .c Linux ext T ""  ext.l
> ^CMakefile:145: recipe for target 'emu.ext.c' failed
> make: *** [emu.ext.c] Interrupt
> 
> I had to Ctrl-C after it had been “busy” (100% CPU) for a few hours.
> 
> Building 32-bit PicoLisp wasn’t any more successful, but Ersatz ran fine 
> without complains. ;-)
> 
> /Jon
>