GNU bug report logs - #31777
guile-2.2 FTCBFS for mipsel: In procedure load-thunk-from-memory: No such file or directory

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: guile; Reported by: Rob Browning <rlb@HIDDEN>; dated Sun, 10 Jun 2018 20:11:01 UTC; Maintainer for guile is bug-guile@HIDDEN.

Message received at 31777 <at> debbugs.gnu.org:


Received: (at 31777) by debbugs.gnu.org; 16 Jun 2018 22:08:30 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sat Jun 16 18:08:30 2018
Received: from localhost ([127.0.0.1]:52202 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1fUJMz-0007QZ-Tr
	for submit <at> debbugs.gnu.org; Sat, 16 Jun 2018 18:08:30 -0400
Received: from defaultvalue.org ([45.33.119.55]:48804 ident=postfix)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <rlb@HIDDEN>) id 1fUJMy-0007QR-HH
 for 31777 <at> debbugs.gnu.org; Sat, 16 Jun 2018 18:08:28 -0400
Received: from trouble.defaultvalue.org (localhost [127.0.0.1])
 (Authenticated sender: rlb@HIDDEN)
 by defaultvalue.org (Postfix) with ESMTPSA id 3FCFD2038F;
 Sat, 16 Jun 2018 17:08:28 -0500 (CDT)
Received: by trouble.defaultvalue.org (Postfix, from userid 1000)
 id ED1ED14E550; Sat, 16 Jun 2018 17:08:27 -0500 (CDT)
From: Rob Browning <rlb@HIDDEN>
To: Mark H Weaver <mhw@HIDDEN>
Subject: Re: bug#31777: guile-2.2 FTCBFS for mipsel: In
 procedure	load-thunk-from-memory: No such file or directory
In-Reply-To: <87a7s173kj.fsf@HIDDEN>
References: <20180527152301.GA23270@HIDDEN>
 <87sh6czwys.fsf@HIDDEN> <20180528040202.GA19575@HIDDEN>
 <87h8mrzjjf.fsf@HIDDEN> <20180528200534.GA30142@HIDDEN>
 <87vaaqpfmc.fsf@HIDDEN> <87a7s173kj.fsf@HIDDEN>
Date: Sat, 16 Jun 2018 17:08:27 -0500
Message-ID: <87k1qywfj8.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 31777
Cc: Helmut Grohne <helmut@HIDDEN>, 900203@HIDDEN,
 31777 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

Mark H Weaver <mhw@HIDDEN> writes:

> Would you like to try cherry-picking these commits and see if they fix
> the problem for you?

Uploaded as 2.2.3+1-5.  Thanks for the help.

-- 
Rob Browning
rlb @defaultvalue.org and @debian.org
GPG as of 2011-07-10 E6A9 DA3C C9FD 1FF8 C676 D2C4 C0F0 39E9 ED1B 597A
GPG as of 2002-11-03 14DD 432F AE39 534D B592 F9A0 25C8 D377 8C7E 73A4




Information forwarded to bug-guile@HIDDEN:
bug#31777; Package guile. Full text available.

Message received at 31777 <at> debbugs.gnu.org:


Received: (at 31777) by debbugs.gnu.org; 11 Jun 2018 15:21:41 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Jun 11 11:21:41 2018
Received: from localhost ([127.0.0.1]:43576 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1fSOdZ-0001Ze-EM
	for submit <at> debbugs.gnu.org; Mon, 11 Jun 2018 11:21:41 -0400
Received: from world.peace.net ([64.112.178.59]:42658)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <mhw@HIDDEN>) id 1fSOdY-0001ZS-6I
 for 31777 <at> debbugs.gnu.org; Mon, 11 Jun 2018 11:21:40 -0400
Received: from mhw by world.peace.net with esmtpsa
 (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89)
 (envelope-from <mhw@HIDDEN>)
 id 1fSOdQ-0004e7-HX; Mon, 11 Jun 2018 11:21:32 -0400
From: Mark H Weaver <mhw@HIDDEN>
To: Rob Browning <rlb@HIDDEN>
Subject: Re: bug#31777: guile-2.2 FTCBFS for mipsel: In procedure
 load-thunk-from-memory: No such file or directory
References: <20180527152301.GA23270@HIDDEN>
 <87sh6czwys.fsf@HIDDEN>
 <20180528040202.GA19575@HIDDEN>
 <87h8mrzjjf.fsf@HIDDEN>
 <20180528200534.GA30142@HIDDEN>
 <87vaaqpfmc.fsf@HIDDEN>
Date: Mon, 11 Jun 2018 11:20:12 -0400
In-Reply-To: <87vaaqpfmc.fsf@HIDDEN> (Rob Browning's message
 of "Sun, 10 Jun 2018 15:10:19 -0500")
Message-ID: <87a7s173kj.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 31777
Cc: Helmut Grohne <helmut@HIDDEN>, 900203@HIDDEN,
 31777 <at> debbugs.gnu.org, 900203-forwarded@HIDDEN
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

Hi Rob,

Rob Browning <rlb@HIDDEN> writes:

> [If possible, please preserve the 900203-forwarded address in replies]
>
> We're currently unable to cross-build guile 2.2 on all of the debian
> release architectures, which is important given that through make, etc.,
> guile's now part of the core bootstrap set for new architectures.
>
> You can see additional information here
>
>   https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=900203

Thanks.  I was able to reproduce the problem by running:

  ./meta/build-env guild compile --target=arm-unknown-linux-gnueabihf \
    -Wunbound-variable -Wmacro-use-before-definition -Warity-mismatch \
    -Wformat -L module --from=elisp \
    -o module/language/elisp/ARM-boot.go \
    module/language/elisp/boot.el

from my built git checkout of the stable-2.2 branch.

>   ERROR: In procedure load-thunk-from-memory:
>   In procedure load-thunk-from-memory: No such file or directory
>   Makefile:2267: recipe for target 'language/elisp/boot.go' failed

The "No such file or directory" was bogus, caused by bad error handling
in 'load-thunk-from-memory', and fixed in the following commits:

  https://git.savannah.gnu.org/cgit/guile.git/commit/?h=stable-2.2&id=deef64a739d868ed5fda4e55e387528c1b6c196b
  https://git.savannah.gnu.org/cgit/guile.git/commit/?h=stable-2.2&id=9fbb36725634d05c3e46de7619e2f6019fbeb6fe

With those fixes, the error message becomes:

  In procedure load-thunk-from-memory: ELF file does not have native word size

While cross-compiling our elisp compiler, there were attempts to load
object code built for the target machine into the Guile process running
on the build machine.

I just pushed commit bff75635e5ed08de63b02c661cf65f2e1b28c995 to the
stable-2.2 branch, which together with the earlier commit
988aa29238fca862c7e2cb55f15762a69b4c16ce allows me to successfully
cross-compile language/elisp/boot.el using the above command.

Would you like to try cherry-picking these commits and see if they fix
the problem for you?

  https://git.savannah.gnu.org/cgit/guile.git/commit/?h=stable-2.2&id=988aa29238fca862c7e2cb55f15762a69b4c16ce
  https://git.savannah.gnu.org/cgit/guile.git/commit/?h=stable-2.2&id=bff75635e5ed08de63b02c661cf65f2e1b28c995

     Thanks,
       Mark




Information forwarded to bug-guile@HIDDEN:
bug#31777; Package guile. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 10 Jun 2018 20:10:35 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sun Jun 10 16:10:35 2018
Received: from localhost ([127.0.0.1]:42570 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1fS6fa-0003Da-NP
	for submit <at> debbugs.gnu.org; Sun, 10 Jun 2018 16:10:35 -0400
Received: from eggs.gnu.org ([208.118.235.92]:52358)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <rlb@HIDDEN>) id 1fS6fY-0003DM-NZ
 for submit <at> debbugs.gnu.org; Sun, 10 Jun 2018 16:10:33 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <rlb@HIDDEN>) id 1fS6fS-0002SA-8m
 for submit <at> debbugs.gnu.org; Sun, 10 Jun 2018 16:10:27 -0400
X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org
X-Spam-Level: 
X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50 autolearn=disabled
 version=3.3.2
Received: from lists.gnu.org ([2001:4830:134:3::11]:42618)
 by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32)
 (Exim 4.71) (envelope-from <rlb@HIDDEN>)
 id 1fS6fR-0002Ru-Vc
 for submit <at> debbugs.gnu.org; Sun, 10 Jun 2018 16:10:26 -0400
Received: from eggs.gnu.org ([2001:4830:134:3::10]:43329)
 by lists.gnu.org with esmtp (Exim 4.71)
 (envelope-from <rlb@HIDDEN>) id 1fS6fQ-0008SA-NE
 for bug-guile@HIDDEN; Sun, 10 Jun 2018 16:10:25 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <rlb@HIDDEN>) id 1fS6fN-0002QC-6f
 for bug-guile@HIDDEN; Sun, 10 Jun 2018 16:10:24 -0400
Received: from defaultvalue.org ([45.33.119.55]:53742)
 by eggs.gnu.org with esmtp (Exim 4.71)
 (envelope-from <rlb@HIDDEN>) id 1fS6fM-0002Pm-Um
 for bug-guile@HIDDEN; Sun, 10 Jun 2018 16:10:21 -0400
Received: from trouble.defaultvalue.org (localhost [127.0.0.1])
 (Authenticated sender: rlb@HIDDEN)
 by defaultvalue.org (Postfix) with ESMTPSA id DFFCB2009F;
 Sun, 10 Jun 2018 15:10:19 -0500 (CDT)
Received: by trouble.defaultvalue.org (Postfix, from userid 1000)
 id 5172914E550; Sun, 10 Jun 2018 15:10:19 -0500 (CDT)
From: Rob Browning <rlb@HIDDEN>
To: bug-guile@HIDDEN
Subject: guile-2.2 FTCBFS for mipsel: In procedure load-thunk-from-memory: No
 such file or directory
In-Reply-To: <20180528200534.GA30142@HIDDEN>
References: <20180527152301.GA23270@HIDDEN>
 <87sh6czwys.fsf@HIDDEN> <20180528040202.GA19575@HIDDEN>
 <87h8mrzjjf.fsf@HIDDEN> <20180528200534.GA30142@HIDDEN>
Date: Sun, 10 Jun 2018 15:10:19 -0500
Message-ID: <87vaaqpfmc.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic]
 [fuzzy]
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x
X-Received-From: 2001:4830:134:3::11
X-Spam-Score: -5.0 (-----)
X-Debbugs-Envelope-To: submit
Cc: Helmut Grohne <helmut@HIDDEN>, 900203@HIDDEN,
 900203-forwarded@HIDDEN
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -6.0 (------)


[If possible, please preserve the 900203-forwarded address in replies]

We're currently unable to cross-build guile 2.2 on all of the debian
release architectures, which is important given that through make, etc.,
guile's now part of the core bootstrap set for new architectures.

You can see additional information here

  https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=900203

and I have been able to reproduce the failure on a debian buster
(testing) amd64 host by adding armhf as root:

  # dpkg --add-architecture armhf
  # apt build-dep -t buster guile-2.2
  # apt install -t buster \
    fakeroot \
    dpkg-dev \
    binutils:armhf \
    crossbuild-essential-armhf \
    gcc-arm-linux-gnueabihf \
    libc-dev:armhf
    libncurses5-dev:armhf

and then building the package as not-root:

  $ apt source guile-2.2=2.2.3+1-4
  $ cd guile-2.2-2.2.3+1
  $ DEB_BUILD_PROFILES="cross nocheck" \
    DEB_BUILD_OPTIONS="parallel=2 nocheck" \
    fakeroot dpkg-buildpackage -B --host-arch=armhf

...which fails with the same error reported in the debian bug:

  guild compile --target="arm-unknown-linux-gnueabihf" -Wunbound-variable -Wmacro-use-before-definition -Warity-mismatch -Wformat        \
    -L "/home/rlb/deb/guile/main/module" -L "/home/rlb/deb/guile/main/module"             \
    -L "/home/rlb/deb/guile/main/guile-readline"                  \
    --from=elisp -o "language/elisp/boot.go" "language/elisp/boot.el"
  Backtrace:
  In srfi/srfi-1.scm:
      640:9 19 (for-each #<procedure 55b6de6cca00 at scripts/compile.?> ?)
  In scripts/compile.scm:
     251:26 18 (_ _)
  In system/base/target.scm:
       57:6 17 (with-target _ _)
  In system/base/compile.scm:
     139:28 16 (compile-file "language/elisp/boot.el" #:output-file _ # ?)
  In system/base/language.scm:
     110:30 15 (default-environment _)
      62:11 14 (lookup-language elisp)
  In ice-9/boot-9.scm:
    2714:10 13 (_ (language elisp spec) _ _ #:ensure _)
    2982:16 12 (try-module-autoload _ _)
     2312:4 11 (save-module-excursion _)
    3002:22 10 (_)
  In unknown file:
             9 (primitive-load-path "language/elisp/spec" #<procedure ?>)
  In system/base/compile.scm:
      165:4  8 (compile-and-load _ #:from _ #:to _ #:env _ #:opts _ # _)
     235:18  7 (read-and-compile #<input: language/elisp/boot.el 13> # ?)
     183:32  6 (compile-fold (#<procedure compile-tree-il (expr env ?>) ?)
  In language/elisp/compile-tree-il.scm:
      805:5  5 (compile-tree-il (defmacro @ (module symbol) (#{`}# ?)) ?)
     705:11  4 (_ _ _)
  In system/base/compile.scm:
      255:6  3 (compile _ #:from _ #:to _ #:env _ #:opts _)
     183:32  2 (compile-fold _ #<tree-il (seq (call (@ (language elis?> ?)
  In language/bytecode/spec.scm:
      28:15  1 (bytecode->value #vu8(127 69 76 70 1 1 1 255 0 0 0 0 ?) ?)
  In unknown file:
             0 (load-thunk-from-memory #vu8(127 69 76 70 1 1 1 255 0 ?))

  ERROR: In procedure load-thunk-from-memory:
  In procedure load-thunk-from-memory: No such file or directory
  Makefile:2267: recipe for target 'language/elisp/boot.go' failed

Please let me know if I can help test anything further, and note that it
appears possible that the the architecture may be relevant, i.e. from
the debian bug:

Helmut Grohne <helmut@HIDDEN> writes:

> Initially, I thought the failure was 100% reproducible for any
> architecture. That doesn't seem to be the case. Let me try building
> guile-2.2 for most release architecture with sbuild:
>
> arm64: successful
> armel: ftcbfs, ftcbfs
> armhf: ftcbfs, ftcbfs
> mips: multiarch skew linux-libc-dev
> mips64el: successful
> mipsel: multiarch skew linux-libc-dev
> powerpc: ftcbfs, ftcbfs
> ppc64el: successful
> s390x: ftcbfs
>
> I ran each ftcbfs build twice to rule out the possibility of a random
> ftcbfs. So we have a non-random ftcbfs for some architectures. I'm a bit
> surprised about s390x here as it is the only failing 64bit architecture.

Thanks
-- 
Rob Browning
rlb @defaultvalue.org and @debian.org
GPG as of 2011-07-10 E6A9 DA3C C9FD 1FF8 C676 D2C4 C0F0 39E9 ED1B 597A
GPG as of 2002-11-03 14DD 432F AE39 534D B592 F9A0 25C8 D377 8C7E 73A4




Acknowledgement sent to Rob Browning <rlb@HIDDEN>:
New bug report received and forwarded. Copy sent to bug-guile@HIDDEN. Full text available.
Report forwarded to bug-guile@HIDDEN:
bug#31777; Package guile. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Sat, 16 Jun 2018 22:15:02 UTC

GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.