[Ecls-list] ecl -load /dev/null won't work

Faré fahree at gmail.com
Mon Nov 9 11:33:47 UTC 2009


Using clbuild on linux amd64 after I added the proper LD_LIBRARY_PATH
magic in clbuild, I could run the ecl it compiled, but I get

$ ./clbuild --implementation ecl lisp
An error occurred during initialization:
Filesystem error with pathname #P"/dev/null".
Either
 1) the file does not exist, or
 2) we are not allow to access the file, or
 3) the pathname points to a broken symbolic link..
$ ls -l /dev/null
0 crw-rw-rw- 1 root root 1, 3 2009-11-08 18:58 /dev/null

using bash -x ./clbuild --implementation ecl lisp I see that it's
calling ecl with the equivalent of
LD_LIBRARY_PATH=~/cl/clbuild/target/lib
/home/fare/cl/clbuild/target/bin/ecl -load /dev/null -eval '(require
:asdf)' -eval '(setq asdf:*central-registry*
'\''(#p"/home/fare/cl/clbuild/systems/"))' -eval nil

When I replicate this without the -load /dev/null everything runs fine.

So -load is being confused about /dev/null being a device and not a
regular file, but otherwise will work correctly.

It would be nice it this were fixed on the ECL side; but if it's a
documented limitation, then I'll create a patch for clbuild to
accommodate for it.

PS: the diff to get clbuild to that point was
diff -rN -u old-clbuild/clbuild new-clbuild/clbuild
--- old-clbuild/clbuild 2009-11-09 06:30:03.304573316 -0500
+++ new-clbuild/clbuild 2009-11-09 06:30:03.312573248 -0500
@@ -164,6 +164,7 @@
             ;;
         ecl)
             export DYLD_LIBRARY_PATH="${target_dir}/lib:$DYLD_LIBRARY_PATH"
+            export LD_LIBRARY_PATH="${target_dir}/lib:$LD_LIBRARY_PATH"
             export ECL="${target_dir}/bin/ecl"
             ;;
         ccl)

[ François-René ÐVB Rideau | Reflection&Cybernethics | http://fare.tunes.org ]
"A democracy cannot exist as a permanent form of government. It can only
exist until the voters discover that they can vote themselves money from
the Public Treasury. From that moment on, the majority always votes for
the candidate promising the most benefits from the Public Treasury with
the result that a democracy always collapses over loose fiscal policy
always followed by dictatorship."
   -- Attributed to A. F. Ty"t"ler http://www.lorencollins.net/tytler.html




More information about the ecl-devel mailing list