Re: building on macos

2023-08-14 Thread l@tlo



> On Aug 14, 2023, at 15:15, l@tlo  wrote:
> 
> One year later...
> 
> (I don't even remember sending that older mail... )
> 
> 
> Building on macOS (13) seems to work fine with the following instructions:
> 
> https://picolisp.com/wiki/?alternativeMacOSRepository

I just noticed the reply by Louis Abraham:

https://picolisp.com/wiki/-A725.html

For readability it might be better to merge the two documents into one: the 
brew style and the macport style.

Louis, you seem to mean that your version works with M1 machines. Have you 
tried it on Intel machines?

JC

> 
> *and*
> 
> Mike's Makefile here:
> 
> https://git.envs.net/mpech/pil21-tests/raw/branch/master/Makefile.macos
> 
> 
> One question to Mike:
> 
> Would it be possible that you merge your makefile with Alex's most recent and 
> add conditionals to check whether the system is macOS?
> 
> That way, we would not need any special instructions to build on macOS :)
> 
> 
> If not, I'll update the instructions and will add a link to your Makefile.
> 
> 
> And then, Mia's blog article could be updated to reflect the current status :)
> 
> https://picolisp-explored.com/how-to-install-picolisp
> 
> 
> Jean-Christophe
> 
>> On May 30, 2022, at 13:39, Jean-Christophe Helary 
>>  wrote:
>> 
>> 
>> 
>>> On May 30, 2022, at 18:18, Alexander Burger  wrote:
>>> 
>>> Hi Jean-Christophe,
>>> 
>>>> It looks like I'm slowly getting somewhere...
>>>> ...
>>> 
>>> Great! :)
>>> 
>>> 
>>>> ./pil: line 2: exec: 
>>>> /Users/suzume/Documents/Repositories/pil21+/src/../bin/picolisp: cannot 
>>>> execute: No such file or directory
>>> 
>>> That's an easy one. It tries to bootstrap, but bin/picolisp does not exist 
>>> yet.
>>> For that reason the pre-build *.ll files are included in the distro. Just
>>> (re)install these.
>> 
>> Yes, but now, I'm back to my readline errors...
>> 
>> ➜  pil21+ git:(master) ✗ (cd src; make)
>> clang -O3 -w -c -o lib.bc -D_OS='"Darwin"' -D_CPU='"x86_64"' `pkg-config 
>> --cflags libffi` -emit-llvm lib.c
>> 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;
>>  ^
>> 
>> (etc.)
>> 
>> I'm using this in .profile:
>> 
>> ## libffi
>> export PKG_CONFIG_PATH="/usr/local/opt/libffi/lib/pkgconfig:$PKG_CONFIG_PATH"
>> export LDFLAGS="-L/usr/local/opt/libffi/lib:$LDFLAGS"
>> export CPPFLAGS="-I/usr/local/opt/libffi/include:$CPPFLAGS"
>> 
>> ## openssl
>> export PATH="/usr/local/opt/openssl@3/bin:$PATH"
>> export LDFLAGS="-L/usr/local/opt/openssl@3/lib:$LDFLAGS"
>> export CPPFLAGS="-I/usr/local/opt/openssl@3/include:$CPPFLAGS"
>> 
>> ## readline
>> export 
>> PKG_CONFIG_PATH="/usr/local/opt/readline/lib/pkgconfig:$PKG_CONFIG_PATH"
>> export LDFLAGS="-L/usr/local/opt/readline/lib:$LDFLAGS"
>> export CPPFLAGS="-I/usr/local/opt/readline/include:$CPPFLAGS"
>> 
>> ## llvm
>> export PATH="/usr/local/opt/llvm@11/bin:$PATH"
>> export LDFLAGS="-L/usr/local/opt/llvm@11/lib:$LDFLAGS"
>> export CPPFLAGS="-I/usr/local/opt/llvm@11/include:$CPPFLAGS"
>> 
>> 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
> 
> -- 
> Jean-Christophe Helary @jchel...@emacs.ch
> https://traductaire-libre.org
> https://mac4translators.blogspot.com
> https://sr.ht/~brandelune/omegat-as-a-book/
> 
> 
> --
> UNSUBSCRIBE: mailto:picolisp@software-lab.de?subject=Unsubscribe

-- 
Jean-Christophe Helary @jchel...@emacs.ch
https://traductaire-libre.org
https://mac4translators.blogspot.com
https://sr.ht/~brandelune/omegat-as-a-book/


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


Re: building on macos

2023-08-14 Thread l@tlo
One year later...

(I don't even remember sending that older mail... )


Building on macOS (13) seems to work fine with the following instructions:

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

*and*

Mike's Makefile here:

https://git.envs.net/mpech/pil21-tests/raw/branch/master/Makefile.macos


One question to Mike:

Would it be possible that you merge your makefile with Alex's most recent and 
add conditionals to check whether the system is macOS?

That way, we would not need any special instructions to build on macOS :)


If not, I'll update the instructions and will add a link to your Makefile.


And then, Mia's blog article could be updated to reflect the current status :)

https://picolisp-explored.com/how-to-install-picolisp


Jean-Christophe

> On May 30, 2022, at 13:39, Jean-Christophe Helary 
>  wrote:
> 
> 
> 
>> On May 30, 2022, at 18:18, Alexander Burger  wrote:
>> 
>> Hi Jean-Christophe,
>> 
>>> It looks like I'm slowly getting somewhere...
>>> ...
>> 
>> Great! :)
>> 
>> 
>>> ./pil: line 2: exec: 
>>> /Users/suzume/Documents/Repositories/pil21+/src/../bin/picolisp: cannot 
>>> execute: No such file or directory
>> 
>> That's an easy one. It tries to bootstrap, but bin/picolisp does not exist 
>> yet.
>> For that reason the pre-build *.ll files are included in the distro. Just
>> (re)install these.
> 
> Yes, but now, I'm back to my readline errors...
> 
> ➜  pil21+ git:(master) ✗ (cd src; make)
> clang -O3 -w -c -o lib.bc -D_OS='"Darwin"' -D_CPU='"x86_64"' `pkg-config 
> --cflags libffi` -emit-llvm lib.c
> 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;
>   ^
> 
> (etc.)
> 
> I'm using this in .profile:
> 
> ## libffi
> export PKG_CONFIG_PATH="/usr/local/opt/libffi/lib/pkgconfig:$PKG_CONFIG_PATH"
> export LDFLAGS="-L/usr/local/opt/libffi/lib:$LDFLAGS"
> export CPPFLAGS="-I/usr/local/opt/libffi/include:$CPPFLAGS"
> 
> ## openssl
> export PATH="/usr/local/opt/openssl@3/bin:$PATH"
> export LDFLAGS="-L/usr/local/opt/openssl@3/lib:$LDFLAGS"
> export CPPFLAGS="-I/usr/local/opt/openssl@3/include:$CPPFLAGS"
> 
> ## readline
> export 
> PKG_CONFIG_PATH="/usr/local/opt/readline/lib/pkgconfig:$PKG_CONFIG_PATH"
> export LDFLAGS="-L/usr/local/opt/readline/lib:$LDFLAGS"
> export CPPFLAGS="-I/usr/local/opt/readline/include:$CPPFLAGS"
> 
> ## llvm
> export PATH="/usr/local/opt/llvm@11/bin:$PATH"
> export LDFLAGS="-L/usr/local/opt/llvm@11/lib:$LDFLAGS"
> export CPPFLAGS="-I/usr/local/opt/llvm@11/include:$CPPFLAGS"
> 
> 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

-- 
Jean-Christophe Helary @jchel...@emacs.ch
https://traductaire-libre.org
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-30 Thread Jean-Christophe Helary



> On May 30, 2022, at 18:18, Alexander Burger  wrote:
> 
> Hi Jean-Christophe,
> 
>> It looks like I'm slowly getting somewhere...
>> ...
> 
> Great! :)
> 
> 
>> ./pil: line 2: exec: 
>> /Users/suzume/Documents/Repositories/pil21+/src/../bin/picolisp: cannot 
>> execute: No such file or directory
> 
> That's an easy one. It tries to bootstrap, but bin/picolisp does not exist 
> yet.
> For that reason the pre-build *.ll files are included in the distro. Just
> (re)install these.

Yes, but now, I'm back to my readline errors...

➜  pil21+ git:(master) ✗ (cd src; make)
clang -O3 -w -c -o lib.bc -D_OS='"Darwin"' -D_CPU='"x86_64"' `pkg-config 
--cflags libffi` -emit-llvm lib.c
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;
   ^

(etc.)

I'm using this in .profile:

## libffi
export PKG_CONFIG_PATH="/usr/local/opt/libffi/lib/pkgconfig:$PKG_CONFIG_PATH"
export LDFLAGS="-L/usr/local/opt/libffi/lib:$LDFLAGS"
export CPPFLAGS="-I/usr/local/opt/libffi/include:$CPPFLAGS"

## openssl
export PATH="/usr/local/opt/openssl@3/bin:$PATH"
export LDFLAGS="-L/usr/local/opt/openssl@3/lib:$LDFLAGS"
export CPPFLAGS="-I/usr/local/opt/openssl@3/include:$CPPFLAGS"

## readline
export PKG_CONFIG_PATH="/usr/local/opt/readline/lib/pkgconfig:$PKG_CONFIG_PATH"
export LDFLAGS="-L/usr/local/opt/readline/lib:$LDFLAGS"
export CPPFLAGS="-I/usr/local/opt/readline/include:$CPPFLAGS"

## llvm
export PATH="/usr/local/opt/llvm@11/bin:$PATH"
export LDFLAGS="-L/usr/local/opt/llvm@11/lib:$LDFLAGS"
export CPPFLAGS="-I/usr/local/opt/llvm@11/include:$CPPFLAGS"

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-30 Thread Alexander Burger
Hi Jean-Christophe,

> It looks like I'm slowly getting somewhere...
> ...

Great! :)


> ./pil: line 2: exec: 
> /Users/suzume/Documents/Repositories/pil21+/src/../bin/picolisp: cannot 
> execute: No such file or directory

That's an easy one. It tries to bootstrap, but bin/picolisp does not exist yet.
For that reason the pre-build *.ll files are included in the distro. Just
(re)install these.

☺/ A!ex

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


Re: building on macos

2022-05-30 Thread Jean-Christophe Helary
It looks like I'm slowly getting somewhere...


➜  pil21+ git:(master) ✗ which opt  
/usr/local/opt/llvm@11/bin/opt
➜  pil21+ git:(master) ✗ which clang
/usr/local/opt/llvm@11/bin/clang
➜  pil21+ git:(master) ✗ which llvm-link
/usr/local/opt/llvm@11/bin/llvm-link


➜  pil21+ git:(master) ✗ (cd src; make)
./pil   lib/llvm.l main.l -bye > base.ll
./pil: line 2: /Users/suzume/Documents/Repositories/pil21+/src/../bin/picolisp: 
No such file or directory
./pil: line 2: exec: 
/Users/suzume/Documents/Repositories/pil21+/src/../bin/picolisp: cannot 
execute: No such file or directory
make: *** [base.ll] Error 126

Jean-Christophe 

> On May 30, 2022, at 0:09, Jean-Christophe Helary  
> wrote:
> 
> Thank you.
> 
> It looks like it was a clang issue.
> 
> I'll check that later next week. And *will* come back here to report :-)
> 
> JC
> 
>> On May 29, 2022, at 23:23, Frithjof Schulze  wrote:
>> 
>> Hi all,
>> 
>> I never used Picolisp on a MacOS system, but tried the Makefile.macos today. 
>> I needed to do a few changes, because my version of Homebrew uses other 
>> patches, but then everything worked fine with the llvm, readline, libffi and 
>> openssl versions from brew. 
>> 
>> % make clean
>> % export PATH="/opt/homebrew/opt/llvm/bin:$PATH"
>> % which clang
>> /opt/homebrew/opt/llvm/bin/clang
>> % which opt
>> /opt/homebrew/opt/llvm/bin/opt
>> % make -f Makefile.macos
>> % ./bin/picolisp 
>> : (bye)
>> % 
>> 
>> w
>> 
>> --- Makefile.macos   2022-05-29 15:47:48.0 +0200
>> +++ Makefile.macos.orig  2022-05-29 16:14:59.0 +0200
>> @@ -7,7 +7,7 @@
>> ASM = opt -O3  # llvm-as
>> LLC = llc
>> LINK = llvm-link
>> -MAIN = -lm -ldl -lreadline -lffi -lncurses -L/opt/homebrew/opt/readline/lib
>> +MAIN = -lm -ldl -lreadline -lffi -lncurses -L/usr/local/opt/readline/lib
>> SHARED =
>> STRIP = strip
>> 
>> @@ -44,7 +44,7 @@
>>  mv base.map $(LIB)/map
>> 
>> lib.bc: pico.h lib.c
>> -$(CC) -O3 -w -c -o lib.bc -D_OS='"$(OS)"' -D_CPU='"$(CPU)"' 
>> -I/opt/homebrew/opt/libffi/include -I/opt/homebrew/opt/readline/include 
>> -emit-llvm lib.c
>> +$(CC) -O3 -w -c -o lib.bc -D_OS='"$(OS)"' -D_CPU='"$(CPU)"' 
>> -I/usr/local/opt/libffi/include -I/usr/local/opt/readline/include -emit-llvm 
>> lib.c
>> 
>> # Extension libraries
>> $(LIB)/ext.so: ext.bc
>> @@ -76,11 +76,11 @@
>> 
>> # Gate
>> $(BIN)/ssl: ssl.c
>> -$(CC) -O3 -w -o $(BIN)/ssl ssl.c -lssl -lcrypto 
>> -L/opt/homebrew/opt/openssl/lib -I/opt/homebrew/opt/openssl/include
>> +$(CC) -O3 -w -o $(BIN)/ssl ssl.c -lssl -lcrypto 
>> -L/usr/local/opt/openssl/lib -I/usr/local/opt/openssl/include
>>  $(STRIP) $(BIN)/ssl
>> 
>> $(BIN)/httpGate: httpGate.c
>> -$(CC) -O3 -w -o $(BIN)/httpGate httpGate.c -lssl -lcrypto 
>> -L/opt/homebrew/opt/openssl/lib -I/opt/homebrew/opt/openssl/include
>> +$(CC) -O3 -w -o $(BIN)/httpGate httpGate.c -lssl -lcrypto 
>> -L/usr/local/opt/openssl/lib -I/usr/local/opt/openssl/include
>>  $(STRIP) $(BIN)/httpGate
>> 
>> # Clean up
>> 
>> Cheers,
>> Frithjof
>> 
>>> Am 29.05.2022 um 15:28 schrieb Jean-Christophe Helary 
>>> :
>>> 
>>> 
>>> 
 On May 29, 2022, at 22:12, Mike  wrote:
 
> ➜ pil21+ git:(master) ✗ cd src
> ➜ src git:(master) ✗ rm *.bc
> ➜ src git:(master) ✗ make
> opt -O3 -o base.bc base.ll
> clang -O3 -w -c -o lib.bc -D_OS='"Darwin"' -D_CPU='"x86_64"' `pkg-config 
> --cflags libffi` -emit-llvm lib.c
> llvm-link -o picolisp.bc base.bc lib.bc
> /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
 
 show output:
 ===
 $ which opt
 $ which clang 
 $ which llvm-link
 ===
>>> 
>>> 
>>> ➜ src git:(master) ✗ which opt
>>> /opt/local/bin/opt
>>> ➜ src git:(master) ✗ which clang
>>> /usr/bin/clang
>>> ➜ src git:(master) ✗ which llvm-link 
>>> /opt/local/bin/llvm-link
>>> 
>>> It looks like clang is not the one we might want ?
>>> 
>>> ➜ src git:(master) ✗ clang --version
>>> Apple clang version 13.0.0 (clang-1300.0.29.30)
>>> Target: x86_64-apple-darwin20.6.0
>>> Thread model: posix
>>> InstalledDir: /Library/Developer/CommandLineTools/usr/bin
>>> 
>>> -- 
>>> 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

-- 
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-29 Thread Jean-Christophe Helary



> On May 29, 2022, at 23:41, Mike  wrote:
> 
>>> show output:
>>> ===
>>> $ which opt
>>> $ which clang 
>>> $ which llvm-link
>>> ===
>>> 
>> 
>> ➜ src git:(master) ✗ which opt
>> /opt/local/bin/opt
>> ➜ src git:(master) ✗ which clang
>> /usr/bin/clang
>> ➜ src git:(master) ✗ which llvm-link 
>> /opt/local/bin/llvm-link
> 
> this is mess.
> all three must be from *the same* source, fix it and try again.

Thank you for the helpful comments and suggestions.


-- 
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-29 Thread Jean-Christophe Helary
Thank you.

It looks like it was a clang issue.

I'll check that later next week. And *will* come back here to report :-)

JC

> On May 29, 2022, at 23:23, Frithjof Schulze  wrote:
> 
> Hi all,
> 
> I never used Picolisp on a MacOS system, but tried the Makefile.macos today. 
> I needed to do a few changes, because my version of Homebrew uses other 
> patches, but then everything worked fine with the llvm, readline, libffi and 
> openssl versions from brew. 
> 
> % make clean
> % export PATH="/opt/homebrew/opt/llvm/bin:$PATH"
> % which clang
> /opt/homebrew/opt/llvm/bin/clang
> % which opt
> /opt/homebrew/opt/llvm/bin/opt
> % make -f Makefile.macos
> % ./bin/picolisp 
> : (bye)
> % 
> 
> w
> 
> --- Makefile.macos2022-05-29 15:47:48.0 +0200
> +++ Makefile.macos.orig   2022-05-29 16:14:59.0 +0200
> @@ -7,7 +7,7 @@
>  ASM = opt -O3  # llvm-as
>  LLC = llc
>  LINK = llvm-link
> -MAIN = -lm -ldl -lreadline -lffi -lncurses -L/opt/homebrew/opt/readline/lib
> +MAIN = -lm -ldl -lreadline -lffi -lncurses -L/usr/local/opt/readline/lib
>  SHARED =
>  STRIP = strip
>  
> @@ -44,7 +44,7 @@
>   mv base.map $(LIB)/map
>  
>  lib.bc: pico.h lib.c
> - $(CC) -O3 -w -c -o lib.bc -D_OS='"$(OS)"' -D_CPU='"$(CPU)"' 
> -I/opt/homebrew/opt/libffi/include -I/opt/homebrew/opt/readline/include 
> -emit-llvm lib.c
> + $(CC) -O3 -w -c -o lib.bc -D_OS='"$(OS)"' -D_CPU='"$(CPU)"' 
> -I/usr/local/opt/libffi/include -I/usr/local/opt/readline/include -emit-llvm 
> lib.c
>  
>  # Extension libraries
>  $(LIB)/ext.so: ext.bc
> @@ -76,11 +76,11 @@
>  
>  # Gate
>  $(BIN)/ssl: ssl.c
> - $(CC) -O3 -w -o $(BIN)/ssl ssl.c -lssl -lcrypto 
> -L/opt/homebrew/opt/openssl/lib -I/opt/homebrew/opt/openssl/include
> + $(CC) -O3 -w -o $(BIN)/ssl ssl.c -lssl -lcrypto 
> -L/usr/local/opt/openssl/lib -I/usr/local/opt/openssl/include
>   $(STRIP) $(BIN)/ssl
>  
>  $(BIN)/httpGate: httpGate.c
> - $(CC) -O3 -w -o $(BIN)/httpGate httpGate.c -lssl -lcrypto 
> -L/opt/homebrew/opt/openssl/lib -I/opt/homebrew/opt/openssl/include
> + $(CC) -O3 -w -o $(BIN)/httpGate httpGate.c -lssl -lcrypto 
> -L/usr/local/opt/openssl/lib -I/usr/local/opt/openssl/include
>   $(STRIP) $(BIN)/httpGate
>  
>  # Clean up
>  
> Cheers,
> Frithjof
> 
>> Am 29.05.2022 um 15:28 schrieb Jean-Christophe Helary 
>> :
>> 
>> 
>> 
>>> On May 29, 2022, at 22:12, Mike  wrote:
>>> 
 ➜ pil21+ git:(master) ✗ cd src
 ➜ src git:(master) ✗ rm *.bc
 ➜ src git:(master) ✗ make
 opt -O3 -o base.bc base.ll
 clang -O3 -w -c -o lib.bc -D_OS='"Darwin"' -D_CPU='"x86_64"' `pkg-config 
 --cflags libffi` -emit-llvm lib.c
 llvm-link -o picolisp.bc base.bc lib.bc
 /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
>>> 
>>> show output:
>>> ===
>>> $ which opt
>>> $ which clang 
>>> $ which llvm-link
>>> ===
>> 
>> 
>> ➜ src git:(master) ✗ which opt
>> /opt/local/bin/opt
>> ➜ src git:(master) ✗ which clang
>> /usr/bin/clang
>> ➜ src git:(master) ✗ which llvm-link 
>> /opt/local/bin/llvm-link
>> 
>> It looks like clang is not the one we might want ?
>> 
>> ➜ src git:(master) ✗ clang --version
>> Apple clang version 13.0.0 (clang-1300.0.29.30)
>> Target: x86_64-apple-darwin20.6.0
>> Thread model: posix
>> InstalledDir: /Library/Developer/CommandLineTools/usr/bin
>> 
>> -- 
>> 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-29 Thread Frithjof Schulze
Hi all,

I never used Picolisp on a MacOS system, but tried the Makefile.macos today. I 
needed to do a few changes, because my version of Homebrew uses other patches, 
but then everything worked fine with the llvm, readline, libffi and openssl 
versions from brew. 

% make clean
% export PATH="/opt/homebrew/opt/llvm/bin:$PATH"
% which clang
/opt/homebrew/opt/llvm/bin/clang
% which opt
/opt/homebrew/opt/llvm/bin/opt
% make -f Makefile.macos
% ../bin/picolisp 
: (bye)
% 

w

--- Makefile.macos  2022-05-29 15:47:48.0 +0200
+++ Makefile.macos.orig 2022-05-29 16:14:59.0 +0200
@@ -7,7 +7,7 @@
 ASM = opt -O3  # llvm-as
 LLC = llc
 LINK = llvm-link
-MAIN = -lm -ldl -lreadline -lffi -lncurses -L/opt/homebrew/opt/readline/lib
+MAIN = -lm -ldl -lreadline -lffi -lncurses -L/usr/local/opt/readline/lib
 SHARED =
 STRIP = strip
 
@@ -44,7 +44,7 @@
mv base.map $(LIB)/map
 
 lib.bc: pico.h lib.c
-   $(CC) -O3 -w -c -o lib.bc -D_OS='"$(OS)"' -D_CPU='"$(CPU)"' 
-I/opt/homebrew/opt/libffi/include -I/opt/homebrew/opt/readline/include 
-emit-llvm lib.c
+   $(CC) -O3 -w -c -o lib.bc -D_OS='"$(OS)"' -D_CPU='"$(CPU)"' 
-I/usr/local/opt/libffi/include -I/usr/local/opt/readline/include -emit-llvm 
lib.c
 
 # Extension libraries
 $(LIB)/ext.so: ext.bc
@@ -76,11 +76,11 @@
 
 # Gate
 $(BIN)/ssl: ssl.c
-   $(CC) -O3 -w -o $(BIN)/ssl ssl.c -lssl -lcrypto 
-L/opt/homebrew/opt/openssl/lib -I/opt/homebrew/opt/openssl/include
+   $(CC) -O3 -w -o $(BIN)/ssl ssl.c -lssl -lcrypto 
-L/usr/local/opt/openssl/lib -I/usr/local/opt/openssl/include
$(STRIP) $(BIN)/ssl
 
 $(BIN)/httpGate: httpGate.c
-   $(CC) -O3 -w -o $(BIN)/httpGate httpGate.c -lssl -lcrypto 
-L/opt/homebrew/opt/openssl/lib -I/opt/homebrew/opt/openssl/include
+   $(CC) -O3 -w -o $(BIN)/httpGate httpGate.c -lssl -lcrypto 
-L/usr/local/opt/openssl/lib -I/usr/local/opt/openssl/include
$(STRIP) $(BIN)/httpGate
 
 # Clean up
 
Cheers,
Frithjof

> Am 29.05.2022 um 15:28 schrieb Jean-Christophe Helary 
> :
> 
> 
> 
>> On May 29, 2022, at 22:12, Mike  wrote:
>> 
>>> ➜ pil21+ git:(master) ✗ cd src
>>> ➜ src git:(master) ✗ rm *.bc
>>> ➜ src git:(master) ✗ make
>>> opt -O3 -o base.bc base.ll
>>> clang -O3 -w -c -o lib.bc -D_OS='"Darwin"' -D_CPU='"x86_64"' `pkg-config 
>>> --cflags libffi` -emit-llvm lib.c
>>> llvm-link -o picolisp.bc base.bc lib.bc
>>> /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
>> 
>> show output:
>> ===
>> $ which opt
>> $ which clang 
>> $ which llvm-link
>> ===
> 
> 
> ➜ src git:(master) ✗ which opt
> /opt/local/bin/opt
> ➜ src git:(master) ✗ which clang
> /usr/bin/clang
> ➜ src git:(master) ✗ which llvm-link 
> /opt/local/bin/llvm-link
> 
> It looks like clang is not the one we might want ?
> 
> ➜ src git:(master) ✗ clang --version
> Apple clang version 13.0.0 (clang-1300.0.29.30)
> Target: x86_64-apple-darwin20.6.0
> Thread model: posix
> InstalledDir: /Library/Developer/CommandLineTools/usr/bin
> 
> -- 
> 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-29 Thread Jean-Christophe Helary



> On May 29, 2022, at 22:12, Mike  wrote:
> 
>> ➜ pil21+ git:(master) ✗ cd src
>> ➜ src git:(master) ✗ rm *.bc
>> ➜ src git:(master) ✗ make
>> opt -O3 -o base.bc base.ll
>> clang -O3 -w -c -o lib.bc -D_OS='"Darwin"' -D_CPU='"x86_64"' `pkg-config 
>> --cflags libffi` -emit-llvm lib.c
>> llvm-link -o picolisp.bc base.bc lib.bc
>> /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
> 
> show output:
> ===
> $ which opt
> $ which clang 
> $ which llvm-link
> ===


➜  src git:(master) ✗ which opt
/opt/local/bin/opt
➜  src git:(master) ✗ which clang
/usr/bin/clang
➜  src git:(master) ✗ which llvm-link 
/opt/local/bin/llvm-link

It looks like clang is not the one we might want ?

➜  src git:(master) ✗ clang --version
Apple clang version 13.0.0 (clang-1300.0.29.30)
Target: x86_64-apple-darwin20.6.0
Thread model: posix
InstalledDir: /Library/Developer/CommandLineTools/usr/bin

-- 
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-29 Thread Jean-Christophe Helary



> On May 29, 2022, at 21:16, Mike  wrote:
> 
>> 
>> Ok. I have readline installed both with brew and port:
> 
> why you have both brew and port? You mess it.

Because some utilities are only available in port and some in brew but they 
have common dependencies so the dependencies come installed like this.

I tried your MakeFile with only brew, and then with only macport, and both 
ended up with the same error message.

Plus, I already had that mixed setup when I first build pil21 so I'm not sure 
it's relevant here.

>> ➜ pil21+ git:(master) ✗ cd src
>> ➜ src git:(master) ✗ rm *.bc
>> ➜ src git:(master) ✗ 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
>> 
> 
> remove .SILENT keyword and show full output, you still mess builtin and LLVM 
> from brew-port.

➜  pil21+ git:(master) ✗ cd src
➜  src git:(master) ✗ rm *.bc
➜  src git:(master) ✗ make
opt -O3   -o base.bc base.ll
clang -O3 -w -c -o lib.bc -D_OS='"Darwin"' -D_CPU='"x86_64"' `pkg-config 
--cflags libffi` -emit-llvm lib.c
llvm-link -o picolisp.bc base.bc lib.bc
/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


-- 
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-29 Thread Jean-Christophe Helary



> On May 29, 2022, at 18:52, Mike  wrote:
> 
>> 
>> I've installed readline from macport as you suggested and I'm using your 
>> Makefile.
>> 
>> Also I'm not finding any path to brew installs in your Makefile. There is no 
>> reference to /usr/local anywhere.
>> 
>> Which line in the Makefile would that be ?
> 
> /usr/local/opt is symlink to /usr/local/Cellar 
> 
> ===
> $ brew list readline
> /usr/local/Cellar/readline/8.1.2/include/readline/ (8 files)
> /usr/local/Cellar/readline/8.1.2/lib/libhistory.8.1.dylib
> /usr/local/Cellar/readline/8.1.2/lib/libreadline.8.1.dylib
> /usr/local/Cellar/readline/8.1.2/lib/pkgconfig/readline.pc
> /usr/local/Cellar/readline/8.1.2/lib/ (6 other files)
> /usr/local/Cellar/readline/8.1.2/share/doc/ (3 files)
> /usr/local/Cellar/readline/8.1.2/share/info/ (3 files)
> /usr/local/Cellar/readline/8.1.2/share/man/ (2 files)
> /usr/local/Cellar/readline/8.1.2/share/readline/ (16 files)
> $
> $ cat ~/pil21/src/Makefile | grep readline
> MAIN = -lm -ldl -lreadline -lffi -lncurses -L/usr/local/opt/readline/lib
>   $(CC) -O3 -w -c -o lib.bc -D_OS='"$(OS)"' -D_CPU='"$(CPU)"' 
> -I/usr/local/opt/libffi/include -I/usr/local/opt/readline/include -emit-llvm 
> lib.c
> $ 
> ===

Ok. I have readline installed both with brew and port:

➜  pil21+ git:(master) ✗ brew list readline
/usr/local/Cellar/readline/8.1.2/include/readline/ (8 files)
/usr/local/Cellar/readline/8.1.2/lib/libhistory.8.1.dylib
/usr/local/Cellar/readline/8.1.2/lib/libreadline.8.1.dylib
/usr/local/Cellar/readline/8.1.2/lib/pkgconfig/readline.pc
/usr/local/Cellar/readline/8.1.2/lib/ (6 other files)
/usr/local/Cellar/readline/8.1.2/share/doc/ (3 files)
/usr/local/Cellar/readline/8.1.2/share/info/ (3 files)
/usr/local/Cellar/readline/8.1.2/share/man/ (2 files)
/usr/local/Cellar/readline/8.1.2/share/readline/ (16 files)
➜  pil21+ git:(master) ✗ port installed readline
The following ports are currently installed:
  readline @8.1.2.000_0 (active)
➜  pil21+ git:(master) ✗ 

And now, I have 

➜  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


Which brings me back to last night's mail where you replied:

===
$ cd pil21/src
$ rm *.bc
$ make
===

And when I do that, I get the same results:

➜  pil21+ git:(master) ✗ cd src
➜  src git:(master) ✗ rm *.bc
➜  src git:(master) ✗ 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

btw:
➜  src git:(master) ✗ pwd
/Users/suzume/Documents/Repositories/pil21+/src


-- 
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-29 Thread Jean-Christophe Helary



> On May 29, 2022, at 15:16, Mike  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 ?
> 
> I already wrote about this issue before.
> It happened when you link against macos *builtin* readline library which is 
> too old.
> If you check my Makefile you would find paths to readline from brew.

I've installed readline from macport as you suggested and I'm using your 
Makefile.

Also I'm not finding any path to brew installs in your Makefile. There is no 
reference to /usr/local anywhere.

Which line in the Makefile would that be ?

-- 
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
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


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


Re: building on macos

2022-05-25 Thread Jean-Christophe Helary
Hi Mike,

The instructions from the website used to be sufficient to have a working pil 
system.

- clone
- patch the Makefile
- make

There was nothing about building picolisp.

That's the reason why I put them on the wiki. If they had not worked for me, I 
would not have bothered.

JC

> 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?
> 
> (mike)
> 
> --
> 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-23 Thread Jean-Christophe Helary



> On May 24, 2022, at 0:03, Mike  wrote:
> 
> 
> 
>> On May 23, 2022, at 16:26, Jean-Christophe Helary 
>>  wrote:
>> 
>> 
>> 
>>> On May 23, 2022, at 21:23, Mike  wrote:
>>> 
>>> hi all,
>>> 
>>> 
 ➜  src git:(master) ✗ make
 make: opt: No such file or directory
 make: *** [base.bc] Error 1
>>> 
>>> Right, `opt` optimizer is part of llvm from brew and it is not in the 
>>> $PATH. You must fix it and repeat. 
>> 
>> My understanding was that the instructions from 
>> 
>> https://picolisp.com/wiki/?alternativeMacOSRepository
>> 
>> worked properly with your repository.
>> 
>> Is there a reason why they don't work anymore ?
>> 
> 
> They should work and based on my posts to this list. 

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.


-- 
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-23 Thread Jean-Christophe Helary



> On May 23, 2022, at 21:23, Mike  wrote:
> 
> hi all,
> 
> 
>> ➜  src git:(master) ✗ make
>> make: opt: No such file or directory
>> make: *** [base.bc] Error 1
> 
> Right, `opt` optimizer is part of llvm from brew and it is not in the $PATH. 
> You must fix it and repeat. 

My understanding was that the instructions from 

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

worked properly with your repository.

Is there a reason why they don't work anymore ?

If I could understand what's going on I would not bug you with error messages.

Jean-Christophe 

> (mike)
> 
> 
> 
> --
> 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-23 Thread Jean-Christophe Helary



> On May 23, 2022, at 20:31, Mike  wrote:
> 
> May 23, 2022, 2:06 PM, "Jean-Christophe Helary" 
> mailto:li...@traduction-libre.org?to=%22Jean-Christophe%20Helary%22%20%3Clists%40traduction-libre.org%3E
>  > wrote:
> 
>> 
>>> 
>>> On May 23, 2022, at 16:16, Mike  wrote:
>>> 
>>> May 23, 2022, 7:13 AM, "Jean-Christophe Helary" >> mailto:li...@traduction-libre.org?to=%22Jean-Christophe%20Helary%22%20%3Clists%40traduction-libre.org%3E
>>>  > wrote:
>>> 
 
 I get the exact same result as my previous attempt with the other Makefile.
 
 ➜ 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
 
>>> 
> 
> Right, you need *.ll files *back* for bootstrap:
> ===
> $ cd pil21/src
> $ git restore base.ll ext.ll ht.ll
> # delete .SILENT: from Makefile for verbose output
> $ make
> ===

➜  src git:(master) ✗ git restore base.ll ext.ll ht.ll
➜  src git:(master) ✗ make
make: opt: No such file or directory
make: *** [base.bc] Error 1


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-23 Thread Jean-Christophe Helary



> On May 23, 2022, at 16:16, Mike  wrote:
> 
> May 23, 2022, 7:13 AM, "Jean-Christophe Helary"  mailto:li...@traduction-libre.org?to=%22Jean-Christophe%20Helary%22%20%3Clists%40traduction-libre.org%3E
>  > wrote:
> 
>> 
>> I get the exact same result as my previous attempt with the other Makefile.
>> 
>> ➜ 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
>> 
> 
> 
> This error tells: binary file created on one version of LLVM (built in macos) 
> and you are linking with another.
> Now your full correct workflow is:
> =
> $ brew install llvm libffi ncurses readline
> $ cd pil21/src
> $ make clean
> $ make clean2
> $ make
> $ make clean
> $ make
> ## add ~/pil21 to $PATH
> $ pil @lib/test.l + 
> : OK
> $
> =

➜  pil21 git:(master) ✗ cd src
➜  src git:(master) ✗ make clean
➜  src git:(master) ✗ make clean2
➜  src git:(master) ✗ make
./pil: line 2: /Users/suzume/Documents/Repositories/pil21/src/../bin/picolisp: 
No such file or directory
./pil: line 2: exec: 
/Users/suzume/Documents/Repositories/pil21/src/../bin/picolisp: cannot execute: 
No such file or directory
make: *** [base.ll] Error 126


-- 
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-22 Thread Jean-Christophe Helary



> On May 23, 2022, at 2:54, Mike  wrote:
> 
> hi all,
> 
> https://git.envs.net/mpech/pil21-tests/raw/branch/master/Makefile.macos
> 
> This is my Makefile I am using and will maintain for macos port.
> Please try.

Thank you Mike.

I get the exact same result as my previous attempt with the other Makefile.

➜  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


-- 
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-22 Thread Jean-Christophe Helary



> On May 22, 2022, at 21:44, Mike  wrote:
> 
> May 22, 2022, 3:00 PM, "Jean-Christophe Helary" 
> mailto:li...@traduction-libre.org?to=%22Jean-Christophe%20Helary%22%20%3Clists%40traduction-libre.org%3E
>  > wrote:
> 
>> 
>> I'm following the instructions here:
>> https://picolisp.com/wiki/?alternativeMacOSRepository
>> 
>> And I end-up with this error:
>> 
>> ➜ 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
>> 
>> Any idea what is going on ?
>> 
> 
> you will not build picolisp by builtin LLVM because of lack of 'opt' in the 
> next steps.
> you need LLVM from brew.

My understanding is that this aspect is taken into account here:

$ sudo port install llvm-10 readline libffi openssl
$ sudo port select --set llvm mp-llvm-10

Which installs dependencies in opt/

> you will fail anyway, macos port will not build out of box by default.

Yes but that instruction set *is* made for macos and used to work since I 
tested it in the past.

So there is something fishy here :-)

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


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


building on macos

2022-05-22 Thread Jean-Christophe Helary
I'm following the instructions here:
https://picolisp.com/wiki/?alternativeMacOSRepository

And I end-up with this error:

➜  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

Any idea what is going on ?

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


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