Re: building on macos

2022-05-28 Thread Alexander Burger
On Sun, May 29, 2022 at 01:04:19PM +0900, Jean-Christophe Helary wrote:
> >> lib.c:119:4: error: use of undeclared identifier 'rl_catch_signals'
> >>   rl_catch_signals = 0;
> >>   ^
> >> lib.c:121:4: error: use of undeclared identifier 'rl_input_available_hook'
> >>   rl_input_available_hook = rlAvail;
> >>   ^
> >> ...
> > 
> > They are all from the readline library.
> 
> Would there be a version issue ?

Could be, but I cannot really believe that all these identifiers are so very new
in readline.


Also, why is ffi.h missing?

> lib.c:612:10: fatal error: 'ffi.h' file not found
> #include 
>  ^~~

Isn't libffi-dev installed? If so, is there something wrong with the include
path (which might also explain the readline problems perhaps).

☺/ A!ex

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


Re: building on macos

2022-05-28 Thread Jean-Christophe Helary



> On May 29, 2022, at 5:10, Alexander Burger  wrote:
> 
> Hi Jean-Christophe,
> 
>> lib.c:119:4: error: use of undeclared identifier 'rl_catch_signals'
>>   rl_catch_signals = 0;
>>   ^
>> lib.c:121:4: error: use of undeclared identifier 'rl_input_available_hook'
>>   rl_input_available_hook = rlAvail;
>>   ^
>> ...
> 
> They are all from the readline library.

Would there be a version issue ?

JC

-- 
Jean-Christophe Helary @brandelune
https://mac4translators.blogspot.com
https://sr.ht/~brandelune/omegat-as-a-book/


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


Re: building on macos

2022-05-28 Thread Alexander Burger
Hi Jean-Christophe,

> lib.c:119:4: error: use of undeclared identifier 'rl_catch_signals'
>rl_catch_signals = 0;
>^
> lib.c:121:4: error: use of undeclared identifier 'rl_input_available_hook'
>rl_input_available_hook = rlAvail;
>^
> ...

They are all from the readline library.

☺/ A!ex

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


Re: building on macos

2022-05-28 Thread Jean-Christophe Helary



> On May 29, 2022, at 4:16, Mike  wrote:
> 
>> 
>> ➜ pil21+ git:(master) ✗ (cd src; make)
>> /opt/local/libexec/llvm-10/bin/llvm-link: lib.bc: error: Unknown attribute 
>> kind (68) (Producer: 'APPLE_1_1300.0.29.30_0' Reader: 'LLVM 10.0.1')
>> /opt/local/libexec/llvm-10/bin/llvm-link: error: loading file 'lib.bc'
>> make: *** [picolisp.bc] Error 1
>> ➜ pil21+ git:(master) ✗
>> 
> 
> you are compiling by builtin version of LLVM and linking from port.
> try to run these:
> ===
> $ cd pil21/src
> $ rm *.bc
> $ make
> ===


➜  pil21+ git:(master) ✗ cd src
➜  src git:(master) ✗ rm *.bc
➜  src git:(master) ✗ make
/bin/sh: pkg-config: command not found
lib.c:119:4: error: use of undeclared identifier 'rl_catch_signals'
   rl_catch_signals = 0;
   ^
lib.c:121:4: error: use of undeclared identifier 'rl_input_available_hook'
   rl_input_available_hook = rlAvail;
   ^
lib.c:124:4: error: use of undeclared identifier 'rl_basic_quote_characters'
   rl_basic_quote_characters = NULL;
   ^
lib.c:136:56: error: use of undeclared identifier 'rl_readline_state'
   if (rl_readline_state & RL_STATE_INITIALIZED  &&  !(rl_readline_state & 
RL_STATE_DONE)) {
   ^
lib.c:136:76: error: use of undeclared identifier 'RL_STATE_DONE'
   if (rl_readline_state & RL_STATE_INITIALIZED  &&  !(rl_readline_state & 
RL_STATE_DONE)) {
   ^
lib.c:136:8: error: use of undeclared identifier 'rl_readline_state'
   if (rl_readline_state & RL_STATE_INITIALIZED  &&  !(rl_readline_state & 
RL_STATE_DONE)) {
   ^
lib.c:136:28: error: use of undeclared identifier 'RL_STATE_INITIALIZED'
   if (rl_readline_state & RL_STATE_INITIALIZED  &&  !(rl_readline_state & 
RL_STATE_DONE)) {
   ^
lib.c:143:56: error: use of undeclared identifier 'rl_readline_state'
   if (rl_readline_state & RL_STATE_INITIALIZED  &&  !(rl_readline_state & 
RL_STATE_DONE))
   ^
lib.c:143:76: error: use of undeclared identifier 'RL_STATE_DONE'
   if (rl_readline_state & RL_STATE_INITIALIZED  &&  !(rl_readline_state & 
RL_STATE_DONE))
   ^
lib.c:143:8: error: use of undeclared identifier 'rl_readline_state'
   if (rl_readline_state & RL_STATE_INITIALIZED  &&  !(rl_readline_state & 
RL_STATE_DONE))
   ^
lib.c:143:28: error: use of undeclared identifier 'RL_STATE_INITIALIZED'
   if (rl_readline_state & RL_STATE_INITIALIZED  &&  !(rl_readline_state & 
RL_STATE_DONE))
   ^
lib.c:148:8: error: use of undeclared identifier 'rl_readline_state'
   if (rl_readline_state & RL_STATE_INITIALIZED) {
   ^
lib.c:148:28: error: use of undeclared identifier 'RL_STATE_INITIALIZED'
   if (rl_readline_state & RL_STATE_INITIALIZED) {
   ^
lib.c:156:8: error: use of undeclared identifier 'rl_readline_state'
   if (rl_readline_state & RL_STATE_SIGHANDLER) {
   ^
lib.c:156:28: error: use of undeclared identifier 'RL_STATE_SIGHANDLER'
   if (rl_readline_state & RL_STATE_SIGHANDLER) {
   ^
lib.c:612:10: fatal error: 'ffi.h' file not found
#include 
 ^~~
16 errors generated.
make: *** [lib.bc] Error 1


-- 
Jean-Christophe Helary @brandelune
https://mac4translators.blogspot.com
https://sr.ht/~brandelune/omegat-as-a-book/


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


Re: building on macos

2022-05-28 Thread Jean-Christophe Helary
I've just reinstalled my whole macport and I still have the same error.


➜  pil21+ git:(master) ✗ port installed   
The following ports are currently installed:
  bzip2 @1.0.8_0 (active)
  gettext-runtime @0.21_0 (active)
  icu @67.1_4 (active)
  libcxx @5.0.1_4 (active)
  libedit @20210910-3.1_1 (active)
  libffi @3.4.2_2 (active)
  libiconv @1.17_0 (active)
  libxml2 @2.9.14_0 (active)
  llvm-10 @10.0.1_3+emulated_tls (active)
  llvm_select @2_0 (active)
  ncurses @6.3_0 (active)
  openssl @3_4 (active)
  openssl3 @3.0.3_0+legacy (active)
  readline @8.1.2.000_0 (active)
  xar @1.8.0.487.100.1_0 (active)
  xz @5.2.5_1 (active)
  zlib @1.2.12_1 (active)
➜  pil21+ git:(master) ✗ brew list
==> Formulae
➜  pil21+ git:(master) ✗ sudo port select --set llvm mp-llvm-10 
  
Selecting 'mp-llvm-10' for 'llvm' succeeded. 'mp-llvm-10' is now active.
➜  pil21+ git:(master) ✗ (cd src; make)
/opt/local/libexec/llvm-10/bin/llvm-link: lib.bc: error: Unknown attribute kind 
(68) (Producer: 'APPLE_1_1300.0.29.30_0' Reader: 'LLVM 10.0.1')
/opt/local/libexec/llvm-10/bin/llvm-link: error:  loading file 'lib.bc'
make: *** [picolisp.bc] Error 1
➜  pil21+ git:(master) ✗ 

JC

> On May 29, 2022, at 1:04, Jean-Christophe Helary  
> wrote:
> 
> 
> 
>> On May 29, 2022, at 0:16, Mike  wrote:
>> 
>>> 
>>> Probably an incompatibility between Brew and Macport.
>> 
>> Correct, i already wrote about this incompatibility and this is what error 
>> message says. 
> 
> 
> I just removed my whole brew install and I get the same error:
> 
> ➜  pil21+ git:(master) ✗ brew list
> ==> Formulae
> ➜  pil21+ git:(master) ✗ port installed
> The following ports are currently installed:
>  bzip2 @1.0.8_0 (active)
>  docbook-xml-4.5 @5.0_1 (active)
>  gettext-runtime @0.21_0 (active)
>  gettext-tools-libs @0.21_0 (active)
>  icu @67.1_4 (active)
>  libcxx @5.0.1_4 (active)
>  libedit @20210910-3.1_1 (active)
>  libffi @3.4.2_2 (active)
>  libiconv @1.16_1
>  libiconv @1.17_0 (active)
>  libtextstyle @0.21_0 (active)
>  libxml2 @2.9.12_1
>  libxml2 @2.9.13_0
>  libxml2 @2.9.14_0 (active)
>  llvm-10 @10.0.1_3+emulated_tls (active)
>  llvm_select @2_0 (active)
>  ncurses @6.3_0 (active)
>  openssl @3_4 (active)
>  openssl3 @3.0.3_0+legacy (active)
>  readline @8.1.2.000_0 (active)
>  xar @1.8.0.487.100.1_0 (active)
>  xmlcatmgr @2.2_1 (active)
>  xz @5.2.5_1 (active)
>  zlib @1.2.11_0
>  zlib @1.2.12_1 (active)
> ➜  pil21+ git:(master) ✗ (cd src; make)
> /opt/local/libexec/llvm-10/bin/llvm-link: lib.bc: error: Unknown attribute 
> kind (68) (Producer: 'APPLE_1_1300.0.29.30_0' Reader: 'LLVM 10.0.1')
> /opt/local/libexec/llvm-10/bin/llvm-link: error:  loading file 'lib.bc'
> make: *** [picolisp.bc] Error 1
> ➜  pil21+ git:(master) ✗ 
> 
> -- 
> Jean-Christophe Helary @brandelune
> https://mac4translators.blogspot.com
> https://sr.ht/~brandelune/omegat-as-a-book/
> 
> 
> --
> UNSUBSCRIBE: mailto:picolisp@software-lab.de?subject=Unsubscribe

-- 
Jean-Christophe Helary @brandelune
https://mac4translators.blogspot.com
https://sr.ht/~brandelune/omegat-as-a-book/


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


Re: building on macos

2022-05-28 Thread Jean-Christophe Helary



> On May 29, 2022, at 0:16, Mike  wrote:
> 
>> 
>> Probably an incompatibility between Brew and Macport.
> 
> Correct, i already wrote about this incompatibility and this is what error 
> message says. 


I just removed my whole brew install and I get the same error:

➜  pil21+ git:(master) ✗ brew list
==> Formulae
➜  pil21+ git:(master) ✗ port installed
The following ports are currently installed:
  bzip2 @1.0.8_0 (active)
  docbook-xml-4.5 @5.0_1 (active)
  gettext-runtime @0.21_0 (active)
  gettext-tools-libs @0.21_0 (active)
  icu @67.1_4 (active)
  libcxx @5.0.1_4 (active)
  libedit @20210910-3.1_1 (active)
  libffi @3.4.2_2 (active)
  libiconv @1.16_1
  libiconv @1.17_0 (active)
  libtextstyle @0.21_0 (active)
  libxml2 @2.9.12_1
  libxml2 @2.9.13_0
  libxml2 @2.9.14_0 (active)
  llvm-10 @10.0.1_3+emulated_tls (active)
  llvm_select @2_0 (active)
  ncurses @6.3_0 (active)
  openssl @3_4 (active)
  openssl3 @3.0.3_0+legacy (active)
  readline @8.1.2.000_0 (active)
  xar @1.8.0.487.100.1_0 (active)
  xmlcatmgr @2.2_1 (active)
  xz @5.2.5_1 (active)
  zlib @1.2.11_0
  zlib @1.2.12_1 (active)
➜  pil21+ git:(master) ✗ (cd src; make)
/opt/local/libexec/llvm-10/bin/llvm-link: lib.bc: error: Unknown attribute kind 
(68) (Producer: 'APPLE_1_1300.0.29.30_0' Reader: 'LLVM 10.0.1')
/opt/local/libexec/llvm-10/bin/llvm-link: error:  loading file 'lib.bc'
make: *** [picolisp.bc] Error 1
➜  pil21+ git:(master) ✗ 

-- 
Jean-Christophe Helary @brandelune
https://mac4translators.blogspot.com
https://sr.ht/~brandelune/omegat-as-a-book/


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


Re: building on macos

2022-05-28 Thread Jean-Christophe Helary
Thank you Andras for the Makefile.


I get the same message as with Mike's Makefile, so I suppose there is an issue 
with my system...

Probably an incompatibility between Brew and Macport.

I'm going to thoroughly check that.



JC

> On May 28, 2022, at 22:57, Andras Pahi  wrote:
> 
> Hi,
> 
> I use the following Makefile to build pil21 on macOS Mojave (10.14.6) x86_64,
> libreadline, libffi and OpenSSL 3 is used from MacPorts.
> 
> I have checked with picoLisp-22.3.tgz version 22.3.16
> and pil21.tgz (the rolling release) version 22.5.26.
> 
> Regards,
> Andras Pahi
> 
> ~~ cut here ~~
> 
> # 24dec20 Software Lab. Alexander Burger
> 
> SILENT:
> 
> CC = clang
> PIL = ../pil  # pil
> ASM = opt -O3  # llvm-as
> MAIN = -rdynamic -lc -lm -ldl -L/opt/local/lib -lreadline -lffi
> # SHARED = -shared
> SHARED = -dynamiclib -undefined dynamic_lookup
> OS = $(shell uname)
> CPU = $(shell uname -m)
> 
> BIN = ../bin
> LIB = ../lib
> 
> INC = lib/llvm.l vers.l defs.l glob.l dec.l
> SRC = main.l gc.l big.l sym.l io.l db.l apply.l flow.l subr.l
> 
> all: $(LIB)/sysdefs $(BIN)/picolisp $(LIB)/ext.so $(LIB)/ht.so $(BIN)/balance 
> $(BIN)/ssl $(BIN)/httpGate
> 
> # System definitions
> $(LIB)/sysdefs: sysdefs.c
>   $(CC) -w -D_OS='"$(OS)"' -D_CPU='"$(CPU)"' sysdefs.c  &&  /a.out > 
> $(LIB)/sysdefs  &&  rm ./a.out
> 
> # Base system
> $(BIN)/picolisp: picolisp.bc
>   mkdir -p $(BIN) $(LIB)
>   llc picolisp.bc -relocation-model=pic -o picolisp.s
>   $(CC) picolisp.s -o $(BIN)/picolisp $(MAIN)
> 
> picolisp.bc: base.bc lib.bc
>   llvm-link -o picolisp.bc base.bc lib.bc
> 
> base.bc: base.ll
>   $(ASM) -o base.bc base.ll
> 
> base.ll: $(INC) $(SRC)
>   $(PIL) lib/llvm.l main.l -bye > base.ll
>   mv base.map $(LIB)/map
> 
> lib.bc: pico.h lib.c
>   $(CC) -O3 -w -c -D_OS='"$(OS)"' -D_CPU='"$(CPU)"' `pkg-config --cflags 
> libffi` -emit-llvm lib.c
> 
> # Extension libraries
> $(LIB)/ext.so: ext.bc
>   llc ext.bc -relocation-model=pic -o ext.s
>   $(CC) ext.s -o $(LIB)/ext.so $(SHARED)
> 
> ext.bc: ext.ll
>   $(ASM) -o ext.bc ext.ll
> 
> ext.ll: $(INC) ext.l
>   $(PIL) lib/llvm.l ext.l -bye > ext.ll
> 
> $(LIB)/ht.so: ht.bc
>   llc ht.bc -relocation-model=pic -o ht.s
>   $(CC) ht.s -o $(LIB)/ht.so $(SHARED)
> 
> ht.bc: ht.ll
>   $(ASM) -o ht.bc ht.ll
> 
> ht.ll: $(INC) ht.l
>   $(PIL) lib/llvm.l ht.l -bye > ht.ll
> 
> # Tools
> $(BIN)/balance: balance.c
>   $(CC) -O3 -w -o $(BIN)/balance balance.c
> 
> # Gate
> $(BIN)/ssl: ssl.c
>   $(CC) -O3 -w -o $(BIN)/ssl ssl.c -I/opt/local/include -L/opt/local/lib 
> -lssl -lcrypto
> 
> $(BIN)/httpGate: httpGate.c
>   $(CC) -O3 -w -o $(BIN)/httpGate httpGate.c -I/opt/local/include 
> -L/opt/local/lib -lssl -lcrypto
> 
> # Clean up
> clean:
>   rm -f *.ll *.bc *.s
> 
> ~~ cut here ~~
> 
>> On 2022. May 28., at 14:02, Jean-Christophe Helary 
>>  wrote:
>> 
>> 
>> 
>>> On May 28, 2022, at 19:24, Mike  wrote:
>>> 
>>> 
>>> 
 On May 28, 2022, at 13:13, Jean-Christophe Helary 
  wrote:
 
 
 
> On May 25, 2022, at 18:45, Mike  wrote:
> 
> hi all,
> 
>> They used to work (I have a working build of pil21 21.9.3), but they 
>> don't anymore.
>> Maybe there is something wrong with my system but I have no idea what it 
>> is.
> 
> Did you built picolisp?
 
 How would I go about building picolisp ?
 
>>> I do not know were you stuck.
>> 
>> At the time of 21.9.3 I was able to build the system according to the 
>> instructions here:
>> 
>> https://picolisp.com/wiki/?alternativeMacOSRepository
>> 
>> Now that generates the following error message:
>> 
>> /opt/local/libexec/llvm-10/bin/llvm-link: lib.bc: error: Unknown attribute 
>> kind (68) (Producer: 'APPLE_1_1300.0.29.30_0' Reader: 'LLVM 10.0.1')
>> /opt/local/libexec/llvm-10/bin/llvm-link: error:  loading file 'lib.bc'
>> make: *** [picolisp.bc] Error 1
>> 
>> That's where I am stuck.
>> 
>> 
>> 
>> -- 
>> Jean-Christophe Helary @brandelune
>> https://mac4translators.blogspot.com
>> https://sr.ht/~brandelune/omegat-as-a-book/
>> 
>> 
>> --
>> UNSUBSCRIBE: mailto:picolisp@software-lab.de?subject=Unsubscribe
> 
> 
> --
> UNSUBSCRIBE: mailto:picolisp@software-lab.de?subject=Unsubscribe

-- 
Jean-Christophe Helary @brandelune
https://mac4translators.blogspot.com
https://sr.ht/~brandelune/omegat-as-a-book/


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


New 'input' and 'output' functions

2022-05-28 Thread Alexander Burger
Hi all,

with version 22.5.26 PicoLisp has two new powerful functions: 'input' and
'output' (haha, no kidding!).

They offer some quite interesting possibilities.

See the references at https://software-lab.de/doc/refI.html#input and
https://software-lab.de/doc/refO.html#output

They operate on the character level. Both take an 'exe', which should return the
next char on input, or receive a char (and optionally the next look-ahead char)
to be output (or handled in some other way).

'output', for example, could convert everything to upper case

   : (output (prin (uppc @@))
  (prinl "abc") )
   ABC

Or insert a carriage return before every linefeed unless it is not already
present:

   (output
  (cond
 ((= "\n" @@)
(prin "\r\n") )
 ((nand (= "\n" @@@) (= "\r" @@))
(prin @@) ) )
  ... printing code ... )



We often had the question how to "print" into a string. Until now this was not
really possible, except with the hardcoded conversion functions 'any', 'sym'
and 'str'.

Now, with 'output', we can do that:

   : (pack
  (make
 (output (link @@)
(print '(+ 2 (* 3 4))) ) ) )
   -> "(+ 2 (* 3 4))"

The same goes for 'input':

   : (let S (chop "(+ 2 (* 3 4))")
  (input (++ S)
 (read) ) )
   -> (+ 2 (* 3 4))


Of course these functions can be nested in 'in' and 'out' calls and thus work as
filters, or even nest themselves:

   : (let S (chop "ABC")
  (input (++ S)
 (input (and (char) (char (inc (char @
(while (char)
   (println @) ) ) ) )
   "B"
   "C"
   "D"
   -> "D"

   : (output (prin (uppc @@))
  (output (println @@ @@@)
 (prin "abc") ) )
   "A" "B"
   "B" "C"
   "C" NIL
   -> "abc"

These are a bit nonrealistic examples, but a real use case is e.g. in
'serverSend', which needs to put the String "data: " before each line of HTML
output (see @lib/xhtml.l):

   (de serverSend (Sock . Prg)
  (when Sock
 (out @
(ht:Out (bool *Chunked)
   (prin "data: ")
   (output
  (cond
 ((<> "\n" @@) (prin @@))
 (@@@ (prin "\ndata: ")) )
  (htPrin Prg 2) )
   (prinl "\n") ) ) ) )

   : (serverSend 1
  ( NIL NIL NIL
 ( NIL 123 "abc") ) )
   data: 
   data: 
   data: 123
   data: abc
   data: 
   data: 

Let's explore the chances and limits of these concepts!

☺/ A!ex

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


Re: building on macos

2022-05-28 Thread Andras Pahi
Hi,

I use the following Makefile to build pil21 on macOS Mojave (10.14.6) x86_64,
libreadline, libffi and OpenSSL 3 is used from MacPorts.

I have checked with picoLisp-22.3.tgz version 22.3.16
and pil21.tgz (the rolling release) version 22.5.26.

Regards,
Andras Pahi

~~ cut here ~~

# 24dec20 Software Lab. Alexander Burger

SILENT:

CC = clang
PIL = ../pil  # pil
ASM = opt -O3  # llvm-as
MAIN = -rdynamic -lc -lm -ldl -L/opt/local/lib -lreadline -lffi
# SHARED = -shared
SHARED = -dynamiclib -undefined dynamic_lookup
OS = $(shell uname)
CPU = $(shell uname -m)

BIN = ../bin
LIB = ../lib

INC = lib/llvm.l vers.l defs.l glob.l dec.l
SRC = main.l gc.l big.l sym.l io.l db.l apply.l flow.l subr.l

all: $(LIB)/sysdefs $(BIN)/picolisp $(LIB)/ext.so $(LIB)/ht.so $(BIN)/balance 
$(BIN)/ssl $(BIN)/httpGate

# System definitions
$(LIB)/sysdefs: sysdefs.c
$(CC) -w -D_OS='"$(OS)"' -D_CPU='"$(CPU)"' sysdefs.c  &&  /a.out > 
$(LIB)/sysdefs  &&  rm ./a.out

# Base system
$(BIN)/picolisp: picolisp.bc
mkdir -p $(BIN) $(LIB)
llc picolisp.bc -relocation-model=pic -o picolisp.s
$(CC) picolisp.s -o $(BIN)/picolisp $(MAIN)

picolisp.bc: base.bc lib.bc
llvm-link -o picolisp.bc base.bc lib.bc

base.bc: base.ll
$(ASM) -o base.bc base.ll

base.ll: $(INC) $(SRC)
$(PIL) lib/llvm.l main.l -bye > base.ll
mv base.map $(LIB)/map

lib.bc: pico.h lib.c
$(CC) -O3 -w -c -D_OS='"$(OS)"' -D_CPU='"$(CPU)"' `pkg-config --cflags 
libffi` -emit-llvm lib.c

# Extension libraries
$(LIB)/ext.so: ext.bc
llc ext.bc -relocation-model=pic -o ext.s
$(CC) ext.s -o $(LIB)/ext.so $(SHARED)

ext.bc: ext.ll
$(ASM) -o ext.bc ext.ll

ext.ll: $(INC) ext.l
$(PIL) lib/llvm.l ext.l -bye > ext.ll

$(LIB)/ht.so: ht.bc
llc ht.bc -relocation-model=pic -o ht.s
$(CC) ht.s -o $(LIB)/ht.so $(SHARED)

ht.bc: ht.ll
$(ASM) -o ht.bc ht.ll

ht.ll: $(INC) ht.l
$(PIL) lib/llvm.l ht.l -bye > ht.ll

# Tools
$(BIN)/balance: balance.c
$(CC) -O3 -w -o $(BIN)/balance balance.c

# Gate
$(BIN)/ssl: ssl.c
$(CC) -O3 -w -o $(BIN)/ssl ssl.c -I/opt/local/include -L/opt/local/lib 
-lssl -lcrypto

$(BIN)/httpGate: httpGate.c
$(CC) -O3 -w -o $(BIN)/httpGate httpGate.c -I/opt/local/include 
-L/opt/local/lib -lssl -lcrypto

# Clean up
clean:
rm -f *.ll *.bc *.s

~~ cut here ~~

> On 2022. May 28., at 14:02, Jean-Christophe Helary 
>  wrote:
> 
> 
> 
>> On May 28, 2022, at 19:24, Mike  wrote:
>> 
>> 
>> 
>>> On May 28, 2022, at 13:13, Jean-Christophe Helary 
>>>  wrote:
>>> 
>>> 
>>> 
 On May 25, 2022, at 18:45, Mike  wrote:
 
 hi all,
 
> They used to work (I have a working build of pil21 21.9.3), but they 
> don't anymore.
> Maybe there is something wrong with my system but I have no idea what it 
> is.
 
 Did you built picolisp?
>>> 
>>> How would I go about building picolisp ?
>>> 
>> I do not know were you stuck.
> 
> At the time of 21.9.3 I was able to build the system according to the 
> instructions here:
> 
> https://picolisp.com/wiki/?alternativeMacOSRepository
> 
> Now that generates the following error message:
> 
> /opt/local/libexec/llvm-10/bin/llvm-link: lib.bc: error: Unknown attribute 
> kind (68) (Producer: 'APPLE_1_1300.0.29.30_0' Reader: 'LLVM 10.0.1')
> /opt/local/libexec/llvm-10/bin/llvm-link: error:  loading file 'lib.bc'
> make: *** [picolisp.bc] Error 1
> 
> That's where I am stuck.
> 
> 
> 
> -- 
> Jean-Christophe Helary @brandelune
> https://mac4translators.blogspot.com
> https://sr.ht/~brandelune/omegat-as-a-book/
> 
> 
> --
> UNSUBSCRIBE: mailto:picolisp@software-lab.de?subject=Unsubscribe


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


Re: building on macos

2022-05-28 Thread Jean-Christophe Helary



> On May 28, 2022, at 19:24, Mike  wrote:
> 
> 
> 
>> On May 28, 2022, at 13:13, Jean-Christophe Helary 
>>  wrote:
>> 
>> 
>> 
>>> On May 25, 2022, at 18:45, Mike  wrote:
>>> 
>>> hi all,
>>> 
 They used to work (I have a working build of pil21 21.9.3), but they don't 
 anymore.
 Maybe there is something wrong with my system but I have no idea what it 
 is.
>>> 
>>> Did you built picolisp?
>> 
>> How would I go about building picolisp ?
>> 
> I do not know were you stuck.

At the time of 21.9.3 I was able to build the system according to the 
instructions here:

https://picolisp.com/wiki/?alternativeMacOSRepository

Now that generates the following error message:

/opt/local/libexec/llvm-10/bin/llvm-link: lib.bc: error: Unknown attribute kind 
(68) (Producer: 'APPLE_1_1300.0.29.30_0' Reader: 'LLVM 10.0.1')
/opt/local/libexec/llvm-10/bin/llvm-link: error:  loading file 'lib.bc'
make: *** [picolisp.bc] Error 1

That's where I am stuck.



-- 
Jean-Christophe Helary @brandelune
https://mac4translators.blogspot.com
https://sr.ht/~brandelune/omegat-as-a-book/


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


Re: building on macos

2022-05-28 Thread Jean-Christophe Helary



> On May 25, 2022, at 18:45, Mike  wrote:
> 
> hi all,
> 
>> They used to work (I have a working build of pil21 21.9.3), but they don't 
>> anymore.
>> Maybe there is something wrong with my system but I have no idea what it is.
> 
> Did you built picolisp?

How would I go about building picolisp ?

By the way, do we agree that you have a working picolisp installation on macos ?

-- 
Jean-Christophe Helary @brandelune
https://mac4translators.blogspot.com
https://sr.ht/~brandelune/omegat-as-a-book/


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