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; ^ ... >>

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 w

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

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

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="/op

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

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 >