[xcvb-devel] Unsetting SBCL_HOME problem on OS X

Geoff Wozniak geoff at wozniak.ca
Thu Nov 5 11:32:35 UTC 2009


After finally finding some time to try converting my personal projects  
to XCVB, I've noticed that bootstrapping XCVB is not working on my  
Snow Leopard install (see output below).

The problem is in the call "env -u SBCL_HOME ...".  The version of env  
shipped with Snow Leopard doesn't support the -u option.  As a quick  
fix, I removed the line in query-target-lisp-command (in extract- 
target-properties.lisp) that appends the "env -u" part and I managed  
to bootstrap XCVB.

I tried to adjust the command to run something like

   sh -c "unset SBCL_HOME ; /usr/local/bin/sbcl ..."

but I ran into various quoting issues I'm not sure how to resolve  
yet.  Also, I'm not sure this is the way to get around the problem.

Any ideas?


make xcvb
xcvb make-makefile \
	     --build /xcvb \
	     --setup /xcvb/no-asdf \
	     --lisp-implementation sbcl \
	     --lisp-binary-path /usr/local/bin/sbcl
env: illegal option -- u
usage: env [-i] [name=value ...] [utility [argument ...]]
BORK:
Process ("env" "-u" "SBCL_HOME" "/usr/local/bin/sbcl" "--noinform" "-- 
no-userinit" "--no-sysinit" "--disable-debugger" "--eval" "(progn  
(format t \"(cl:setf~% xcvb::*has-cfasls* '~S~% xcvb::*target-system- 
features* '~S~% xcvb::*lisp-implementation-directory* '~S~%  
xcvb::*target-lisp-image-pathname* '~S~% xcvb::*target-lisp-executable- 
pathname* '~S~%)~%\" (or #+sbcl (and (find-symbol \"*EMIT-CFASL*\"  
\"SB-C\") t)) *features* (or #+sbcl (namestring(sb-int:sbcl-homedir- 
pathname)) #+ccl (namestring(ccl::ccl-directory))) (or #+clozure 
(namestring ccl:*HEAP-IMAGE-NAME*) #+sbcl(namestring sb-ext:*core- 
pathname*)) (or #+sbcl sb-ext:*runtime-pathname*
             #+(and clozure linux) (namestring(truename(\"/proc/self/ 
exe\")))
             #+(and clisp linux) (read-line (run-program \"readlink 
\" :arguments (list (format nil \"/proc/~A/exe 
\" (LINUX:getpid))) :output :stream)))) (finish-output) (sb- 
ext:quit :unix-status 0))") exited with error code 1
0:
unhandled PRINT-NOT-READABLE: #<error printing object> cannot be  
printed readably.

Argh! error within --disable-debugger error handling
make: *** [xcvb.mk] Error 1




-- Geoff







More information about the xcvb-devel mailing list