00:19
bjorkintosh has joined #picolisp
04:26
Guest86 has joined #picolisp
04:34
<
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:
04:34
<
Guest86 >
lap1$ cd pil21/src/
04:34
<
Guest86 >
lap1$ make
04:34
<
Guest86 >
[lib/llvm.l:4] !? (symbols 'llvm 'pico)
04:34
<
Guest86 >
symbols -- Undefined
04:34
<
Guest86 >
Here's the diff of my Makefile:
04:34
<
Guest86 >
lap1$ diff pil21/src/Makefile 2/pil21/src/Makefile
04:34
<
Guest86 >
< PIL = ../../ersatz/pil #../pil # pil
04:34
<
Guest86 >
< ASM = llvm-as-19 #opt -O2 # llvm-as
04:34
<
Guest86 >
< LLC = llc-19
04:34
<
Guest86 >
< LINK = llvm-link-19
04:34
<
Guest86 >
> PIL = ../pil # pil
04:34
<
Guest86 >
> ASM = opt -O2 # llvm-as
04:34
<
Guest86 >
> LLC = llc
04:34
<
Guest86 >
> LINK = llvm-link
04:34
<
Guest86 >
13,16c13,16
04:34
Guest86 has quit [Quit: Client closed]
04:45
Guest867 has joined #picolisp
04:46
<
Guest867 >
Whoops. I just rebooted. I was Guest86.
04:46
<
abu[7] >
Hi Guest867!
04:46
<
abu[7] >
Yeah, ersatz cant be used
04:47
<
Guest867 >
Hi! Thanks for answer.
04:47
<
abu[7] >
You don't need any pil to bootstap pil21
04:48
<
abu[7] >
Probably the pre-built src/base.ll was touched
04:48
<
abu[7] >
so it tries to make it
04:49
<
abu[7] >
Git messes up file metadata
04:49
<
abu[7] >
I don't know that one
04:50
<
abu[7] >
Other people here know more about BSd building
04:50
<
Guest867 >
I forget to mention that I run current
04:50
<
Guest867 >
lap1$ uname -a
04:50
<
Guest867 >
OpenBSD lap1.home.lan 7.7 GENERIC.MP#641 amd64
04:51
<
Guest867 >
and doas pkg_add picolisp don't do nothing
04:52
<
abu[7] >
Perhaps waii a little until others wake up :)
04:52
<
Guest867 >
So it fails on
04:52
<
Guest867 >
base.ll: $(INC) $(SRC)
04:52
<
Guest867 >
$(PIL) lib/llvm.l main.l -bye > base.ll
04:52
<
Guest867 >
mv base.map $(LIB)/map
04:54
<
Guest867 >
I'll wait. Thanks anyway
04:57
<
abu[7] >
In any case, it is not necessary to build base.ll
04:58
<
abu[7] >
only if src/*.l changed
04:58
<
Guest867 >
By the way, I managed to gmake successfully to rolling release from main site
04:58
<
Guest867 >
So my problem solved! Thank you, Abu!
04:58
<
abu[7] >
Ah, great! :)
05:50
Guest867 has quit [Ping timeout: 240 seconds]
06:10
z4k4ri4 has quit [Ping timeout: 252 seconds]
06:10
z4k4ri4 has joined #picolisp
06:13
Guest867 has joined #picolisp
06:13
<
M-Sci >
Welcome Guest867.
06:15
<
Guest867 >
It's not necessary to answer. The one version I managed to compile(20.10.14) works just fine for my purposes.
06:15
<
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,
06:15
<
Guest867 >
lap1$ gmake all
06:15
<
Guest867 >
lib.c:122:4: error: use of undeclared identifier 'rl_input_available_hook'
06:15
<
Guest867 >
rl_input_available_hook = rlAvail;
06:15
<
Guest867 >
1 error generated.
06:15
<
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 :)
06:20
<
M-Sci >
I guess takf33der will rezolve (soon).
06:21
<
tankf33der >
morning
06:23
<
tankf33der >
Guest867: if you still under openbsd then you must change something
06:23
<
tankf33der >
find openbsd chapter and follow
06:24
<
Guest867 >
Thanks a lot! I didn't see this manual. I'll follow it.
07:21
<
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.
07:21
<
Guest867 >
lap1$ gmake
07:21
<
Guest867 >
OpenBSD clang version 16.0.6
07:21
<
Guest867 >
Target: amd64-unknown-openbsd7.7
07:21
<
Guest867 >
Thread model: posix
07:21
<
Guest867 >
InstalledDir: /usr/bin
07:21
<
Guest867 >
(in-process)
07:21
<
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-
07:21
<
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
07:21
<
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
07:21
<
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
07:21
<
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 -
07:21
<
Guest867 >
x c lib.c
07:21
<
Guest867 >
clang -cc1 version 16.0.6 based upon LLVM 16.0.6 default target amd64-unknown-openbsd7.7
07:21
<
Guest867 >
#include "..." search starts here:
07:21
<
Guest867 >
#include <...> search starts here:
07:21
<
Guest867 >
/usr/local/include
07:21
<
Guest867 >
/usr/lib/clang/16/include
07:25
Guest867 has quit [Quit: Client closed]
07:25
Guest867 has joined #picolisp
07:36
<
Guest867 >
So now It complains about... not sure what.
07:36
<
Guest867 >
ld: error: undefined reference due to --no-allow-shlib-undefined: BC
07:36
<
Guest867 >
>>> referenced by /usr/local/lib/libreadline.so.8.2
07:36
<
Guest867 >
ld: error: undefined reference due to --no-allow-shlib-undefined: UP
07:36
<
Guest867 >
>>> referenced by /usr/local/lib/libreadline.so.8.2
07:36
<
Guest867 >
ld: error: undefined reference due to --no-allow-shlib-undefined: tgetflag
07:36
<
Guest867 >
>>> referenced by /usr/local/lib/libreadline.so.8.2
07:36
<
Guest867 >
clang: error: linker command failed with exit code 1 (use -v to see invocation)
07:36
<
Guest867 >
gmake:
*** [Makefile:35: ../bin/picolisp] Error 1
07:43
<
Guest867 >
This is the diff of my current Makefile
07:43
<
Guest867 >
lap1$ diff ../../../2/pil21/src/Makefile Makefile
07:43
<
Guest867 >
< CC = clang
07:43
<
Guest867 >
> CC = clang -v
07:43
<
Guest867 >
7,9c7,10
07:43
<
Guest867 >
< ASM = opt -O2 # llvm-as
07:43
<
Guest867 >
< LLC = llc
07:43
<
Guest867 >
< LINK = llvm-link
07:43
<
Guest867 >
> ASM = llvm-as-19 #opt -O2 # llvm-as
07:43
<
Guest867 >
> LLC = llc-19
07:43
<
Guest867 >
> LINK = llvm-link-19 -v
07:43
<
Guest867 >
> MAIN = -rdynamic -lc -lutil -lm -lreadline -lffi -L/usr/local/lib -lncursesw
07:43
<
Guest867 >
14,16d14
07:43
<
Guest867 >
< ifeq ($(shell test $(LLVM) -ge 15 -a $(LLVM) -lt 17; echo $$?), 0)
07:43
<
Guest867 >
< ASM += -opaque-pointers
07:54
NobleNibble is now known as f8l
08:31
Guest867 has quit [Quit: Client closed]
08:42
Guest867 has joined #picolisp
10:04
Guest867 has quit [Ping timeout: 240 seconds]
10:25
M-Sci has quit [Ping timeout: 276 seconds]
10:39
Guest867 has joined #picolisp
11:12
Guest867 has quit [Quit: Client closed]
11:51
Guest867 has joined #picolisp
14:46
Guest867 has quit [Quit: Client closed]