Gauche > Archives > 2012/01/25

2012/01/25 02:06:00 UTCkirill
#
hi shiro!
2012/01/25 02:13:14 UTCshiro
#
hi
#
I just pushed one fix one glitch in gauche/pthread.h; the fix I introduced for cygwin doesn't work on linux.
2012/01/25 02:14:33 UTCkirill
#
what is this related to?
2012/01/25 02:16:29 UTCshiro
#
SIGRTMIN+5 stuff? I reserved one signal for inter-thread communication (specifically, thread-terminate! tries a couple of strategies before doing pthread_cancel)
2012/01/25 02:16:45 UTCkirill
#
could this be related to that problem I reported earlier today?
2012/01/25 02:17:04 UTCshiro
#
It's not likely.
2012/01/25 02:17:13 UTCkirill
#
ok
#
so are you ready to chat about separate build dir?
2012/01/25 02:18:56 UTCshiro
#
yes. I'm actually working on it.
2012/01/25 02:19:00 UTCkirill
#
me too
#
heh
#
I'm almost done..
#
but I dunno if it's how you would want it to be fixed
2012/01/25 02:20:01 UTCshiro
#
how did you fix to call 'gosh -ftest' in builddir? I'm thinking to add an option to tell gosh where is the srcdir
2012/01/25 02:20:05 UTCkirill
#
first, there's no need to write ./autoloads.scm ... I'm assuming that VPATH will take care of it and we can just write auto loads.scm
#
autoloads.scm, I mean, no space
#
currently it's complaining about: cat: gauche-package.in: No such file or directory
2012/01/25 02:21:07 UTCshiro
#
I just changed it to $(srcdir)/gauche-package.in etc.
2012/01/25 02:21:24 UTCkirill
#
yep that's what I'm doing
#
how far did you get?
#
and what command are you using to configure/build?
2012/01/25 02:25:20 UTCshiro
#
gosh builds, but extension not. I just made and cd-ed to a fresh directory and ran $GAUCHE_SOURCE_DIR/configure. Needs one fix in gc/configure.ac, though.
#
--- a/gc/configure.ac
+++ b/gc/configure.ac
@@ -51,7 +51,9 @@ dnl [SK] Original Boehm GC checks gcc for the default thread support.
 dnl In our case we need the thread config in sync with the main Gauche
 dnl source tree.  The Gauche's configure leaves its thread settings in
 dnl 'config.threads' so we just read it.
-THREADS=`cat ${srcdir}/../config.threads`
+dnl config.threads is created in the build directory instead of $srcdir,
+dnl so we directly refer it.
+THREADS=`cat ../config.threads`
 dnl AC_ARG_ENABLE(threads,
 dnl   [AC_HELP_STRING([--enable-threads=TYPE], [choose threading package])],
 dnl   THREADS=$enableval,
diff --git a/src/Makefile.in b/src/Makefile.in
2012/01/25 02:26:06 UTCkirill
#
yep, fixed that already
#
so yeah I got all the way to ../../src/gosh -ftest stuff
#
can't we just add the necessary path via -I to gauche?
2012/01/25 02:27:57 UTCshiro
#
You can, for now. You have to do '../../src/gosh -q -Isomething -lgauche-init other-options ...' since gauche-init.scm is searched before processing -I options.
2012/01/25 02:28:15 UTCkirill
#
yep, that should be fine
#
another option is to copy it to the current directory from srcdir or whatever
#
or link it
2012/01/25 02:29:19 UTCshiro
#
-ftest is just for the convenience, not to clutter Makefile. My plan is to change test_paths_setup() in main.c to check env var and adjust the directories -ftest searches. But I got to go now...
2012/01/25 02:29:41 UTCkirill
#
yes I was gonna' say that using getenv would work too
#
alright, see you later =)