Gauche > Archives > 2017/01/23

2017/01/23 00:36:25 UTCshiro
#
しばらくsrfi追従をサボってたから追いつかないと。足りないのは41, 101, 116, 125, 132, 135かな。 http://compassoftime.blogspot.com/2017/01/r7rs-large.html
2017/01/23 02:11:49 UTC(び)
#
if test -f /opt/pkg/share/slib/require.scm && test x86_64-apple-darwin15 = x86_64-apple-darwin15 ; then \
	  /opt/local/bin/gosh -ftest -uslib -E"require 'new-catalog" -Eexit;\
	fi
gosh: "ERROR": Couldn't load SLIB's require.scm in `/opt/pkg/share/slib'.  Either SLIB is not installed, or it is installed in a different location.  Try setting the environment variable SCHEME_LIBRARY_PATH to point to the SLIB directory; or you can reconfigure Gauche with --with-slib option and reinstall.
make[1]: *** [slibcat] Error 1
make: *** [install] Error 2
% ls -l /opt/pkg/share/slib/require.scm 
-rw-r--r--+ 1 bizenn  staff  10202  9 20 11:00 /opt/pkg/share/slib/require.scm
#
あるんだけどloadできない。なぜだ...
2017/01/23 02:18:30 UTCshiro
#
あ、もしかして。SLIB_DIRが"/"で終わってないからかな
2017/01/23 02:23:47 UTCshiro
#
https://github.com/shirok/Gauche/commit/fae6eeaaf525a9c8d0c7e8e2fc1d0bfce05d94f7
2017/01/23 02:50:10 UTC(び)
#
cd lib; /Library/Developer/CommandLineTools/usr/bin/make slibcat
if test -f /opt/pkg/share/slib/require.scm && test x86_64-apple-darwin15 = x86_64-apple-darwin15 ; then \
	  /opt/local/bin/gosh -ftest -uslib -E"require 'new-catalog" -Eexit;\
	fi
gosh: "ERROR": a loop is detected in the require dependency involving feature "slib"
make[1]: *** [slibcat] Error 1
make: *** [install] Error 2
2017/01/23 03:32:14 UTCshiro
#
んんん...
2017/01/23 03:48:15 UTCshiro
#
あーわかった。srfi-98==slibなんだけど、slibのrequire中でcond-expandでsrfiをチェックする時に再帰的にslibをロードしようとしちゃうのね。
#
s/98/96/
2017/01/23 04:04:32 UTCshiro
#
これでどうじゃ https://github.com/shirok/Gauche/commit/f9dd55a4cae44fba14ddb7367722139831a38a69
2017/01/23 15:35:10 UTC(び)
#
報告遅くなりましたが、いいようです。ありがとうございます。