From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Mark H Weaver Newsgroups: gmane.lisp.guile.bugs Subject: bug#31777: guile-2.2 FTCBFS for mipsel: In procedure load-thunk-from-memory: No such file or directory Date: Mon, 11 Jun 2018 11:20:12 -0400 Message-ID: <87a7s173kj.fsf@netris.org> References: <20180527152301.GA23270@alf.mars> <87sh6czwys.fsf@trouble.defaultvalue.org> <20180528040202.GA19575@alf.mars> <87h8mrzjjf.fsf@trouble.defaultvalue.org> <20180528200534.GA30142@alf.mars> <87vaaqpfmc.fsf@trouble.defaultvalue.org> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1528730412 995 195.159.176.226 (11 Jun 2018 15:20:12 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Mon, 11 Jun 2018 15:20:12 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1 (gnu/linux) Cc: Helmut Grohne , 31777@debbugs.gnu.org, 900203@bugs.debian.org, 900203-forwarded@bugs.debian.org To: Rob Browning Original-X-From: bug-guile-bounces+guile-bugs=m.gmane.org@gnu.org Mon Jun 11 17:20:07 2018 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 1fSOc1-00005B-5y for guile-bugs@m.gmane.org; Mon, 11 Jun 2018 17:20:05 +0200 Original-Received: from localhost ([::1]:49513 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fSOe8-0000Ia-CL for guile-bugs@m.gmane.org; Mon, 11 Jun 2018 11:22:16 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:41509) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fSOdz-0000FI-Qj for bug-guile@gnu.org; Mon, 11 Jun 2018 11:22:09 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fSOdu-0003NH-9w for bug-guile@gnu.org; Mon, 11 Jun 2018 11:22:06 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:35679) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fSOdu-0003N1-4b for bug-guile@gnu.org; Mon, 11 Jun 2018 11:22:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1fSOdt-0001aE-PE for bug-guile@gnu.org; Mon, 11 Jun 2018 11:22:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Mark H Weaver Original-Sender: "Debbugs-submit" Resent-CC: bug-guile@gnu.org Resent-Date: Mon, 11 Jun 2018 15:22:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 31777 X-GNU-PR-Package: guile X-GNU-PR-Keywords: Original-Received: via spool by 31777-submit@debbugs.gnu.org id=B31777.15287305016059 (code B ref 31777); Mon, 11 Jun 2018 15:22:01 +0000 Original-Received: (at 31777) by debbugs.gnu.org; 11 Jun 2018 15:21:41 +0000 Original-Received: from localhost ([127.0.0.1]:43576 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fSOdZ-0001Ze-EM for submit@debbugs.gnu.org; Mon, 11 Jun 2018 11:21:41 -0400 Original-Received: from world.peace.net ([64.112.178.59]:42658) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fSOdY-0001ZS-6I for 31777@debbugs.gnu.org; Mon, 11 Jun 2018 11:21:40 -0400 Original-Received: from mhw by world.peace.net with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1fSOdQ-0004e7-HX; Mon, 11 Jun 2018 11:21:32 -0400 In-Reply-To: <87vaaqpfmc.fsf@trouble.defaultvalue.org> (Rob Browning's message of "Sun, 10 Jun 2018 15:10:19 -0500") 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:9062 Archived-At: Hi Rob, Rob Browning 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