@newmentos: I couldn't reproduce that. From a quick web search, it sounds like a problem with the network somewhere between you and GitHub. Could be caused low-bandwidth connection, something temporary on GitHub's end, ISP doing something shady, or some other thing. I don't think it's a packaging issue, since the PKGBUILD isn't responsible for specifying anything about the download method beyond just giving the Git URL. Some possible workarounds listed here: https://stackoverflow.com/q/59282476
"makepkg -si" not worked
-> Cloning pil21 git repo...
Cloning into bare repository '/home/user/Downloads/picolisp/pil21'...
remote: Enumerating objects: 10645, done.
remote: Counting objects: 100% (2881/2881), done.
remote: Compressing objects: 100% (724/724), done.
error: RPC failed; curl 92 HTTP/2 stream 5 was not closed cleanly: CANCEL (err 8)
error: 7790 bytes of body are still expected
fetch-pack: unexpected disconnect while reading sideband packet
fatal: early EOF
fatal: fetch-pack: invalid index-pack output
==> ERROR: Failure while downloading pil21 git repo
@johv The newest package works! Thank you
@AreaOfZero: Unfortunately I can't seem to reproduce this, but try 24.10.16-2, and let me know if you still have issues. Or, if you can figure out what the problem is and submit a patch it would be super helpful
getting this error during the build step:
==> Starting build()...
opt -O2 -o base.bc base.ll
clang -O3 -w -c -o lib.bc -D_OS='"Linux"' -D_CPU='"x86_64"' `pkg-config --cflags libffi` -emit-llvm lib.c
llvm-link -o picolisp.bc base.bc lib.bc
mkdir -p ../bin ../lib
llc picolisp.bc -relocation-model=pic -o picolisp.s
clang picolisp.s -o ../bin/picolisp -Wl,-z,relro,-z,now,-z,shstk -rdynamic -lc -lutil -lm -ldl -lreadline -lffi
strip ../bin/picolisp
clang -w -D_OS='"Linux"' -D_CPU='"x86_64"' sysdefs.c && ./a.out > ../lib/sysdefs && rm ./a.out
../pil lib/llvm.l main.l -bye > base.ll
clang -O3 -w -c -o lib.bc -D_OS='"Linux"' -D_CPU='"x86_64"' `pkg-config --cflags libffi` -emit-llvm lib.c
../pil lib/llvm.l ext.l -bye > ext.ll
../pil lib/llvm.l ht.l -bye > ht.ll
clang -O3 -w -o ../bin/balance balance.c -Wl,-z,relro,-z,now,-z,shstk
[../lib/net.l:3] !? (in (or "Alt" "@lib/sysdefs") (if (from (pack "^J[" "Sym" "]^J")) (while (and (skip) (<> "[" @)) (def (read) (read))) (quit "No sysdefs" "Sym")))
"@lib/sysdefs" -- Open error: No such file or directory
make: *** [Makefile:48: base.ll] Error 1
make: *** Waiting for unfinished jobs....
[../lib/net.l:3] !? (in (or "Alt" "@lib/sysdefs") (if (from (pack "^J[" "Sym" "]^J")) (while (and (skip) (<> "[" @)) (def (read) (read))) (quit "No sysdefs" "Sym")))
[../lib/net.l:3] !? (in (or "Alt" "@lib/sysdefs") (if (from (pack "^J[" "Sym" "]^J")) (while (and (skip) (<> "[" @)) (def (read) (read))) (quit "No sysdefs" "Sym")))
"@lib/sysdefs" -- Open error: No such file or directory
"@lib/sysdefs" -- Open error: No such file or directory
make: *** [Makefile:75: ht.ll] Error 1
make: *** [Makefile:64: ext.ll] Error 1
strip ../bin/balance
==> ERROR: A failure occurred in build().
Aborting...
error: failed to build 'picolisp-24.10.16-1':
error: packages failed to build: picolisp-24.10.16-1
@vic_acid: Odd, are you using a version of make that doesn't have the -W option? If so, I just pushed an update that should fix it (24.9.28-2). That error is caused because the upstream build process depends on src/base.ll not needing rebuilding, but I thought I had already implemented a workaround.
I'm continually getting build errors when trying to build using either yay or makepkg.
% makepkg -si
==> Making package: picolisp 24.9.28-1 (Sun 06 Oct 2024 10:55:16 PM EDT)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
-> Cloning pil21 git repo...
Cloning into bare repository '/home/$USER/AUR/picolisp/pil21'...
remote: Enumerating objects: 10390, done.
remote: Counting objects: 100% (2626/2626), done.
remote: Compressing objects: 100% (523/523), done.
remote: Total 10390 (delta 2142), reused 2577 (delta 2099), pack-reused 7764 (from 1)
Receiving objects: 100% (10390/10390), 35.88 MiB | 37.30 MiB/s, done.
Resolving deltas: 100% (8045/8045), done.
==> Validating source files with sha256sums...
pil21 ... Passed
==> Extracting sources...
-> Creating working copy of pil21 git repo...
Cloning into 'pil21'...
done.
Switched to a new branch 'makepkg'
==> Starting prepare()...
==> Starting build()...
../pil: line 2: /home/$USER/AUR/picolisp/src/pil21/src/../bin/picolisp: No such file or directory
make: *** [Makefile:64: ext.ll] Error 127
make: *** Waiting for unfinished jobs....
==> ERROR: A failure occurred in build().
Aborting...
If I manually run the command from the PKGBUILD build() function, I can get the package to build correctly. But running it from makepkg fails.
TwoFinger: Oops, my bad! Thanks for the comment!
johv, the Makefile sed patches were to make the package conform to the Arch security guidelines. If you run namcap(1) on it, you will now see warnings that it lacks FULL RELRO and GNU_PROPERTY_X86_FEATURE_1_SHSTK.
please do not move the docs to /usr/share/doc/picolisp
picolisp depends on the docs being at the original location
try:
$ pil +
: (doc 'doc)
i removed the 3 lines in PKGBUILD and it works