From debbugs-submit-bounces@debbugs.gnu.org Fri Jan 24 09:37:17 2020 Received: (at 39118) by debbugs.gnu.org; 24 Jan 2020 14:37:17 +0000 Received: from localhost ([127.0.0.1]:53618 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iv05F-0002co-FY for submit@debbugs.gnu.org; Fri, 24 Jan 2020 09:37:17 -0500 Received: from mail-qt1-f179.google.com ([209.85.160.179]:37579) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iv05E-0002cb-Aw for 39118@debbugs.gnu.org; Fri, 24 Jan 2020 09:37:16 -0500 Received: by mail-qt1-f179.google.com with SMTP id w47so1649355qtk.4 for <39118@debbugs.gnu.org>; Fri, 24 Jan 2020 06:37:16 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ccil-org.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=sfLTDED44kszANRogyIZLZv87XlE0nQZiF4tDx2ceeU=; b=1xpq9m+3xuYDme3WgE0t2XofjrgyE4NsgD5hTumzYTqudLKQYsdmHFbw1v486jKpa9 m5XKdKFux848jurG05LfPow4TVuPbb53lGUUldJYUQMOAnei+WnTZlQJ/kBJQc3W1VCF elPS3Bp0zakAjHbKThNLgkd03EqLj/vnWUWlT2PDcBCgBdgGLKRSkEMJKIigwkW6ouQu hR9kMIUSqald6Rx1kpaHB8ertTnjIJ85xjJAqk9l2YeOmmL04DiFSGlTrxEA+oGjf6RG JCy86kNpczbcEcgp4vMhiQjAoyqrDdtY+6w4oo+CMrW/ImZkTr9QMI7Gtd+2bS7ESEKO xyhg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=sfLTDED44kszANRogyIZLZv87XlE0nQZiF4tDx2ceeU=; b=SPCNrmfEOPtA18rTDYxTmXaqBm2R3JGN38pUT/KCClgc0KaOWGADAgiyVxG4bv0GUu ShbGcc798k1jsJR4tF/D3ylngolbSjUyuK4+TsHYa23DxFMmLQUOoo+6xN1pf1csDeUk 0hFcGd404kjHXn/iAYvZ2lkB/Uvzxa8c6hhagr46+Xtsm4P76coDZyPhwW2uPhG4YGFg YWxiMEXZp3h0Ed7rhvXQ+JzwsnIeCJSt+6CaQTIj6T3UVkS4IhSuHmFldpUiyeNIlC0q 42A48HuypmlzAerfIhHrAGxmMqQn9q+d3n7PsV5GKZYjbKj80hZlmuSdtrtarRdcrEpV Z29w== X-Gm-Message-State: APjAAAVV6iGCoG6m6JGbSC/Lbfoc1cy6UVOHYiXu0S84X77u94bfX7Yn vsWh2vDmzV+LrAqiznIiXh/eiwCz+RHf9HwUhepLgA== X-Google-Smtp-Source: APXvYqwtkFQwHFm+hnxx5yKRtRCSuCwylyS9SVuGbI6N1uK+k7djGL/+fgDRyF4dVADTkhsr6zeTopj5vyu3UGAapEk= X-Received: by 2002:ac8:454e:: with SMTP id z14mr2257806qtn.83.1579876630706; Fri, 24 Jan 2020 06:37:10 -0800 (PST) MIME-Version: 1.0 References: <87zherlphs.fsf@pobox.com> <875zh6gk72.fsf_-_@gnu.org> <87sgk9faih.fsf@gnu.org> <871rrpoqql.fsf@gnu.org> In-Reply-To: <871rrpoqql.fsf@gnu.org> From: John Cowan Date: Fri, 24 Jan 2020 09:36:59 -0500 Message-ID: Subject: Re: Segfault while building on 64-bit Cygwin To: =?UTF-8?Q?Ludovic_Court=C3=A8s?= Content-Type: multipart/alternative; boundary="0000000000005ce83c059ce3b13d" X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 39118 Cc: Andy Wingo , 39118@debbugs.gnu.org, guile-devel@gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) --0000000000005ce83c059ce3b13d Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Both Cygwin and MacOS crash in pretty much the same way. By disabling the JIT, I was able to get the Cygwin build to run to completion. On MacOS with --disable-jit, however, I am now getting an entirely new failure: CC readline.lo readline.c:432:7: warning: implicitly declaring library function 'strncmp' with type 'int (const char *, const char *, unsigned long)' [-Wimplicit-function-declaration] if (strncmp (rl_get_keymap_name (rl_get_keymap ()), "vi", 2)) ^ readline.c:432:7: note: include the header or explicitly provide a declaration for 'strncmp' readline.c:432:16: warning: implicit declaration of function 'rl_get_keymap_name' is invalid in C99 [-Wimplicit-function-declaration] if (strncmp (rl_get_keymap_name (rl_get_keymap ()), "vi", 2)) ^ readline.c:432:16: warning: incompatible integer to pointer conversion passing 'int' to parameter of type 'const char *' [-Wint-conversion] if (strncmp (rl_get_keymap_name (rl_get_keymap ()), "vi", 2)) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 3 warnings generated. CCLD guile-readline.la Undefined symbols for architecture x86_64: "_rl_get_keymap_name", referenced from: _scm_init_readline in readline.o ld: symbol(s) not found for architecture x86_64 clang: error: linker command failed with exit code 1 (use -v to see invocation) On Thu, Jan 23, 2020 at 3:35 PM Ludovic Court=C3=A8s wrote: > Hi, > > John Cowan skribis: > > > Thanks. Unfortunately, the standard recipe for making core dumps on Ma= c > > This bug report is about Cygwin, not macOS, right? :-) > > Ludo=E2=80=99. > --0000000000005ce83c059ce3b13d Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Both Cygwin and MacOS crash in pretty much the same way.= =C2=A0 By disabling the JIT, I was able to get the Cygwin build to run to c= ompletion.=C2=A0 On MacOS with --disable-jit, however, I am now getting an = entirely new failure:

=C2=A0 CC =C2=A0 =C2=A0 =C2=A0 rea= dline.lo
readline.c:432:7: warning: implicitly declaring library functio= n 'strncmp' with type 'int (const char *, const char *,
=C2= =A0 =C2=A0 =C2=A0 unsigned long)' [-Wimplicit-function-declaration]
= =C2=A0 if (strncmp (rl_get_keymap_name (rl_get_keymap ()), "vi", = 2))
=C2=A0 =C2=A0 =C2=A0 ^
readline.c:432:7: note: include the header= <string.h> or explicitly provide a declaration for 'strncmp'=
readline.c:432:16: warning: implicit declaration of function 'rl_ge= t_keymap_name' is invalid in C99
=C2=A0 =C2=A0 =C2=A0 [-Wimplicit-fu= nction-declaration]
=C2=A0 if (strncmp (rl_get_keymap_name (rl_get_keyma= p ()), "vi", 2))
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0^
readline.c:432:16: warning: incompatible integer to pointer = conversion passing 'int' to parameter of type 'const char *'= ;
=C2=A0 =C2=A0 =C2=A0 [-Wint-conversion]
=C2=A0 if (strncmp (rl_get_= keymap_name (rl_get_keymap ()), "vi", 2))
=C2=A0 =C2=A0 =C2=A0= =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~3 warnings generated.
=C2=A0 CCLD =C2=A0 =C2=A0 guile-readline.la
Undefined symbols for architecture x= 86_64:
=C2=A0 "_rl_get_keymap_name", referenced from:
=C2= =A0 =C2=A0 =C2=A0 _scm_init_readline in readline.o
ld: symbol(s) not fou= nd for architecture x86_64
clang: error: linker command failed with exit= code 1 (use -v to see invocation)

On Thu, Jan 23, 2020 at 3:35 PM= Ludovic Court=C3=A8s <ludo@gnu.org&= gt; wrote:
Hi,
John Cowan <cowan@cc= il.org> skribis:

> Thanks.=C2=A0 Unfortunately, the standard recipe for making core dumps= on Mac

This bug report is about Cygwin, not macOS, right?=C2=A0 :-)

Ludo=E2=80=99.
--0000000000005ce83c059ce3b13d--