pkgsrc-Users archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
sbcl-1.5.7 build fails under -current.
Hi,
It's been a while since I had any problems building sbcl under
NetBSD-current (amd64). I presently have 1.5.5 version, working fine.
Going through my last pkg_rr, sbcl build failed, as follows:
...
gcc -g -Wl,--export-dynamic -export-dynamic -no-pie -o sbcl alloc.o
backtrace.o breakpoint.o coalesce.o coreparse.o dynbind.o funcall.o
gc-common.o globals.o hopscotch.o interr.o interrupt.o largefile.o
main.o monitor.o murmur_hash.o os-common.o parse.o print.o purify.o
pthread-futex.o regnames.o run-program.o runtime.o safepoint.o save.o
sc-offset.o search.o thread.o time.o validate.o var-io.o vars.o wrap.o
x86-64-arch.o bsd-os.o x86-64-bsd-os.o fullcgc.o gencgc.o traceroot.o
immobile-space.o elf.o x86-64-assem.o -lm
ld: run-program.o: in function `set_pty':
/usr/pkgsrc/lang/sbcl/work/sbcl-1.5.7/src/runtime/run-program.c:69:
undefined reference to `login_tty'
make: *** [GNUmakefile:98: sbcl] Error 1
make: Leaving directory '/usr/pkgsrc/lang/sbcl/work/sbcl-1.5.7/src/runtime'
10.28 real 8.49 user 1.74 sys
...
This pointed to a typing error:
...
--- /usr/pkgsrc/lang/sbcl/work/sbcl-1.5.7/src/runtime/run-program.c.ORIG
2019-11-07 22:29:42.529031040 +0000
+++ /usr/pkgsrc/lang/sbcl/work/sbcl-1.5.7/src/runtime/run-program.c
2019-11-07 22:31:40.889433859 +0000
@@ -30,7 +30,7 @@
#include <termios.h>
#include <errno.h>
-#if defined(LISP_FEATURE_OPENBSD) || defined(LISP_FETURE_NETBSD)
+#if defined(LISP_FEATURE_OPENBSD) || defined(LISP_FEATURE_NETBSD)
#include <util.h>
#endif
.........
(I actually changed the incorrect patch file for the above).
Further, I got missing symbol - login-tty:
gcc -g -Wl,--export-dynamic -export-dynamic -no-pie -o sbcl alloc.o
backtrace.o breakpoint.o coalesce.o coreparse.o dynbind.o funcall.o
gc-common.o globals.o hopscotch.o interr.o interrupt.o largefile.o
main.o monitor.o murmur_hash.o os-common.o parse.o print.o purify.o
pthread-futex.o regnames.o run-program.o runtime.o safepoint.o save.o
sc-offset.o search.o thread.o time.o validate.o var-io.o vars.o wrap.o
x86-64-arch.o bsd-os.o x86-64-bsd-os.o fullcgc.o gencgc.o traceroot.o
immobile-space.o elf.o x86-64-assem.o -lm
ld: run-program.o: in function `set_pty':
/usr/pkgsrc/lang/sbcl/work/sbcl-1.5.7/src/runtime/run-program.c:69:
undefined reference to `login_tty'
make: *** [GNUmakefile:98: sbcl] Error 1
make: Leaving directory '/usr/pkgsrc/lang/sbcl/work/sbcl-1.5.7/src/runtime'
...
Obviously '-lutil' hasn't been added, even if it is in the Config*
files in the directory.
If I edit the GNUmakefile in the runtime directory and force '-lutil'
there, sbcl executable is built and proceeds further, but fails with:
...
While evaluating the form starting at line 11, column 0
of
#P"/usr/pkgsrc/lang/sbcl/work/sbcl-1.5.7/make-genesis-2.lisp":
debugger invoked on a SIType HELP for debugger help, or (SB-EXT:EXIT)
to exit from SBCL.
MPLE-ERROR: The foreign symbol "malloc" is undefined.
restarts (invokable by number or by possibly-abbreviated name):
0: [RETRY ] Retry EVAL of current toplevel form.
1: [CONTINUE ] Ignore error and continue loading file
"/usr/pkgsrc/lang/sbcl/work/sbcl-1.5.7/make-genesis-2.lisp".
2: [ABORT ] Abort loading file
"/usr/pkgsrc/lang/sbcl/work/sbcl-1.5.7/make-genesis-2.lisp".
3: [ABORT-BUILD] Abort building SBCL.
4: Exit debugger, returning to top level.
(SB-FASL::COLD-FOREIGN-SYMBOL-ADDRESS "malloc")
.....
It looks like it fails some configuration, if '-lutil' is not actually
registered from the available Config-*netbsd files, but I couldn't
figure it out.
--
----
Home |
Main Index |
Thread Index |
Old Index