[Larceny-users] Larceny can be built on NetBSD

Jed Davis jld at ccs.neu.edu
Wed Aug 26 14:09:51 EDT 2009


The settings for the Linux build mostly work; differences are that
there is no -ldl (the dlfcn routines are provided by the dynamic linker
itself), and lib/Ffi/ffi-load.sch needs to handle `uname -m` being
"amd64" and/or `uname -p` being "x86_64" to recognize that architecture.

There may also be Linuxisms or issues I haven't found yet, as I've only
tested a Petit build by building a native Larceny, and the native Larceny
by building the R6/ERR5 libraries.  In particular, the x86 syscall ABI is
different, as are various other details of libc's internals.

That said, I suspect it is more or less heap-compatible with a Linux build.

Also, it seems wrong for (cdr (assq 'os-name (system-features))) to read
"Linux"; since I'd need to add a 'host: to the build machinery anyway
to deal with the -ldl thing, that could be adjusted thereby.  I'm not
sure if it'd be proper to put this under "BSD", as I don't know what the
other BSDs' stories would be.

-- 
(let ((C call-with-current-continuation)) (apply (lambda (x y) (x y)) (map
((lambda (r) ((C C) (lambda (s) (r (lambda l (apply (s s) l))))))  (lambda
(f) (lambda (l) (if (null? l) C (lambda (k) (display (car l)) ((f (cdr l))
(C k)))))))    '((#\J #\d #\D #\v #\s) (#\e #\space #\a #\i #\newline)))))



More information about the Larceny-users mailing list