From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: dsmich@roadrunner.com Newsgroups: gmane.lisp.guile.devel Subject: RE: bug#39118: Segfault while building on 64-bit Cygwin Date: Fri, 24 Jan 2020 15:26:42 +0000 Message-ID: <99218b8d8f572c8748963924e82d265652487a09@webmail> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="=_9fe747825349203c6af510d69f278407" Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="19942"; mail-complaints-to="usenet@ciao.gmane.io" Cc: "'39118@debbugs.gnu.org'" <39118@debbugs.gnu.org>, '=?UTF-8?B?THVkb3ZpYyBDb3VydMOocw==?=' , "'guile-devel@gnu.org'" To: "'John Cowan'" Original-X-From: guile-devel-bounces+guile-devel=m.gmane-mx.org@gnu.org Fri Jan 24 16:27:02 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 1iv0rN-00057j-UV for guile-devel@m.gmane-mx.org; Fri, 24 Jan 2020 16:27:02 +0100 Original-Received: from localhost ([::1]:43626 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iv0rN-0003x0-2v for guile-devel@m.gmane-mx.org; Fri, 24 Jan 2020 10:27:01 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:53155) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iv0rB-0003vx-LG for guile-devel@gnu.org; Fri, 24 Jan 2020 10:26:51 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iv0r8-0003Fh-9c for guile-devel@gnu.org; Fri, 24 Jan 2020 10:26:49 -0500 Original-Received: from p-impout005aa.msg.pkvw.co.charter.net ([47.43.26.136]:60992 helo=p-impout001.msg.pkvw.co.charter.net) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1iv0r8-0003Dx-4T; Fri, 24 Jan 2020 10:26:46 -0500 Original-Received: from localhost ([54.243.7.172]) by cmsmtp with ESMTP id v0r4ioWE7lLVdv0r5ipFQX; Fri, 24 Jan 2020 15:26:43 +0000 X-Authority-Analysis: v=2.3 cv=bI1o382Z c=1 sm=1 tr=0 a=ZhHbwgLlxfPm5G22ibXkng==:117 a=ZhHbwgLlxfPm5G22ibXkng==:17 a=CWu-ru1EMAMA:10 a=mDV3o1hIAAAA:8 a=PW3MP3VhAAAA:8 a=2tsvuTQuAAAA:8 a=ys4_Yv5E0QSmCxxam1oA:9 a=QEXdDO2ut3YA:10 a=6P6AnMHC3_EEb1QOi_4A:9 a=r64BLdijFQ7gRPfv:21 a=_W_S_7VecoQA:10 a=_FVE-zBwftR9WsbkzFJk:22 a=wGa3ZVs4GtKCUdeekXtI:22 a=w1QI8THEI4iyJQ0oNEIE:22 a=pHzHmUro8NiASowvMSCR:22 a=Ew2E2A-JSTLzCXPT_086:22 X-Mailer: Atmail X-Originating-IP: [98.103.13.34] X-Priority: 3 Importance: Normal X-MSMail-Priority: Normal X-CMAE-Envelope: MS4wfHxyCFTcgRkQKD/KIavuF1LfxYAZa0MYwBh47rZZSegRMX747uOB0O9t6of9z5PCMXIKtOTHb7qWU6g+2EuTSQC+RO4CirbN8DglDzJSQhiwbpmEVCXH G0F6h+pHuO+cjQ3APRiQWCiSNs51a9/PQZiTYZfxhdvVeay6xIDiBwitYKAsbWsUS4qndzNS66vRObwcQtNScew/PTfQsMM7w9rqct49z0OkDCFOxBPL9Sgn QiCverVLhwyCWaEq8txoOw== X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 47.43.26.136 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:20328 Archived-At: --=_9fe747825349203c6af510d69f278407 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Pretty sure that the missing readline symbol is because the macos=0Aread= line is being used/found instead of GNU readline.=0A=0A=09-Dale=0A=0A=09= -----------------------------------------From: "John Cowan" =0ATo: "Ludo= vic Court=C3=A8s"=0ACc: 39118@debbugs.gnu.org, guile-devel@gnu.org=0ASen= t: Friday January 24 2020 9:36:59AM=0ASubject: bug#39118: Segfault while= building on 64-bit Cygwin=0A=0ABoth Cygwin and MacOS crash in pretty mu= ch the same way. By disabling=0Athe JIT, I was able to get the Cygwin bu= ild to run to completion. On=0AMacOS with --disable-jit, however, I am n= ow getting an entirely new=0Afailure:=0A CC readline.lo=0Areadline.c:432= :7: warning: implicitly declaring library function=0A'strncmp' with type= 'int (const char *, const char *,=0A unsigned long)' [-Wimplicit-functi= on-declaration]=0A if (strncmp (rl_get_keymap_name (rl_get_keymap ()), "= vi", 2))=0A ^=0Areadline.c:432:7: note: include the header or explicitl= y provide a=0Adeclaration for 'strncmp'=0Areadline.c:432:16: warning: im= plicit declaration of function=0A'rl_get_keymap_name' is invalid in C99= =0A [-Wimplicit-function-declaration]=0A if (strncmp (rl_get_keymap_name= (rl_get_keymap ()), "vi", 2))=0A ^=0Areadline.c:432:16: warning: incomp= atible integer to pointer conversion=0Apassing 'int' to parameter of typ= e 'const char *'=0A [-Wint-conversion]=0A if (strncmp (rl_get_keymap_nam= e (rl_get_keymap ()), "vi", 2))=0A ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~= =0A3 warnings generated.=0A CCLD guile-readline.la [1]=0AUndefined symbo= ls for architecture x86_64:=0A "_rl_get_keymap_name", referenced from:= =0A _scm_init_readline in readline.o=0Ald: symbol(s) not found for archi= tecture x86_64=0Aclang: error: linker command failed with exit code 1 (u= se -v to see=0Ainvocation)=0A=0AOn Thu, Jan 23, 2020 at 3:35 PM Ludovic= Court=C3=A8s wrote:=0AHi,=0A=0A John Cowan skribis:=0A=0A > Thanks. U= nfortunately, the standard recipe for making core dumps on=0AMac=0A=0A T= his bug report is about Cygwin, not macOS, right? :-)=0A=0A Ludo=E2=80= =99.=0A =0A=0ALinks:=0A------=0A[1] http://guile-readline.la=0A[2] mail= to:ludo@gnu.org=0A[3] mailto:cowan@ccil.org=0A --=_9fe747825349203c6af510d69f278407 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Pretty sure that the missing readline symbol is because the= macos readline is being used/found instead of GNU readline.


<= p>-Dale


------= -----------------------------------

From: "John Cowan"
To: "Ludovic Court=C3=A8s"
Cc: 39118@debbugs.gnu.org, guile-dev= el@gnu.org
Sent: Friday January 24 2020 9:36:59AM
Subject: bug#391= 18: Segfault while building on 64-bit Cygwin

Bot= h 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<= br>readline.c:432:7: warning: implicitly declaring library function 'str= ncmp' with type 'int (const char *, const char *,
     = ; unsigned long)' [-Wimplicit-function-declaration]
  if (strncm= p (rl_get_keymap_name (rl_get_keymap ()), "vi", 2))
    &nb= sp; ^
readline.c:432:7: note: include the header <string.h> or= explicitly provide a declaration for 'strncmp'
readline.c:432:16: wa= rning: implicit declaration of function 'rl_get_keymap_name' is invalid= in C99
      [-Wimplicit-function-declaration]
&nb= sp; if (strncmp (rl_get_keymap_name (rl_get_keymap ()), "vi", 2))
&nb= sp;              ^
readline.c:432:= 16: warning: incompatible integer to pointer conversion passing 'int' to= parameter of type 'const char *'
      [-Wint-convers= ion]
  if (strncmp (rl_get_keymap_name (rl_get_keymap ()), "vi",= 2))
               ^~~~~~~~~= ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
3 warnings generated.
  CCLD &nb= sp;   guile-readline.laUndefined symbols for architecture x86_64:
  "_rl_get_keymap_na= me", referenced from:
      _scm_init_readline in read= line.o
ld: symbol(s) not found for architecture x86_64
clang: erro= r: linker command failed with exit code 1 (use -v to see invocation)
=

=0A=0A
--=_9fe747825349203c6af510d69f278407--