X-Authentication-Warning: delorie.com: mail set sender to geda-user-bounces using -f X-Recipient: geda-user AT delorie DOT com X-Injected-Via-Gmane: http://gmane.org/ To: geda-user AT delorie DOT com From: Kai-Martin Knaak Subject: [geda-user] Geda for windows -- notes from the engineroom Date: Tue, 08 Sep 2015 23:13:06 +0200 Organization: Institut =?UTF-8?B?ZsO8cg==?= Quantenoptik Lines: 252 Message-ID: References: <55E97A3E DOT 2070402 AT jump-ing DOT de> <69B8B3F4-A6E4-43E9-9055-C63A5D6A3707 AT noqsi DOT com> <55E9BD63 DOT 8070407 AT jump-ing DOT de> <201509051930 DOT t85JUlTh019874 AT envy DOT delorie DOT com> <20150905210158 DOT GC7185 AT localhost DOT localdomain> <55EB74BF DOT 8010402 AT jump-ing DOT de> <20150906092106 DOT GF2637 AT localhost DOT localdomain> <20150908104643 DOT GA27440 AT localhost DOT localdomain> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" X-Complaints-To: usenet AT ger DOT gmane DOT org X-Gmane-NNTP-Posting-Host: 130.75.103.107 User-Agent: KNode/4.14.1 Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id t88LDv41008410 Reply-To: geda-user AT delorie DOT com 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 # #] In scripts/compile.scm: 182: 16 [# "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 #] In ice-9/boot-9.scm: 171: 12 [with-throw-handler #t ...] In system/base/compile.scm: 59: 11 [#] 153: 10 [# #] 216: 9 [read-and-compile # #:from ...] 232: 8 [lp (#) # ...] 180: 7 [lp (#) (eval-when # #) ...] In ice-9/boot-9.scm: 2401: 6 [save-module-excursion #] In language/scheme/compile-tree-il.scm: 31: 5 [#] 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 [# misc-error ...] ice-9/boot-9.scm:106:20: In procedure #: 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