From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: John Cowan Newsgroups: gmane.lisp.guile.devel Subject: Re: Segfault while building on 64-bit Cygwin Date: Fri, 24 Jan 2020 09:36:59 -0500 Message-ID: References: <87zherlphs.fsf@pobox.com> <875zh6gk72.fsf_-_@gnu.org> <87sgk9faih.fsf@gnu.org> <871rrpoqql.fsf@gnu.org> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="0000000000005ce83c059ce3b13d" Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="44816"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Andy Wingo , 39118@debbugs.gnu.org, guile-devel@gnu.org To: =?UTF-8?Q?Ludovic_Court=C3=A8s?= Original-X-From: guile-devel-bounces+guile-devel=m.gmane-mx.org@gnu.org Fri Jan 24 15:37:26 2020 Return-path: Envelope-to: guile-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1iv05O-000BdB-8W for guile-devel@m.gmane-mx.org; Fri, 24 Jan 2020 15:37:26 +0100 Original-Received: from localhost ([::1]:43142 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iv05N-0001mG-DT for guile-devel@m.gmane-mx.org; Fri, 24 Jan 2020 09:37:25 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:45140) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iv05B-0001j2-94 for guile-devel@gnu.org; Fri, 24 Jan 2020 09:37:14 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iv059-0001Fr-Sh for guile-devel@gnu.org; Fri, 24 Jan 2020 09:37:13 -0500 Original-Received: from mail-qt1-x82f.google.com ([2607:f8b0:4864:20::82f]:35231) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1iv059-0001EF-JB for guile-devel@gnu.org; Fri, 24 Jan 2020 09:37:11 -0500 Original-Received: by mail-qt1-x82f.google.com with SMTP id e12so1661149qto.2 for ; Fri, 24 Jan 2020 06:37:11 -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=ELHDQshTQu9iKzK6po+EkXp9Tdt8PIXrWbQDNTilFoWuvqitI4CcvRK2VzHKTR++3B ISuFZT5fDRxjmkL9K8BPKa5Xh/DYfSmKz00xtuitEoLyykbMibvaiZQwEsO4hZaCvD5h ZTqaOjPih9KLpwGyoSc4YIVKsN4r60j8UxXIGV33t4mOY6tnxdb3nwtOytRql4Msow4i xOYidwD2cv32tH0v6taO7Mg5VeLJN1u7hmIbLOIal90h2NOF7M5IMhp95D6f9jCmh3UW DallAAbEAn1waXA87Z+/QqNguoflISgSUgQEl0dWu6W61reAPJHmecZTKVDR/Ps1+eL8 YDgw== X-Gm-Message-State: APjAAAU5A66IMZp5IqJQPe/XUGcAxSx1K6eFD0pOQHO4WkRagPZeDiM1 X4YB/AuAsBGYl+tQK9ncc4ZNMJwaG712uG33B9Xacw== 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) In-Reply-To: <871rrpoqql.fsf@gnu.org> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:4864:20::82f X-BeenThere: guile-devel@gnu.org X-Mailman-Version: 2.1.23 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-mx.org@gnu.org Original-Sender: "guile-devel" Xref: news.gmane.io gmane.lisp.guile.devel:20327 Archived-At: --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--