From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id 0HuxAlqysl+HTQAA0tVLHw (envelope-from ) for ; Mon, 16 Nov 2020 17:09:46 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id wBsmOlmysl8+UwAAB5/wlQ (envelope-from ) for ; Mon, 16 Nov 2020 17:09:45 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 824AE9404C4 for ; Mon, 16 Nov 2020 17:09:45 +0000 (UTC) Received: from localhost ([::1]:56928 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kei0d-0002IX-Tp for larch@yhetil.org; Mon, 16 Nov 2020 12:09:43 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:45930) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kehz1-00080x-SQ for bug-guix@gnu.org; Mon, 16 Nov 2020 12:08:05 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:45481) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kehz0-0002s4-Fk for bug-guix@gnu.org; Mon, 16 Nov 2020 12:08:03 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kehz0-0006Ac-B5 for bug-guix@gnu.org; Mon, 16 Nov 2020 12:08:02 -0500 X-Loop: help-debbugs@gnu.org Subject: bug#44000: Guile-Git cross-compiled to i586-pc-gnu gets bytestructures wrong Resent-From: Taylan Kammer Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Mon, 16 Nov 2020 17:08:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 44000 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: Ludovic =?UTF-8?Q?Court=C3=A8s?= Received: via spool by 44000-submit@debbugs.gnu.org id=B44000.160554643823667 (code B ref 44000); Mon, 16 Nov 2020 17:08:02 +0000 Received: (at 44000) by debbugs.gnu.org; 16 Nov 2020 17:07:18 +0000 Received: from localhost ([127.0.0.1]:57027 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kehyH-00069f-LM for submit@debbugs.gnu.org; Mon, 16 Nov 2020 12:07:17 -0500 Received: from mail-ed1-f54.google.com ([209.85.208.54]:37885) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kehyF-00069R-G5 for 44000@debbugs.gnu.org; Mon, 16 Nov 2020 12:07:16 -0500 Received: by mail-ed1-f54.google.com with SMTP id cq7so19471746edb.4 for <44000@debbugs.gnu.org>; Mon, 16 Nov 2020 09:07:15 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=vCQMX1MJULw5agbgBO9CCqcBjk8Ec7SCTRUAq2/Fp8A=; b=Zot2RFZLBliYmZUUd/vGo3YqFMoIibun7Eo2rXqfU6rRjIheTojgr9KG4JiA4XVCXi 21sJTrBYptjeonG+XDikWSp1cmUVMzOjKw1TyN3vshCUUD3o1ZII3NrN+yf/NK/Jk6yl k+MrxQYQxuUPIa9mq/3BMpySy/1AEi4Jba/pNMirzDa4B4Poq1suiubDlwkb3M45Y1WO rOICzaJNMbt6prHK6SNI19AEvGs68xmfhwA+rp3/tfxa5DeEuIudX/c0kVuoeXhdfsfl 2yfEVXhuWZmqdFYZqDfjjOUG8zht4duXs0Jmoudg9QAqPwNhLLCqCmdVTV3Ejwh423ux JYJA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=vCQMX1MJULw5agbgBO9CCqcBjk8Ec7SCTRUAq2/Fp8A=; b=cVmzD7+T4mbBt3EyqvutXUUpOlqqm78ym6xpWRBpgHfQ/ByXTQfZSBkw52/jZDbdch wYnu9jy4uPw2DYGdSkBXthR94Z7niap0TPB/K5qWGC/41AWJ20wY9nrlIkSGkRUjWw22 C/gP7wgywKGObftoVg86Yes2le2Cmaf9vEN+j4gLE/zpH+JiMZsNv1Z8s6jKWI1B1ZRQ 92RN1wUWEe73GMuCJKiDmy/K0BOZX8HyCmt/gTJ/C05+iBE0Ee8dWWXN2Qdd5irx+c/1 o+jIwLwXUwFRlRyLkO1V6MRy5DoFPc7/4QambhSR3Vqe1ENNsnPPa2W5vhvkSSb4fHkN 8oKg== X-Gm-Message-State: AOAM530vn5/T80sNvWTDFIkqDNIC8Nsl/kQ4F6my7UM93uZlDeBbiYfh nCvYY9at8P2Q+rhG9Bcoi+HdG+MBYa0= X-Google-Smtp-Source: ABdhPJwi6B44KgFTG46ZL4uB2pCCJ2uxARy5Jkp22Ztj4m13/TTcHfvg7XVjE8nGVEp76oY15AfOaA== X-Received: by 2002:aa7:c704:: with SMTP id i4mr16395051edq.51.1605546428264; Mon, 16 Nov 2020 09:07:08 -0800 (PST) Received: from [192.168.178.20] ([109.90.125.150]) by smtp.gmail.com with ESMTPSA id k23sm10653910ejs.100.2020.11.16.09.07.07 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 16 Nov 2020 09:07:07 -0800 (PST) References: <87v9fccuml.fsf@inria.fr> <871ri0c4u8.fsf@gnu.org> <1325d1c4-e047-76e5-2180-672fef7238b9@gmail.com> <87mu0kn3wh.fsf@gmail.com> <87blgy39q7.fsf@gnu.org> <87ft66umhj.fsf@gmail.com> <87o8jxuvsy.fsf@gnu.org> From: Taylan Kammer Message-ID: <0d2d91d0-c335-ad6a-6249-8090837f16ff@gmail.com> Date: Mon, 16 Nov 2020 18:07:06 +0100 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Thunderbird/78.4.3 MIME-Version: 1.0 In-Reply-To: <87o8jxuvsy.fsf@gnu.org> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit X-Spam-Score: -0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-Spam-Score: -1.0 (-) X-BeenThere: bug-guix@gnu.org List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: 44000@debbugs.gnu.org Errors-To: bug-guix-bounces+larch=yhetil.org@gnu.org Sender: "bug-Guix" X-Scanner: ns3122888.ip-94-23-21.eu Authentication-Results: aspmx1.migadu.com; dkim=fail (headers rsa verify failed) header.d=gmail.com header.s=20161025 header.b=Zot2RFZL; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); spf=pass (aspmx1.migadu.com: domain of bug-guix-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=bug-guix-bounces@gnu.org X-Spam-Score: 0.09 X-TUID: +br59zOKP3F0 On 16.11.2020 17:10, Ludovic Courtès wrote: > > 1.0.9 seems to help my rather involved use case (Guix cross-compiled to > GNU/Hurd from x86_64-linux, then running ‘guix pull’, which depends on > Guile-Git, which uses Bytestructures) but it still eventually crashes: > > --8<---------------cut here---------------start------------->8--- > ludo@childhurd ~$ /gnu/store/mxi1za8gdq77438ywgzdzy2zywb9nk76-guix-1.2.0rc1-1.3ba6ffd/bin/guix pull > Updating channel 'guix' from Git repository at 'https://git.savannah.gnu.org/git/guix.git'... > receiving objects 25% [############# ]Illegal instruction > --8<---------------cut here---------------end--------------->8--- > > The problem may well be elsewhere though. Had you tested the same with your patch? If it worked with your patch but doesn't work with 1.0.9 then I'll have to take another look I guess. > However, at the REPL I can no longer access the ‘numeric’ module: > > --8<---------------cut here---------------start------------->8--- > ludo@childhurd ~$ /gnu/store/mxi1za8gdq77438ywgzdzy2zywb9nk76-guix-1.2.0rc1-1.3ba6ffd/bin/guix repl > GNU Guile 3.0.4 > Copyright (C) 1995-2020 Free Software Foundation, Inc. > > Guile comes with ABSOLUTELY NO WARRANTY; for details type `,show w'. > This program is free software, and you are welcome to redistribute it > under certain conditions; type `,show c' for details. > > Enter `,help' for help. > scheme@(guix-user)> ,m(bytestructures body numeric) > While executing meta-command: > error: environment: unbound variable > scheme@(guix-user)> (@@ (bytestructures body numeric) arch-32bit?) > While compiling expression: > error: environment: unbound variable > --8<---------------cut here---------------end--------------->8--- One shouldn't try to use (bytestructures body ...) as modules. The files in that directory contain no module-related boilerplate at all, including imports, which is why in this case it complains about the lack of the binding 'environment'. The module (bytestructures guile numeric) ought to work, although it doesn't contain the binding 'arch32bit?'. Do you actually need that predicate, or was that just for demonstration? The "right" way to test whether the predicate works correctly would be to check whether e.g. intptr_t equals int32 or int64 as per 'eq?'. > Thanks, > Ludo’. > Hope I was able to help! Taylan