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