From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Phil Bewig Newsgroups: gmane.lisp.guile.bugs Subject: bug#27320: 'Segmentation fault' when compiling Guile 2.2.2 under Termux (Android) Date: Sat, 10 Jun 2017 18:06:26 -0500 Message-ID: NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="001a1144e55cad37c10551a322b5" X-Trace: blaine.gmane.org 1497136938 14014 195.159.176.226 (10 Jun 2017 23:22:18 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sat, 10 Jun 2017 23:22:18 +0000 (UTC) To: 27320@debbugs.gnu.org Original-X-From: bug-guile-bounces+guile-bugs=m.gmane.org@gnu.org Sun Jun 11 01:22:10 2017 Return-path: Envelope-to: guile-bugs@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 1dJphp-0002zu-1H for guile-bugs@m.gmane.org; Sun, 11 Jun 2017 01:22:09 +0200 Original-Received: from localhost ([::1]:60511 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dJphr-0003w4-8o for guile-bugs@m.gmane.org; Sat, 10 Jun 2017 19:22:11 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:56767) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dJphj-0003vm-GD for bug-guile@gnu.org; Sat, 10 Jun 2017 19:22:05 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dJphi-0005fE-2g for bug-guile@gnu.org; Sat, 10 Jun 2017 19:22:03 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:36818) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dJphh-0005f7-V5 for bug-guile@gnu.org; Sat, 10 Jun 2017 19:22:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1dJphh-0001E5-PH for bug-guile@gnu.org; Sat, 10 Jun 2017 19:22:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Phil Bewig Original-Sender: "Debbugs-submit" Resent-CC: bug-guile@gnu.org Resent-Date: Sat, 10 Jun 2017 23:22:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 27320 X-GNU-PR-Package: guile X-GNU-PR-Keywords: X-Debbugs-Original-To: bug-guile@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.14971369124697 (code B ref -1); Sat, 10 Jun 2017 23:22:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 10 Jun 2017 23:21:52 +0000 Original-Received: from localhost ([127.0.0.1]:39495 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dJphX-0001Dg-NZ for submit@debbugs.gnu.org; Sat, 10 Jun 2017 19:21:52 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:36476) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dJpSs-0000so-Cr for submit@debbugs.gnu.org; Sat, 10 Jun 2017 19:06:42 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dJpSl-0001SN-Ok for submit@debbugs.gnu.org; Sat, 10 Jun 2017 19:06:37 -0400 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:57496) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1dJpSl-0001SH-Kw for submit@debbugs.gnu.org; Sat, 10 Jun 2017 19:06:35 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:55674) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dJpSi-0001aT-0l for bug-guile@gnu.org; Sat, 10 Jun 2017 19:06:35 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dJpSg-0001Ro-AK for bug-guile@gnu.org; Sat, 10 Jun 2017 19:06:31 -0400 Original-Received: from mail-wr0-x22e.google.com ([2a00:1450:400c:c0c::22e]:35322) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dJpSg-0001RO-0E for bug-guile@gnu.org; Sat, 10 Jun 2017 19:06:30 -0400 Original-Received: by mail-wr0-x22e.google.com with SMTP id q97so63269080wrb.2 for ; Sat, 10 Jun 2017 16:06:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=A0IQm0OTqspv6TA/zVF3U3X4FRLJAzc23lmnaanaf4c=; b=D8k1OSve9/oPDFHXwJXqlhLIP7ngSZXTQ/nyPFAVPQHNDFbPA8OFWceICudQa2+1co kHW4O6X7mBX/Tfp1Ad4mC6bJqlb2d9DfW3YeIdR0DFkT35VRlGgkdijLB0Wzc870r1K5 0cqPqxOTafrTAwDYDplk+EEpei/QANdZZafr+kbF+hJvRDWXcksahy3JsvdcnrIL6u5s HVIXCZoYnZGzmwmfRbHsFvHnFBAMkCmJZBSWfINTFhhXVKuqfuryPjsmuSTgmwpokMbp ZuFw+3n8/DfA0lw5c1AjFeAIDm2Lj6ryxhvfTP91lK48cxHDMQ4MLbv7O0Hhx3Wy3JGK ie5g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=A0IQm0OTqspv6TA/zVF3U3X4FRLJAzc23lmnaanaf4c=; b=Q0BWVmfM7Xr5BLbnfqVCb+iQyZi2WODCXMnmAtE+RNPsuvzKwXnuRWZgZYzjTw+m2u nDzhVfkpexBggP4LO7A5WBcx5cXWl+QxG6oiQAIP8L2kuC8jocHQnQZT1vCskivQpRkI 7SrhITSdSFuZKvHdfgfaATD7W9zM1waQkQPPscr6lYNzfI2TEmOb/mbN/Gs9x+tpk3xV 8YatZspfabAblsIX94DEbzFpSuAWJ/944bWytRUclXQDF3dh9VUuxwVlWzFBVcZFiMaI ywrs56tNmtnrwPYYuwJ4froQL60dH0V86tskBpdviZFtKSKpbudA3YbhIA3i9y3KRHrI 2lig== X-Gm-Message-State: AKS2vOzohPK2MW8/Gbifv+egEE3d+l/nRwQlfkUgiTAJBLGJW8tvnLUQ SEB2TBq4No9sB9qYBBfqrXDM3AWtWiS1 X-Received: by 10.28.151.193 with SMTP id z184mr3820442wmd.2.1497135986847; Sat, 10 Jun 2017 16:06:26 -0700 (PDT) Original-Received: by 10.28.98.86 with HTTP; Sat, 10 Jun 2017 16:06:26 -0700 (PDT) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Mailman-Approved-At: Sat, 10 Jun 2017 19:21:50 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 X-BeenThere: bug-guile@gnu.org List-Id: "Bug reports for GUILE, GNU's Ubiquitous Extension Language" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guile-bounces+guile-bugs=m.gmane.org@gnu.org Original-Sender: "bug-guile" Xref: news.gmane.org gmane.lisp.guile.bugs:8820 Archived-At: --001a1144e55cad37c10551a322b5 Content-Type: text/plain; charset="UTF-8" I have a Lenovo TAB 2 A10-70F tablet computer running Android 5.0.1 on an ARM Cortex A53 Quad-Core processor with 2B RAMexit clocked at 1.7 GHz. I am running Termux 0.49, available from the Google Play Store, which provides a unix-like environment on the tablet, but without rooting it, and Termux:API 0.15, also available from the Google Play Store, which gives Termux access to the tablet hardware. Termux is strange, probably because it must behave as an Android app since it does not root the device. Running 'uname -a' reports 'Linux localhost 3.10.61 #2 SMP PREEMPT Mon Oct 17 17:46:54 CST 2016 aarch64 Android' and 'whoami' reports 'u0_a111'; there is only a single user, who has superuser permissions. The Termux file tree is rooted at /data/data/com/termux/files; I have exported environment variable $TERMUX with that value, and Termux itself exports $PREFIX to point to what I call $TERMUX/usr. Under $TERMUX are home and usr. Under usr are directories bin, etc, include, lib, libexec, share, src, tmp and var. There are lots of libraries (.so) in lib, lots of headers (.h) in include, and even more headers in include/linux. The environment sets several variables of interest, including BASH=$TERMUX/usr/bin/bash, HOSTTYPE=aarch64, LD_LIBRARY_PATH=$TERMUX/usr/lib, MACHTYPE=aarch64-unknown-linux-android, OSTYPE=linux-android, PATH=$TERMUX/usr/bin:$TERMUX/usr/bin/applets, SHELL=$TERMUX/usr/bin/bash, and TMPDIR=$TERMUX/usr/tmp, where I have written $TERMUX for convenience (the environment has the entire path written out in every case). I have installed gawk and m4 for my own use (and probably a few other things too, though I don't remember them at the moment). I am trying to install the Guile Scheme interpreter. I performed the following steps: cd /data/data/com.termux/files/usr/src wget ftp://ftp.gnu.org/gnu/guile/guile-2.0.14.tar.gz tar -zxvf guile-2.0.14.tar.gz cd guile-2.0.14 apt install libtool libunistring libunistring-dev \ libgc libgc-dev libgmp-dev pkg-config libffi-dev termux-fix-shebang configure build-aux/config.sub \ build-aux/install-sh libguile/guile-snarf* \ meta/build-env* ./configure SHELL='/data/data/com.termux/files/usr/bin/sh' \ CPPFLAGS='-I/data/data/com.termux/files/usr/bin/include: /data/data/com.termux/files/usr/bin/include/linux' \ LDFLAGS='-L/data/data/com.termux/files/usr/lib make At this point I get an error about being unable to find guild, so I fix the shebang on file meta/guild, which is built early in the make process, and continue: termux-fix-shebang meta/guild make The make command ends with an error. After entering directory '/data/data/com.termux/files/usr/src/guile-2.0.14/libguile' and executing 'GEN guile-procedures.texi' I get an error message 'CANNOT LINK EXECUTABLE: could not load library "libguile-2.0.so.22" needed by "/data/data/com.termux/files/usr/src/guile-2.0.14/libguile/.libs/lt-guile"; cause by library "libguile-2.0.so.22 not found'. I note that file libguile-2.0.so.22 exists in directory /data/data/com.termux/files/usr/src/guile-2.0.14/libguile/.libs. I fix the error by linking libguile-2.0.so.22, then continue: ln libguile/.libs/libguile-2.0.so.22 /data/data/com.termux/files/usr/lib/libguile-2.0.so.22 make The I get another error: "Segmentation fault". The error occurs when make is trying to execute guild snarf-check-and-output-texi; I note there is a Scheme script snarf-check-and-output-texi.scm under module/scripts. Exactly the same problem occurs with Guile 2.2.2. I actually started with Guile 2.2.2, but switched to Guile 2.0.14 because it is the legacy branch of the program and I was worried there might be something odd in the newer version. How can I fix this problem? --001a1144e55cad37c10551a322b5 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
I have a Lenovo TAB 2 A10-70F tablet computer running Andr= oid 5.0.1 on an ARM Cortex A53 Quad-Core processor with 2B RAMexit clocked = at 1.7 GHz. I am running Termux 0.49, available from the Google Play Store,= which provides a unix-like environment on the tablet, but without rooting = it, and Termux:API 0.15, also available from the Google Play Store, which g= ives Termux access to the tablet hardware.

Termux is strange, probab= ly because it must behave as an Android app since it does not root the devi= ce. Running 'uname -a' reports 'Linux localhost 3.10.61 #2 SMP = PREEMPT Mon Oct 17 17:46:54 CST 2016 aarch64 Android' and 'whoami&#= 39; reports 'u0_a111'; there is only a single user, who has superus= er permissions. The Termux file tree is rooted at /data/data/com/termux/fil= es; I have exported environment variable $TERMUX with that value, and Termu= x itself exports $PREFIX to point to what I call $TERMUX/usr. Under $TERMUX= are home and usr. Under usr are directories bin, etc, include, lib, libexe= c, share, src, tmp and var. There are lots of libraries (.so) in lib, lots = of headers (.h) in include, and even more headers in include/linux. The env= ironment sets several variables of interest, including BASH=3D$TERMUX/usr/b= in/bash, HOSTTYPE=3Daarch64, LD_LIBRARY_PATH=3D$TERMUX/usr/lib, MACHTYPE=3D= aarch64-unknown-linux-android, OSTYPE=3Dlinux-android, PATH=3D$TERMUX/usr/b= in:$TERMUX/usr/bin/applets, SHELL=3D$TERMUX/usr/bin/bash, and TMPDIR=3D$TER= MUX/usr/tmp, where I have written $TERMUX for convenience (the environment = has the entire path written out in every case). I have installed gawk and m= 4 for my own use (and probably a few other things too, though I don't r= emember them at the moment).

I am trying to install the Guile Scheme= interpreter. I performed the following steps:

=C2=A0=C2=A0=C2=A0 cd= /data/data/com.termux/files/usr/src
=C2=A0=C2=A0=C2=A0 wget ftp://ftp.gnu.org/gnu/guil= e/guile-2.0.14.tar.gz
=C2=A0=C2=A0=C2=A0 tar -zxvf guile-2.0.14.tar.= gz
=C2=A0=C2=A0=C2=A0 cd guile-2.0.14
=C2=A0=C2=A0=C2=A0 apt install = libtool libunistring libunistring-dev \
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0 libgc libgc-dev libgmp-dev pkg-config libffi-dev
=C2=A0=C2= =A0=C2=A0 termux-fix-shebang configure build-aux/config.sub \
=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 build-aux/install-sh libguile/guile-snarf= * \
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 meta/build-env*
=C2=A0= =C2=A0=C2=A0 ./configure SHELL=3D'/data/data/com.termux/files/usr/bin/s= h' \
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 CPPFLAGS=3D'-I/d= ata/data/com.termux/files/usr/bin/include:
=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 /data/data/com.termux/files/usr/bin= /include/linux' \
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 LDFLAGS= =3D'-L/data/data/com.termux/files/usr/lib
=C2=A0=C2=A0=C2=A0 make
At this point I get an error about being unable to find guild, so I fi= x the shebang on file meta/guild, which is built early in the make process,= and continue:

=C2=A0=C2=A0=C2=A0 termux-fix-shebang meta/guild
= =C2=A0=C2=A0=C2=A0 make

The make command ends with an error. After e= ntering directory '/data/data/com.termux/files/usr/src/guile-2.0.14/lib= guile' and executing 'GEN guile-procedures.texi' I get an error= message 'CANNOT LINK EXECUTABLE: could not load library "libguile= -2.0.so.22" needed by "/data/data/com.termux/files/usr/src/guile-= 2.0.14/libguile/.libs/lt-guile"; cause by library "libguile-2.0.s= o.22 not found'. I note that file libguile-2.0.so.22 exists in director= y /data/data/com.termux/files/usr/src/guile-2.0.14/libguile/.libs. I fix th= e error by linking libguile-2.0.so.22, then continue:

=C2=A0=C2=A0= =C2=A0 ln libguile/.libs/libguile-2.0.so.22 /data/data/com.termux/files/usr= /lib/libguile-2.0.so.22
=C2=A0=C2=A0=C2=A0 make

The I get another= error: "Segmentation fault". The error occurs when make is tryin= g to execute guild snarf-check-and-output-texi; I note there is a Scheme sc= ript snarf-check-and-output-texi.scm under module/scripts.

Exactly t= he same problem occurs with Guile 2.2.2. I actually started with Guile 2.2.= 2, but switched to Guile 2.0.14 because it is the legacy branch of the prog= ram and I was worried there might be something odd in the newer version.
How can I fix this problem?
--001a1144e55cad37c10551a322b5--