We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hi @egallesio !
I got a new Android phone, and tried compiling STklos.
It initially seems that PCRE will work:
***** Regexp support ***** checking for pcre2_config_8 in -lpcre2-8... yes ... Using system libpcre2 library *****
And the summary is:
SUMMARY ******* System: Linux-4.14.113-g1cb23d5d0f9e OS nick: LINUX_4_14 OS type: unix Install prefix: /data/data/com.termux/files/usr C compiler: gcc Compilation flags: -g -O2 Loader: ld Thread support: pthreads Case sensitivity: true (by default) Control fx parameters: yes System libraries used: libffi libpcre2 libgmp libgc Compiled libraries: Documentation update: no (install Asciidoctor to rebuild documentation)
However, the generated Makefile does not link with -lpcre2-8, as determined in the configure phase, but with -lpcre-8 (without the 2):
-lpcre2-8
-lpcre-8
2
gcc -g -O2 -rdynamic -o stklos base64.o boolean.o boot.o box.o char.o cond.o cpointer.o dynload.o env.o error.o extend.o ffi.o fixnum.o fport.o gnu-getopt.o hash.o keyword.o lib.o list.o misc.o md5.o number.o object.o parameter.o path.o port.o print.o proc.o process.o promise.o read.o regexp.o signal.o sio.o socket.o sport.o stklos.o str.o struct.o symbol.o syntax.o system.o utf8.o uvector.o vector.o vm.o vport.o thread-common.o thread-pthreads.o mutex-common.o mutex-pthreads.o -lgmp -lpcre-8 -lpcre2-posix -lffi -lgc -lm -lpthread ld.lld: error: unable to find library -lpcre-8 gcc: error: linker command failed with exit code 1 (use -v to see invocation) make[2]: *** [Makefile:584: stklos] Error 1 make[2]: Leaving directory '/data/data/com.termux/files/home/STklos/src' make[1]: *** [Makefile:489: all] Error 2 make[1]: Leaving directory '/data/data/com.termux/files/home/STklos/src' make: *** [Makefile:438: all-recursive] Error 1
I'm not sure why this happened, or how to fix it...
The text was updated successfully, but these errors were encountered:
It looks like that problem is solved with
pkg install binutils-is-llvm
but then we have something else going on: ld doesn't find -lc and -lm. I'm looking into this.
ld
-lc
-lm
Sorry, something went wrong.
make[4]: Leaving directory '/data/data/com.termux/files/home/STklos/lib/scheme' ../../../utils/tmpcomp -C -o base-incl.c base.stk gcc -g -O2 -fpic -nostdlib \ -I../../../src -I/data/data/com.termux/files/usr/include -I/data/data/com.termux/files/usr/include -c -o base.o base.c ld -shared -o base.so base.o -lgc -L/data/data/com.termux/files/usr/lib -lgmp -L/data/data/com.termux/files/usr/lib -lpcre2-8 -lpcre2-posix -L/data/data/com.termux/files/usr/lib -lffi -lc -lm ld: error: unable to find library -lc ld: error: unable to find library -lm make[3]: *** [Makefile:711: base.so] Error 1 make[3]: Leaving directory '/data/data/com.termux/files/home/STklos/lib/scheme/vector' make[2]: *** [Makefile:582: all-recursive] Error 1 make[2]: Leaving directory '/data/data/com.termux/files/home/STklos/lib/scheme' make[1]: *** [Makefile:559: all-recursive] Error 1 make[1]: Leaving directory '/data/data/com.termux/files/home/STklos/lib' make: *** [Makefile:447: all-recursive] Error 1
Successfully merging a pull request may close this issue.
Hi @egallesio !
I got a new Android phone, and tried compiling STklos.
It initially seems that PCRE will work:
And the summary is:
However, the generated Makefile does not link with
-lpcre2-8
, as determined in the configure phase, but with-lpcre-8
(without the2
):I'm not sure why this happened, or how to fix it...
The text was updated successfully, but these errors were encountered: