From unknown Fri Sep 05 22:44:16 2025 X-Loop: help-debbugs@gnu.org Subject: bug#11877: [help]why guile tells me "ERROR: Unbound variable: eval-when" Resent-From: gnuemacser Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-guile@gnu.org Resent-Date: Sun, 08 Jul 2012 02:06:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 11877 X-GNU-PR-Package: guile X-GNU-PR-Keywords: To: 11877@debbugs.gnu.org X-Debbugs-Original-To: bug guile Received: via spool by submit@debbugs.gnu.org id=B.134171310315980 (code B ref -1); Sun, 08 Jul 2012 02:06:02 +0000 Received: (at submit) by debbugs.gnu.org; 8 Jul 2012 02:05:03 +0000 Received: from localhost ([127.0.0.1]:55545 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1Sngrq-00049L-LO for submit@debbugs.gnu.org; Sat, 07 Jul 2012 22:05:02 -0400 Received: from eggs.gnu.org ([208.118.235.92]:40444) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1Sngrk-00049A-D0 for submit@debbugs.gnu.org; Sat, 07 Jul 2012 22:04:56 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Sngmh-0005ZX-RY for submit@debbugs.gnu.org; Sat, 07 Jul 2012 21:59:45 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-4.1 required=5.0 tests=BAYES_00, FREEMAIL_ENVFROM_END_DIGIT, FREEMAIL_FROM, HTML_MESSAGE, RCVD_IN_DNSWL_HI, RECEIVED_FROM_WINDOWS_HOST autolearn=ham version=3.3.2 Received: from lists.gnu.org ([208.118.235.17]:53216) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Sngmh-0005ZT-NX for submit@debbugs.gnu.org; Sat, 07 Jul 2012 21:59:39 -0400 Received: from eggs.gnu.org ([208.118.235.92]:36691) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Sngmc-0006G0-ER for bug-guile@gnu.org; Sat, 07 Jul 2012 21:59:39 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SngmW-0005Xe-4G for bug-guile@gnu.org; Sat, 07 Jul 2012 21:59:33 -0400 Received: from col0-omc3-s12.col0.hotmail.com ([65.55.34.150]:53365) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SngmV-0005X7-IF for bug-guile@gnu.org; Sat, 07 Jul 2012 21:59:28 -0400 Received: from COL108-W23 ([65.55.34.137]) by col0-omc3-s12.col0.hotmail.com with Microsoft SMTPSVC(6.0.3790.4675); Sat, 7 Jul 2012 18:59:24 -0700 Message-ID: Content-Type: multipart/alternative; boundary="_75244846-236a-4f12-b41d-280b30b7310f_" X-Originating-IP: [124.78.212.72] From: gnuemacser Date: Sun, 8 Jul 2012 09:59:24 +0800 Importance: Normal MIME-Version: 1.0 X-OriginalArrivalTime: 08 Jul 2012 01:59:24.0549 (UTC) FILETIME=[4C75AB50:01CD5CAD] X-detected-operating-system: by eggs.gnu.org: Windows 2000 SP4, XP SP1+ X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 208.118.235.17 X-Spam-Score: -6.0 (------) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -6.0 (------) --_75244846-236a-4f12-b41d-280b30b7310f_ Content-Type: text/plain; charset="gb2312" Content-Transfer-Encoding: 8bit i download guile-2.0.6.tar.gz and build it like this: 1) i make a diretory under the top directory for build : >mkdir build >cd build 2) i config it with the option: >../configure --host=i686-pc-mingw32 --disable-shared --without-threads scm_cv_struct_timespec=no LIBS='-lunistring -lintl -liconv' if i don't use "scm_cv_struct_timespec=no", then the libguile/threads.c will not be able to compile. 3)then i make: >make these are the warnings: ---------------------------------------------------------------------------------------------------------- CC libguile_2.0_la-fports.lo ../../libguile/fports.c: In function 'fport_input_waiting': ../../libguile/fports.c:606:7: warning: unused variable 'fdes' [-Wunused-variable] CC libguile_2.0_la-hashtab.lo CC libguile_2.0_la-hooks.lo CC libguile_2.0_la-i18n.lo ../../libguile/i18n.c: In function 'scm_make_locale': ../../libguile/i18n.c:610:16: warning: variable 'c_base_locale' set but not used [-Wunused-but-set-variable] CC libguile_2.0_la-init.lo CC libguile_2.0_la-stime.lo ../../libguile/stime.c:88:14: warning: 'tzname' redeclared without dllimport attribute: previous dllimport ignored [-Wattributes] CC libguile_2.0_la-strings.lo CC libguile_2.0_la-strorder.lo CC libguile_2.0_la-strports.lo CC libguile_2.0_la-struct.lo CC libguile_2.0_la-symbols.lo CC libguile_2.0_la-threads.lo ../../libguile/threads.c: In function 'scm_cancel_thread': ../../libguile/threads.c:1168:7: warning: statement with no effect [-Wunused-value] CC libguile_2.0_la-throw.lo CC libguile_2.0_la-trees.lo ---------------------------------------------------------------------------------------------------------- 4) the error begins to show: ---------------------------------------------------------------------------------------------------------- CC dynl.lo CC posix.lo ../../libguile/posix.c: In function 'scm_utime': ../../libguile/posix.c:1577:7: warning: variable 'f' set but not used [-Wunused-but-set-variable] ../../libguile/posix.c:1576:19: warning: variable 'mtim_nsec' set but not used [-Wunused-but-set-variable] ../../libguile/posix.c:1576:8: warning: variable 'atim_nsec' set but not used [-Wunused-but-set-variable] ../../libguile/posix.c: In function 'scm_init_posix': ../../libguile/posix.c:2380:36: error: 'scm_init_popen' undeclared (first use in this function) ../../libguile/posix.c:2380:36: note: each undeclared identifier is reported only once for each function it appears in make[3]: *** [posix.lo] Error 1 make[3]: Leaving directory `/e/temp/files/guile/guile-2.0.6/build/libguile' make[2]: *** [all] Error 2 make[2]: Leaving directory `/e/temp/files/guile/guile-2.0.6/build/libguile' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/e/temp/files/guile/guile-2.0.6/build' make: *** [all] Error 2 ---------------------------------------------------------------------------------------------------------- so i check the libguile/posix.c and fixed it like this: the original one is : ---------------------------------------------------------------------------------------------------------- #include "libguile/cpp-SIG.c" #include "libguile/posix.x" scm_c_register_extension ("libguile-" SCM_EFFECTIVE_VERSION, "scm_init_popen", (scm_t_extension_init_func) scm_init_popen, NULL); ---------------------------------------------------------------------------------------------------------- i added the #ifdef macro ---------------------------------------------------------------------------------------------------------- #ifdef HAVE_FORK #include "libguile/cpp-SIG.c" #include "libguile/posix.x" scm_c_register_extension ("libguile-" SCM_EFFECTIVE_VERSION, "scm_init_popen", (scm_t_extension_init_func) scm_init_popen, NULL); #endif ---------------------------------------------------------------------------------------------------------- 5) then the make continued like this: ---------------------------------------------------------------------------------------------------------- make[3]: Entering directory `/e/temp/files/guile/guile-2.0.6/build/libguile' CC posix.lo ../../libguile/posix.c: In function 'scm_utime': ../../libguile/posix.c:1577:7: warning: variable 'f' set but not used [-Wunused-but-set-variable] ../../libguile/posix.c:1576:19: warning: variable 'mtim_nsec' set but not used [-Wunused-but-set-variable] ../../libguile/posix.c:1576:8: warning: variable 'atim_nsec' set but not used [-Wunused-but-set-variable] ../../libguile/posix.c: At top level: ../../libguile/posix.c:223:1: warning: 'scm_pipe__name' defined but not used [-Wunused-variable] ../../libguile/posix.c:633:1: warning: 'scm_kill__name' defined but not used [-Wunused-variable] ../../libguile/posix.c:1125:1: warning: 'scm_execl__name' defined but not used [-Wunused-variable] ../../libguile/posix.c:1162:1: warning: 'scm_execlp__name' defined but not used [-Wunused-variable] ../../libguile/posix.c:1200:1: warning: 'scm_execle__name' defined but not used [-Wunused-variable] ../../libguile/posix.c:1459:1: warning: 'scm_uname__name' defined but not used [-Wunused-variable] ../../libguile/posix.c:1483:1: warning: 'scm_environ__name' defined but not used [-Wunused-variable] ../../libguile/posix.c:1506:1: warning: 'scm_tmpnam__name' defined but not used [-Wunused-variable] ../../libguile/posix.c:1528:1: warning: 'scm_tmpfile__name' defined but not used [-Wunused-variable] ../../libguile/posix.c:1555:1: warning: 'scm_utime__name' defined but not used [-Wunused-variable] ../../libguile/posix.c:1650:1: warning: 'scm_getpid__name' defined but not used [-Wunused-variable] ../../libguile/posix.c:1659:1: warning: 'scm_putenv__name' defined but not used [-Wunused-variable] ../../libguile/posix.c:1694:1: warning: 'scm_setlocale__name' defined but not used [-Wunused-variable] ../../libguile/posix.c:1938:1: warning: 'scm_getlogin__name' defined but not used [-Wunused-variable] ../../libguile/posix.c:2134:1: warning: 'scm_flock__name' defined but not used [-Wunused-variable] ---------------------------------------------------------------------------------------------------------- 6) again ,make reported an error which has been reported in http://debbugs.gnu.org/cgi/bugreport.cgi?bug=10474 ---------------------------------------------------------------------------------------------------------- CC net_db.lo ../../libguile/net_db.c:461:1: error: 'AI_ALL' undeclared here (not in a function) ../../libguile/net_db.c:461:1: error: expression in static assertion is not an integer ../../libguile/net_db.c:483:33: warning: 'struct addrinfo' declared inside parameter list [enabled by default] ../../libguile/net_db.c:483:33: warning: its scope is only this definition or declaration, which is probably not what you want [enabled by default] ../../libguile/net_db.c: In function 'scm_from_addrinfo': ../../libguile/net_db.c:491:3: error: dereferencing pointer to incomplete type ../../libguile/net_db.c:492:3: error: dereferencing pointer to incomplete type ../../libguile/net_db.c:493:3: error: dereferencing pointer to incomplete type ../../libguile/net_db.c:494:3: error: dereferencing pointer to incomplete type ../../libguile/net_db.c:495:3: error: dereferencing pointer to incomplete type ../../libguile/net_db.c:495:3: error: dereferencing pointer to incomplete type ../../libguile/net_db.c:497:3: error: dereferencing pointer to incomplete type ../../libguile/net_db.c:497:3: error: dereferencing pointer to incomplete type ../../libguile/net_db.c: In function 'scm_getaddrinfo': ../../libguile/net_db.c:619:19: error: storage size of 'c_hints' isn't known ../../libguile/net_db.c:662:3: warning: implicit declaration of function 'getaddrinfo' [-Wimplicit-function-declaration] ../../libguile/net_db.c:670:10: error: dereferencing pointer to incomplete type ../../libguile/net_db.c:670:19: warning: left-hand operand of comma expression has no effect [-Wunused-value] ../../libguile/net_db.c:671:2: warning: passing argument 1 of 'scm_from_addrinfo' from incompatible pointer type [enabled by default] ../../libguile/net_db.c:483:1: note: expected 'const struct addrinfo *' but argument is of type 'struct addrinfo *' ../../libguile/net_db.c:673:7: warning: implicit declaration of function 'freeaddrinfo' [-Wimplicit-function-declaration] ../../libguile/net_db.c:619:19: warning: unused variable 'c_hints' [-Wunused-variable] ../../libguile/net_db.c: At top level: ../../libguile/net_db.c:685:1: error: 'EAI_BADFLAGS' undeclared here (not in a function) ../../libguile/net_db.c:685:1: error: expression in static assertion is not an integer ../../libguile/net_db.c: In function 'scm_gai_strerror': ../../libguile/net_db.c:749:3: warning: implicit declaration of function 'gai_strerror' [-Wimplicit-function-declaration] ../../libguile/net_db.c:749:3: warning: passing argument 1 of 'scm_from_locale_string' makes pointer from integer without a cast [enabled by default] ../../libguile/strings.h:134:13: note: expected 'const char *' but argument is of type 'int' In file included from ../../libguile/net_db.c:760:0: ../libguile/net_db.x: In function 'scm_init_net_db': ../libguile/net_db.x:17:78: error: 'AI_PASSIVE' undeclared (first use in this function) ../libguile/net_db.x:17:78: note: each undeclared identifier is reported only once for each function it appears in ../libguile/net_db.x:18:82: error: 'AI_CANONNAME' undeclared (first use in this function) ../libguile/net_db.x:19:86: error: 'AI_NUMERICHOST' undeclared (first use in this function) ../libguile/net_db.x:20:86: error: 'AI_NUMERICSERV' undeclared (first use in this function) ../libguile/net_db.x:21:80: error: 'AI_V4MAPPED' undeclared (first use in this function) ../libguile/net_db.x:23:84: error: 'AI_ADDRCONFIG' undeclared (first use in this function) ../libguile/net_db.x:27:78: error: 'EAI_NONAME' undeclared (first use in this function) ../libguile/net_db.x:28:76: error: 'EAI_AGAIN' undeclared (first use in this function) ../libguile/net_db.x:29:74: error: 'EAI_FAIL' undeclared (first use in this function) ../libguile/net_db.x:30:78: error: 'EAI_FAMILY' undeclared (first use in this function) ../libguile/net_db.x:31:82: error: 'EAI_SOCKTYPE' undeclared (first use in this function) ../libguile/net_db.x:32:80: error: 'EAI_SERVICE' undeclared (first use in this function) ../libguile/net_db.x:33:78: error: 'EAI_MEMORY' undeclared (first use in this function) ../libguile/net_db.x:34:78: error: 'EAI_SYSTEM' undeclared (first use in this function) ../libguile/net_db.x:35:82: error: 'EAI_OVERFLOW' undeclared (first use in this function) make[3]: *** [net_db.lo] Error 1 make[3]: Leaving directory `/e/temp/files/guile/guile-2.0.6/build/libguile' make[2]: *** [all] Error 2 make[2]: Leaving directory `/e/temp/files/guile/guile-2.0.6/build/libguile' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/e/temp/files/guile/guile-2.0.6/build' make: *** [all] Error 2 ---------------------------------------------------------------------------------------------------------- as the bug report said: "The reason is that this condition in net_db.c: #ifdef HAVE_WINSOCK2_H #include #else #include #include #include #include #endif is inappropriate when gnulib was used to wrap Windows socket functions. When gnulib _is_ used, the missing macros are already defined by lib/sys/socket.h. Therefore, I modified the condition to: #if HAVE_WINSOCK2_H && !GNULIB_TEST_SOCKET #include # if HAVE_WS2TCPIP_H # include # endif #else #include #include #include #include #endif " 7) let's make it again, warnings like these: ---------------------------------------------------------------------------------------------------------- CC socket.lo ../../libguile/socket.c: In function 'scm_inet_ntop': ../../libguile/socket.c:349:7: warning: implicit declaration of function 'inet_ntop' [-Wimplicit-function-declaration] ../../libguile/socket.c:349:14: warning: assignment makes pointer from integer without a cast [enabled by default] ../../libguile/socket.c:357:14: warning: assignment makes pointer from integer without a cast [enabled by default] ../../libguile/socket.c: In function 'scm_inet_pton': ../../libguile/socket.c:397:3: warning: implicit declaration of function 'inet_pton' [-Wimplicit-function-declaration] ../../libguile/socket.c: In function 'scm_fill_sockaddr': ../../libguile/socket.c:817:16: warning: variable 'scope_id' set but not used [-Wunused-but-set-variable] CC win32-uname.lo CC win32-socket.lo ../../libguile/win32-socket.c: In function 'getservent': ../../libguile/win32-socket.c:488:25: warning: array subscript is above array bounds [-Warray-bounds] ../../libguile/win32-socket.c: In function 'getprotoent': ../../libguile/win32-socket.c:569:26: warning: array subscript is above array bounds [-Warray-bounds] CC regex-posix.lo CC mkstemp.lo CCLD libguile-2.0.la libtool: link: warning: library `d:/dev/mingw/lib/libunistring.la' was moved. libtool: link: warning: library `d:/dev/mingw/lib/libunistring.la' was moved. Creating library file: .libs/libguile-2.0.dll.a copying selected object files to avoid basename conflicts... CCLD guile.exe libtool: link: warning: library `d:/dev/mingw/lib/libunistring.la' was moved. libtool: link: warning: library `d:/dev/mingw/lib/libunistring.la' was moved. libtool: link: warning: library `d:/dev/mingw/lib/libunistring.la' was moved. ---------------------------------------------------------------------------------------------------------- i edited the `d:/dev/mingw/lib/libunistring.la' to correct it like this: ---------------------------------------------------------------------------------------------------------- # libunistring.la - a libtool library file # Generated by libtool (GNU libtool) 2.4 # # Please DO NOT delete this file! # It is necessary for linking the library. # The name that we can dlopen(3). dlname='../bin/libunistring-0.dll' # Names of this library. library_names='libunistring.dll.a' # The name of the static archive. old_library='libunistring.a' # Linker flags that can not go in dependency_libs. inherited_linker_flags='' # Libraries that this one depends upon. dependency_libs=' -R==d:/dev/mingw/lib -L=d:/dev/mingw/lib /mingw/lib/libiconv.la' # Names of additional weak libraries provided by this library weak_library_names='' # Version information for libunistring. current=1 age=1 revision=2 # Is this an already installed library? installed=yes # Should we warn about portability when linking against -modules? shouldnotlink=no # Files to dlopen/dlpreopen dlopen='' dlpreopen='' # Directory that this library needs to be installed in: libdir='d:/dev/mingw/lib' ---------------------------------------------------------------------------------------------------------- 8) i use the patch for canonicalize-lgpl.c to make it Windows-friendly from bug report 10474, but two hunk was failure: ---------------------------------------------------------------------------------------------------------- (Stripping trailing CRs from patch.) patching file lib/canonicalize-lgpl.c Hunk #4 FAILED at 160. Hunk #5 succeeded at 180 (offset 4 lines). Hunk #6 succeeded at 194 with fuzz 1 (offset 4 lines). Hunk #7 succeeded at 215 (offset 4 lines). Hunk #8 FAILED at 301. Hunk #9 succeeded at 333 with fuzz 2 (offset 8 lines). 2 out of 9 hunks FAILED -- saving rejects to file lib/canonicalize-lgpl.c.rej ---------------------------------------------------------------------------------------------------------- ---------------------------------------------------------------------------------------------------------- --- lib/canonicalize-lgpl.c~0 2011-10-22 16:19:34.000000000 +0200 +++ lib/canonicalize-lgpl.c 2012-01-17 13:10:52.608428500 +0200 @@ -51,6 +51,7 @@ # define __realpath realpath # include "pathmax.h" # include "malloca.h" +# include "dosname.h" # if HAVE_GETCWD # if IN_RELOCWRAPPER /* When building the relocatable program wrapper, use the system's getcwd @@ -101,6 +102,7 @@ __realpath (const char *name, char *reso const char *start, *end, *rpath_limit; long int path_max; int num_links = 0; + size_t prefix_len; if (name == NULL) { @@ -143,7 +145,11 @@ __realpath (const char *name, char *reso rpath = resolved; rpath_limit = rpath + path_max; - if (name[0] != '/') + /* This is always zero for Posix hosts, but can be 2 for MS-Windows + and MS-DOS X:/foo/bar file names. */ + prefix_len = FILE_SYSTEM_PREFIX_LEN (name); + + if (!IS_ABSOLUTE_FILE_NAME (name)) { if (!__getcwd (rpath, path_max)) { @@ -154,13 +160,19 @@ __realpath (const char *name, char *reso } else { - rpath[0] = '/'; - dest = rpath + 1; - if (DOUBLE_SLASH_IS_DISTINCT_ROOT && name[1] == '/') + dest = rpath; + if (prefix_len) + { + memcpy (rpath, name, prefix_len); + dest += prefix_len; + } + *dest++ = '/'; + if (DOUBLE_SLASH_IS_DISTINCT_ROOT && ISSLASH (name[1]) + && !prefix_len) *dest++ = '/'; } - for (start = end = name; *start; start = end) + for (start = end = name + prefix_len; *start; start = end) { #ifdef _LIBC struct stat64 st; @@ -170,11 +182,11 @@ __realpath (const char *name, char *reso int n; /* Skip sequence of multiple path-separators. */ - while (*start == '/') + while (ISSLASH (*start)) ++start; /* Find end of path component. */ - for (end = start; *end && *end != '/'; ++end) + for (end = start; *end && !ISSLASH (*end); ++end) /* Nothing. */; if (end - start == 0) @@ -184,7 +196,7 @@ __realpath (const char *name, char *reso else if (end - start == 2 && start[0] == '.' && start[1] == '.') { /* Back up to previous component, ignore if at root already. */ - if (dest > rpath + 1) + if (dest > rpath + prefix_len + 1) while ((--dest)[-1] != '/'); if (DOUBLE_SLASH_IS_DISTINCT_ROOT && dest == rpath + 1 && *dest == '/') @@ -205,7 +217,7 @@ __realpath (const char *name, char *reso if (resolved) { __set_errno (ENAMETOOLONG); - if (dest > rpath + 1) + if (dest > rpath + prefix_len + 1) dest--; *dest = '\0'; goto error; @@ -295,17 +307,25 @@ __realpath (const char *name, char *reso memmove (&extra_buf[n], end, len + 1); name = end = memcpy (extra_buf, buf, n); - if (buf[0] == '/') + if (IS_ABSOLUTE_FILE_NAME (buf)) { - dest = rpath + 1; /* It's an absolute symlink */ - if (DOUBLE_SLASH_IS_DISTINCT_ROOT && buf[1] == '/') + size_t pfxlen = FILE_SYSTEM_PREFIX_LEN (buf); + + if (pfxlen) + memcpy (rpath, buf, pfxlen); + dest = rpath + pfxlen; /* It's an absolute symlink. */ + *dest++ = '/'; + if (DOUBLE_SLASH_IS_DISTINCT_ROOT && ISSLASH (buf[1]) + && pfxlen == 0) *dest++ = '/'; + /* Install the new prefix to be in effect hereafter. */ + prefix_len = pfxlen; } else { /* Back up to previous component, ignore if at root already: */ - if (dest > rpath + 1) + if (dest > rpath + prefix_len + 1) while ((--dest)[-1] != '/'); if (DOUBLE_SLASH_IS_DISTINCT_ROOT && dest == rpath + 1 && *dest == '/') @@ -319,7 +339,7 @@ __realpath (const char *name, char *reso } } } - if (dest > rpath + 1 && dest[-1] == '/') + if (dest > rpath + prefix_len + 1 && dest[-1] == '/') --dest; if (DOUBLE_SLASH_IS_DISTINCT_ROOT && dest == rpath + 1 && *dest == '/') dest++; ---------------------------------------------------------------------------------------------------------- i modified the two failures by hand ---------------------------------------------------------------------------------------------------------- Hunk #4 FAILED at 160: } else { dest = rpath; if (prefix_len) { memcpy (rpath, name, prefix_len); dest += prefix_len; } *dest++ = '/'; if (DOUBLE_SLASH_IS_DISTINCT_ROOT && ISSLASH (name[1]) && !prefix_len) *dest++ = '/'; *dest = '\0'; } ---------------------------------------------------------------------------------------------------------- Hunk #8 FAILED at 301: memmove (&extra_buf[n], end, len + 1); name = end = memcpy (extra_buf, buf, n); if (IS_ABSOLUTE_FILE_NAME (buf)) { size_t pfxlen = FILE_SYSTEM_PREFIX_LEN (buf); if (pfxlen) memcpy (rpath, buf, pfxlen); dest = rpath + pfxlen; /* It's an absolute symlink. */ *dest++ = '/'; if (DOUBLE_SLASH_IS_DISTINCT_ROOT && ISSLASH (buf[1]) && pfxlen == 0) *dest++ = '/'; /* Install the new prefix to be in effect hereafter. */ prefix_len = pfxlen; } else { /* Back up to previous component, ignore if at root already: */ if (dest > rpath + prefix_len + 1) while ((--dest)[-1] != '/'); if (DOUBLE_SLASH_IS_DISTINCT_ROOT && dest == rpath + 1 && *dest == '/' && dest[1] != '/') dest++; } } else if (!S_ISDIR (st.st_mode) && *end != '\0') ---------------------------------------------------------------------------------------------------------- then make continued: ---------------------------------------------------------------------------------------------------------- SNARF mallocs.doc SNARF memoize.doc ../../libguile/memoize.c:479:***Mismatching FUNC_NAME. Should be: `#define FUNC_NAME s_"@prompt"' SNARF modules.doc SNARF numbers.doc SNARF objprop.doc SNARF options.doc SNARF pairs.doc ../../libguile/pairs.c:147:***Missing or erroneous `#define FUNC_NAME s_scm_cdr' ../../libguile/pairs.c:150:***Missing or erroneous #undef for scm_car: ../../libguile/pairs.c:155:***Missing or erroneous `#define FUNC_NAME s_scm_cddr' ../../libguile/pairs.c:158:***Missing or erroneous #undef for scm_cdar: ../../libguile/pairs.c:163:***Missing or erroneous `#define FUNC_NAME s_scm_cadr' ../../libguile/pairs.c:166:***Missing or erroneous #undef for scm_caar: ../../libguile/pairs.c:171:***Missing or erroneous `#define FUNC_NAME s_scm_cdddr' ../../libguile/pairs.c:174:***Missing or erroneous #undef for scm_cddar: ../../libguile/pairs.c:179:***Missing or erroneous `#define FUNC_NAME s_scm_cdadr' ../../libguile/pairs.c:182:***Missing or erroneous #undef for scm_cdaar: ../../libguile/pairs.c:187:***Missing or erroneous `#define FUNC_NAME s_scm_caddr' ../../libguile/pairs.c:190:***Missing or erroneous #undef for scm_cadar: ../../libguile/pairs.c:195:***Missing or erroneous `#define FUNC_NAME s_scm_caadr' ../../libguile/pairs.c:198:***Missing or erroneous #undef for scm_caaar: ../../libguile/pairs.c:203:***Missing or erroneous `#define FUNC_NAME s_scm_cddddr' ../../libguile/pairs.c:206:***Missing or erroneous #undef for scm_cdddar: ../../libguile/pairs.c:211:***Missing or erroneous `#define FUNC_NAME s_scm_cddadr' ../../libguile/pairs.c:214:***Missing or erroneous #undef for scm_cddaar: ../../libguile/pairs.c:219:***Missing or erroneous `#define FUNC_NAME s_scm_cdaddr' ../../libguile/pairs.c:222:***Missing or erroneous #undef for scm_cdadar: ../../libguile/pairs.c:227:***Missing or erroneous `#define FUNC_NAME s_scm_cdaadr' ../../libguile/pairs.c:230:***Missing or erroneous #undef for scm_cdaaar: ../../libguile/pairs.c:235:***Missing or erroneous `#define FUNC_NAME s_scm_cadddr' ../../libguile/pairs.c:238:***Missing or erroneous #undef for scm_caddar: ../../libguile/pairs.c:243:***Missing or erroneous `#define FUNC_NAME s_scm_cadadr' ../../libguile/pairs.c:246:***Missing or erroneous #undef for scm_cadaar: ../../libguile/pairs.c:251:***Missing or erroneous `#define FUNC_NAME s_scm_caaddr' ../../libguile/pairs.c:254:***Missing or erroneous #undef for scm_caadar: ../../libguile/pairs.c:259:***Missing or erroneous `#define FUNC_NAME s_scm_caaadr' ../../libguile/pairs.c:262:***Missing or erroneous #undef for scm_caaaar: SNARF ports.doc SNARF print.doc SNARF procprop.doc SNARF procs.doc SNARF promises.doc SNARF r6rs-ports.doc SNARF random.doc SNARF rdelim.doc SNARF read.doc SNARF root.doc SNARF rw.doc SNARF scmsigs.doc SNARF script.doc SNARF simpos.doc SNARF smob.doc SNARF sort.doc SNARF srcprop.doc SNARF srfi-1.doc SNARF srfi-4.doc SNARF srfi-13.doc SNARF srfi-14.doc SNARF srfi-60.doc SNARF stackchk.doc SNARF stacks.doc SNARF stime.doc SNARF strings.doc SNARF strorder.doc SNARF strports.doc SNARF struct.doc SNARF symbols.doc SNARF threads.doc SNARF throw.doc SNARF trees.doc SNARF uniform.doc SNARF values.doc SNARF variable.doc SNARF vectors.doc SNARF version.doc SNARF vports.doc SNARF weaks.doc SNARF posix.doc SNARF net_db.doc SNARF socket.doc SNARF win32-uname.doc SNARF win32-socket.doc SNARF regex-posix.doc SNARF mkstemp.doc GEN guile-procedures.texi Backtrace: In unknown file: ?: 3 [apply-smob/1 # #t ...] ?: 2 [apply-smob/1 #] ?: 1 [primitive-eval ((@ # %) (begin # # #))] ?: 0 [primitive-load-path "e:\\temp\\files\\guile\\guile-2.0.6\\build\\libguile/e:/temp/files/guile/guile-2.0.6/build/meta/guild"] ERROR: make[3]: *** [guile-procedures.texi] Error 1 make[3]: Leaving directory `/e/temp/files/guile/guile-2.0.6/build/libguile' make[2]: *** [all] Error 2 make[2]: Leaving directory `/e/temp/files/guile/guile-2.0.6/build/libguile' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/e/temp/files/guile/guile-2.0.6/build' make: *** [all] Error 2 ---------------------------------------------------------------------------------------------------------- i tried guile.exe from command line: ---------------------------------------------------------------------------------------------------------- >guile ERROR: In procedure primitive-load-path: ERROR: Unable to find file "ice-9/boot-9.scm" in load path ---------------------------------------------------------------------------------------------------------- then i use the full path in msys: ---------------------------------------------------------------------------------------------------------- >/e/temp/files/guile/guile-2.0.6/build/libguile/guile Throw without catch before boot: Throw to key misc-error with args ("primitive-load-path" "Unable to find file ~S in load path" ("ice-9/boot-9") #f)Aborting. This application has requested the Runtime to terminate it in an unusual way. Please contact the application's support team for more information. Cannot exit gracefully when init is in progress; aborting. This application has requested the Runtime to terminate it in an unusual way. Please contact the application's support team for more information. ---------------------------------------------------------------------------------------------------------- then i googled and find a way to define the load-path: ---------------------------------------------------------------------------------------------------------- >export GUILE_LOAD_PATH=/e/temp/files/guile/guile-2.0.6/module/ ---------------------------------------------------------------------------------------------------------- 9) now i run guile.exe, but the error was very strange: ---------------------------------------------------------------------------------------------------------- >guile ERROR: Unbound variable: eval-when ---------------------------------------------------------------------------------------------------------- i don't know how to do now. --_75244846-236a-4f12-b41d-280b30b7310f_ Content-Type: text/html; charset="gb2312" Content-Transfer-Encoding: 8bit
i download guile-2.0.6.tar.gz and build it like this:

1) i make a diretory under the top directory for build :
>mkdir build
>cd build

2) i config it with the option:
>../configure --host=i686-pc-mingw32 --disable-shared --without-threads scm_cv_struct_timespec=no LIBS='-lunistring -lintl -liconv'
if i don't use "scm_cv_struct_timespec=no", then the libguile/threads.c will not be able to compile.

3)then i make:
>make

these are the warnings:
----------------------------------------------------------------------------------------------------------
  CC       libguile_2.0_la-fports.lo
../../libguile/fports.c: In function 'fport_input_waiting':
../../libguile/fports.c:606:7: warning: unused variable 'fdes' [-Wunused-variable]

  CC       libguile_2.0_la-hashtab.lo
  CC       libguile_2.0_la-hooks.lo
  CC       libguile_2.0_la-i18n.lo
../../libguile/i18n.c: In function 'scm_make_locale':
../../libguile/i18n.c:610:16: warning: variable 'c_base_locale' set but not used [-Wunused-but-set-variable]
  CC       libguile_2.0_la-init.lo

  CC       libguile_2.0_la-stime.lo
../../libguile/stime.c:88:14: warning: 'tzname' redeclared without dllimport attribute: previous dllimport ignored [-Wattributes]
  CC       libguile_2.0_la-strings.lo
  CC       libguile_2.0_la-strorder.lo
  CC       libguile_2.0_la-strports.lo
  CC       libguile_2.0_la-struct.lo
  CC       libguile_2.0_la-symbols.lo
  CC       libguile_2.0_la-threads.lo
../../libguile/threads.c: In function 'scm_cancel_thread':
../../libguile/threads.c:1168:7: warning: statement with no effect [-Wunused-value]
  CC       libguile_2.0_la-throw.lo
  CC       libguile_2.0_la-trees.lo
----------------------------------------------------------------------------------------------------------

 
4) the error begins to show:
 
----------------------------------------------------------------------------------------------------------
  CC       dynl.lo
  CC       posix.lo
../../libguile/posix.c: In function 'scm_utime':
../../libguile/posix.c:1577:7: warning: variable 'f' set but not used [-Wunused-but-set-variable]
../../libguile/posix.c:1576:19: warning: variable 'mtim_nsec' set but not used [-Wunused-but-set-variable]
../../libguile/posix.c:1576:8: warning: variable 'atim_nsec' set but not used [-Wunused-but-set-variable]
../../libguile/posix.c: In function 'scm_init_posix':
../../libguile/posix.c:2380:36: error: 'scm_init_popen' undeclared (first use in this function)
../../libguile/posix.c:2380:36: note: each undeclared identifier is reported only once for each function it appears in
make[3]: *** [posix.lo] Error 1
make[3]: Leaving directory `/e/temp/files/guile/guile-2.0.6/build/libguile'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/e/temp/files/guile/guile-2.0.6/build/libguile'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/e/temp/files/guile/guile-2.0.6/build'
make: *** [all] Error 2
----------------------------------------------------------------------------------------------------------

so i check the libguile/posix.c and fixed it like this:
the original one is :

----------------------------------------------------------------------------------------------------------
#include "libguile/cpp-SIG.c"
#include "libguile/posix.x"

  scm_c_register_extension ("libguile-" SCM_EFFECTIVE_VERSION,
                            "scm_init_popen",
                (scm_t_extension_init_func) scm_init_popen,
                NULL);
----------------------------------------------------------------------------------------------------------

i added the #ifdef macro

----------------------------------------------------------------------------------------------------------
#ifdef HAVE_FORK

#include "libguile/cpp-SIG.c"
#include "libguile/posix.x"

  scm_c_register_extension ("libguile-" SCM_EFFECTIVE_VERSION,
                            "scm_init_popen",
                (scm_t_extension_init_func) scm_init_popen,
                NULL);
#endif
----------------------------------------------------------------------------------------------------------


5) then the make continued like this:

----------------------------------------------------------------------------------------------------------
make[3]: Entering directory `/e/temp/files/guile/guile-2.0.6/build/libguile'
  CC       posix.lo
../../libguile/posix.c: In function 'scm_utime':
../../libguile/posix.c:1577:7: warning: variable 'f' set but not used [-Wunused-but-set-variable]
../../libguile/posix.c:1576:19: warning: variable 'mtim_nsec' set but not used [-Wunused-but-set-variable]
../../libguile/posix.c:1576:8: warning: variable 'atim_nsec' set but not used [-Wunused-but-set-variable]
../../libguile/posix.c: At top level:
../../libguile/posix.c:223:1: warning: 'scm_pipe__name' defined but not used [-Wunused-variable]
../../libguile/posix.c:633:1: warning: 'scm_kill__name' defined but not used [-Wunused-variable]
../../libguile/posix.c:1125:1: warning: 'scm_execl__name' defined but not used [-Wunused-variable]
../../libguile/posix.c:1162:1: warning: 'scm_execlp__name' defined but not used
[-Wunused-variable]
../../libguile/posix.c:1200:1: warning: 'scm_execle__name' defined but not used
[-Wunused-variable]
../../libguile/posix.c:1459:1: warning: 'scm_uname__name' defined but not used [-Wunused-variable]
../../libguile/posix.c:1483:1: warning: 'scm_environ__name' defined but not used [-Wunused-variable]
../../libguile/posix.c:1506:1: warning: 'scm_tmpnam__name' defined but not used
[-Wunused-variable]
../../libguile/posix.c:1528:1: warning: 'scm_tmpfile__name' defined but not used [-Wunused-variable]
../../libguile/posix.c:1555:1: warning: 'scm_utime__name' defined but not used [-Wunused-variable]
../../libguile/posix.c:1650:1: warning: 'scm_getpid__name' defined but not used
[-Wunused-variable]
../../libguile/posix.c:1659:1: warning: 'scm_putenv__name' defined but not used
[-Wunused-variable]
../../libguile/posix.c:1694:1: warning: 'scm_setlocale__name' defined but not used [-Wunused-variable]
../../libguile/posix.c:1938:1: warning: 'scm_getlogin__name' defined but not used [-Wunused-variable]
../../libguile/posix.c:2134:1: warning: 'scm_flock__name' defined but not used [-Wunused-variable]
----------------------------------------------------------------------------------------------------------

6) again ,make reported an error which has been reported in http://debbugs.gnu.org/cgi/bugreport.cgi?bug=10474

----------------------------------------------------------------------------------------------------------
  CC       net_db.lo
../../libguile/net_db.c:461:1: error: 'AI_ALL' undeclared here (not in a function)
../../libguile/net_db.c:461:1: error: expression in static assertion is not an integer
../../libguile/net_db.c:483:33: warning: 'struct addrinfo' declared inside parameter list [enabled by default]
../../libguile/net_db.c:483:33: warning: its scope is only this definition or declaration, which is probably not what you want [enabled by default]
../../libguile/net_db.c: In function 'scm_from_addrinfo':
../../libguile/net_db.c:491:3: error: dereferencing pointer to incomplete type
../../libguile/net_db.c:492:3: error: dereferencing pointer to incomplete type
../../libguile/net_db.c:493:3: error: dereferencing pointer to incomplete type
../../libguile/net_db.c:494:3: error: dereferencing pointer to incomplete type
../../libguile/net_db.c:495:3: error: dereferencing pointer to incomplete type
../../libguile/net_db.c:495:3: error: dereferencing pointer to incomplete type
../../libguile/net_db.c:497:3: error: dereferencing pointer to incomplete type
../../libguile/net_db.c:497:3: error: dereferencing pointer to incomplete type
../../libguile/net_db.c: In function 'scm_getaddrinfo':
../../libguile/net_db.c:619:19: error: storage size of 'c_hints' isn't known
../../libguile/net_db.c:662:3: warning: implicit declaration of function 'getaddrinfo' [-Wimplicit-function-declaration]
../../libguile/net_db.c:670:10: error: dereferencing pointer to incomplete type
../../libguile/net_db.c:670:19: warning: left-hand operand of comma expression has no effect [-Wunused-value]
../../libguile/net_db.c:671:2: warning: passing argument 1 of 'scm_from_addrinfo' from incompatible pointer type [enabled by default]
../../libguile/net_db.c:483:1: note: expected 'const struct addrinfo *' but argument is of type 'struct addrinfo *'
../../libguile/net_db.c:673:7: warning: implicit declaration of function 'freeaddrinfo' [-Wimplicit-function-declaration]
../../libguile/net_db.c:619:19: warning: unused variable 'c_hints' [-Wunused-variable]
../../libguile/net_db.c: At top level:
../../libguile/net_db.c:685:1: error: 'EAI_BADFLAGS' undeclared here (not in a function)
../../libguile/net_db.c:685:1: error: expression in static assertion is not an integer
../../libguile/net_db.c: In function 'scm_gai_strerror':
../../libguile/net_db.c:749:3: warning: implicit declaration of function 'gai_strerror' [-Wimplicit-function-declaration]
../../libguile/net_db.c:749:3: warning: passing argument 1 of 'scm_from_locale_string' makes pointer from integer without a cast [enabled by default]
../../libguile/strings.h:134:13: note: expected 'const char *' but argument is of type 'int'
In file included from ../../libguile/net_db.c:760:0:
../libguile/net_db.x: In function 'scm_init_net_db':
../libguile/net_db.x:17:78: error: 'AI_PASSIVE' undeclared (first use in this function)
../libguile/net_db.x:17:78: note: each undeclared identifier is reported only once for each function it appears in
../libguile/net_db.x:18:82: error: 'AI_CANONNAME' undeclared (first use in this
function)
../libguile/net_db.x:19:86: error: 'AI_NUMERICHOST' undeclared (first use in this function)
../libguile/net_db.x:20:86: error: 'AI_NUMERICSERV' undeclared (first use in this function)
../libguile/net_db.x:21:80: error: 'AI_V4MAPPED' undeclared (first use in this function)
../libguile/net_db.x:23:84: error: 'AI_ADDRCONFIG' undeclared (first use in this function)
../libguile/net_db.x:27:78: error: 'EAI_NONAME' undeclared (first use in this function)
../libguile/net_db.x:28:76: error: 'EAI_AGAIN' undeclared (first use in this function)
../libguile/net_db.x:29:74: error: 'EAI_FAIL' undeclared (first use in this function)
../libguile/net_db.x:30:78: error: 'EAI_FAMILY' undeclared (first use in this function)
../libguile/net_db.x:31:82: error: 'EAI_SOCKTYPE' undeclared (first use in this
function)
../libguile/net_db.x:32:80: error: 'EAI_SERVICE' undeclared (first use in this function)
../libguile/net_db.x:33:78: error: 'EAI_MEMORY' undeclared (first use in this function)
../libguile/net_db.x:34:78: error: 'EAI_SYSTEM' undeclared (first use in this function)
../libguile/net_db.x:35:82: error: 'EAI_OVERFLOW' undeclared (first use in this
function)
make[3]: *** [net_db.lo] Error 1
make[3]: Leaving directory `/e/temp/files/guile/guile-2.0.6/build/libguile'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/e/temp/files/guile/guile-2.0.6/build/libguile'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/e/temp/files/guile/guile-2.0.6/build'
make: *** [all] Error 2
----------------------------------------------------------------------------------------------------------

as the bug report said:
"The reason is that this condition in net_db.c:

     #ifdef HAVE_WINSOCK2_H
     #include <winsock2.h>
     #else
     #include <sys/socket.h>
     #include <netdb.h>
     #include <netinet/in.h>
     #include <arpa/inet.h>
     #endif

is inappropriate when gnulib was used to wrap Windows socket
functions.  When gnulib _is_ used, the missing macros are already
defined by lib/sys/socket.h.  Therefore, I modified the condition to:

     #if HAVE_WINSOCK2_H && !GNULIB_TEST_SOCKET
     #include <winsock2.h>
     # if HAVE_WS2TCPIP_H
     #  include <ws2tcpip.h>
     # endif
     #else
     #include <sys/socket.h>
     #include <netdb.h>
     #include <netinet/in.h>
     #include <arpa/inet.h>
     #endif
"

7) let's make it again, warnings like these:

----------------------------------------------------------------------------------------------------------
  CC       socket.lo
../../libguile/socket.c: In function 'scm_inet_ntop':
../../libguile/socket.c:349:7: warning: implicit declaration of function 'inet_ntop' [-Wimplicit-function-declaration]
../../libguile/socket.c:349:14: warning: assignment makes pointer from integer without a cast [enabled by default]
../../libguile/socket.c:357:14: warning: assignment makes pointer from integer without a cast [enabled by default]
../../libguile/socket.c: In function 'scm_inet_pton':
../../libguile/socket.c:397:3: warning: implicit declaration of function 'inet_pton' [-Wimplicit-function-declaration]
../../libguile/socket.c: In function 'scm_fill_sockaddr':
../../libguile/socket.c:817:16: warning: variable 'scope_id' set but not used [-Wunused-but-set-variable]
  CC       win32-uname.lo
  CC       win32-socket.lo
../../libguile/win32-socket.c: In function 'getservent':
../../libguile/win32-socket.c:488:25: warning: array subscript is above array bounds [-Warray-bounds]
../../libguile/win32-socket.c: In function 'getprotoent':
../../libguile/win32-socket.c:569:26: warning: array subscript is above array bounds [-Warray-bounds]
  CC       regex-posix.lo
  CC       mkstemp.lo
  CCLD     libguile-2.0.la
libtool: link: warning: library `d:/dev/mingw/lib/libunistring.la' was moved.
libtool: link: warning: library `d:/dev/mingw/lib/libunistring.la' was moved.
Creating library file: .libs/libguile-2.0.dll.a
copying selected object files to avoid basename conflicts...
  CCLD     guile.exe
libtool: link: warning: library `d:/dev/mingw/lib/libunistring.la' was moved.
libtool: link: warning: library `d:/dev/mingw/lib/libunistring.la' was moved.
libtool: link: warning: library `d:/dev/mingw/lib/libunistring.la' was moved.
----------------------------------------------------------------------------------------------------------

i edited the `d:/dev/mingw/lib/libunistring.la' to correct it like this:

----------------------------------------------------------------------------------------------------------
# libunistring.la - a libtool library file
# Generated by libtool (GNU libtool) 2.4
#
# Please DO NOT delete this file!
# It is necessary for linking the library.

# The name that we can dlopen(3).
dlname='../bin/libunistring-0.dll'

# Names of this library.
library_names='libunistring.dll.a'

# The name of the static archive.
old_library='libunistring.a'

# Linker flags that can not go in dependency_libs.
inherited_linker_flags=''

# Libraries that this one depends upon.
dependency_libs=' -R==d:/dev/mingw/lib -L=d:/dev/mingw/lib /mingw/lib/libiconv.la'

# Names of additional weak libraries provided by this library
weak_library_names=''

# Version information for libunistring.
current=1
age=1
revision=2

# Is this an already installed library?
installed=yes

# Should we warn about portability when linking against -modules?
shouldnotlink=no

# Files to dlopen/dlpreopen
dlopen=''
dlpreopen=''

# Directory that this library needs to be installed in:
libdir='d:/dev/mingw/lib'
----------------------------------------------------------------------------------------------------------

8) i use the patch for canonicalize-lgpl.c to make it Windows-friendly from bug report 10474,
but two hunk was failure:

----------------------------------------------------------------------------------------------------------
(Stripping trailing CRs from patch.)
patching file lib/canonicalize-lgpl.c
Hunk #4 FAILED at 160.
Hunk #5 succeeded at 180 (offset 4 lines).
Hunk #6 succeeded at 194 with fuzz 1 (offset 4 lines).
Hunk #7 succeeded at 215 (offset 4 lines).
Hunk #8 FAILED at 301.
Hunk #9 succeeded at 333 with fuzz 2 (offset 8 lines).
2 out of 9 hunks FAILED -- saving rejects to file lib/canonicalize-lgpl.c.rej
----------------------------------------------------------------------------------------------------------

----------------------------------------------------------------------------------------------------------
--- lib/canonicalize-lgpl.c~0    2011-10-22 16:19:34.000000000 +0200
+++ lib/canonicalize-lgpl.c    2012-01-17 13:10:52.608428500 +0200
@@ -51,6 +51,7 @@
 # define __realpath realpath
 # include "pathmax.h"
 # include "malloca.h"
+# include "dosname.h"
 # if HAVE_GETCWD
 #  if IN_RELOCWRAPPER
     /* When building the relocatable program wrapper, use the system's getcwd
@@ -101,6 +102,7 @@ __realpath (const char *name, char *reso
   const char *start, *end, *rpath_limit;
   long int path_max;
   int num_links = 0;
+  size_t prefix_len;
 
   if (name == NULL)
     {
@@ -143,7 +145,11 @@ __realpath (const char *name, char *reso
     rpath = resolved;
   rpath_limit = rpath + path_max;
 
-  if (name[0] != '/')
+  /* This is always zero for Posix hosts, but can be 2 for MS-Windows
+     and MS-DOS X:/foo/bar file names.  */
+  prefix_len = FILE_SYSTEM_PREFIX_LEN (name);
+
+  if (!IS_ABSOLUTE_FILE_NAME (name))
     {
       if (!__getcwd (rpath, path_max))
         {
@@ -154,13 +160,19 @@ __realpath (const char *name, char *reso
     }
   else
     {
-      rpath[0] = '/';
-      dest = rpath + 1;
-      if (DOUBLE_SLASH_IS_DISTINCT_ROOT && name[1] == '/')
+      dest = rpath;
+      if (prefix_len)
+    {
+      memcpy (rpath, name, prefix_len);
+      dest += prefix_len;
+    }
+      *dest++ = '/';
+      if (DOUBLE_SLASH_IS_DISTINCT_ROOT && ISSLASH (name[1])
+      && !prefix_len)
         *dest++ = '/';
     }
 
-  for (start = end = name; *start; start = end)
+  for (start = end = name + prefix_len; *start; start = end)
     {
 #ifdef _LIBC
       struct stat64 st;
@@ -170,11 +182,11 @@ __realpath (const char *name, char *reso
       int n;
 
       /* Skip sequence of multiple path-separators.  */
-      while (*start == '/')
+      while (ISSLASH (*start))
         ++start;
 
       /* Find end of path component.  */
-      for (end = start; *end && *end != '/'; ++end)
+      for (end = start; *end && !ISSLASH (*end); ++end)
         /* Nothing.  */;
 
       if (end - start == 0)
@@ -184,7 +196,7 @@ __realpath (const char *name, char *reso
       else if (end - start == 2 && start[0] == '.' && start[1] == '.')
         {
           /* Back up to previous component, ignore if at root already.  */
-          if (dest > rpath + 1)
+          if (dest > rpath + prefix_len + 1)
             while ((--dest)[-1] != '/');
           if (DOUBLE_SLASH_IS_DISTINCT_ROOT && dest == rpath + 1
               && *dest == '/')
@@ -205,7 +217,7 @@ __realpath (const char *name, char *reso
               if (resolved)
                 {
                   __set_errno (ENAMETOOLONG);
-                  if (dest > rpath + 1)
+                  if (dest > rpath + prefix_len + 1)
                     dest--;
                   *dest = '\0';
                   goto error;
@@ -295,17 +307,25 @@ __realpath (const char *name, char *reso
               memmove (&extra_buf[n], end, len + 1);
               name = end = memcpy (extra_buf, buf, n);
 
-              if (buf[0] == '/')
+              if (IS_ABSOLUTE_FILE_NAME (buf))
                 {
-                  dest = rpath + 1;     /* It's an absolute symlink */
-                  if (DOUBLE_SLASH_IS_DISTINCT_ROOT && buf[1] == '/')
+          size_t pfxlen = FILE_SYSTEM_PREFIX_LEN (buf);
+
+          if (pfxlen)
+            memcpy (rpath, buf, pfxlen);
+                  dest = rpath + pfxlen;     /* It's an absolute symlink.  */
+          *dest++ = '/';
+                  if (DOUBLE_SLASH_IS_DISTINCT_ROOT && ISSLASH (buf[1])
+              && pfxlen == 0)
                     *dest++ = '/';
+          /* Install the new prefix to be in effect hereafter.  */
+          prefix_len = pfxlen;
                 }
               else
                 {
                   /* Back up to previous component, ignore if at root
                      already: */
-                  if (dest > rpath + 1)
+                  if (dest > rpath + prefix_len + 1)
                     while ((--dest)[-1] != '/');
                   if (DOUBLE_SLASH_IS_DISTINCT_ROOT && dest == rpath + 1
                       && *dest == '/')
@@ -319,7 +339,7 @@ __realpath (const char *name, char *reso
             }
         }
     }
-  if (dest > rpath + 1 && dest[-1] == '/')
+  if (dest > rpath + prefix_len + 1 && dest[-1] == '/')
     --dest;
   if (DOUBLE_SLASH_IS_DISTINCT_ROOT && dest == rpath + 1 && *dest == '/')
     dest++;


----------------------------------------------------------------------------------------------------------
i modified the two failures by hand

----------------------------------------------------------------------------------------------------------
Hunk #4 FAILED at 160:
   }
  else
    {
      dest = rpath;
      if (prefix_len)
    {
      memcpy (rpath, name, prefix_len);
      dest += prefix_len;
    }
      *dest++ = '/';
      if (DOUBLE_SLASH_IS_DISTINCT_ROOT && ISSLASH (name[1])
      && !prefix_len)
    *dest++ = '/';
      *dest = '\0';
    }

----------------------------------------------------------------------------------------------------------
Hunk #8 FAILED at 301:
              memmove (&extra_buf[n], end, len + 1);
              name = end = memcpy (extra_buf, buf, n);

          if (IS_ABSOLUTE_FILE_NAME (buf))
                {
          size_t pfxlen = FILE_SYSTEM_PREFIX_LEN (buf);
          
          if (pfxlen)
            memcpy (rpath, buf, pfxlen);
          dest = rpath + pfxlen;     /* It's an absolute symlink.  */
          *dest++ = '/';
          if (DOUBLE_SLASH_IS_DISTINCT_ROOT && ISSLASH (buf[1])
              && pfxlen == 0)
            *dest++ = '/';
          /* Install the new prefix to be in effect hereafter.  */
          prefix_len = pfxlen;
                }
              else
                {
                  /* Back up to previous component, ignore if at root
                     already: */
          if (dest > rpath + prefix_len + 1)
                    while ((--dest)[-1] != '/');
                  if (DOUBLE_SLASH_IS_DISTINCT_ROOT && dest == rpath + 1
                      && *dest == '/' && dest[1] != '/')
                    dest++;
                }
            }
          else if (!S_ISDIR (st.st_mode) && *end != '\0')
----------------------------------------------------------------------------------------------------------
then make continued:

----------------------------------------------------------------------------------------------------------
  SNARF  mallocs.doc
  SNARF  memoize.doc
../../libguile/memoize.c:479:***Mismatching FUNC_NAME.  Should be: `#define FUNC_NAME s_"@prompt"'
  SNARF  modules.doc
  SNARF  numbers.doc
  SNARF  objprop.doc
  SNARF  options.doc
  SNARF  pairs.doc
../../libguile/pairs.c:147:***Missing or erroneous `#define FUNC_NAME s_scm_cdr'
../../libguile/pairs.c:150:***Missing or erroneous #undef for scm_car:
../../libguile/pairs.c:155:***Missing or erroneous `#define FUNC_NAME s_scm_cddr'
../../libguile/pairs.c:158:***Missing or erroneous #undef for scm_cdar:
../../libguile/pairs.c:163:***Missing or erroneous `#define FUNC_NAME s_scm_cadr'
../../libguile/pairs.c:166:***Missing or erroneous #undef for scm_caar:
../../libguile/pairs.c:171:***Missing or erroneous `#define FUNC_NAME s_scm_cdddr'
../../libguile/pairs.c:174:***Missing or erroneous #undef for scm_cddar:
../../libguile/pairs.c:179:***Missing or erroneous `#define FUNC_NAME s_scm_cdadr'
../../libguile/pairs.c:182:***Missing or erroneous #undef for scm_cdaar:
../../libguile/pairs.c:187:***Missing or erroneous `#define FUNC_NAME s_scm_caddr'
../../libguile/pairs.c:190:***Missing or erroneous #undef for scm_cadar:
../../libguile/pairs.c:195:***Missing or erroneous `#define FUNC_NAME s_scm_caadr'
../../libguile/pairs.c:198:***Missing or erroneous #undef for scm_caaar:
../../libguile/pairs.c:203:***Missing or erroneous `#define FUNC_NAME s_scm_cddddr'
../../libguile/pairs.c:206:***Missing or erroneous #undef for scm_cdddar:
../../libguile/pairs.c:211:***Missing or erroneous `#define FUNC_NAME s_scm_cddadr'
../../libguile/pairs.c:214:***Missing or erroneous #undef for scm_cddaar:
../../libguile/pairs.c:219:***Missing or erroneous `#define FUNC_NAME s_scm_cdaddr'
../../libguile/pairs.c:222:***Missing or erroneous #undef for scm_cdadar:
../../libguile/pairs.c:227:***Missing or erroneous `#define FUNC_NAME s_scm_cdaadr'
../../libguile/pairs.c:230:***Missing or erroneous #undef for scm_cdaaar:
../../libguile/pairs.c:235:***Missing or erroneous `#define FUNC_NAME s_scm_cadddr'
../../libguile/pairs.c:238:***Missing or erroneous #undef for scm_caddar:
../../libguile/pairs.c:243:***Missing or erroneous `#define FUNC_NAME s_scm_cadadr'
../../libguile/pairs.c:246:***Missing or erroneous #undef for scm_cadaar:
../../libguile/pairs.c:251:***Missing or erroneous `#define FUNC_NAME s_scm_caaddr'
../../libguile/pairs.c:254:***Missing or erroneous #undef for scm_caadar:
../../libguile/pairs.c:259:***Missing or erroneous `#define FUNC_NAME s_scm_caaadr'
../../libguile/pairs.c:262:***Missing or erroneous #undef for scm_caaaar:
  SNARF  ports.doc
  SNARF  print.doc
  SNARF  procprop.doc
  SNARF  procs.doc
  SNARF  promises.doc
  SNARF  r6rs-ports.doc
  SNARF  random.doc
  SNARF  rdelim.doc
  SNARF  read.doc
  SNARF  root.doc
  SNARF  rw.doc
  SNARF  scmsigs.doc
  SNARF  script.doc
  SNARF  simpos.doc
  SNARF  smob.doc
  SNARF  sort.doc
  SNARF  srcprop.doc
  SNARF  srfi-1.doc
  SNARF  srfi-4.doc
  SNARF  srfi-13.doc
  SNARF  srfi-14.doc
  SNARF  srfi-60.doc
  SNARF  stackchk.doc
  SNARF  stacks.doc
  SNARF  stime.doc
  SNARF  strings.doc
  SNARF  strorder.doc
  SNARF  strports.doc
  SNARF  struct.doc
  SNARF  symbols.doc
  SNARF  threads.doc
  SNARF  throw.doc
  SNARF  trees.doc
  SNARF  uniform.doc
  SNARF  values.doc
  SNARF  variable.doc
  SNARF  vectors.doc
  SNARF  version.doc
  SNARF  vports.doc
  SNARF  weaks.doc
  SNARF  posix.doc
  SNARF  net_db.doc
  SNARF  socket.doc
  SNARF  win32-uname.doc
  SNARF  win32-socket.doc
  SNARF  regex-posix.doc
  SNARF  mkstemp.doc
  GEN      guile-procedures.texi
Backtrace:
In unknown file:
   ?: 3 [apply-smob/1 #<boot-closure b7a7b0 (_ _ _)> #t ...]
   ?: 2 [apply-smob/1 #<catch-closure f18ad0>]
   ?: 1 [primitive-eval ((@ # %) (begin # # #))]
   ?: 0 [primitive-load-path "e:\\temp\\files\\guile\\guile-2.0.6\\build\\libguile/e:/temp/files/guile/guile-2.0.6/build/meta/guild"]

ERROR: make[3]: *** [guile-procedures.texi] Error 1
make[3]: Leaving directory `/e/temp/files/guile/guile-2.0.6/build/libguile'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/e/temp/files/guile/guile-2.0.6/build/libguile'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/e/temp/files/guile/guile-2.0.6/build'
make: *** [all] Error 2
----------------------------------------------------------------------------------------------------------

i tried guile.exe from command line:

----------------------------------------------------------------------------------------------------------
>guile
ERROR: In procedure primitive-load-path:
ERROR: Unable to find file "ice-9/boot-9.scm" in load path
----------------------------------------------------------------------------------------------------------

then i use the full path in msys:
----------------------------------------------------------------------------------------------------------
>/e/temp/files/guile/guile-2.0.6/build/libguile/guile
Throw without catch before boot:
Throw to key misc-error with args ("primitive-load-path" "Unable to find file ~S in load path" ("ice-9/boot-9") #f)Aborting.

This application has requested the Runtime to terminate it in an unusual way.
Please contact the application's support team for more information.
Cannot exit gracefully when init is in progress; aborting.

This application has requested the Runtime to terminate it in an unusual way.
Please contact the application's support team for more information.
----------------------------------------------------------------------------------------------------------

then i googled and find a way to define the load-path:

----------------------------------------------------------------------------------------------------------
>export GUILE_LOAD_PATH=/e/temp/files/guile/guile-2.0.6/module/
----------------------------------------------------------------------------------------------------------

9) now i run guile.exe, but the error was very strange:

----------------------------------------------------------------------------------------------------------
>guile
ERROR: Unbound variable: eval-when
----------------------------------------------------------------------------------------------------------

i don't know how to do now.
--_75244846-236a-4f12-b41d-280b30b7310f_-- From unknown Fri Sep 05 22:44:16 2025 X-Loop: help-debbugs@gnu.org Subject: bug#11877: now same as bug#10474 References: In-Reply-To: Resent-From: gnuemacser Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-guile@gnu.org Resent-Date: Sun, 08 Jul 2012 05:45:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 11877 X-GNU-PR-Package: guile X-GNU-PR-Keywords: To: <11877@debbugs.gnu.org> Received: via spool by 11877-submit@debbugs.gnu.org id=B11877.13417262698989 (code B ref 11877); Sun, 08 Jul 2012 05:45:02 +0000 Received: (at 11877) by debbugs.gnu.org; 8 Jul 2012 05:44:29 +0000 Received: from localhost ([127.0.0.1]:55841 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SnkIE-0002Kt-RX for submit@debbugs.gnu.org; Sun, 08 Jul 2012 01:44:29 -0400 Received: from col0-omc4-s7.col0.hotmail.com ([65.55.34.209]:8233) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SnkI9-0002Ki-Pa for 11877@debbugs.gnu.org; Sun, 08 Jul 2012 01:44:25 -0400 Received: from COL108-W54 ([65.55.34.200]) by col0-omc4-s7.col0.hotmail.com with Microsoft SMTPSVC(6.0.3790.4675); Sat, 7 Jul 2012 22:39:12 -0700 Message-ID: Content-Type: multipart/alternative; boundary="_4100794a-399e-4a1e-b161-2b0c515a5cc5_" X-Originating-IP: [124.78.212.72] From: gnuemacser Date: Sun, 8 Jul 2012 13:39:11 +0800 Importance: Normal MIME-Version: 1.0 X-OriginalArrivalTime: 08 Jul 2012 05:39:12.0301 (UTC) FILETIME=[00F8EDD0:01CD5CCC] X-Spam-Score: -1.7 (-) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -1.7 (-) --_4100794a-399e-4a1e-b161-2b0c515a5cc5_ Content-Type: text/plain; charset="gb2312" Content-Transfer-Encoding: 8bit after lunch, i tried again, this time i open a new msys window, cd to the build directory ,use the command: ---------------------------------------------------------------------------------------------------------- >make ---------------------------------------------------------------------------------------------------------- then make stops here: ---------------------------------------------------------------------------------------------------------- Making all in libguile make[2]: Entering directory `/e/temp/files/guile/guile-2.0.6/build/libguile' make all-am make[3]: Entering directory `/e/temp/files/guile/guile-2.0.6/build/libguile' GEN guile-procedures.texi Backtrace: In unknown file: ?: 3 [apply-smob/1 # #t ...] ?: 2 [apply-smob/1 #] ?: 1 [primitive-eval ((@ # %) (begin # # #))] ?: 0 [primitive-load-path "e:\\temp\\files\\guile\\guile-2.0.6\\build\\libguile/e:/temp/files/guile/guile-2.0.6/build/meta/guild"] ERROR: make[3]: *** [guile-procedures.texi] Error 1 make[3]: Leaving directory `/e/temp/files/guile/guile-2.0.6/build/libguile' make[2]: *** [all] Error 2 make[2]: Leaving directory `/e/temp/files/guile/guile-2.0.6/build/libguile' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/e/temp/files/guile/guile-2.0.6/build' make: *** [all] Error 2 ---------------------------------------------------------------------------------------------------------- the error is as same as https://lists.gnu.org/archive/html/bug-guile/2012-01/msg00056.html then i tried run guile.exe directly: ---------------------------------------------------------------------------------------------------------- >export GUILE_LOAD_PATH=/e/temp/files/guile/guile-2.0.6/module/ >cd libguile >./libguile/guile ---------------------------------------------------------------------------------------------------------- this time ,it makes these output ;;; note: auto-compilation is enabled, set GUILE_AUTO_COMPILE=0 ;;; or pass the --no-auto-compile argument to disable. ;;; compiling e:/temp/files/guile/guile-2.0.6/module/ice-9/command-line.scm ;;; compiling e:/temp/files/guile/guile-2.0.6/module/system/base/compile.scm ;;; it seems e:/temp/files/guile/guile-2.0.6/module/system/base/compile.scm ;;; is part of the compiler; skipping auto-compilation ;;; compiling e:/temp/files/guile/guile-2.0.6/module/system/base/syntax.scm ;;; it seems e:/temp/files/guile/guile-2.0.6/module/system/base/syntax.scm ;;; is part of the compiler; skipping auto-compilation ;;; compiling e:/temp/files/guile/guile-2.0.6/module/system/base/language.scm ;;; it seems e:/temp/files/guile/guile-2.0.6/module/system/base/language.scm ;;; is part of the compiler; skipping auto-compilation ;;; compiling e:/temp/files/guile/guile-2.0.6/module/system/base/message.scm ;;; it seems e:/temp/files/guile/guile-2.0.6/module/system/base/message.scm ;;; is part of the compiler; skipping auto-compilation ;;; compiling e:/temp/files/guile/guile-2.0.6/module/srfi/srfi-1.scm ;;; it seems e:/temp/files/guile/guile-2.0.6/module/srfi/srfi-1.scm ;;; is part of the compiler; skipping auto-compilation ;;; compiling e:/temp/files/guile/guile-2.0.6/module/srfi/srfi-9.scm ;;; it seems e:/temp/files/guile/guile-2.0.6/module/srfi/srfi-9.scm ;;; is part of the compiler; skipping auto-compilation ;;; compiling e:/temp/files/guile/guile-2.0.6/module/ice-9/match.scm ;;; it seems e:/temp/files/guile/guile-2.0.6/module/ice-9/match.scm ;;; is part of the compiler; skipping auto-compilation ;;; compiling e:/temp/files/guile/guile-2.0.6/module/system/vm/vm.scm ;;; it seems e:/temp/files/guile/guile-2.0.6/module/system/vm/vm.scm ;;; is part of the compiler; skipping auto-compilation ;;; compiling e:/temp/files/guile/guile-2.0.6/module/ice-9/regex.scm ;;; it seems e:/temp/files/guile/guile-2.0.6/module/ice-9/regex.scm ;;; is part of the compiler; skipping auto-compilation ;;; compiling e:/temp/files/guile/guile-2.0.6/module/ice-9/optargs.scm ;;; it seems e:/temp/files/guile/guile-2.0.6/module/ice-9/optargs.scm ;;; is part of the compiler; skipping auto-compilation ;;; compiling e:/temp/files/guile/guile-2.0.6/module/system/base/pmatch.scm ;;; it seems e:/temp/files/guile/guile-2.0.6/module/system/base/pmatch.scm ;;; is part of the compiler; skipping auto-compilation ;;; compiling e:/temp/files/guile/guile-2.0.6/module/ice-9/receive.scm ;;; it seems e:/temp/files/guile/guile-2.0.6/module/ice-9/receive.scm ;;; is part of the compiler; skipping auto-compilation ;;; compiling e:/temp/files/guile/guile-2.0.6/module/language/objcode/spec.scm ;;; WARNING: compilation of e:/temp/files/guile/guile-2.0.6/module/language/objcode/spec.scm failed: ;;; ERROR: In procedure delete-file: Permission denied ;;; compiling e:/temp/files/guile/guile-2.0.6/module/system/vm/objcode.scm ;;; WARNING: compilation of e:/temp/files/guile/guile-2.0.6/module/system/vm/objcode.scm failed: ;;; ERROR: In procedure delete-file: Permission denied ;;; compiling e:/temp/files/guile/guile-2.0.6/module/system/base/target.scm ;;; WARNING: compilation of e:/temp/files/guile/guile-2.0.6/module/system/base/target.scm failed: ;;; ERROR: In procedure delete-file: Permission denied ;;; compiling e:/temp/files/guile/guile-2.0.6/module/system/foreign.scm ;;; WARNING: compilation of e:/temp/files/guile/guile-2.0.6/module/system/foreign.scm failed: ;;; ERROR: In procedure delete-file: Permission denied ;;; compiling e:/temp/files/guile/guile-2.0.6/module/srfi/srfi-9/gnu.scm ;;; WARNING: compilation of e:/temp/files/guile/guile-2.0.6/module/srfi/srfi-9/gnu.scm failed: ;;; ERROR: In procedure delete-file: Permission denied ;;; compiling e:/temp/files/guile/guile-2.0.6/module/system/vm/program.scm ;;; WARNING: compilation of e:/temp/files/guile/guile-2.0.6/module/system/vm/program.scm failed: ;;; ERROR: In procedure delete-file: Permission denied ;;; compiling e:/temp/files/guile/guile-2.0.6/module/system/vm/instruction.scm ;;; WARNING: compilation of e:/temp/files/guile/guile-2.0.6/module/system/vm/instruction.scm failed: ;;; ERROR: In procedure delete-file: Permission denied ;;; compiling e:/temp/files/guile/guile-2.0.6/module/srfi/srfi-26.scm ;;; WARNING: compilation of e:/temp/files/guile/guile-2.0.6/module/srfi/srfi-26.scm failed: ;;; ERROR: In procedure delete-file: Permission denied ;;; compiling e:/temp/files/guile/guile-2.0.6/module/language/scheme/spec.scm ;;; WARNING: compilation of e:/temp/files/guile/guile-2.0.6/module/language/scheme/spec.scm failed: ;;; ERROR: In procedure delete-file: Permission denied ;;; compiling e:/temp/files/guile/guile-2.0.6/module/language/scheme/compile-tree-il.scm ;;; WARNING: compilation of e:/temp/files/guile/guile-2.0.6/module/language/scheme/compile-tree-il.scm failed: ;;; ERROR: In procedure delete-file: Permission denied ;;; compiling e:/temp/files/guile/guile-2.0.6/module/language/tree-il.scm ;;; WARNING: compilation of e:/temp/files/guile/guile-2.0.6/module/language/tree-il.scm failed: ;;; ERROR: In procedure delete-file: Permission denied ;;; compiling e:/temp/files/guile/guile-2.0.6/module/srfi/srfi-11.scm ;;; WARNING: compilation of e:/temp/files/guile/guile-2.0.6/module/srfi/srfi-11.scm failed: ;;; ERROR: In procedure delete-file: Permission denied ;;; compiling e:/temp/files/guile/guile-2.0.6/module/language/scheme/decompile-tree-il.scm ;;; WARNING: compilation of e:/temp/files/guile/guile-2.0.6/module/language/scheme/decompile-tree-il.scm failed: ;;; ERROR: In procedure delete-file: Permission denied ;;; compiling e:/temp/files/guile/guile-2.0.6/module/ice-9/vlist.scm ;;; WARNING: compilation of e:/temp/files/guile/guile-2.0.6/module/ice-9/vlist.scm failed: ;;; ERROR: In procedure delete-file: Permission denied ;;; compiling e:/temp/files/guile/guile-2.0.6/module/ice-9/format.scm ;;; WARNING: compilation of e:/temp/files/guile/guile-2.0.6/module/ice-9/format.scm failed: ;;; ERROR: In procedure delete-file: Permission denied ;;; compiling e:/temp/files/guile/guile-2.0.6/module/ice-9/i18n.scm ;;; WARNING: compilation of e:/temp/files/guile/guile-2.0.6/module/ice-9/i18n.scm failed: ;;; ERROR: In procedure delete-file: Permission denied ;;; compiling e:/temp/files/guile/guile-2.0.6/module/ice-9/pretty-print.scm ;;; WARNING: compilation of e:/temp/files/guile/guile-2.0.6/module/ice-9/pretty-print.scm failed: ;;; ERROR: In procedure delete-file: Permission denied ;;; compiling e:/temp/files/guile/guile-2.0.6/module/language/tree-il/spec.scm ;;; WARNING: compilation of e:/temp/files/guile/guile-2.0.6/module/language/tree-il/spec.scm failed: ;;; ERROR: In procedure delete-file: Permission denied ;;; compiling e:/temp/files/guile/guile-2.0.6/module/language/glil.scm ;;; WARNING: compilation of e:/temp/files/guile/guile-2.0.6/module/language/glil.scm failed: ;;; ERROR: In procedure delete-file: Permission denied ;;; compiling e:/temp/files/guile/guile-2.0.6/module/language/tree-il/compile-glil.scm ;;; WARNING: compilation of e:/temp/files/guile/guile-2.0.6/module/language/tree-il/compile-glil.scm failed: ;;; ERROR: In procedure delete-file: Permission denied ;;; compiling e:/temp/files/guile/guile-2.0.6/module/language/tree-il/optimize.scm ;;; WARNING: compilation of e:/temp/files/guile/guile-2.0.6/module/language/tree-il/optimize.scm failed: ;;; ERROR: In procedure delete-file: Permission denied ;;; compiling e:/temp/files/guile/guile-2.0.6/module/language/tree-il/primitives.scm ;;; WARNING: compilation of e:/temp/files/guile/guile-2.0.6/module/language/tree-il/primitives.scm failed: ;;; ERROR: In procedure delete-file: Permission denied ;;; compiling e:/temp/files/guile/guile-2.0.6/module/srfi/srfi-16.scm ;;; WARNING: compilation of e:/temp/files/guile/guile-2.0.6/module/srfi/srfi-16.scm failed: ;;; ERROR: In procedure delete-file: Permission denied ;;; compiling e:/temp/files/guile/guile-2.0.6/module/language/tree-il/peval.scm ;;; WARNING: compilation of e:/temp/files/guile/guile-2.0.6/module/language/tree-il/peval.scm failed: ;;; ERROR: In procedure delete-file: Permission denied ;;; compiling e:/temp/files/guile/guile-2.0.6/module/language/tree-il/effects.scm ;;; WARNING: compilation of e:/temp/files/guile/guile-2.0.6/module/language/tree-il/effects.scm failed: ;;; ERROR: In procedure delete-file: Permission denied ;;; compiling e:/temp/files/guile/guile-2.0.6/module/language/tree-il/cse.scm ;;; WARNING: compilation of e:/temp/files/guile/guile-2.0.6/module/language/tree-il/cse.scm failed: ;;; ERROR: In procedure delete-file: Permission denied ;;; compiling e:/temp/files/guile/guile-2.0.6/module/language/tree-il/fix-letrec.scm ;;; WARNING: compilation of e:/temp/files/guile/guile-2.0.6/module/language/tree-il/fix-letrec.scm failed: ;;; ERROR: In procedure delete-file: Permission denied ;;; compiling e:/temp/files/guile/guile-2.0.6/module/language/tree-il/debug.scm ;;; WARNING: compilation of e:/temp/files/guile/guile-2.0.6/module/language/tree-il/debug.scm failed: ;;; ERROR: In procedure delete-file: Permission denied ;;; compiling e:/temp/files/guile/guile-2.0.6/module/language/tree-il/canonicalize.scm ;;; WARNING: compilation of e:/temp/files/guile/guile-2.0.6/module/language/tree-il/canonicalize.scm failed: ;;; ERROR: In procedure delete-file: Permission denied ;;; compiling e:/temp/files/guile/guile-2.0.6/module/language/tree-il/analyze.scm ;;; WARNING: compilation of e:/temp/files/guile/guile-2.0.6/module/language/tree-il/analyze.scm failed: ;;; ERROR: In procedure delete-file: Permission denied ;;; compiling e:/temp/files/guile/guile-2.0.6/module/language/glil/spec.scm ;;; WARNING: compilation of e:/temp/files/guile/guile-2.0.6/module/language/glil/spec.scm failed: ;;; ERROR: In procedure delete-file: Permission denied ;;; compiling e:/temp/files/guile/guile-2.0.6/module/language/glil/compile-assembly.scm ;;; WARNING: compilation of e:/temp/files/guile/guile-2.0.6/module/language/glil/compile-assembly.scm failed: ;;; ERROR: In procedure delete-file: Permission denied ;;; compiling e:/temp/files/guile/guile-2.0.6/module/language/assembly.scm ;;; WARNING: compilation of e:/temp/files/guile/guile-2.0.6/module/language/assembly.scm failed: ;;; ERROR: In procedure delete-file: Permission denied ;;; compiling e:/temp/files/guile/guile-2.0.6/module/language/glil/decompile-assembly.scm ;;; WARNING: compilation of e:/temp/files/guile/guile-2.0.6/module/language/glil/decompile-assembly.scm failed: ;;; ERROR: In procedure delete-file: Permission denied ;;; compiling e:/temp/files/guile/guile-2.0.6/module/language/assembly/spec.scm ;;; WARNING: compilation of e:/temp/files/guile/guile-2.0.6/module/language/assembly/spec.scm failed: ;;; ERROR: In procedure delete-file: Permission denied ;;; compiling e:/temp/files/guile/guile-2.0.6/module/language/assembly/compile-bytecode.scm ;;; WARNING: compilation of e:/temp/files/guile/guile-2.0.6/module/language/assembly/compile-bytecode.scm failed: ;;; ERROR: In procedure delete-file: Permission denied ;;; compiling e:/temp/files/guile/guile-2.0.6/module/language/assembly/decompile-bytecode.scm ;;; WARNING: compilation of e:/temp/files/guile/guile-2.0.6/module/language/assembly/decompile-bytecode.scm failed: ;;; ERROR: In procedure delete-file: Permission denied ;;; compiling e:/temp/files/guile/guile-2.0.6/module/language/bytecode/spec.scm ;;; WARNING: compilation of e:/temp/files/guile/guile-2.0.6/module/language/bytecode/spec.scm failed: ;;; ERROR: In procedure delete-file: Permission denied ;;; WARNING: compilation of e:/temp/files/guile/guile-2.0.6/module/ice-9/command-line.scm failed: ;;; ERROR: In procedure delete-file: Permission denied ;;; compiling e:/temp/files/guile/guile-2.0.6/module/ice-9/control.scm ;;; WARNING: compilation of e:/temp/files/guile/guile-2.0.6/module/ice-9/control.scm failed: ;;; ERROR: In procedure delete-file: Permission denied ;;; compiling e:/temp/files/guile/guile-2.0.6/module/ice-9/top-repl.scm ;;; compiling e:/temp/files/guile/guile-2.0.6/module/system/repl/repl.scm ;;; compiling e:/temp/files/guile/guile-2.0.6/module/system/repl/error-handling.scm ;;; compiling e:/temp/files/guile/guile-2.0.6/module/system/vm/trap-state.scm ;;; compiling e:/temp/files/guile/guile-2.0.6/module/system/vm/traps.scm ;;; compiling e:/temp/files/guile/guile-2.0.6/module/system/vm/frame.scm ;;; WARNING: compilation of e:/temp/files/guile/guile-2.0.6/module/system/vm/frame.scm failed: ;;; ERROR: In procedure delete-file: Permission denied ;;; compiling e:/temp/files/guile/guile-2.0.6/module/system/xref.scm ;;; WARNING: compilation of e:/temp/files/guile/guile-2.0.6/module/system/xref.scm failed: ;;; ERROR: In procedure delete-file: Permission denied ;;; WARNING: compilation of e:/temp/files/guile/guile-2.0.6/module/system/vm/traps.scm failed: ;;; ERROR: In procedure delete-file: Permission denied ;;; compiling e:/temp/files/guile/guile-2.0.6/module/system/vm/trace.scm ;;; WARNING: compilation of e:/temp/files/guile/guile-2.0.6/module/system/vm/trace.scm failed: ;;; ERROR: In procedure delete-file: Permission denied ;;; WARNING: compilation of e:/temp/files/guile/guile-2.0.6/module/system/vm/trap-state.scm failed: ;;; ERROR: In procedure delete-file: Permission denied ;;; compiling e:/temp/files/guile/guile-2.0.6/module/system/repl/debug.scm ;;; compiling e:/temp/files/guile/guile-2.0.6/module/ice-9/rdelim.scm ;;; WARNING: compilation of e:/temp/files/guile/guile-2.0.6/module/ice-9/rdelim.scm failed: ;;; ERROR: In procedure delete-file: Permission denied ;;; compiling e:/temp/files/guile/guile-2.0.6/module/system/vm/inspect.scm ;;; compiling e:/temp/files/guile/guile-2.0.6/module/language/assembly/disassemble.scm ;;; WARNING: compilation of e:/temp/files/guile/guile-2.0.6/module/language/assembly/disassemble.scm failed: ;;; ERROR: In procedure delete-file: Permission denied ;;; WARNING: compilation of e:/temp/files/guile/guile-2.0.6/module/system/vm/inspect.scm failed: ;;; ERROR: In procedure delete-file: Permission denied ;;; WARNING: compilation of e:/temp/files/guile/guile-2.0.6/module/system/repl/debug.scm failed: ;;; ERROR: In procedure delete-file: Permission denied ;;; WARNING: compilation of e:/temp/files/guile/guile-2.0.6/module/system/repl/error-handling.scm failed: ;;; ERROR: In procedure delete-file: Permission denied ;;; compiling e:/temp/files/guile/guile-2.0.6/module/system/repl/common.scm ;;; compiling e:/temp/files/guile/guile-2.0.6/module/ice-9/history.scm ;;; WARNING: compilation of e:/temp/files/guile/guile-2.0.6/module/ice-9/history.scm failed: ;;; ERROR: In procedure delete-file: Permission denied ;;; system/repl/common.scm:141:25: warning: possibly unbound variable `times' ;;; WARNING: compilation of e:/temp/files/guile/guile-2.0.6/module/system/repl/common.scm failed: ;;; ERROR: In procedure delete-file: Permission denied ;;; compiling e:/temp/files/guile/guile-2.0.6/module/system/repl/command.scm ;;; compiling e:/temp/files/guile/guile-2.0.6/module/ice-9/session.scm ;;; compiling e:/temp/files/guile/guile-2.0.6/module/ice-9/documentation.scm ;;; WARNING: compilation of e:/temp/files/guile/guile-2.0.6/module/ice-9/documentation.scm failed: ;;; ERROR: In procedure delete-file: Permission denied ;;; ice-9/session.scm:241:11: warning: non-literal format string ;;; WARNING: compilation of e:/temp/files/guile/guile-2.0.6/module/ice-9/session.scm failed: ;;; ERROR: In procedure delete-file: Permission denied ;;; compiling e:/temp/files/guile/guile-2.0.6/module/ice-9/and-let-star.scm ;;; WARNING: compilation of e:/temp/files/guile/guile-2.0.6/module/ice-9/and-let-star.scm failed: ;;; ERROR: In procedure delete-file: Permission denied ;;; compiling e:/temp/files/guile/guile-2.0.6/module/statprof.scm ;;; statprof.scm:303:8: warning: possibly unbound variable `setitimer' ;;; statprof.scm:303:8: warning: possibly unbound variable `ITIMER_PROF' ;;; statprof.scm:355:12: warning: possibly unbound variable `setitimer' ;;; statprof.scm:355:12: warning: possibly unbound variable `ITIMER_PROF' ;;; statprof.scm:356:12: warning: possibly unbound variable `setitimer' ;;; statprof.scm:356:12: warning: possibly unbound variable `ITIMER_PROF' ;;; statprof.scm:380:34: warning: possibly unbound variable `setitimer' ;;; statprof.scm:380:34: warning: possibly unbound variable `ITIMER_PROF' ;;; statprof.scm:404:2: warning: possibly unbound variable `SIGPROF' ;;; WARNING: compilation of e:/temp/files/guile/guile-2.0.6/module/statprof.scm failed: ;;; ERROR: In procedure delete-file: Permission denied ;;; system/repl/command.scm:883:18: warning: possibly unbound variable `times' ;;; WARNING: compilation of e:/temp/files/guile/guile-2.0.6/module/system/repl/command.scm failed: ;;; ERROR: In procedure delete-file: Permission denied ;;; WARNING: compilation of e:/temp/files/guile/guile-2.0.6/module/system/repl/repl.scm failed: ;;; ERROR: In procedure delete-file: Permission denied ;;; ice-9/top-repl.scm:36:20: warning: possibly unbound variable `SIGINT' ;;; ice-9/top-repl.scm:44:18: warning: possibly unbound variable `SIGINT' ;;; ice-9/top-repl.scm:46:18: warning: possibly unbound variable `SIGINT' ;;; ice-9/top-repl.scm:70:16: warning: possibly unbound variable `setlocale' ;;; WARNING: compilation of e:/temp/files/guile/guile-2.0.6/module/ice-9/top-repl.scm failed: ;;; ERROR: In procedure delete-file: Permission denied ;;; compiling e:/temp/files/guile/guile-2.0.6/module/ice-9/r5rs.scm ;;; WARNING: compilation of e:/temp/files/guile/guile-2.0.6/module/ice-9/r5rs.scm failed: ;;; ERROR: In procedure delete-file: Permission denied ;;; compiling e:/temp/files/guile/guile-2.0.6/module/ice-9/safe-r5rs.scm ;;; WARNING: compilation of e:/temp/files/guile/guile-2.0.6/module/ice-9/safe-r5rs.scm failed: ;;; ERROR: In procedure delete-file: Permission denied ;;; compiling e:/temp/files/guile/guile-2.0.6/module/ice-9/null.scm ;;; WARNING: compilation of e:/temp/files/guile/guile-2.0.6/module/ice-9/null.scm failed: ;;; ERROR: In procedure delete-file: Permission denied Backtrace: In unknown file: ?: 3 [apply-smob/1 # #t ...] ?: 2 [apply-smob/1 #] ?: 1 [primitive-eval ((@ (ice-9 control) %) (begin (load-user-init) (#)))] ?: 0 [apply-smob/1 #] ERROR: hj_18@home-7c38298170 /e/temp/files/guile/guile-2.0.6/build/libguile ---------------------------------------------------------------------------------------------------------- the bug report said: "This happens because Guile calls fchmod, which is #define'd to -1 on MinGW. Solution: #define it to zero, since chmod is mostly a no-op on Windows anyway. This passes the eval.go step (and then fails while compiling psyntax-pp.go; to be continued...). As an aside, if this kind of operation is a frequent one, I'd suggest to change the caller so that it never uses fchmod on MS-Windows, because this function cannot be implemented there, except on the latest versions (Windows 7 etc.). Use chmod instead, even if that is less efficient. Btw, why doesn't the backtrace show file names, but says "unknown file"? Is this expected during the build, or is there another bug to look for? If the latter, any hints as to where to look for the reason(s)? Here's the patch for canonicalize-lgpl.c to make it Windows-friendly. I will send it to the gnulib developers as well." ---------------------------------------------------------------------------------------------------------- i use the patch ,but it doesn't solve the problem. so i don't know what to do with it. --_4100794a-399e-4a1e-b161-2b0c515a5cc5_ Content-Type: text/html; charset="gb2312" Content-Transfer-Encoding: 8bit
after lunch, i tried again, this time i open a new msys window, cd to the build directory ,use the command:
----------------------------------------------------------------------------------------------------------
>make
----------------------------------------------------------------------------------------------------------
then make stops here:

----------------------------------------------------------------------------------------------------------
Making all in libguile
make[2]: Entering directory `/e/temp/files/guile/guile-2.0.6/build/libguile'
make  all-am
make[3]: Entering directory `/e/temp/files/guile/guile-2.0.6/build/libguile'
  GEN      guile-procedures.texi
Backtrace:
In unknown file:
   ?: 3 [apply-smob/1 #<boot-closure f5a7b0 (_ _ _)> #t ...]
   ?: 2 [apply-smob/1 #<catch-closure 123ecf0>]
   ?: 1 [primitive-eval ((@ # %) (begin # # #))]
   ?: 0 [primitive-load-path "e:\\temp\\files\\guile\\guile-2.0.6\\build\\libguile/e:/temp/files/guile/guile-2.0.6/build/meta/guild"]

ERROR: make[3]: *** [guile-procedures.texi] Error 1
make[3]: Leaving directory `/e/temp/files/guile/guile-2.0.6/build/libguile'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/e/temp/files/guile/guile-2.0.6/build/libguile'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/e/temp/files/guile/guile-2.0.6/build'
make: *** [all] Error 2
----------------------------------------------------------------------------------------------------------

the error is as same as https://lists.gnu.org/archive/html/bug-guile/2012-01/msg00056.html


then i tried run guile.exe directly:


----------------------------------------------------------------------------------------------------------
>export GUILE_LOAD_PATH=/e/temp/files/guile/guile-2.0.6/module/
>cd libguile
>./libguile/guile
----------------------------------------------------------------------------------------------------------

this time ,it makes these output

;;; note: auto-compilation is enabled, set GUILE_AUTO_COMPILE=0
;;;       or pass the --no-auto-compile argument to disable.
;;; compiling e:/temp/files/guile/guile-2.0.6/module/ice-9/command-line.scm
;;; compiling e:/temp/files/guile/guile-2.0.6/module/system/base/compile.scm
;;; it seems e:/temp/files/guile/guile-2.0.6/module/system/base/compile.scm
;;; is part of the compiler; skipping auto-compilation
;;; compiling e:/temp/files/guile/guile-2.0.6/module/system/base/syntax.scm
;;; it seems e:/temp/files/guile/guile-2.0.6/module/system/base/syntax.scm
;;; is part of the compiler; skipping auto-compilation
;;; compiling e:/temp/files/guile/guile-2.0.6/module/system/base/language.scm
;;; it seems e:/temp/files/guile/guile-2.0.6/module/system/base/language.scm
;;; is part of the compiler; skipping auto-compilation
;;; compiling e:/temp/files/guile/guile-2.0.6/module/system/base/message.scm
;;; it seems e:/temp/files/guile/guile-2.0.6/module/system/base/message.scm
;;; is part of the compiler; skipping auto-compilation
;;; compiling e:/temp/files/guile/guile-2.0.6/module/srfi/srfi-1.scm
;;; it seems e:/temp/files/guile/guile-2.0.6/module/srfi/srfi-1.scm
;;; is part of the compiler; skipping auto-compilation
;;; compiling e:/temp/files/guile/guile-2.0.6/module/srfi/srfi-9.scm
;;; it seems e:/temp/files/guile/guile-2.0.6/module/srfi/srfi-9.scm
;;; is part of the compiler; skipping auto-compilation
;;; compiling e:/temp/files/guile/guile-2.0.6/module/ice-9/match.scm
;;; it seems e:/temp/files/guile/guile-2.0.6/module/ice-9/match.scm
;;; is part of the compiler; skipping auto-compilation
;;; compiling e:/temp/files/guile/guile-2.0.6/module/system/vm/vm.scm
;;; it seems e:/temp/files/guile/guile-2.0.6/module/system/vm/vm.scm
;;; is part of the compiler; skipping auto-compilation
;;; compiling e:/temp/files/guile/guile-2.0.6/module/ice-9/regex.scm
;;; it seems e:/temp/files/guile/guile-2.0.6/module/ice-9/regex.scm
;;; is part of the compiler; skipping auto-compilation
;;; compiling e:/temp/files/guile/guile-2.0.6/module/ice-9/optargs.scm
;;; it seems e:/temp/files/guile/guile-2.0.6/module/ice-9/optargs.scm
;;; is part of the compiler; skipping auto-compilation
;;; compiling e:/temp/files/guile/guile-2.0.6/module/system/base/pmatch.scm
;;; it seems e:/temp/files/guile/guile-2.0.6/module/system/base/pmatch.scm
;;; is part of the compiler; skipping auto-compilation
;;; compiling e:/temp/files/guile/guile-2.0.6/module/ice-9/receive.scm
;;; it seems e:/temp/files/guile/guile-2.0.6/module/ice-9/receive.scm
;;; is part of the compiler; skipping auto-compilation
;;; compiling e:/temp/files/guile/guile-2.0.6/module/language/objcode/spec.scm
;;; WARNING: compilation of e:/temp/files/guile/guile-2.0.6/module/language/objcode/spec.scm failed:
;;; ERROR: In procedure delete-file: Permission denied
;;; compiling e:/temp/files/guile/guile-2.0.6/module/system/vm/objcode.scm
;;; WARNING: compilation of e:/temp/files/guile/guile-2.0.6/module/system/vm/objcode.scm failed:
;;; ERROR: In procedure delete-file: Permission denied
;;; compiling e:/temp/files/guile/guile-2.0.6/module/system/base/target.scm
;;; WARNING: compilation of e:/temp/files/guile/guile-2.0.6/module/system/base/target.scm failed:
;;; ERROR: In procedure delete-file: Permission denied
;;; compiling e:/temp/files/guile/guile-2.0.6/module/system/foreign.scm
;;; WARNING: compilation of e:/temp/files/guile/guile-2.0.6/module/system/foreign.scm failed:
;;; ERROR: In procedure delete-file: Permission denied
;;; compiling e:/temp/files/guile/guile-2.0.6/module/srfi/srfi-9/gnu.scm
;;; WARNING: compilation of e:/temp/files/guile/guile-2.0.6/module/srfi/srfi-9/gnu.scm failed:
;;; ERROR: In procedure delete-file: Permission denied
;;; compiling e:/temp/files/guile/guile-2.0.6/module/system/vm/program.scm
;;; WARNING: compilation of e:/temp/files/guile/guile-2.0.6/module/system/vm/program.scm failed:
;;; ERROR: In procedure delete-file: Permission denied
;;; compiling e:/temp/files/guile/guile-2.0.6/module/system/vm/instruction.scm
;;; WARNING: compilation of e:/temp/files/guile/guile-2.0.6/module/system/vm/instruction.scm failed:
;;; ERROR: In procedure delete-file: Permission denied
;;; compiling e:/temp/files/guile/guile-2.0.6/module/srfi/srfi-26.scm
;;; WARNING: compilation of e:/temp/files/guile/guile-2.0.6/module/srfi/srfi-26.scm failed:
;;; ERROR: In procedure delete-file: Permission denied
;;; compiling e:/temp/files/guile/guile-2.0.6/module/language/scheme/spec.scm
;;; WARNING: compilation of e:/temp/files/guile/guile-2.0.6/module/language/scheme/spec.scm failed:
;;; ERROR: In procedure delete-file: Permission denied
;;; compiling e:/temp/files/guile/guile-2.0.6/module/language/scheme/compile-tree-il.scm
;;; WARNING: compilation of e:/temp/files/guile/guile-2.0.6/module/language/scheme/compile-tree-il.scm failed:
;;; ERROR: In procedure delete-file: Permission denied
;;; compiling e:/temp/files/guile/guile-2.0.6/module/language/tree-il.scm
;;; WARNING: compilation of e:/temp/files/guile/guile-2.0.6/module/language/tree-il.scm failed:
;;; ERROR: In procedure delete-file: Permission denied
;;; compiling e:/temp/files/guile/guile-2.0.6/module/srfi/srfi-11.scm
;;; WARNING: compilation of e:/temp/files/guile/guile-2.0.6/module/srfi/srfi-11.scm failed:
;;; ERROR: In procedure delete-file: Permission denied
;;; compiling e:/temp/files/guile/guile-2.0.6/module/language/scheme/decompile-tree-il.scm
;;; WARNING: compilation of e:/temp/files/guile/guile-2.0.6/module/language/scheme/decompile-tree-il.scm failed:
;;; ERROR: In procedure delete-file: Permission denied
;;; compiling e:/temp/files/guile/guile-2.0.6/module/ice-9/vlist.scm
;;; WARNING: compilation of e:/temp/files/guile/guile-2.0.6/module/ice-9/vlist.scm failed:
;;; ERROR: In procedure delete-file: Permission denied
;;; compiling e:/temp/files/guile/guile-2.0.6/module/ice-9/format.scm
;;; WARNING: compilation of e:/temp/files/guile/guile-2.0.6/module/ice-9/format.scm failed:
;;; ERROR: In procedure delete-file: Permission denied
;;; compiling e:/temp/files/guile/guile-2.0.6/module/ice-9/i18n.scm
;;; WARNING: compilation of e:/temp/files/guile/guile-2.0.6/module/ice-9/i18n.scm failed:
;;; ERROR: In procedure delete-file: Permission denied
;;; compiling e:/temp/files/guile/guile-2.0.6/module/ice-9/pretty-print.scm
;;; WARNING: compilation of e:/temp/files/guile/guile-2.0.6/module/ice-9/pretty-print.scm failed:
;;; ERROR: In procedure delete-file: Permission denied
;;; compiling e:/temp/files/guile/guile-2.0.6/module/language/tree-il/spec.scm
;;; WARNING: compilation of e:/temp/files/guile/guile-2.0.6/module/language/tree-il/spec.scm failed:
;;; ERROR: In procedure delete-file: Permission denied
;;; compiling e:/temp/files/guile/guile-2.0.6/module/language/glil.scm
;;; WARNING: compilation of e:/temp/files/guile/guile-2.0.6/module/language/glil.scm failed:
;;; ERROR: In procedure delete-file: Permission denied
;;; compiling e:/temp/files/guile/guile-2.0.6/module/language/tree-il/compile-glil.scm
;;; WARNING: compilation of e:/temp/files/guile/guile-2.0.6/module/language/tree-il/compile-glil.scm failed:
;;; ERROR: In procedure delete-file: Permission denied
;;; compiling e:/temp/files/guile/guile-2.0.6/module/language/tree-il/optimize.scm
;;; WARNING: compilation of e:/temp/files/guile/guile-2.0.6/module/language/tree-il/optimize.scm failed:
;;; ERROR: In procedure delete-file: Permission denied
;;; compiling e:/temp/files/guile/guile-2.0.6/module/language/tree-il/primitives.scm
;;; WARNING: compilation of e:/temp/files/guile/guile-2.0.6/module/language/tree-il/primitives.scm failed:
;;; ERROR: In procedure delete-file: Permission denied
;;; compiling e:/temp/files/guile/guile-2.0.6/module/srfi/srfi-16.scm
;;; WARNING: compilation of e:/temp/files/guile/guile-2.0.6/module/srfi/srfi-16.scm failed:
;;; ERROR: In procedure delete-file: Permission denied
;;; compiling e:/temp/files/guile/guile-2.0.6/module/language/tree-il/peval.scm
;;; WARNING: compilation of e:/temp/files/guile/guile-2.0.6/module/language/tree-il/peval.scm failed:
;;; ERROR: In procedure delete-file: Permission denied
;;; compiling e:/temp/files/guile/guile-2.0.6/module/language/tree-il/effects.scm
;;; WARNING: compilation of e:/temp/files/guile/guile-2.0.6/module/language/tree-il/effects.scm failed:
;;; ERROR: In procedure delete-file: Permission denied
;;; compiling e:/temp/files/guile/guile-2.0.6/module/language/tree-il/cse.scm
;;; WARNING: compilation of e:/temp/files/guile/guile-2.0.6/module/language/tree-il/cse.scm failed:
;;; ERROR: In procedure delete-file: Permission denied
;;; compiling e:/temp/files/guile/guile-2.0.6/module/language/tree-il/fix-letrec.scm
;;; WARNING: compilation of e:/temp/files/guile/guile-2.0.6/module/language/tree-il/fix-letrec.scm failed:
;;; ERROR: In procedure delete-file: Permission denied
;;; compiling e:/temp/files/guile/guile-2.0.6/module/language/tree-il/debug.scm
;;; WARNING: compilation of e:/temp/files/guile/guile-2.0.6/module/language/tree-il/debug.scm failed:
;;; ERROR: In procedure delete-file: Permission denied
;;; compiling e:/temp/files/guile/guile-2.0.6/module/language/tree-il/canonicalize.scm
;;; WARNING: compilation of e:/temp/files/guile/guile-2.0.6/module/language/tree-il/canonicalize.scm failed:
;;; ERROR: In procedure delete-file: Permission denied
;;; compiling e:/temp/files/guile/guile-2.0.6/module/language/tree-il/analyze.scm
;;; WARNING: compilation of e:/temp/files/guile/guile-2.0.6/module/language/tree-il/analyze.scm failed:
;;; ERROR: In procedure delete-file: Permission denied
;;; compiling e:/temp/files/guile/guile-2.0.6/module/language/glil/spec.scm
;;; WARNING: compilation of e:/temp/files/guile/guile-2.0.6/module/language/glil/spec.scm failed:
;;; ERROR: In procedure delete-file: Permission denied
;;; compiling e:/temp/files/guile/guile-2.0.6/module/language/glil/compile-assembly.scm
;;; WARNING: compilation of e:/temp/files/guile/guile-2.0.6/module/language/glil/compile-assembly.scm failed:
;;; ERROR: In procedure delete-file: Permission denied
;;; compiling e:/temp/files/guile/guile-2.0.6/module/language/assembly.scm
;;; WARNING: compilation of e:/temp/files/guile/guile-2.0.6/module/language/assembly.scm failed:
;;; ERROR: In procedure delete-file: Permission denied
;;; compiling e:/temp/files/guile/guile-2.0.6/module/language/glil/decompile-assembly.scm
;;; WARNING: compilation of e:/temp/files/guile/guile-2.0.6/module/language/glil/decompile-assembly.scm failed:
;;; ERROR: In procedure delete-file: Permission denied
;;; compiling e:/temp/files/guile/guile-2.0.6/module/language/assembly/spec.scm
;;; WARNING: compilation of e:/temp/files/guile/guile-2.0.6/module/language/assembly/spec.scm failed:
;;; ERROR: In procedure delete-file: Permission denied
;;; compiling e:/temp/files/guile/guile-2.0.6/module/language/assembly/compile-bytecode.scm
;;; WARNING: compilation of e:/temp/files/guile/guile-2.0.6/module/language/assembly/compile-bytecode.scm failed:
;;; ERROR: In procedure delete-file: Permission denied
;;; compiling e:/temp/files/guile/guile-2.0.6/module/language/assembly/decompile-bytecode.scm
;;; WARNING: compilation of e:/temp/files/guile/guile-2.0.6/module/language/assembly/decompile-bytecode.scm failed:
;;; ERROR: In procedure delete-file: Permission denied
;;; compiling e:/temp/files/guile/guile-2.0.6/module/language/bytecode/spec.scm
;;; WARNING: compilation of e:/temp/files/guile/guile-2.0.6/module/language/bytecode/spec.scm failed:
;;; ERROR: In procedure delete-file: Permission denied
;;; WARNING: compilation of e:/temp/files/guile/guile-2.0.6/module/ice-9/command-line.scm failed:
;;; ERROR: In procedure delete-file: Permission denied
;;; compiling e:/temp/files/guile/guile-2.0.6/module/ice-9/control.scm
;;; WARNING: compilation of e:/temp/files/guile/guile-2.0.6/module/ice-9/control.scm failed:
;;; ERROR: In procedure delete-file: Permission denied
;;; compiling e:/temp/files/guile/guile-2.0.6/module/ice-9/top-repl.scm
;;; compiling e:/temp/files/guile/guile-2.0.6/module/system/repl/repl.scm
;;; compiling e:/temp/files/guile/guile-2.0.6/module/system/repl/error-handling.scm
;;; compiling e:/temp/files/guile/guile-2.0.6/module/system/vm/trap-state.scm
;;; compiling e:/temp/files/guile/guile-2.0.6/module/system/vm/traps.scm
;;; compiling e:/temp/files/guile/guile-2.0.6/module/system/vm/frame.scm
;;; WARNING: compilation of e:/temp/files/guile/guile-2.0.6/module/system/vm/frame.scm failed:
;;; ERROR: In procedure delete-file: Permission denied
;;; compiling e:/temp/files/guile/guile-2.0.6/module/system/xref.scm
;;; WARNING: compilation of e:/temp/files/guile/guile-2.0.6/module/system/xref.scm failed:
;;; ERROR: In procedure delete-file: Permission denied
;;; WARNING: compilation of e:/temp/files/guile/guile-2.0.6/module/system/vm/traps.scm failed:
;;; ERROR: In procedure delete-file: Permission denied
;;; compiling e:/temp/files/guile/guile-2.0.6/module/system/vm/trace.scm
;;; WARNING: compilation of e:/temp/files/guile/guile-2.0.6/module/system/vm/trace.scm failed:
;;; ERROR: In procedure delete-file: Permission denied
;;; WARNING: compilation of e:/temp/files/guile/guile-2.0.6/module/system/vm/trap-state.scm failed:
;;; ERROR: In procedure delete-file: Permission denied
;;; compiling e:/temp/files/guile/guile-2.0.6/module/system/repl/debug.scm
;;; compiling e:/temp/files/guile/guile-2.0.6/module/ice-9/rdelim.scm
;;; WARNING: compilation of e:/temp/files/guile/guile-2.0.6/module/ice-9/rdelim.scm failed:
;;; ERROR: In procedure delete-file: Permission denied
;;; compiling e:/temp/files/guile/guile-2.0.6/module/system/vm/inspect.scm
;;; compiling e:/temp/files/guile/guile-2.0.6/module/language/assembly/disassemble.scm
;;; WARNING: compilation of e:/temp/files/guile/guile-2.0.6/module/language/assembly/disassemble.scm failed:
;;; ERROR: In procedure delete-file: Permission denied
;;; WARNING: compilation of e:/temp/files/guile/guile-2.0.6/module/system/vm/inspect.scm failed:
;;; ERROR: In procedure delete-file: Permission denied
;;; WARNING: compilation of e:/temp/files/guile/guile-2.0.6/module/system/repl/debug.scm failed:
;;; ERROR: In procedure delete-file: Permission denied
;;; WARNING: compilation of e:/temp/files/guile/guile-2.0.6/module/system/repl/error-handling.scm failed:
;;; ERROR: In procedure delete-file: Permission denied
;;; compiling e:/temp/files/guile/guile-2.0.6/module/system/repl/common.scm
;;; compiling e:/temp/files/guile/guile-2.0.6/module/ice-9/history.scm
;;; WARNING: compilation of e:/temp/files/guile/guile-2.0.6/module/ice-9/history.scm failed:
;;; ERROR: In procedure delete-file: Permission denied
;;; system/repl/common.scm:141:25: warning: possibly unbound variable `times'
;;; WARNING: compilation of e:/temp/files/guile/guile-2.0.6/module/system/repl/common.scm failed:
;;; ERROR: In procedure delete-file: Permission denied
;;; compiling e:/temp/files/guile/guile-2.0.6/module/system/repl/command.scm
;;; compiling e:/temp/files/guile/guile-2.0.6/module/ice-9/session.scm
;;; compiling e:/temp/files/guile/guile-2.0.6/module/ice-9/documentation.scm
;;; WARNING: compilation of e:/temp/files/guile/guile-2.0.6/module/ice-9/documentation.scm failed:
;;; ERROR: In procedure delete-file: Permission denied
;;; ice-9/session.scm:241:11: warning: non-literal format string
;;; WARNING: compilation of e:/temp/files/guile/guile-2.0.6/module/ice-9/session.scm failed:
;;; ERROR: In procedure delete-file: Permission denied
;;; compiling e:/temp/files/guile/guile-2.0.6/module/ice-9/and-let-star.scm
;;; WARNING: compilation of e:/temp/files/guile/guile-2.0.6/module/ice-9/and-let-star.scm failed:
;;; ERROR: In procedure delete-file: Permission denied
;;; compiling e:/temp/files/guile/guile-2.0.6/module/statprof.scm
;;; statprof.scm:303:8: warning: possibly unbound variable `setitimer'
;;; statprof.scm:303:8: warning: possibly unbound variable `ITIMER_PROF'
;;; statprof.scm:355:12: warning: possibly unbound variable `setitimer'
;;; statprof.scm:355:12: warning: possibly unbound variable `ITIMER_PROF'
;;; statprof.scm:356:12: warning: possibly unbound variable `setitimer'
;;; statprof.scm:356:12: warning: possibly unbound variable `ITIMER_PROF'
;;; statprof.scm:380:34: warning: possibly unbound variable `setitimer'
;;; statprof.scm:380:34: warning: possibly unbound variable `ITIMER_PROF'
;;; statprof.scm:404:2: warning: possibly unbound variable `SIGPROF'
;;; WARNING: compilation of e:/temp/files/guile/guile-2.0.6/module/statprof.scm
failed:
;;; ERROR: In procedure delete-file: Permission denied
;;; system/repl/command.scm:883:18: warning: possibly unbound variable `times'
;;; WARNING: compilation of e:/temp/files/guile/guile-2.0.6/module/system/repl/command.scm failed:
;;; ERROR: In procedure delete-file: Permission denied
;;; WARNING: compilation of e:/temp/files/guile/guile-2.0.6/module/system/repl/repl.scm failed:
;;; ERROR: In procedure delete-file: Permission denied
;;; ice-9/top-repl.scm:36:20: warning: possibly unbound variable `SIGINT'
;;; ice-9/top-repl.scm:44:18: warning: possibly unbound variable `SIGINT'
;;; ice-9/top-repl.scm:46:18: warning: possibly unbound variable `SIGINT'
;;; ice-9/top-repl.scm:70:16: warning: possibly unbound variable `setlocale'
;;; WARNING: compilation of e:/temp/files/guile/guile-2.0.6/module/ice-9/top-repl.scm failed:
;;; ERROR: In procedure delete-file: Permission denied
;;; compiling e:/temp/files/guile/guile-2.0.6/module/ice-9/r5rs.scm
;;; WARNING: compilation of e:/temp/files/guile/guile-2.0.6/module/ice-9/r5rs.scm failed:
;;; ERROR: In procedure delete-file: Permission denied
;;; compiling e:/temp/files/guile/guile-2.0.6/module/ice-9/safe-r5rs.scm
;;; WARNING: compilation of e:/temp/files/guile/guile-2.0.6/module/ice-9/safe-r5rs.scm failed:
;;; ERROR: In procedure delete-file: Permission denied
;;; compiling e:/temp/files/guile/guile-2.0.6/module/ice-9/null.scm
;;; WARNING: compilation of e:/temp/files/guile/guile-2.0.6/module/ice-9/null.scm failed:
;;; ERROR: In procedure delete-file: Permission denied
Backtrace:
In unknown file:
   ?: 3 [apply-smob/1 #<boot-closure f577b0 (_ _ _)> #t ...]
   ?: 2 [apply-smob/1 #<catch-closure 11d1e90>]
   ?: 1 [primitive-eval ((@ (ice-9 control) %) (begin (load-user-init) (#)))]
   ?: 0 [apply-smob/1 #<boot-closure 1e029e0 ()>]

ERROR:
hj_18@home-7c38298170 /e/temp/files/guile/guile-2.0.6/build/libguile
----------------------------------------------------------------------------------------------------------

the bug report said:
"This happens because Guile calls fchmod, which is #define'd to -1 on
MinGW.

Solution: #define it to zero, since chmod is mostly a no-op on Windows
anyway.  This passes the eval.go step (and then fails while compiling
psyntax-pp.go; to be continued...).

As an aside, if this kind of operation is a frequent one, I'd suggest
to change the caller so that it never uses fchmod on MS-Windows,
because this function cannot be implemented there, except on the
latest versions (Windows 7 etc.).  Use chmod instead, even if that is
less efficient.

Btw, why doesn't the backtrace show file names, but says "unknown
file"?  Is this expected during the build, or is there another bug to
look for?  If the latter, any hints as to where to look for the
reason(s)?

Here's the patch for canonicalize-lgpl.c to make it Windows-friendly.
I will send it to the gnulib developers as well."
----------------------------------------------------------------------------------------------------------

i use the patch ,but it doesn't solve the problem. so i don't know what to do with it.

--_4100794a-399e-4a1e-b161-2b0c515a5cc5_-- From unknown Fri Sep 05 22:44:16 2025 X-Loop: help-debbugs@gnu.org Subject: bug#11877: now same as bug#10474 Resent-From: ludo@gnu.org (Ludovic =?UTF-8?Q?Court=C3=A8s?=) Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-guile@gnu.org Resent-Date: Mon, 09 Jul 2012 16:10:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 11877 X-GNU-PR-Package: guile X-GNU-PR-Keywords: To: gnuemacser Cc: 11877@debbugs.gnu.org Received: via spool by 11877-submit@debbugs.gnu.org id=B11877.134185016622467 (code B ref 11877); Mon, 09 Jul 2012 16:10:02 +0000 Received: (at 11877) by debbugs.gnu.org; 9 Jul 2012 16:09:26 +0000 Received: from localhost ([127.0.0.1]:58313 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SoGWb-0005qI-SD for submit@debbugs.gnu.org; Mon, 09 Jul 2012 12:09:26 -0400 Received: from mail1-relais-roc.national.inria.fr ([192.134.164.82]:46892) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SoGWZ-0005qA-0t for 11877@debbugs.gnu.org; Mon, 09 Jul 2012 12:09:24 -0400 X-IronPort-AV: E=Sophos;i="4.77,552,1336341600"; d="scan'208";a="166167384" Received: from vpn-konference.ms.mff.cuni.cz (HELO pluto) ([195.113.20.101]) by mail1-relais-roc.national.inria.fr with ESMTP/TLS/DHE-RSA-AES128-SHA; 09 Jul 2012 18:04:06 +0200 From: ludo@gnu.org (Ludovic =?UTF-8?Q?Court=C3=A8s?=) References: Date: Mon, 09 Jul 2012 18:04:06 +0200 In-Reply-To: (gnuemacser's message of "Sun, 8 Jul 2012 13:39:11 +0800") Message-ID: <874npgexah.fsf@gnu.org> User-Agent: Gnus/5.130005 (Ma Gnus v0.5) Emacs/24.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -6.2 (------) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -6.2 (------) Hi, gnuemacser skribis: > ?: 0 [primitive-load-path "e:\\temp\\files\\guile\\guile-2.0.6\\build\= \libguile/e:/temp/files/guile/guile-2.0.6/build/meta/guild"] [...] > the error is as same as https://lists.gnu.org/archive/html/bug-guile/2012= -01/msg00056.html Can you point us to the patch that fixes it, in the above thread? > then i tried run guile.exe directly: You should run ./meta/guile instead; running libguile/guile from the build tree won=E2=80=99t work. Thanks, Ludo=E2=80=99. From unknown Fri Sep 05 22:44:16 2025 MIME-Version: 1.0 X-Mailer: MIME-tools 5.428 (Entity 5.428) X-Loop: help-debbugs@gnu.org From: help-debbugs@gnu.org (GNU bug Tracking System) To: gnuemacser Subject: bug#11877: closed (Re: bug#11877: now same as bug#10474) Message-ID: References: <8738waylhj.fsf@pobox.com> X-Gnu-PR-Message: they-closed 11877 X-Gnu-PR-Package: guile Reply-To: 11877@debbugs.gnu.org Date: Tue, 05 Mar 2013 18:55:08 +0000 Content-Type: multipart/mixed; boundary="----------=_1362509708-2262-1" This is a multi-part message in MIME format... ------------=_1362509708-2262-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Your bug report #11877: MinGW build failures which was filed against the guile package, has been closed. The explanation is attached below, along with your original report. If you require more details, please reply to 11877@debbugs.gnu.org. --=20 11877: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D11877 GNU Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1362509708-2262-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 11877-done) by debbugs.gnu.org; 5 Mar 2013 18:54:38 +0000 Received: from localhost ([127.0.0.1]:32843 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1UCx0X-0000YB-B2 for submit@debbugs.gnu.org; Tue, 05 Mar 2013 13:54:38 -0500 Received: from a-pb-sasl-quonix.pobox.com ([208.72.237.25]:39828 helo=sasl.smtp.pobox.com) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1UCx0V-0000Y3-IS for 11877-done@debbugs.gnu.org; Tue, 05 Mar 2013 13:54:36 -0500 Received: from sasl.smtp.pobox.com (unknown [127.0.0.1]) by a-pb-sasl-quonix.pobox.com (Postfix) with ESMTP id B93D4BFB0; Tue, 5 Mar 2013 13:54:13 -0500 (EST) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=pobox.com; h=from:to :subject:references:date:in-reply-to:message-id:mime-version :content-type:content-transfer-encoding; s=sasl; bh=PrsO5Y5rJjpU SqlDoi1U8MPZQho=; b=K0htAAkCweWoCPeqDdj3ChkIzNTTnlflrF5tl5jXnShr nqx4Kve67szXFTlGvFpS3F8AU5OyzxAjBU3w5hMWY9U2Sw7sgrZoz3d8J5Tjm/42 BF8jU1i/RxzG7ZXbmyzJpleBkT76chC+c+9aUlKClLPDTzont3JM/fQRQYMaNfg= DomainKey-Signature: a=rsa-sha1; c=nofws; d=pobox.com; h=from:to:subject :references:date:in-reply-to:message-id:mime-version :content-type:content-transfer-encoding; q=dns; s=sasl; b=VO9Ko2 zTqq11REHNk4+e4DItPP8nfc78Wm96hN6DEQljhfKqfdFdPhy3oyaCgJjC6CZcxP XkMEmF38aofhv73qONNQMqZajVUOVJBi/J4SndCmm35YtMEkeCBRNPoIj1PZtMR3 wPifaibAnL/LtNEWACtwfbqHGsZk/mLtGjwFM= Received: from a-pb-sasl-quonix.pobox.com (unknown [127.0.0.1]) by a-pb-sasl-quonix.pobox.com (Postfix) with ESMTP id ACC19BFAF; Tue, 5 Mar 2013 13:54:13 -0500 (EST) Received: from badger (unknown [217.91.84.86]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by a-pb-sasl-quonix.pobox.com (Postfix) with ESMTPSA id 21BDBBFAE; Tue, 5 Mar 2013 13:54:13 -0500 (EST) From: Andy Wingo To: gnuemacser , 11877-done@debbugs.gnu.org Subject: Re: bug#11877: now same as bug#10474 References: <874npgexah.fsf@gnu.org> Date: Tue, 05 Mar 2013 15:22:48 +0100 In-Reply-To: <874npgexah.fsf@gnu.org> ("Ludovic =?utf-8?Q?Court=C3=A8s=22'?= =?utf-8?Q?s?= message of "Mon, 09 Jul 2012 18:04:06 +0200") Message-ID: <8738waylhj.fsf@pobox.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Pobox-Relay-ID: 125E3534-85C6-11E2-BE81-59240E5B5709-02397024!a-pb-sasl-quonix.pobox.com X-Spam-Score: 1.8 (+) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has identified this incoming email as possible spam. The original message has been attached to this so you can view it (if it isn't spam) or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: On Mon 09 Jul 2012 18:04, ludo@gnu.org (Ludovic Courtès) writes: > gnuemacser skribis: > >> ?: 0 [primitive-load-path "e:\\temp\\files\\guile\\guile-2.0.6\\build\\libguile/e:/temp/files/guile/guile-2.0.6/build/meta/guild"] > > [...] > >> the error is as same as https://lists.gnu.org/archive/html/bug-guile/2012-01/msg00056.html [...] Content analysis details: (1.8 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at http://www.dnswl.org/, no trust [208.72.237.25 listed in list.dnswl.org] -0.0 SPF_PASS SPF: sender matches SPF record 1.6 DATE_IN_PAST_03_06 Date: is 3 to 6 hours before Received: date -0.6 RP_MATCHES_RCVD Envelope sender domain matches handover relay domain 0.8 BAYES_50 BODY: Bayes spam probability is 40 to 60% [score: 0.4679] 0.0 T_DKIM_INVALID DKIM-Signature header exists but is not valid X-Debbugs-Envelope-To: 11877-done X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: 1.0 (+) On Mon 09 Jul 2012 18:04, ludo@gnu.org (Ludovic Court=C3=A8s) writes: > gnuemacser skribis: > >> ?: 0 [primitive-load-path "e:\\temp\\files\\guile\\guile-2.0.6\\build= \\libguile/e:/temp/files/guile/guile-2.0.6/build/meta/guild"] > > [...] > >> the error is as same as https://lists.gnu.org/archive/html/bug-guile/201= 2-01/msg00056.html This is the canonicalize-path bug that I fixed recently. Marking as fixed; please send a new mail if you still see errors. Thanks! Andy --=20 http://wingolog.org/ ------------=_1362509708-2262-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at submit) by debbugs.gnu.org; 8 Jul 2012 02:05:03 +0000 Received: from localhost ([127.0.0.1]:55545 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1Sngrq-00049L-LO for submit@debbugs.gnu.org; Sat, 07 Jul 2012 22:05:02 -0400 Received: from eggs.gnu.org ([208.118.235.92]:40444) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1Sngrk-00049A-D0 for submit@debbugs.gnu.org; Sat, 07 Jul 2012 22:04:56 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Sngmh-0005ZX-RY for submit@debbugs.gnu.org; Sat, 07 Jul 2012 21:59:45 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-4.1 required=5.0 tests=BAYES_00, FREEMAIL_ENVFROM_END_DIGIT, FREEMAIL_FROM, HTML_MESSAGE, RCVD_IN_DNSWL_HI, RECEIVED_FROM_WINDOWS_HOST autolearn=ham version=3.3.2 Received: from lists.gnu.org ([208.118.235.17]:53216) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Sngmh-0005ZT-NX for submit@debbugs.gnu.org; Sat, 07 Jul 2012 21:59:39 -0400 Received: from eggs.gnu.org ([208.118.235.92]:36691) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Sngmc-0006G0-ER for bug-guile@gnu.org; Sat, 07 Jul 2012 21:59:39 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SngmW-0005Xe-4G for bug-guile@gnu.org; Sat, 07 Jul 2012 21:59:33 -0400 Received: from col0-omc3-s12.col0.hotmail.com ([65.55.34.150]:53365) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SngmV-0005X7-IF for bug-guile@gnu.org; Sat, 07 Jul 2012 21:59:28 -0400 Received: from COL108-W23 ([65.55.34.137]) by col0-omc3-s12.col0.hotmail.com with Microsoft SMTPSVC(6.0.3790.4675); Sat, 7 Jul 2012 18:59:24 -0700 Message-ID: Content-Type: multipart/alternative; boundary="_75244846-236a-4f12-b41d-280b30b7310f_" X-Originating-IP: [124.78.212.72] From: gnuemacser To: bug guile Subject: [help]why guile tells me "ERROR: Unbound variable: eval-when" Date: Sun, 8 Jul 2012 09:59:24 +0800 Importance: Normal MIME-Version: 1.0 X-OriginalArrivalTime: 08 Jul 2012 01:59:24.0549 (UTC) FILETIME=[4C75AB50:01CD5CAD] X-detected-operating-system: by eggs.gnu.org: Windows 2000 SP4, XP SP1+ X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 208.118.235.17 X-Spam-Score: -6.0 (------) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -6.0 (------) --_75244846-236a-4f12-b41d-280b30b7310f_ Content-Type: text/plain; charset="gb2312" Content-Transfer-Encoding: 8bit i download guile-2.0.6.tar.gz and build it like this: 1) i make a diretory under the top directory for build : >mkdir build >cd build 2) i config it with the option: >../configure --host=i686-pc-mingw32 --disable-shared --without-threads scm_cv_struct_timespec=no LIBS='-lunistring -lintl -liconv' if i don't use "scm_cv_struct_timespec=no", then the libguile/threads.c will not be able to compile. 3)then i make: >make these are the warnings: ---------------------------------------------------------------------------------------------------------- CC libguile_2.0_la-fports.lo ../../libguile/fports.c: In function 'fport_input_waiting': ../../libguile/fports.c:606:7: warning: unused variable 'fdes' [-Wunused-variable] CC libguile_2.0_la-hashtab.lo CC libguile_2.0_la-hooks.lo CC libguile_2.0_la-i18n.lo ../../libguile/i18n.c: In function 'scm_make_locale': ../../libguile/i18n.c:610:16: warning: variable 'c_base_locale' set but not used [-Wunused-but-set-variable] CC libguile_2.0_la-init.lo CC libguile_2.0_la-stime.lo ../../libguile/stime.c:88:14: warning: 'tzname' redeclared without dllimport attribute: previous dllimport ignored [-Wattributes] CC libguile_2.0_la-strings.lo CC libguile_2.0_la-strorder.lo CC libguile_2.0_la-strports.lo CC libguile_2.0_la-struct.lo CC libguile_2.0_la-symbols.lo CC libguile_2.0_la-threads.lo ../../libguile/threads.c: In function 'scm_cancel_thread': ../../libguile/threads.c:1168:7: warning: statement with no effect [-Wunused-value] CC libguile_2.0_la-throw.lo CC libguile_2.0_la-trees.lo ---------------------------------------------------------------------------------------------------------- 4) the error begins to show: ---------------------------------------------------------------------------------------------------------- CC dynl.lo CC posix.lo ../../libguile/posix.c: In function 'scm_utime': ../../libguile/posix.c:1577:7: warning: variable 'f' set but not used [-Wunused-but-set-variable] ../../libguile/posix.c:1576:19: warning: variable 'mtim_nsec' set but not used [-Wunused-but-set-variable] ../../libguile/posix.c:1576:8: warning: variable 'atim_nsec' set but not used [-Wunused-but-set-variable] ../../libguile/posix.c: In function 'scm_init_posix': ../../libguile/posix.c:2380:36: error: 'scm_init_popen' undeclared (first use in this function) ../../libguile/posix.c:2380:36: note: each undeclared identifier is reported only once for each function it appears in make[3]: *** [posix.lo] Error 1 make[3]: Leaving directory `/e/temp/files/guile/guile-2.0.6/build/libguile' make[2]: *** [all] Error 2 make[2]: Leaving directory `/e/temp/files/guile/guile-2.0.6/build/libguile' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/e/temp/files/guile/guile-2.0.6/build' make: *** [all] Error 2 ---------------------------------------------------------------------------------------------------------- so i check the libguile/posix.c and fixed it like this: the original one is : ---------------------------------------------------------------------------------------------------------- #include "libguile/cpp-SIG.c" #include "libguile/posix.x" scm_c_register_extension ("libguile-" SCM_EFFECTIVE_VERSION, "scm_init_popen", (scm_t_extension_init_func) scm_init_popen, NULL); ---------------------------------------------------------------------------------------------------------- i added the #ifdef macro ---------------------------------------------------------------------------------------------------------- #ifdef HAVE_FORK #include "libguile/cpp-SIG.c" #include "libguile/posix.x" scm_c_register_extension ("libguile-" SCM_EFFECTIVE_VERSION, "scm_init_popen", (scm_t_extension_init_func) scm_init_popen, NULL); #endif ---------------------------------------------------------------------------------------------------------- 5) then the make continued like this: ---------------------------------------------------------------------------------------------------------- make[3]: Entering directory `/e/temp/files/guile/guile-2.0.6/build/libguile' CC posix.lo ../../libguile/posix.c: In function 'scm_utime': ../../libguile/posix.c:1577:7: warning: variable 'f' set but not used [-Wunused-but-set-variable] ../../libguile/posix.c:1576:19: warning: variable 'mtim_nsec' set but not used [-Wunused-but-set-variable] ../../libguile/posix.c:1576:8: warning: variable 'atim_nsec' set but not used [-Wunused-but-set-variable] ../../libguile/posix.c: At top level: ../../libguile/posix.c:223:1: warning: 'scm_pipe__name' defined but not used [-Wunused-variable] ../../libguile/posix.c:633:1: warning: 'scm_kill__name' defined but not used [-Wunused-variable] ../../libguile/posix.c:1125:1: warning: 'scm_execl__name' defined but not used [-Wunused-variable] ../../libguile/posix.c:1162:1: warning: 'scm_execlp__name' defined but not used [-Wunused-variable] ../../libguile/posix.c:1200:1: warning: 'scm_execle__name' defined but not used [-Wunused-variable] ../../libguile/posix.c:1459:1: warning: 'scm_uname__name' defined but not used [-Wunused-variable] ../../libguile/posix.c:1483:1: warning: 'scm_environ__name' defined but not used [-Wunused-variable] ../../libguile/posix.c:1506:1: warning: 'scm_tmpnam__name' defined but not used [-Wunused-variable] ../../libguile/posix.c:1528:1: warning: 'scm_tmpfile__name' defined but not used [-Wunused-variable] ../../libguile/posix.c:1555:1: warning: 'scm_utime__name' defined but not used [-Wunused-variable] ../../libguile/posix.c:1650:1: warning: 'scm_getpid__name' defined but not used [-Wunused-variable] ../../libguile/posix.c:1659:1: warning: 'scm_putenv__name' defined but not used [-Wunused-variable] ../../libguile/posix.c:1694:1: warning: 'scm_setlocale__name' defined but not used [-Wunused-variable] ../../libguile/posix.c:1938:1: warning: 'scm_getlogin__name' defined but not used [-Wunused-variable] ../../libguile/posix.c:2134:1: warning: 'scm_flock__name' defined but not used [-Wunused-variable] ---------------------------------------------------------------------------------------------------------- 6) again ,make reported an error which has been reported in http://debbugs.gnu.org/cgi/bugreport.cgi?bug=10474 ---------------------------------------------------------------------------------------------------------- CC net_db.lo ../../libguile/net_db.c:461:1: error: 'AI_ALL' undeclared here (not in a function) ../../libguile/net_db.c:461:1: error: expression in static assertion is not an integer ../../libguile/net_db.c:483:33: warning: 'struct addrinfo' declared inside parameter list [enabled by default] ../../libguile/net_db.c:483:33: warning: its scope is only this definition or declaration, which is probably not what you want [enabled by default] ../../libguile/net_db.c: In function 'scm_from_addrinfo': ../../libguile/net_db.c:491:3: error: dereferencing pointer to incomplete type ../../libguile/net_db.c:492:3: error: dereferencing pointer to incomplete type ../../libguile/net_db.c:493:3: error: dereferencing pointer to incomplete type ../../libguile/net_db.c:494:3: error: dereferencing pointer to incomplete type ../../libguile/net_db.c:495:3: error: dereferencing pointer to incomplete type ../../libguile/net_db.c:495:3: error: dereferencing pointer to incomplete type ../../libguile/net_db.c:497:3: error: dereferencing pointer to incomplete type ../../libguile/net_db.c:497:3: error: dereferencing pointer to incomplete type ../../libguile/net_db.c: In function 'scm_getaddrinfo': ../../libguile/net_db.c:619:19: error: storage size of 'c_hints' isn't known ../../libguile/net_db.c:662:3: warning: implicit declaration of function 'getaddrinfo' [-Wimplicit-function-declaration] ../../libguile/net_db.c:670:10: error: dereferencing pointer to incomplete type ../../libguile/net_db.c:670:19: warning: left-hand operand of comma expression has no effect [-Wunused-value] ../../libguile/net_db.c:671:2: warning: passing argument 1 of 'scm_from_addrinfo' from incompatible pointer type [enabled by default] ../../libguile/net_db.c:483:1: note: expected 'const struct addrinfo *' but argument is of type 'struct addrinfo *' ../../libguile/net_db.c:673:7: warning: implicit declaration of function 'freeaddrinfo' [-Wimplicit-function-declaration] ../../libguile/net_db.c:619:19: warning: unused variable 'c_hints' [-Wunused-variable] ../../libguile/net_db.c: At top level: ../../libguile/net_db.c:685:1: error: 'EAI_BADFLAGS' undeclared here (not in a function) ../../libguile/net_db.c:685:1: error: expression in static assertion is not an integer ../../libguile/net_db.c: In function 'scm_gai_strerror': ../../libguile/net_db.c:749:3: warning: implicit declaration of function 'gai_strerror' [-Wimplicit-function-declaration] ../../libguile/net_db.c:749:3: warning: passing argument 1 of 'scm_from_locale_string' makes pointer from integer without a cast [enabled by default] ../../libguile/strings.h:134:13: note: expected 'const char *' but argument is of type 'int' In file included from ../../libguile/net_db.c:760:0: ../libguile/net_db.x: In function 'scm_init_net_db': ../libguile/net_db.x:17:78: error: 'AI_PASSIVE' undeclared (first use in this function) ../libguile/net_db.x:17:78: note: each undeclared identifier is reported only once for each function it appears in ../libguile/net_db.x:18:82: error: 'AI_CANONNAME' undeclared (first use in this function) ../libguile/net_db.x:19:86: error: 'AI_NUMERICHOST' undeclared (first use in this function) ../libguile/net_db.x:20:86: error: 'AI_NUMERICSERV' undeclared (first use in this function) ../libguile/net_db.x:21:80: error: 'AI_V4MAPPED' undeclared (first use in this function) ../libguile/net_db.x:23:84: error: 'AI_ADDRCONFIG' undeclared (first use in this function) ../libguile/net_db.x:27:78: error: 'EAI_NONAME' undeclared (first use in this function) ../libguile/net_db.x:28:76: error: 'EAI_AGAIN' undeclared (first use in this function) ../libguile/net_db.x:29:74: error: 'EAI_FAIL' undeclared (first use in this function) ../libguile/net_db.x:30:78: error: 'EAI_FAMILY' undeclared (first use in this function) ../libguile/net_db.x:31:82: error: 'EAI_SOCKTYPE' undeclared (first use in this function) ../libguile/net_db.x:32:80: error: 'EAI_SERVICE' undeclared (first use in this function) ../libguile/net_db.x:33:78: error: 'EAI_MEMORY' undeclared (first use in this function) ../libguile/net_db.x:34:78: error: 'EAI_SYSTEM' undeclared (first use in this function) ../libguile/net_db.x:35:82: error: 'EAI_OVERFLOW' undeclared (first use in this function) make[3]: *** [net_db.lo] Error 1 make[3]: Leaving directory `/e/temp/files/guile/guile-2.0.6/build/libguile' make[2]: *** [all] Error 2 make[2]: Leaving directory `/e/temp/files/guile/guile-2.0.6/build/libguile' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/e/temp/files/guile/guile-2.0.6/build' make: *** [all] Error 2 ---------------------------------------------------------------------------------------------------------- as the bug report said: "The reason is that this condition in net_db.c: #ifdef HAVE_WINSOCK2_H #include #else #include #include #include #include #endif is inappropriate when gnulib was used to wrap Windows socket functions. When gnulib _is_ used, the missing macros are already defined by lib/sys/socket.h. Therefore, I modified the condition to: #if HAVE_WINSOCK2_H && !GNULIB_TEST_SOCKET #include # if HAVE_WS2TCPIP_H # include # endif #else #include #include #include #include #endif " 7) let's make it again, warnings like these: ---------------------------------------------------------------------------------------------------------- CC socket.lo ../../libguile/socket.c: In function 'scm_inet_ntop': ../../libguile/socket.c:349:7: warning: implicit declaration of function 'inet_ntop' [-Wimplicit-function-declaration] ../../libguile/socket.c:349:14: warning: assignment makes pointer from integer without a cast [enabled by default] ../../libguile/socket.c:357:14: warning: assignment makes pointer from integer without a cast [enabled by default] ../../libguile/socket.c: In function 'scm_inet_pton': ../../libguile/socket.c:397:3: warning: implicit declaration of function 'inet_pton' [-Wimplicit-function-declaration] ../../libguile/socket.c: In function 'scm_fill_sockaddr': ../../libguile/socket.c:817:16: warning: variable 'scope_id' set but not used [-Wunused-but-set-variable] CC win32-uname.lo CC win32-socket.lo ../../libguile/win32-socket.c: In function 'getservent': ../../libguile/win32-socket.c:488:25: warning: array subscript is above array bounds [-Warray-bounds] ../../libguile/win32-socket.c: In function 'getprotoent': ../../libguile/win32-socket.c:569:26: warning: array subscript is above array bounds [-Warray-bounds] CC regex-posix.lo CC mkstemp.lo CCLD libguile-2.0.la libtool: link: warning: library `d:/dev/mingw/lib/libunistring.la' was moved. libtool: link: warning: library `d:/dev/mingw/lib/libunistring.la' was moved. Creating library file: .libs/libguile-2.0.dll.a copying selected object files to avoid basename conflicts... CCLD guile.exe libtool: link: warning: library `d:/dev/mingw/lib/libunistring.la' was moved. libtool: link: warning: library `d:/dev/mingw/lib/libunistring.la' was moved. libtool: link: warning: library `d:/dev/mingw/lib/libunistring.la' was moved. ---------------------------------------------------------------------------------------------------------- i edited the `d:/dev/mingw/lib/libunistring.la' to correct it like this: ---------------------------------------------------------------------------------------------------------- # libunistring.la - a libtool library file # Generated by libtool (GNU libtool) 2.4 # # Please DO NOT delete this file! # It is necessary for linking the library. # The name that we can dlopen(3). dlname='../bin/libunistring-0.dll' # Names of this library. library_names='libunistring.dll.a' # The name of the static archive. old_library='libunistring.a' # Linker flags that can not go in dependency_libs. inherited_linker_flags='' # Libraries that this one depends upon. dependency_libs=' -R==d:/dev/mingw/lib -L=d:/dev/mingw/lib /mingw/lib/libiconv.la' # Names of additional weak libraries provided by this library weak_library_names='' # Version information for libunistring. current=1 age=1 revision=2 # Is this an already installed library? installed=yes # Should we warn about portability when linking against -modules? shouldnotlink=no # Files to dlopen/dlpreopen dlopen='' dlpreopen='' # Directory that this library needs to be installed in: libdir='d:/dev/mingw/lib' ---------------------------------------------------------------------------------------------------------- 8) i use the patch for canonicalize-lgpl.c to make it Windows-friendly from bug report 10474, but two hunk was failure: ---------------------------------------------------------------------------------------------------------- (Stripping trailing CRs from patch.) patching file lib/canonicalize-lgpl.c Hunk #4 FAILED at 160. Hunk #5 succeeded at 180 (offset 4 lines). Hunk #6 succeeded at 194 with fuzz 1 (offset 4 lines). Hunk #7 succeeded at 215 (offset 4 lines). Hunk #8 FAILED at 301. Hunk #9 succeeded at 333 with fuzz 2 (offset 8 lines). 2 out of 9 hunks FAILED -- saving rejects to file lib/canonicalize-lgpl.c.rej ---------------------------------------------------------------------------------------------------------- ---------------------------------------------------------------------------------------------------------- --- lib/canonicalize-lgpl.c~0 2011-10-22 16:19:34.000000000 +0200 +++ lib/canonicalize-lgpl.c 2012-01-17 13:10:52.608428500 +0200 @@ -51,6 +51,7 @@ # define __realpath realpath # include "pathmax.h" # include "malloca.h" +# include "dosname.h" # if HAVE_GETCWD # if IN_RELOCWRAPPER /* When building the relocatable program wrapper, use the system's getcwd @@ -101,6 +102,7 @@ __realpath (const char *name, char *reso const char *start, *end, *rpath_limit; long int path_max; int num_links = 0; + size_t prefix_len; if (name == NULL) { @@ -143,7 +145,11 @@ __realpath (const char *name, char *reso rpath = resolved; rpath_limit = rpath + path_max; - if (name[0] != '/') + /* This is always zero for Posix hosts, but can be 2 for MS-Windows + and MS-DOS X:/foo/bar file names. */ + prefix_len = FILE_SYSTEM_PREFIX_LEN (name); + + if (!IS_ABSOLUTE_FILE_NAME (name)) { if (!__getcwd (rpath, path_max)) { @@ -154,13 +160,19 @@ __realpath (const char *name, char *reso } else { - rpath[0] = '/'; - dest = rpath + 1; - if (DOUBLE_SLASH_IS_DISTINCT_ROOT && name[1] == '/') + dest = rpath; + if (prefix_len) + { + memcpy (rpath, name, prefix_len); + dest += prefix_len; + } + *dest++ = '/'; + if (DOUBLE_SLASH_IS_DISTINCT_ROOT && ISSLASH (name[1]) + && !prefix_len) *dest++ = '/'; } - for (start = end = name; *start; start = end) + for (start = end = name + prefix_len; *start; start = end) { #ifdef _LIBC struct stat64 st; @@ -170,11 +182,11 @@ __realpath (const char *name, char *reso int n; /* Skip sequence of multiple path-separators. */ - while (*start == '/') + while (ISSLASH (*start)) ++start; /* Find end of path component. */ - for (end = start; *end && *end != '/'; ++end) + for (end = start; *end && !ISSLASH (*end); ++end) /* Nothing. */; if (end - start == 0) @@ -184,7 +196,7 @@ __realpath (const char *name, char *reso else if (end - start == 2 && start[0] == '.' && start[1] == '.') { /* Back up to previous component, ignore if at root already. */ - if (dest > rpath + 1) + if (dest > rpath + prefix_len + 1) while ((--dest)[-1] != '/'); if (DOUBLE_SLASH_IS_DISTINCT_ROOT && dest == rpath + 1 && *dest == '/') @@ -205,7 +217,7 @@ __realpath (const char *name, char *reso if (resolved) { __set_errno (ENAMETOOLONG); - if (dest > rpath + 1) + if (dest > rpath + prefix_len + 1) dest--; *dest = '\0'; goto error; @@ -295,17 +307,25 @@ __realpath (const char *name, char *reso memmove (&extra_buf[n], end, len + 1); name = end = memcpy (extra_buf, buf, n); - if (buf[0] == '/') + if (IS_ABSOLUTE_FILE_NAME (buf)) { - dest = rpath + 1; /* It's an absolute symlink */ - if (DOUBLE_SLASH_IS_DISTINCT_ROOT && buf[1] == '/') + size_t pfxlen = FILE_SYSTEM_PREFIX_LEN (buf); + + if (pfxlen) + memcpy (rpath, buf, pfxlen); + dest = rpath + pfxlen; /* It's an absolute symlink. */ + *dest++ = '/'; + if (DOUBLE_SLASH_IS_DISTINCT_ROOT && ISSLASH (buf[1]) + && pfxlen == 0) *dest++ = '/'; + /* Install the new prefix to be in effect hereafter. */ + prefix_len = pfxlen; } else { /* Back up to previous component, ignore if at root already: */ - if (dest > rpath + 1) + if (dest > rpath + prefix_len + 1) while ((--dest)[-1] != '/'); if (DOUBLE_SLASH_IS_DISTINCT_ROOT && dest == rpath + 1 && *dest == '/') @@ -319,7 +339,7 @@ __realpath (const char *name, char *reso } } } - if (dest > rpath + 1 && dest[-1] == '/') + if (dest > rpath + prefix_len + 1 && dest[-1] == '/') --dest; if (DOUBLE_SLASH_IS_DISTINCT_ROOT && dest == rpath + 1 && *dest == '/') dest++; ---------------------------------------------------------------------------------------------------------- i modified the two failures by hand ---------------------------------------------------------------------------------------------------------- Hunk #4 FAILED at 160: } else { dest = rpath; if (prefix_len) { memcpy (rpath, name, prefix_len); dest += prefix_len; } *dest++ = '/'; if (DOUBLE_SLASH_IS_DISTINCT_ROOT && ISSLASH (name[1]) && !prefix_len) *dest++ = '/'; *dest = '\0'; } ---------------------------------------------------------------------------------------------------------- Hunk #8 FAILED at 301: memmove (&extra_buf[n], end, len + 1); name = end = memcpy (extra_buf, buf, n); if (IS_ABSOLUTE_FILE_NAME (buf)) { size_t pfxlen = FILE_SYSTEM_PREFIX_LEN (buf); if (pfxlen) memcpy (rpath, buf, pfxlen); dest = rpath + pfxlen; /* It's an absolute symlink. */ *dest++ = '/'; if (DOUBLE_SLASH_IS_DISTINCT_ROOT && ISSLASH (buf[1]) && pfxlen == 0) *dest++ = '/'; /* Install the new prefix to be in effect hereafter. */ prefix_len = pfxlen; } else { /* Back up to previous component, ignore if at root already: */ if (dest > rpath + prefix_len + 1) while ((--dest)[-1] != '/'); if (DOUBLE_SLASH_IS_DISTINCT_ROOT && dest == rpath + 1 && *dest == '/' && dest[1] != '/') dest++; } } else if (!S_ISDIR (st.st_mode) && *end != '\0') ---------------------------------------------------------------------------------------------------------- then make continued: ---------------------------------------------------------------------------------------------------------- SNARF mallocs.doc SNARF memoize.doc ../../libguile/memoize.c:479:***Mismatching FUNC_NAME. Should be: `#define FUNC_NAME s_"@prompt"' SNARF modules.doc SNARF numbers.doc SNARF objprop.doc SNARF options.doc SNARF pairs.doc ../../libguile/pairs.c:147:***Missing or erroneous `#define FUNC_NAME s_scm_cdr' ../../libguile/pairs.c:150:***Missing or erroneous #undef for scm_car: ../../libguile/pairs.c:155:***Missing or erroneous `#define FUNC_NAME s_scm_cddr' ../../libguile/pairs.c:158:***Missing or erroneous #undef for scm_cdar: ../../libguile/pairs.c:163:***Missing or erroneous `#define FUNC_NAME s_scm_cadr' ../../libguile/pairs.c:166:***Missing or erroneous #undef for scm_caar: ../../libguile/pairs.c:171:***Missing or erroneous `#define FUNC_NAME s_scm_cdddr' ../../libguile/pairs.c:174:***Missing or erroneous #undef for scm_cddar: ../../libguile/pairs.c:179:***Missing or erroneous `#define FUNC_NAME s_scm_cdadr' ../../libguile/pairs.c:182:***Missing or erroneous #undef for scm_cdaar: ../../libguile/pairs.c:187:***Missing or erroneous `#define FUNC_NAME s_scm_caddr' ../../libguile/pairs.c:190:***Missing or erroneous #undef for scm_cadar: ../../libguile/pairs.c:195:***Missing or erroneous `#define FUNC_NAME s_scm_caadr' ../../libguile/pairs.c:198:***Missing or erroneous #undef for scm_caaar: ../../libguile/pairs.c:203:***Missing or erroneous `#define FUNC_NAME s_scm_cddddr' ../../libguile/pairs.c:206:***Missing or erroneous #undef for scm_cdddar: ../../libguile/pairs.c:211:***Missing or erroneous `#define FUNC_NAME s_scm_cddadr' ../../libguile/pairs.c:214:***Missing or erroneous #undef for scm_cddaar: ../../libguile/pairs.c:219:***Missing or erroneous `#define FUNC_NAME s_scm_cdaddr' ../../libguile/pairs.c:222:***Missing or erroneous #undef for scm_cdadar: ../../libguile/pairs.c:227:***Missing or erroneous `#define FUNC_NAME s_scm_cdaadr' ../../libguile/pairs.c:230:***Missing or erroneous #undef for scm_cdaaar: ../../libguile/pairs.c:235:***Missing or erroneous `#define FUNC_NAME s_scm_cadddr' ../../libguile/pairs.c:238:***Missing or erroneous #undef for scm_caddar: ../../libguile/pairs.c:243:***Missing or erroneous `#define FUNC_NAME s_scm_cadadr' ../../libguile/pairs.c:246:***Missing or erroneous #undef for scm_cadaar: ../../libguile/pairs.c:251:***Missing or erroneous `#define FUNC_NAME s_scm_caaddr' ../../libguile/pairs.c:254:***Missing or erroneous #undef for scm_caadar: ../../libguile/pairs.c:259:***Missing or erroneous `#define FUNC_NAME s_scm_caaadr' ../../libguile/pairs.c:262:***Missing or erroneous #undef for scm_caaaar: SNARF ports.doc SNARF print.doc SNARF procprop.doc SNARF procs.doc SNARF promises.doc SNARF r6rs-ports.doc SNARF random.doc SNARF rdelim.doc SNARF read.doc SNARF root.doc SNARF rw.doc SNARF scmsigs.doc SNARF script.doc SNARF simpos.doc SNARF smob.doc SNARF sort.doc SNARF srcprop.doc SNARF srfi-1.doc SNARF srfi-4.doc SNARF srfi-13.doc SNARF srfi-14.doc SNARF srfi-60.doc SNARF stackchk.doc SNARF stacks.doc SNARF stime.doc SNARF strings.doc SNARF strorder.doc SNARF strports.doc SNARF struct.doc SNARF symbols.doc SNARF threads.doc SNARF throw.doc SNARF trees.doc SNARF uniform.doc SNARF values.doc SNARF variable.doc SNARF vectors.doc SNARF version.doc SNARF vports.doc SNARF weaks.doc SNARF posix.doc SNARF net_db.doc SNARF socket.doc SNARF win32-uname.doc SNARF win32-socket.doc SNARF regex-posix.doc SNARF mkstemp.doc GEN guile-procedures.texi Backtrace: In unknown file: ?: 3 [apply-smob/1 # #t ...] ?: 2 [apply-smob/1 #] ?: 1 [primitive-eval ((@ # %) (begin # # #))] ?: 0 [primitive-load-path "e:\\temp\\files\\guile\\guile-2.0.6\\build\\libguile/e:/temp/files/guile/guile-2.0.6/build/meta/guild"] ERROR: make[3]: *** [guile-procedures.texi] Error 1 make[3]: Leaving directory `/e/temp/files/guile/guile-2.0.6/build/libguile' make[2]: *** [all] Error 2 make[2]: Leaving directory `/e/temp/files/guile/guile-2.0.6/build/libguile' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/e/temp/files/guile/guile-2.0.6/build' make: *** [all] Error 2 ---------------------------------------------------------------------------------------------------------- i tried guile.exe from command line: ---------------------------------------------------------------------------------------------------------- >guile ERROR: In procedure primitive-load-path: ERROR: Unable to find file "ice-9/boot-9.scm" in load path ---------------------------------------------------------------------------------------------------------- then i use the full path in msys: ---------------------------------------------------------------------------------------------------------- >/e/temp/files/guile/guile-2.0.6/build/libguile/guile Throw without catch before boot: Throw to key misc-error with args ("primitive-load-path" "Unable to find file ~S in load path" ("ice-9/boot-9") #f)Aborting. This application has requested the Runtime to terminate it in an unusual way. Please contact the application's support team for more information. Cannot exit gracefully when init is in progress; aborting. This application has requested the Runtime to terminate it in an unusual way. Please contact the application's support team for more information. ---------------------------------------------------------------------------------------------------------- then i googled and find a way to define the load-path: ---------------------------------------------------------------------------------------------------------- >export GUILE_LOAD_PATH=/e/temp/files/guile/guile-2.0.6/module/ ---------------------------------------------------------------------------------------------------------- 9) now i run guile.exe, but the error was very strange: ---------------------------------------------------------------------------------------------------------- >guile ERROR: Unbound variable: eval-when ---------------------------------------------------------------------------------------------------------- i don't know how to do now. --_75244846-236a-4f12-b41d-280b30b7310f_ Content-Type: text/html; charset="gb2312" Content-Transfer-Encoding: 8bit
i download guile-2.0.6.tar.gz and build it like this:

1) i make a diretory under the top directory for build :
>mkdir build
>cd build

2) i config it with the option:
>../configure --host=i686-pc-mingw32 --disable-shared --without-threads scm_cv_struct_timespec=no LIBS='-lunistring -lintl -liconv'
if i don't use "scm_cv_struct_timespec=no", then the libguile/threads.c will not be able to compile.

3)then i make:
>make

these are the warnings:
----------------------------------------------------------------------------------------------------------
  CC       libguile_2.0_la-fports.lo
../../libguile/fports.c: In function 'fport_input_waiting':
../../libguile/fports.c:606:7: warning: unused variable 'fdes' [-Wunused-variable]

  CC       libguile_2.0_la-hashtab.lo
  CC       libguile_2.0_la-hooks.lo
  CC       libguile_2.0_la-i18n.lo
../../libguile/i18n.c: In function 'scm_make_locale':
../../libguile/i18n.c:610:16: warning: variable 'c_base_locale' set but not used [-Wunused-but-set-variable]
  CC       libguile_2.0_la-init.lo

  CC       libguile_2.0_la-stime.lo
../../libguile/stime.c:88:14: warning: 'tzname' redeclared without dllimport attribute: previous dllimport ignored [-Wattributes]
  CC       libguile_2.0_la-strings.lo
  CC       libguile_2.0_la-strorder.lo
  CC       libguile_2.0_la-strports.lo
  CC       libguile_2.0_la-struct.lo
  CC       libguile_2.0_la-symbols.lo
  CC       libguile_2.0_la-threads.lo
../../libguile/threads.c: In function 'scm_cancel_thread':
../../libguile/threads.c:1168:7: warning: statement with no effect [-Wunused-value]
  CC       libguile_2.0_la-throw.lo
  CC       libguile_2.0_la-trees.lo
----------------------------------------------------------------------------------------------------------

 
4) the error begins to show:
 
----------------------------------------------------------------------------------------------------------
  CC       dynl.lo
  CC       posix.lo
../../libguile/posix.c: In function 'scm_utime':
../../libguile/posix.c:1577:7: warning: variable 'f' set but not used [-Wunused-but-set-variable]
../../libguile/posix.c:1576:19: warning: variable 'mtim_nsec' set but not used [-Wunused-but-set-variable]
../../libguile/posix.c:1576:8: warning: variable 'atim_nsec' set but not used [-Wunused-but-set-variable]
../../libguile/posix.c: In function 'scm_init_posix':
../../libguile/posix.c:2380:36: error: 'scm_init_popen' undeclared (first use in this function)
../../libguile/posix.c:2380:36: note: each undeclared identifier is reported only once for each function it appears in
make[3]: *** [posix.lo] Error 1
make[3]: Leaving directory `/e/temp/files/guile/guile-2.0.6/build/libguile'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/e/temp/files/guile/guile-2.0.6/build/libguile'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/e/temp/files/guile/guile-2.0.6/build'
make: *** [all] Error 2
----------------------------------------------------------------------------------------------------------

so i check the libguile/posix.c and fixed it like this:
the original one is :

----------------------------------------------------------------------------------------------------------
#include "libguile/cpp-SIG.c"
#include "libguile/posix.x"

  scm_c_register_extension ("libguile-" SCM_EFFECTIVE_VERSION,
                            "scm_init_popen",
                (scm_t_extension_init_func) scm_init_popen,
                NULL);
----------------------------------------------------------------------------------------------------------

i added the #ifdef macro

----------------------------------------------------------------------------------------------------------
#ifdef HAVE_FORK

#include "libguile/cpp-SIG.c"
#include "libguile/posix.x"

  scm_c_register_extension ("libguile-" SCM_EFFECTIVE_VERSION,
                            "scm_init_popen",
                (scm_t_extension_init_func) scm_init_popen,
                NULL);
#endif
----------------------------------------------------------------------------------------------------------


5) then the make continued like this:

----------------------------------------------------------------------------------------------------------
make[3]: Entering directory `/e/temp/files/guile/guile-2.0.6/build/libguile'
  CC       posix.lo
../../libguile/posix.c: In function 'scm_utime':
../../libguile/posix.c:1577:7: warning: variable 'f' set but not used [-Wunused-but-set-variable]
../../libguile/posix.c:1576:19: warning: variable 'mtim_nsec' set but not used [-Wunused-but-set-variable]
../../libguile/posix.c:1576:8: warning: variable 'atim_nsec' set but not used [-Wunused-but-set-variable]
../../libguile/posix.c: At top level:
../../libguile/posix.c:223:1: warning: 'scm_pipe__name' defined but not used [-Wunused-variable]
../../libguile/posix.c:633:1: warning: 'scm_kill__name' defined but not used [-Wunused-variable]
../../libguile/posix.c:1125:1: warning: 'scm_execl__name' defined but not used [-Wunused-variable]
../../libguile/posix.c:1162:1: warning: 'scm_execlp__name' defined but not used
[-Wunused-variable]
../../libguile/posix.c:1200:1: warning: 'scm_execle__name' defined but not used
[-Wunused-variable]
../../libguile/posix.c:1459:1: warning: 'scm_uname__name' defined but not used [-Wunused-variable]
../../libguile/posix.c:1483:1: warning: 'scm_environ__name' defined but not used [-Wunused-variable]
../../libguile/posix.c:1506:1: warning: 'scm_tmpnam__name' defined but not used
[-Wunused-variable]
../../libguile/posix.c:1528:1: warning: 'scm_tmpfile__name' defined but not used [-Wunused-variable]
../../libguile/posix.c:1555:1: warning: 'scm_utime__name' defined but not used [-Wunused-variable]
../../libguile/posix.c:1650:1: warning: 'scm_getpid__name' defined but not used
[-Wunused-variable]
../../libguile/posix.c:1659:1: warning: 'scm_putenv__name' defined but not used
[-Wunused-variable]
../../libguile/posix.c:1694:1: warning: 'scm_setlocale__name' defined but not used [-Wunused-variable]
../../libguile/posix.c:1938:1: warning: 'scm_getlogin__name' defined but not used [-Wunused-variable]
../../libguile/posix.c:2134:1: warning: 'scm_flock__name' defined but not used [-Wunused-variable]
----------------------------------------------------------------------------------------------------------

6) again ,make reported an error which has been reported in http://debbugs.gnu.org/cgi/bugreport.cgi?bug=10474

----------------------------------------------------------------------------------------------------------
  CC       net_db.lo
../../libguile/net_db.c:461:1: error: 'AI_ALL' undeclared here (not in a function)
../../libguile/net_db.c:461:1: error: expression in static assertion is not an integer
../../libguile/net_db.c:483:33: warning: 'struct addrinfo' declared inside parameter list [enabled by default]
../../libguile/net_db.c:483:33: warning: its scope is only this definition or declaration, which is probably not what you want [enabled by default]
../../libguile/net_db.c: In function 'scm_from_addrinfo':
../../libguile/net_db.c:491:3: error: dereferencing pointer to incomplete type
../../libguile/net_db.c:492:3: error: dereferencing pointer to incomplete type
../../libguile/net_db.c:493:3: error: dereferencing pointer to incomplete type
../../libguile/net_db.c:494:3: error: dereferencing pointer to incomplete type
../../libguile/net_db.c:495:3: error: dereferencing pointer to incomplete type
../../libguile/net_db.c:495:3: error: dereferencing pointer to incomplete type
../../libguile/net_db.c:497:3: error: dereferencing pointer to incomplete type
../../libguile/net_db.c:497:3: error: dereferencing pointer to incomplete type
../../libguile/net_db.c: In function 'scm_getaddrinfo':
../../libguile/net_db.c:619:19: error: storage size of 'c_hints' isn't known
../../libguile/net_db.c:662:3: warning: implicit declaration of function 'getaddrinfo' [-Wimplicit-function-declaration]
../../libguile/net_db.c:670:10: error: dereferencing pointer to incomplete type
../../libguile/net_db.c:670:19: warning: left-hand operand of comma expression has no effect [-Wunused-value]
../../libguile/net_db.c:671:2: warning: passing argument 1 of 'scm_from_addrinfo' from incompatible pointer type [enabled by default]
../../libguile/net_db.c:483:1: note: expected 'const struct addrinfo *' but argument is of type 'struct addrinfo *'
../../libguile/net_db.c:673:7: warning: implicit declaration of function 'freeaddrinfo' [-Wimplicit-function-declaration]
../../libguile/net_db.c:619:19: warning: unused variable 'c_hints' [-Wunused-variable]
../../libguile/net_db.c: At top level:
../../libguile/net_db.c:685:1: error: 'EAI_BADFLAGS' undeclared here (not in a function)
../../libguile/net_db.c:685:1: error: expression in static assertion is not an integer
../../libguile/net_db.c: In function 'scm_gai_strerror':
../../libguile/net_db.c:749:3: warning: implicit declaration of function 'gai_strerror' [-Wimplicit-function-declaration]
../../libguile/net_db.c:749:3: warning: passing argument 1 of 'scm_from_locale_string' makes pointer from integer without a cast [enabled by default]
../../libguile/strings.h:134:13: note: expected 'const char *' but argument is of type 'int'
In file included from ../../libguile/net_db.c:760:0:
../libguile/net_db.x: In function 'scm_init_net_db':
../libguile/net_db.x:17:78: error: 'AI_PASSIVE' undeclared (first use in this function)
../libguile/net_db.x:17:78: note: each undeclared identifier is reported only once for each function it appears in
../libguile/net_db.x:18:82: error: 'AI_CANONNAME' undeclared (first use in this
function)
../libguile/net_db.x:19:86: error: 'AI_NUMERICHOST' undeclared (first use in this function)
../libguile/net_db.x:20:86: error: 'AI_NUMERICSERV' undeclared (first use in this function)
../libguile/net_db.x:21:80: error: 'AI_V4MAPPED' undeclared (first use in this function)
../libguile/net_db.x:23:84: error: 'AI_ADDRCONFIG' undeclared (first use in this function)
../libguile/net_db.x:27:78: error: 'EAI_NONAME' undeclared (first use in this function)
../libguile/net_db.x:28:76: error: 'EAI_AGAIN' undeclared (first use in this function)
../libguile/net_db.x:29:74: error: 'EAI_FAIL' undeclared (first use in this function)
../libguile/net_db.x:30:78: error: 'EAI_FAMILY' undeclared (first use in this function)
../libguile/net_db.x:31:82: error: 'EAI_SOCKTYPE' undeclared (first use in this
function)
../libguile/net_db.x:32:80: error: 'EAI_SERVICE' undeclared (first use in this function)
../libguile/net_db.x:33:78: error: 'EAI_MEMORY' undeclared (first use in this function)
../libguile/net_db.x:34:78: error: 'EAI_SYSTEM' undeclared (first use in this function)
../libguile/net_db.x:35:82: error: 'EAI_OVERFLOW' undeclared (first use in this
function)
make[3]: *** [net_db.lo] Error 1
make[3]: Leaving directory `/e/temp/files/guile/guile-2.0.6/build/libguile'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/e/temp/files/guile/guile-2.0.6/build/libguile'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/e/temp/files/guile/guile-2.0.6/build'
make: *** [all] Error 2
----------------------------------------------------------------------------------------------------------

as the bug report said:
"The reason is that this condition in net_db.c:

     #ifdef HAVE_WINSOCK2_H
     #include <winsock2.h>
     #else
     #include <sys/socket.h>
     #include <netdb.h>
     #include <netinet/in.h>
     #include <arpa/inet.h>
     #endif

is inappropriate when gnulib was used to wrap Windows socket
functions.  When gnulib _is_ used, the missing macros are already
defined by lib/sys/socket.h.  Therefore, I modified the condition to:

     #if HAVE_WINSOCK2_H && !GNULIB_TEST_SOCKET
     #include <winsock2.h>
     # if HAVE_WS2TCPIP_H
     #  include <ws2tcpip.h>
     # endif
     #else
     #include <sys/socket.h>
     #include <netdb.h>
     #include <netinet/in.h>
     #include <arpa/inet.h>
     #endif
"

7) let's make it again, warnings like these:

----------------------------------------------------------------------------------------------------------
  CC       socket.lo
../../libguile/socket.c: In function 'scm_inet_ntop':
../../libguile/socket.c:349:7: warning: implicit declaration of function 'inet_ntop' [-Wimplicit-function-declaration]
../../libguile/socket.c:349:14: warning: assignment makes pointer from integer without a cast [enabled by default]
../../libguile/socket.c:357:14: warning: assignment makes pointer from integer without a cast [enabled by default]
../../libguile/socket.c: In function 'scm_inet_pton':
../../libguile/socket.c:397:3: warning: implicit declaration of function 'inet_pton' [-Wimplicit-function-declaration]
../../libguile/socket.c: In function 'scm_fill_sockaddr':
../../libguile/socket.c:817:16: warning: variable 'scope_id' set but not used [-Wunused-but-set-variable]
  CC       win32-uname.lo
  CC       win32-socket.lo
../../libguile/win32-socket.c: In function 'getservent':
../../libguile/win32-socket.c:488:25: warning: array subscript is above array bounds [-Warray-bounds]
../../libguile/win32-socket.c: In function 'getprotoent':
../../libguile/win32-socket.c:569:26: warning: array subscript is above array bounds [-Warray-bounds]
  CC       regex-posix.lo
  CC       mkstemp.lo
  CCLD     libguile-2.0.la
libtool: link: warning: library `d:/dev/mingw/lib/libunistring.la' was moved.
libtool: link: warning: library `d:/dev/mingw/lib/libunistring.la' was moved.
Creating library file: .libs/libguile-2.0.dll.a
copying selected object files to avoid basename conflicts...
  CCLD     guile.exe
libtool: link: warning: library `d:/dev/mingw/lib/libunistring.la' was moved.
libtool: link: warning: library `d:/dev/mingw/lib/libunistring.la' was moved.
libtool: link: warning: library `d:/dev/mingw/lib/libunistring.la' was moved.
----------------------------------------------------------------------------------------------------------

i edited the `d:/dev/mingw/lib/libunistring.la' to correct it like this:

----------------------------------------------------------------------------------------------------------
# libunistring.la - a libtool library file
# Generated by libtool (GNU libtool) 2.4
#
# Please DO NOT delete this file!
# It is necessary for linking the library.

# The name that we can dlopen(3).
dlname='../bin/libunistring-0.dll'

# Names of this library.
library_names='libunistring.dll.a'

# The name of the static archive.
old_library='libunistring.a'

# Linker flags that can not go in dependency_libs.
inherited_linker_flags=''

# Libraries that this one depends upon.
dependency_libs=' -R==d:/dev/mingw/lib -L=d:/dev/mingw/lib /mingw/lib/libiconv.la'

# Names of additional weak libraries provided by this library
weak_library_names=''

# Version information for libunistring.
current=1
age=1
revision=2

# Is this an already installed library?
installed=yes

# Should we warn about portability when linking against -modules?
shouldnotlink=no

# Files to dlopen/dlpreopen
dlopen=''
dlpreopen=''

# Directory that this library needs to be installed in:
libdir='d:/dev/mingw/lib'
----------------------------------------------------------------------------------------------------------

8) i use the patch for canonicalize-lgpl.c to make it Windows-friendly from bug report 10474,
but two hunk was failure:

----------------------------------------------------------------------------------------------------------
(Stripping trailing CRs from patch.)
patching file lib/canonicalize-lgpl.c
Hunk #4 FAILED at 160.
Hunk #5 succeeded at 180 (offset 4 lines).
Hunk #6 succeeded at 194 with fuzz 1 (offset 4 lines).
Hunk #7 succeeded at 215 (offset 4 lines).
Hunk #8 FAILED at 301.
Hunk #9 succeeded at 333 with fuzz 2 (offset 8 lines).
2 out of 9 hunks FAILED -- saving rejects to file lib/canonicalize-lgpl.c.rej
----------------------------------------------------------------------------------------------------------

----------------------------------------------------------------------------------------------------------
--- lib/canonicalize-lgpl.c~0    2011-10-22 16:19:34.000000000 +0200
+++ lib/canonicalize-lgpl.c    2012-01-17 13:10:52.608428500 +0200
@@ -51,6 +51,7 @@
 # define __realpath realpath
 # include "pathmax.h"
 # include "malloca.h"
+# include "dosname.h"
 # if HAVE_GETCWD
 #  if IN_RELOCWRAPPER
     /* When building the relocatable program wrapper, use the system's getcwd
@@ -101,6 +102,7 @@ __realpath (const char *name, char *reso
   const char *start, *end, *rpath_limit;
   long int path_max;
   int num_links = 0;
+  size_t prefix_len;
 
   if (name == NULL)
     {
@@ -143,7 +145,11 @@ __realpath (const char *name, char *reso
     rpath = resolved;
   rpath_limit = rpath + path_max;
 
-  if (name[0] != '/')
+  /* This is always zero for Posix hosts, but can be 2 for MS-Windows
+     and MS-DOS X:/foo/bar file names.  */
+  prefix_len = FILE_SYSTEM_PREFIX_LEN (name);
+
+  if (!IS_ABSOLUTE_FILE_NAME (name))
     {
       if (!__getcwd (rpath, path_max))
         {
@@ -154,13 +160,19 @@ __realpath (const char *name, char *reso
     }
   else
     {
-      rpath[0] = '/';
-      dest = rpath + 1;
-      if (DOUBLE_SLASH_IS_DISTINCT_ROOT && name[1] == '/')
+      dest = rpath;
+      if (prefix_len)
+    {
+      memcpy (rpath, name, prefix_len);
+      dest += prefix_len;
+    }
+      *dest++ = '/';
+      if (DOUBLE_SLASH_IS_DISTINCT_ROOT && ISSLASH (name[1])
+      && !prefix_len)
         *dest++ = '/';
     }
 
-  for (start = end = name; *start; start = end)
+  for (start = end = name + prefix_len; *start; start = end)
     {
 #ifdef _LIBC
       struct stat64 st;
@@ -170,11 +182,11 @@ __realpath (const char *name, char *reso
       int n;
 
       /* Skip sequence of multiple path-separators.  */
-      while (*start == '/')
+      while (ISSLASH (*start))
         ++start;
 
       /* Find end of path component.  */
-      for (end = start; *end && *end != '/'; ++end)
+      for (end = start; *end && !ISSLASH (*end); ++end)
         /* Nothing.  */;
 
       if (end - start == 0)
@@ -184,7 +196,7 @@ __realpath (const char *name, char *reso
       else if (end - start == 2 && start[0] == '.' && start[1] == '.')
         {
           /* Back up to previous component, ignore if at root already.  */
-          if (dest > rpath + 1)
+          if (dest > rpath + prefix_len + 1)
             while ((--dest)[-1] != '/');
           if (DOUBLE_SLASH_IS_DISTINCT_ROOT && dest == rpath + 1
               && *dest == '/')
@@ -205,7 +217,7 @@ __realpath (const char *name, char *reso
               if (resolved)
                 {
                   __set_errno (ENAMETOOLONG);
-                  if (dest > rpath + 1)
+                  if (dest > rpath + prefix_len + 1)
                     dest--;
                   *dest = '\0';
                   goto error;
@@ -295,17 +307,25 @@ __realpath (const char *name, char *reso
               memmove (&extra_buf[n], end, len + 1);
               name = end = memcpy (extra_buf, buf, n);
 
-              if (buf[0] == '/')
+              if (IS_ABSOLUTE_FILE_NAME (buf))
                 {
-                  dest = rpath + 1;     /* It's an absolute symlink */
-                  if (DOUBLE_SLASH_IS_DISTINCT_ROOT && buf[1] == '/')
+          size_t pfxlen = FILE_SYSTEM_PREFIX_LEN (buf);
+
+          if (pfxlen)
+            memcpy (rpath, buf, pfxlen);
+                  dest = rpath + pfxlen;     /* It's an absolute symlink.  */
+          *dest++ = '/';
+                  if (DOUBLE_SLASH_IS_DISTINCT_ROOT && ISSLASH (buf[1])
+              && pfxlen == 0)
                     *dest++ = '/';
+          /* Install the new prefix to be in effect hereafter.  */
+          prefix_len = pfxlen;
                 }
               else
                 {
                   /* Back up to previous component, ignore if at root
                      already: */
-                  if (dest > rpath + 1)
+                  if (dest > rpath + prefix_len + 1)
                     while ((--dest)[-1] != '/');
                   if (DOUBLE_SLASH_IS_DISTINCT_ROOT && dest == rpath + 1
                       && *dest == '/')
@@ -319,7 +339,7 @@ __realpath (const char *name, char *reso
             }
         }
     }
-  if (dest > rpath + 1 && dest[-1] == '/')
+  if (dest > rpath + prefix_len + 1 && dest[-1] == '/')
     --dest;
   if (DOUBLE_SLASH_IS_DISTINCT_ROOT && dest == rpath + 1 && *dest == '/')
     dest++;


----------------------------------------------------------------------------------------------------------
i modified the two failures by hand

----------------------------------------------------------------------------------------------------------
Hunk #4 FAILED at 160:
   }
  else
    {
      dest = rpath;
      if (prefix_len)
    {
      memcpy (rpath, name, prefix_len);
      dest += prefix_len;
    }
      *dest++ = '/';
      if (DOUBLE_SLASH_IS_DISTINCT_ROOT && ISSLASH (name[1])
      && !prefix_len)
    *dest++ = '/';
      *dest = '\0';
    }

----------------------------------------------------------------------------------------------------------
Hunk #8 FAILED at 301:
              memmove (&extra_buf[n], end, len + 1);
              name = end = memcpy (extra_buf, buf, n);

          if (IS_ABSOLUTE_FILE_NAME (buf))
                {
          size_t pfxlen = FILE_SYSTEM_PREFIX_LEN (buf);
          
          if (pfxlen)
            memcpy (rpath, buf, pfxlen);
          dest = rpath + pfxlen;     /* It's an absolute symlink.  */
          *dest++ = '/';
          if (DOUBLE_SLASH_IS_DISTINCT_ROOT && ISSLASH (buf[1])
              && pfxlen == 0)
            *dest++ = '/';
          /* Install the new prefix to be in effect hereafter.  */
          prefix_len = pfxlen;
                }
              else
                {
                  /* Back up to previous component, ignore if at root
                     already: */
          if (dest > rpath + prefix_len + 1)
                    while ((--dest)[-1] != '/');
                  if (DOUBLE_SLASH_IS_DISTINCT_ROOT && dest == rpath + 1
                      && *dest == '/' && dest[1] != '/')
                    dest++;
                }
            }
          else if (!S_ISDIR (st.st_mode) && *end != '\0')
----------------------------------------------------------------------------------------------------------
then make continued:

----------------------------------------------------------------------------------------------------------
  SNARF  mallocs.doc
  SNARF  memoize.doc
../../libguile/memoize.c:479:***Mismatching FUNC_NAME.  Should be: `#define FUNC_NAME s_"@prompt"'
  SNARF  modules.doc
  SNARF  numbers.doc
  SNARF  objprop.doc
  SNARF  options.doc
  SNARF  pairs.doc
../../libguile/pairs.c:147:***Missing or erroneous `#define FUNC_NAME s_scm_cdr'
../../libguile/pairs.c:150:***Missing or erroneous #undef for scm_car:
../../libguile/pairs.c:155:***Missing or erroneous `#define FUNC_NAME s_scm_cddr'
../../libguile/pairs.c:158:***Missing or erroneous #undef for scm_cdar:
../../libguile/pairs.c:163:***Missing or erroneous `#define FUNC_NAME s_scm_cadr'
../../libguile/pairs.c:166:***Missing or erroneous #undef for scm_caar:
../../libguile/pairs.c:171:***Missing or erroneous `#define FUNC_NAME s_scm_cdddr'
../../libguile/pairs.c:174:***Missing or erroneous #undef for scm_cddar:
../../libguile/pairs.c:179:***Missing or erroneous `#define FUNC_NAME s_scm_cdadr'
../../libguile/pairs.c:182:***Missing or erroneous #undef for scm_cdaar:
../../libguile/pairs.c:187:***Missing or erroneous `#define FUNC_NAME s_scm_caddr'
../../libguile/pairs.c:190:***Missing or erroneous #undef for scm_cadar:
../../libguile/pairs.c:195:***Missing or erroneous `#define FUNC_NAME s_scm_caadr'
../../libguile/pairs.c:198:***Missing or erroneous #undef for scm_caaar:
../../libguile/pairs.c:203:***Missing or erroneous `#define FUNC_NAME s_scm_cddddr'
../../libguile/pairs.c:206:***Missing or erroneous #undef for scm_cdddar:
../../libguile/pairs.c:211:***Missing or erroneous `#define FUNC_NAME s_scm_cddadr'
../../libguile/pairs.c:214:***Missing or erroneous #undef for scm_cddaar:
../../libguile/pairs.c:219:***Missing or erroneous `#define FUNC_NAME s_scm_cdaddr'
../../libguile/pairs.c:222:***Missing or erroneous #undef for scm_cdadar:
../../libguile/pairs.c:227:***Missing or erroneous `#define FUNC_NAME s_scm_cdaadr'
../../libguile/pairs.c:230:***Missing or erroneous #undef for scm_cdaaar:
../../libguile/pairs.c:235:***Missing or erroneous `#define FUNC_NAME s_scm_cadddr'
../../libguile/pairs.c:238:***Missing or erroneous #undef for scm_caddar:
../../libguile/pairs.c:243:***Missing or erroneous `#define FUNC_NAME s_scm_cadadr'
../../libguile/pairs.c:246:***Missing or erroneous #undef for scm_cadaar:
../../libguile/pairs.c:251:***Missing or erroneous `#define FUNC_NAME s_scm_caaddr'
../../libguile/pairs.c:254:***Missing or erroneous #undef for scm_caadar:
../../libguile/pairs.c:259:***Missing or erroneous `#define FUNC_NAME s_scm_caaadr'
../../libguile/pairs.c:262:***Missing or erroneous #undef for scm_caaaar:
  SNARF  ports.doc
  SNARF  print.doc
  SNARF  procprop.doc
  SNARF  procs.doc
  SNARF  promises.doc
  SNARF  r6rs-ports.doc
  SNARF  random.doc
  SNARF  rdelim.doc
  SNARF  read.doc
  SNARF  root.doc
  SNARF  rw.doc
  SNARF  scmsigs.doc
  SNARF  script.doc
  SNARF  simpos.doc
  SNARF  smob.doc
  SNARF  sort.doc
  SNARF  srcprop.doc
  SNARF  srfi-1.doc
  SNARF  srfi-4.doc
  SNARF  srfi-13.doc
  SNARF  srfi-14.doc
  SNARF  srfi-60.doc
  SNARF  stackchk.doc
  SNARF  stacks.doc
  SNARF  stime.doc
  SNARF  strings.doc
  SNARF  strorder.doc
  SNARF  strports.doc
  SNARF  struct.doc
  SNARF  symbols.doc
  SNARF  threads.doc
  SNARF  throw.doc
  SNARF  trees.doc
  SNARF  uniform.doc
  SNARF  values.doc
  SNARF  variable.doc
  SNARF  vectors.doc
  SNARF  version.doc
  SNARF  vports.doc
  SNARF  weaks.doc
  SNARF  posix.doc
  SNARF  net_db.doc
  SNARF  socket.doc
  SNARF  win32-uname.doc
  SNARF  win32-socket.doc
  SNARF  regex-posix.doc
  SNARF  mkstemp.doc
  GEN      guile-procedures.texi
Backtrace:
In unknown file:
   ?: 3 [apply-smob/1 #<boot-closure b7a7b0 (_ _ _)> #t ...]
   ?: 2 [apply-smob/1 #<catch-closure f18ad0>]
   ?: 1 [primitive-eval ((@ # %) (begin # # #))]
   ?: 0 [primitive-load-path "e:\\temp\\files\\guile\\guile-2.0.6\\build\\libguile/e:/temp/files/guile/guile-2.0.6/build/meta/guild"]

ERROR: make[3]: *** [guile-procedures.texi] Error 1
make[3]: Leaving directory `/e/temp/files/guile/guile-2.0.6/build/libguile'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/e/temp/files/guile/guile-2.0.6/build/libguile'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/e/temp/files/guile/guile-2.0.6/build'
make: *** [all] Error 2
----------------------------------------------------------------------------------------------------------

i tried guile.exe from command line:

----------------------------------------------------------------------------------------------------------
>guile
ERROR: In procedure primitive-load-path:
ERROR: Unable to find file "ice-9/boot-9.scm" in load path
----------------------------------------------------------------------------------------------------------

then i use the full path in msys:
----------------------------------------------------------------------------------------------------------
>/e/temp/files/guile/guile-2.0.6/build/libguile/guile
Throw without catch before boot:
Throw to key misc-error with args ("primitive-load-path" "Unable to find file ~S in load path" ("ice-9/boot-9") #f)Aborting.

This application has requested the Runtime to terminate it in an unusual way.
Please contact the application's support team for more information.
Cannot exit gracefully when init is in progress; aborting.

This application has requested the Runtime to terminate it in an unusual way.
Please contact the application's support team for more information.
----------------------------------------------------------------------------------------------------------

then i googled and find a way to define the load-path:

----------------------------------------------------------------------------------------------------------
>export GUILE_LOAD_PATH=/e/temp/files/guile/guile-2.0.6/module/
----------------------------------------------------------------------------------------------------------

9) now i run guile.exe, but the error was very strange:

----------------------------------------------------------------------------------------------------------
>guile
ERROR: Unbound variable: eval-when
----------------------------------------------------------------------------------------------------------

i don't know how to do now.
--_75244846-236a-4f12-b41d-280b30b7310f_-- ------------=_1362509708-2262-1--