From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Matthew Keeter Newsgroups: gmane.lisp.guile.devel Subject: Re: Guile 2.2 on MSYS2 + MinGW Date: Thu, 18 Jan 2018 10:18:36 -0500 Message-ID: References: <07B6825B-EB62-47B1-957C-2ACB69671AD8@gmail.com> <83inc0wkf4.fsf@gnu.org> <86AF0A8E-4553-45B0-A0A7-66AF13C2B80E@gmail.com> <83wp0fuul5.fsf@gnu.org> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 (Mac OS X Mail 11.2 \(3445.5.20\)) Content-Type: multipart/alternative; boundary="Apple-Mail=_8D11E1B2-BA5B-4F65-A888-A22B460B17CF" X-Trace: blaine.gmane.org 1516288626 15031 195.159.176.226 (18 Jan 2018 15:17:06 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Thu, 18 Jan 2018 15:17:06 +0000 (UTC) To: Eli Zaretskii , guile-devel@gnu.org Original-X-From: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Thu Jan 18 16:17:01 2018 Return-path: Envelope-to: guile-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ecBvt-00033V-P6 for guile-devel@m.gmane.org; Thu, 18 Jan 2018 16:16:49 +0100 Original-Received: from localhost ([::1]:36498 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ecBxt-0002Vi-On for guile-devel@m.gmane.org; Thu, 18 Jan 2018 10:18:53 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:58781) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ecBxl-0002UM-QG for guile-devel@gnu.org; Thu, 18 Jan 2018 10:18:47 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ecBxk-0002W8-Ez for guile-devel@gnu.org; Thu, 18 Jan 2018 10:18:45 -0500 Original-Received: from mail-qt0-x22f.google.com ([2607:f8b0:400d:c0d::22f]:36824) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1ecBxg-0002T4-2Q; Thu, 18 Jan 2018 10:18:40 -0500 Original-Received: by mail-qt0-x22f.google.com with SMTP id z11so5162663qtm.3; Thu, 18 Jan 2018 07:18:39 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:mime-version:subject:date:references:to:in-reply-to:message-id; bh=EbW7S8WWyTYMks81FRX5VpXLX9jUi0WZZh8Delpbkos=; b=utOL6kklqQl0Pc+sN4IjDHL6To83AblHKvz+bTtuL+DYyxFQJm10M3cpfr4iSyS0P7 P9v4cKFkRzFVLRmFSmBFamzvDxH8uaqbA8pv8LOJtMcs6pykXUS2rrgY0oz5HcSW629x wKaB8XpEWL2PQXIbVKjEPkKOMj2IiCGa2VyMsJdm3STOKdemC4tVxe8pgRnJJ0bibYpX FUMwlZL4/FycCvzc8KsWJ8OzWwm+GrLqqYq4KvuydKSCLPO9yr8SRx1nO/l+d0PffeL5 ZGUCxhHpzO2EGNdBDGoHpA0RQnaCWiPrQRCI9PNpc5ZwGZTxpEh5A1DnvoEALJvRl3TC krEw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:mime-version:subject:date:references:to :in-reply-to:message-id; bh=EbW7S8WWyTYMks81FRX5VpXLX9jUi0WZZh8Delpbkos=; b=DpuIjQRXyAMx0i6o/zpv7iNZc1oKfQSqY/XVArRyJHRc94pyUjF0ejCYTDaeQZPdQb heu/AUigXe8dVy2+KkcOkO/qH28z4HIYJoM4fC+qUx8X3nCqo3Ccea3eIMHtLMx1RlQi /cELJpIw8g/+wS19IgDasMgK9jo/XvCdVtQfnos8YbSilRmYVTUMbj2fXcy0Z2S+w2SA 24WKK8OpYe99tMPgFLsIa2idbzQMRoLxegFBDFZoIPToFOP4CvfmqIPyl21KTUA6RcP9 nVzVR6MX9o49SR831GFpZi/rcx6pLrPeRzM8/IzwQkLc7G2Fg7zMXTsODDlq+uVZTsw8 aRUA== X-Gm-Message-State: AKwxytdeoO1aW83seqYXlD7Nsg4qAnLYSKxvOgTF8/4yi/WAKJa5Sjwk pV3KbQiNq+dmWn3JxBbnVSYCDLLB X-Google-Smtp-Source: ACJfBosbAJxPG9nFdXWIUovciiqKLZL2DagkNmbivMUM8eIfFQ+uHYI9avPm/avl6/jA3ZiFAe3SvA== X-Received: by 10.55.80.3 with SMTP id e3mr21164512qkb.13.1516288718882; Thu, 18 Jan 2018 07:18:38 -0800 (PST) Original-Received: from [10.0.7.112] ([209.6.175.242]) by smtp.gmail.com with ESMTPSA id n25sm5035931qtf.58.2018.01.18.07.18.37 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 18 Jan 2018 07:18:37 -0800 (PST) In-Reply-To: <83wp0fuul5.fsf@gnu.org> X-Mailer: Apple Mail (2.3445.5.20) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:400d:c0d::22f X-BeenThere: guile-devel@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: "Developers list for Guile, the GNU extensibility library" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Original-Sender: "guile-devel" Xref: news.gmane.org gmane.lisp.guile.devel:19466 Archived-At: --Apple-Mail=_8D11E1B2-BA5B-4F65-A888-A22B460B17CF Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 Yup, I=E2=80=99m building 2.2.3. I see mktime.c in guile-2.2.3/lib, but = do not see mktime.o when I objdump libgnu.a, indicating that it=E2=80=99s not being = built. In config.log, I see a few lines that could be relevant: configure:34662: checking for working mktime ... gl_cv_func_working_mktime=3Dyes ... GNULIB_MKTIME=3D=E2=80=981' ... REPLACE_MKTIME=3D=E2=80=980' ... gl_GNULIB_ENABLED_mktime_FALSE=3D'#' gl_GNULIB_ENABLED_mktime_TRUE=3D=E2=80=98' (full config.log is here: = https://gist.github.com/mkeeter/81c273069a2804ad8d53e72533f6f8da) Does this offer any insight? I=E2=80=99m confused by the conflicting = GNULIB_MKTIME vs gl_GNULIB_ENABLED_mktime_TRUE, but am not adept at parsing automake = outputs=E2=80=A6 -Matt > On Jan 18, 2018, at 9:09 AM, Eli Zaretskii wrote: >=20 >> From: Matthew Keeter >> Date: Wed, 17 Jan 2018 17:30:02 -0500 >> Cc: guile-devel@gnu.org >>=20 >> Following your advice, I=E2=80=99m now trying to build a 32-bit = version under MinGW, >> This fails a little earlier in the process: >>=20 >> make[2]: Entering directory = '/home/mkeeter/guile/src/build-i686-w64-mingw32/libguile' >> make all-am >> make[3]: Entering directory = '/home/mkeeter/guile/src/build-i686-w64-mingw32/libguile' >> CCLD libguile-2.2.la >> ../lib/.libs/libgnu.a(timegm.o):timegm.c:(.text+0x22): undefined = reference to `mktime_internal' >> collect2.exe: error: ld returned 1 exit status >> make[3]: *** [Makefile:2373: libguile-2.2.la] Error 1 >>=20 >> This appears to be the same bug as #24681 >> (http://lists.gnu.org/archive/html/bug-guile/2017-03/msg00095.html), >> but I don=E2=80=99t see anyone successfully resolving it >> (and I can=E2=80=99t find any references to it in the Git history). >>=20 >> Any ideas? >=20 > mktime_internal is in Gnulib's mktime.c. What version of Guile 2.2.x > are you building? The latest v2.2.3 includes mktime.c in > guile-2.2.3/lib/, do you have it? If you do have it, do you see > mktime.o in libgnu.a? >=20 > If mktime.c is in the tree, but is not compiled, you need to > investigate why, by looking at config.log, where the configure script > determines whether your system needs mktime.c and/or mktime_internal. --Apple-Mail=_8D11E1B2-BA5B-4F65-A888-A22B460B17CF Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=utf-8
Yup, I=E2=80=99m building = 2.2.3.  I see mktime.c in guile-2.2.3/lib, but do not see
mktime.o when I objdump libgnu.a, indicating that it=E2=80=99s = not being built.

In config.log, I see a few lines that could be = relevant:

configure:34662: checking for working mktime
...
gl_cv_func_working_mktime=3Dyes
...
GNULIB_MKTIME=3D=E2=80=981'
...
REPLACE_MKTIME=3D=E2=80=980'
...
gl_GNULIB_ENABLED_mktime_FALSE=3D'#'
gl_GNULIB_ENABLED_mktime_TRUE=3D=E2=80=98'


Does= this offer any insight?  I=E2=80=99m confused by the conflicting = GNULIB_MKTIME vs
gl_GNULIB_ENABLED_mktime_TRUE, but am not = adept at parsing automake outputs=E2=80=A6

-Matt

On Jan 18, 2018, at 9:09 AM, = Eli Zaretskii <eliz@gnu.org> wrote:

From: Matthew Keeter = <matt.j.keeter@gmail.com>
Date: Wed, 17 = Jan 2018 17:30:02 -0500
Cc: guile-devel@gnu.org

Following your advice, I=E2=80=99m now trying = to build a 32-bit version under MinGW,
This fails a little = earlier in the process:

make[2]: Entering = directory '/home/mkeeter/guile/src/build-i686-w64-mingw32/libguile'
make  all-am
make[3]: Entering directory = '/home/mkeeter/guile/src/build-i686-w64-mingw32/libguile'
=  CCLD     libguile-2.2.la
../lib/.libs/libgnu.a(timegm.o):timegm.c:(.text+0x22): = undefined reference to `mktime_internal'
collect2.exe: = error: ld returned 1 exit status
make[3]: *** = [Makefile:2373: libguile-2.2.la] Error 1

This = appears to be the same bug as #24681
(http://lists.gnu.org/archive/html/bug-guile/2017-03/msg00095.ht= ml),
but I don=E2=80=99t see anyone successfully = resolving it
(and I can=E2=80=99t find any references to = it in the Git history).

Any ideas?

mktime_internal is in Gnulib's = mktime.c.  What version of Guile 2.2.x
are you = building?  The latest v2.2.3 includes mktime.c in
guile-2.2.3/lib/, do you have it?  If you do have it, do = you see
mktime.o in libgnu.a?

If mktime.c is in the tree, but is not compiled, you need = to
investigate why, by looking at config.log, where the = configure script
determines whether your system needs = mktime.c and/or mktime_internal.

= --Apple-Mail=_8D11E1B2-BA5B-4F65-A888-A22B460B17CF--