Mail Archives: geda-user/2015/09/08/17:14:01
Vladimir Zhbanov wrote:
> github.com/vzh/minipack
Thanks!
I cloned and...
... banged my head against the guile wall. :-|
In detail:
Like the README suggested, I removed all guile related packages from the system. (This also took out the autogen package and of course geda-
gschem from the repo).
Still following the README I did:
./mpk source guile
cp -r sources/guile .
cd guile/
./autogen.sh && ./configure && make && sudo make install
configure needed a little help by setting an environment variable:
export BDW_GC_CFLAGS=-L/usr/lib BDW_GC_LIBS=-lgc
The compile took a little longer than expected (~80 minutes on an intel quad core). But it reported success and it installed to /usr/local/
For some reason, the install did not register the library. So I ran
ldconfig manually - just like I always do if a recompile of geda
bumps the version of gedalib. (Isn't libtool supposed to take care of
this?)
Unfortunately, the guile cross compile was still unhappy:
/minipack$ make guile
Configuring guile...
configure: WARNING: using cross tools not prefixed with host triplet
configure: WARNING: Guessing that stack grows down -- see scmconfig.h
configure: error: building Guile 2.0.11.148-d85d6d-dirty but `/usr/local/bin/guile' has version 2.1.0"
A quick check with 'guile -v' reveals that the freshly compiled binary
in /usr/local is indeed version 2.1.0 . But for some reason the cross
compile from the same sources insists to become version 2.0.11.148.. WTF?
My shot in the dark: The windows cross compile is deliberately restricted
to 2.0.11 because there are mission critical bugs in later versions.
Next try: There is a tag v2.0.11 in the git repo of guile. I checked out
to this tag and recompiled and installed to /usr/local
The guile recipe needed a little tweak to also switch to the tag.
repository=guile.git
...
if [ -d $name ]; then
cd $name && git checkout $branch && git pull origin $branch
else
git clone $pkg_download && git checkout $branch
fi
...
Now, the cross compile of guile managed to pass the configure stage.
Unfortunately, it stopped with errors shortly afterwards:
$ make guile
if [ -e ".stamp/mingw-libgnurx" ]; then : ; \
(...)
if [ -e ".stamp/guile" ]; then : ; \
else \
./mpk source guile && \
./mpk build guile && \
touch ".stamp/guile"; \
fi
Clone repository guile from git://git.sv.gnu.org/guile.git ...
HEAD is now at 972fb41... Bump version number for 2.0.11.
From git://git.sv.gnu.org/guile
* tag v2.0.11 -> FETCH_HEAD
Already up-to-date.
Configuring guile...
configure: WARNING: using cross tools not prefixed with host triplet
configure: WARNING: Guessing that stack grows down -- see scmconfig.h
configure: WARNING: *** GNU Readline is too old on your system.
configure: WARNING: *** You need readline version 2.1 or later.
Compiling guile...
i686-w64-mingw32-ar: `u' modifier ignored since `D' is the default (see `U')
gettext.c: In function 'scm_gettext':
gettext.c:123:8: warning: variable 'c_category' set but not used [-Wunused-but-set-variable]
int c_category;
^
gettext.c: In function 'scm_ngettext':
gettext.c:186:8: warning: variable 'c_category' set but not used [-Wunused-but-set-variable]
int c_category;
^
numbers.c: In function 'round_right_shift_exact_integer':
numbers.c:5053:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^
numbers.c: In function 'left_shift_exact_integer':
numbers.c:4989:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^
numbers.c: In function 'floor_right_shift_exact_integer':
numbers.c:5015:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^
numbers.c: In function 'mem2ureal':
numbers.c:6184:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^
simpos.c: In function 'scm_system_star':
simpos.c:180:46: warning: passing argument 3 of 'spawnvp' from incompatible pointer type
status = spawnvp (P_WAIT, execargv[0], (const char * const *)execargv);
^
In file included from /usr/share/mingw-w64/include/unistd.h:11:0,
from ../lib/unistd.h:40,
from ../libguile/ports.h:29,
from ../libguile/fports.h:28,
from ../libguile.h:56,
from ../libguile/programs.h:22,
from ../libguile/_scm.h:85,
from simpos.c:31:
/usr/share/mingw-w64/include/process.h:191:20: note: expected 'char * const*' but argument is of type 'const char * const*'
intptr_t __cdecl spawnvp(int,const char *_Filename,char *const _ArgList[]) __MINGW_ATTRIB_DEPRECATED_MSVC2005;
^
In file included from ../libguile/threads.h:40:0,
from ../libguile/gc.h:30,
from ../libguile/_scm.h:76,
from threads.c:28:
threads.c: In function 'scm_call_with_new_thread':
../libguile/null-threads.h:74:53: warning: right-hand operand of comma expression has no effect [-Wunused-value]
#define scm_i_pthread_cond_wait(c,m) (abort(), 0)
^
../libguile/null-threads.h:102:45: note: in expansion of macro 'scm_i_pthread_cond_wait'
#define scm_i_scm_pthread_cond_wait scm_i_pthread_cond_wait
^
threads.c:1061:5: note: in expansion of macro 'scm_i_scm_pthread_cond_wait'
scm_i_scm_pthread_cond_wait (&data.cond, &data.mutex);
^
threads.c: In function 'scm_spawn_thread':
../libguile/null-threads.h:74:53: warning: right-hand operand of comma expression has no effect [-Wunused-value]
#define scm_i_pthread_cond_wait(c,m) (abort(), 0)
^
../libguile/null-threads.h:102:45: note: in expansion of macro 'scm_i_pthread_cond_wait'
#define scm_i_scm_pthread_cond_wait scm_i_pthread_cond_wait
^
threads.c:1141:5: note: in expansion of macro 'scm_i_scm_pthread_cond_wait'
scm_i_scm_pthread_cond_wait (&data.cond, &data.mutex);
^
threads.c: In function 'scm_cancel_thread':
../libguile/null-threads.h:46:45: warning: statement with no effect [-Wunused-value]
#define scm_i_pthread_cancel(t) 0
^
threads.c:1180:7: note: in expansion of macro 'scm_i_pthread_cancel'
scm_i_pthread_cancel (t->pthread);
^
socket.c: In function 'scm_fill_sockaddr':
socket.c:773:16: warning: variable 'scope_id' set but not used [-Wunused-but-set-variable]
unsigned long scope_id = 0;
^
i686-w64-mingw32-ar: `u' modifier ignored since `D' is the default (see `U')
memoize.c:515:***Mismatching FUNC_NAME. Should be: `#define FUNC_NAME s_"@prompt"'
ice-9/session.scm:241:11: warning: non-literal format string
Backtrace:
In ice-9/eval.scm:
432: 19 [eval # #]
387: 18 [eval # #]
In srfi/srfi-1.scm:
619: 17 [for-each #<procedure 1c2af00 at scripts/compile.scm:179:14 (file)> #]
In scripts/compile.scm:
182: 16 [#<procedure 1c2af00 at scripts/compile.scm:179:14 (file)> "ice-9/unicode.scm"]
In system/base/target.scm:
59: 15 [with-target "i686-w64-mingw32" ...]
In system/base/compile.scm:
150: 14 [compile-file "ice-9/unicode.scm" #:output-file ...]
43: 13 [call-once #<procedure 1bb6f80 at system/base/compile.scm:56:5 ()>]
In ice-9/boot-9.scm:
171: 12 [with-throw-handler #t ...]
In system/base/compile.scm:
59: 11 [#<procedure 1bb6f40 at system/base/compile.scm:58:9 ()>]
153: 10 [#<procedure 1bb6fc0 at system/base/compile.scm:151:8 (port)> #<closed: file 0>]
216: 9 [read-and-compile #<input: ice-9/unicode.scm 5> #:from ...]
232: 8 [lp (#<tree-il (let # # ...)>) #<directory (ice-9 unicode) 1f1a3f0> ...]
180: 7 [lp (#<procedure compile-tree-il (x e opts)>) (eval-when # #) ...]
In ice-9/boot-9.scm:
2401: 6 [save-module-excursion #<procedure 1f51b10 at language/scheme/compile-tree-il.scm:29:3 ()>]
In language/scheme/compile-tree-il.scm:
31: 5 [#<procedure 1f51b10 at language/scheme/compile-tree-il.scm:29:3 ()>]
In ice-9/psyntax.scm:
1106: 4 [expand-top-sequence ((eval-when # #)) () ((top)) ...]
989: 3 [scan ((eval-when # #)) () ((top)) ...]
279: 2 [scan ((load-extension # "scm_init_unicode")) () ((top)) ...]
In unknown file:
?: 1 [load-extension "libguile-2.0" "scm_init_unicode"]
In ice-9/boot-9.scm:
106: 0 [#<procedure 1bb6f00 at ice-9/boot-9.scm:97:6 (thrown-k . args)> misc-error ...]
ice-9/boot-9.scm:106:20: In procedure #<procedure 1bb6f00 at ice-9/boot-9.scm:97:6 (thrown-k . args)>:
ice-9/boot-9.scm:106:20: In procedure dynamic-pointer: Symbol not found: scm_init_unicode
make[3]: *** [ice-9/unicode.go] Error 1
make[2]: *** [all-recursive] Error 1
make[1]: *** [all] Error 2
=================
guile:
Build failed.
=================
Symbol not found: scm_init_unicode
Any idea?
---<)kaimartin(>---
--
Kai-Martin Knaak tel: +49-511-762-2895
Universität Hannover, Inst. für Quantenoptik fax: +49-511-762-2211
Welfengarten 1, 30167 Hannover http://www.iqo.uni-hannover.de
GPG key: http://pgp.mit.edu:11371/pks/lookup?search=Knaak+kmk&op=get
- Raw text -