beneroth changed the topic of #picolisp to: PicoLisp language | The scalpel of software development | Channel Log: https://libera.irclog.whitequark.org/picolisp | Check www.picolisp.com for more information
bjorkintosh has joined #picolisp
Guest86 has joined #picolisp
<Guest86> Hi, Folks! I'm trying to compile picolisp on OpenBSD using ersatz/pil. So far I've got ersatz working. But looks like ersatz-pil doesn't support (symbols) and gives me following error:
<Guest86> lap1$ cd pil21/src/
<Guest86> lap1$ make
<Guest86> [lib/llvm.l:4] !? (symbols 'llvm 'pico)
<Guest86> symbols -- Undefined
<Guest86> Here's the diff of my Makefile:
<Guest86> lap1$ diff pil21/src/Makefile 2/pil21/src/Makefile
<Guest86> 6,9c6,9
<Guest86> < PIL = ../../ersatz/pil #../pil  # pil
<Guest86> < ASM = llvm-as-19 #opt -O2  # llvm-as
<Guest86> < LLC = llc-19
<Guest86> < LINK = llvm-link-19
<Guest86> ---
<Guest86> > PIL = ../pil  # pil
<Guest86> > ASM = opt -O2  # llvm-as
<Guest86> > LLC = llc
<Guest86> > LINK = llvm-link
<Guest86> 13,16c13,16
Guest86 has quit [Quit: Client closed]
<abu[7]> Uh
Guest867 has joined #picolisp
<Guest867> Whoops. I just rebooted. I was Guest86.
<abu[7]> Hi Guest867!
<abu[7]> Yeah, ersatz cant be used
<Guest867> Hi! Thanks for answer.
<abu[7]> You don't need any pil to bootstap pil21
<abu[7]> just llvm
<Guest867> hm
<abu[7]> Probably the pre-built src/base.ll was touched
<abu[7]> so it tries to make it
<abu[7]> Git messes up file metadata
<abu[7]> I don't know that one
<abu[7]> Other people here know more about BSd building
<Guest867> I forget to mention that I run current
<Guest867> lap1$ uname -a
<Guest867> OpenBSD lap1.home.lan 7.7 GENERIC.MP#641 amd64
<Guest867> and doas pkg_add picolisp don't do nothing
<abu[7]> Perhaps waii a little until others wake up :)
<Guest867> So it fails on
<Guest867> base.ll: $(INC) $(SRC)
<Guest867>         $(PIL) lib/llvm.l main.l -bye > base.ll
<Guest867>         mv base.map $(LIB)/map
<Guest867> I'll wait. Thanks anyway
<abu[7]> 👍
<abu[7]> In any case, it is not necessary to build base.ll
<abu[7]> only if src/*.l changed
<Guest867> By the way, I managed to gmake successfully to rolling release from main site
<Guest867> So my problem solved! Thank you, Abu!
<abu[7]> Ah, great! :)
Guest867 has quit [Ping timeout: 240 seconds]
z4k4ri4 has quit [Ping timeout: 252 seconds]
z4k4ri4 has joined #picolisp
Guest867 has joined #picolisp
<M-Sci> Welcome Guest867.
<Guest867> It's not necessary to answer. The one version I managed to compile(20.10.14) works just fine for my purposes.
<Guest867> But I still wasn't able to compile the github latest version pil21(25 4 24). Right now It complains about readline, I guess,
<Guest867> lap1$ gmake all
<Guest867> lib.c:122:4: error: use of undeclared identifier 'rl_input_available_hook'
<Guest867>    rl_input_available_hook = rlAvail;
<Guest867>    ^
<Guest867> 1 error generated.
<Guest867> For today I'm going to give up and carry on with my main task. Just a little note for BSD gods to know. Thanks :)
<M-Sci> I guess takf33der will rezolve (soon).
<tankf33der> morning
<M-Sci> Hi.
<tankf33der> Guest867: if you still under openbsd then you must change something
<tankf33der> find openbsd chapter and follow
<Guest867> Thanks a lot! I didn't see this manual. I'll follow it.
<tankf33der> afk.
<Guest867> I couldn't hold myself to test it. And made some progress. Gnu readline installed. And now I'm having another error(s). Sorry for long message.
<Guest867> lap1$ gmake
<Guest867> OpenBSD clang version 16.0.6
<Guest867> Target: amd64-unknown-openbsd7.7
<Guest867> Thread model: posix
<Guest867> InstalledDir: /usr/bin
<Guest867>  (in-process)
<Guest867>  "/usr/bin/clang" -cc1 -triple amd64-unknown-openbsd7.7 -emit-llvm-bc -emit-llvm-uselists -disable-free -clear-ast-before-backend -disable-llvm-verifier -discard-value-names -main-file-name lib.c -mrelocation-model pic -pic-
<Guest867> level 1 -pic-is-pie -mframe-pointer=all -relaxed-aliasing -ffp-contract=on -fno-rounding-math -mconstructor-aliases -funwind-tables=2 -target-cpu x86-64 -tune-cpu generic -mllvm -treat-scalable-fixed-error-as-warning -debugg
<Guest867> er-tuning=gdb -v -fcoverage-compilation-dir=/home/alex/picolisp/3/pil21-master/src -resource-dir /usr/lib/clang/16 -D "_OS=\"OpenBSD\"" -D "_CPU=\"amd64\"" -I /usr/local/include -internal-isystem /usr/lib/clang/16/include -i
<Guest867> nternal-externc-isystem /usr/include -O3 -w -fdebug-compilation-dir=/home/alex/picolisp/3/pil21-master/src -ferror-limit 19 -fwrapv -D_RET_PROTECTOR -ret-protector -fcf-protection=branch -fno-jump-tables -fgnuc-version=4.2.1
<Guest867>  -vectorize-loops -vectorize-slp -fno-builtin-malloc -fno-builtin-calloc -fno-builtin-realloc -fno-builtin-valloc -fno-builtin-free -fno-builtin-strdup -fno-builtin-strndup -faddrsig -D__GCC_HAVE_DWARF2_CFI_ASM=1 -o lib.bc -
<Guest867> x c lib.c
<Guest867> clang -cc1 version 16.0.6 based upon LLVM 16.0.6 default target amd64-unknown-openbsd7.7
<Guest867> #include "..." search starts here:
<Guest867> #include <...> search starts here:
<Guest867>  /usr/local/include
<Guest867>  /usr/lib/clang/16/include
Guest867 has quit [Quit: Client closed]
Guest867 has joined #picolisp
<Guest867> So now It complains about... not sure what.
<Guest867> ld: error: undefined reference due to --no-allow-shlib-undefined: BC
<Guest867> >>> referenced by /usr/local/lib/libreadline.so.8.2
<Guest867> ld: error: undefined reference due to --no-allow-shlib-undefined: UP
<Guest867> >>> referenced by /usr/local/lib/libreadline.so.8.2
<Guest867> ld: error: undefined reference due to --no-allow-shlib-undefined: tgetflag
<Guest867> >>> referenced by /usr/local/lib/libreadline.so.8.2
<Guest867> clang: error: linker command failed with exit code 1 (use -v to see invocation)
<Guest867> gmake: *** [Makefile:35: ../bin/picolisp] Error 1
<Guest867> This is the diff of my current Makefile
<Guest867> lap1$ diff ../../../2/pil21/src/Makefile Makefile
<Guest867> 5c5
<Guest867> < CC = clang
<Guest867> ---
<Guest867> > CC = clang -v
<Guest867> 7,9c7,10
<Guest867> < ASM = opt -O2  # llvm-as
<Guest867> < LLC = llc
<Guest867> < LINK = llvm-link
<Guest867> ---
<Guest867> > ASM = llvm-as-19 #opt -O2  # llvm-as
<Guest867> > LLC = llc-19
<Guest867> > LINK = llvm-link-19 -v
<Guest867> > MAIN = -rdynamic -lc -lutil -lm -lreadline -lffi -L/usr/local/lib  -lncursesw
<Guest867> 14,16d14
<Guest867> < ifeq ($(shell test $(LLVM) -ge 15 -a $(LLVM) -lt 17; echo $$?), 0)
<Guest867> <       ASM += -opaque-pointers
NobleNibble is now known as f8l
Guest867 has quit [Quit: Client closed]
Guest867 has joined #picolisp
Guest867 has quit [Ping timeout: 240 seconds]
M-Sci has quit [Ping timeout: 276 seconds]
Guest867 has joined #picolisp
<tankf33der> back.
Guest867 has quit [Quit: Client closed]
Guest867 has joined #picolisp
Guest867 has quit [Quit: Client closed]