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 QCAIEFyfw17tOAAA0tVLHw (envelope-from ) for ; Tue, 19 May 2020 08:57:00 +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 IJPrC1yfw16bbAAAB5/wlQ (envelope-from ) for ; Tue, 19 May 2020 08:57:00 +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 A647A94017B for ; Tue, 19 May 2020 08:56:59 +0000 (UTC) Received: from localhost ([::1]:40360 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jay3W-0001vE-JO for larch@yhetil.org; Tue, 19 May 2020 04:56:58 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:54184) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jaxzi-0007hG-1v for bug-guix@gnu.org; Tue, 19 May 2020 04:53:04 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:37608) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jaxzh-0004VU-Ox for bug-guix@gnu.org; Tue, 19 May 2020 04:53:01 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1jaxzh-00065y-Kx for bug-guix@gnu.org; Tue, 19 May 2020 04:53:01 -0400 X-Loop: help-debbugs@gnu.org Subject: bug#41264: Bootstrap packages fail to build. Resent-From: Mathieu Othacehe Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Tue, 19 May 2020 08:53:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 41264 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: 41264@debbugs.gnu.org Received: via spool by 41264-submit@debbugs.gnu.org id=B41264.158987835823399 (code B ref 41264); Tue, 19 May 2020 08:53:01 +0000 Received: (at 41264) by debbugs.gnu.org; 19 May 2020 08:52:38 +0000 Received: from localhost ([127.0.0.1]:49154 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jaxzK-00065L-0R for submit@debbugs.gnu.org; Tue, 19 May 2020 04:52:38 -0400 Received: from eggs.gnu.org ([209.51.188.92]:46702) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jaxzJ-000656-4c for 41264@debbugs.gnu.org; Tue, 19 May 2020 04:52:37 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:46942) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jaxzD-0004Ru-OY for 41264@debbugs.gnu.org; Tue, 19 May 2020 04:52:31 -0400 Received: from [2a01:e0a:fa:a50:7004:8043:e0bd:6eda] (port=35840 helo=meru) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1jaxzD-0005I9-Cv for 41264@debbugs.gnu.org; Tue, 19 May 2020 04:52:31 -0400 From: Mathieu Othacehe References: <87h7wik0kk.fsf@gnu.org> <87v9kxe6tl.fsf@gnu.org> Date: Tue, 19 May 2020 10:52:28 +0200 In-Reply-To: <87v9kxe6tl.fsf@gnu.org> (Mathieu Othacehe's message of "Fri, 15 May 2020 14:11:34 +0200") Message-ID: <87ftbwtigj.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -2.3 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-Spam-Score: -3.3 (---) X-BeenThere: bug-guix@gnu.org List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+larch=yhetil.org@gnu.org Sender: "bug-Guix" X-Scanner: scn0 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=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: -1.01 X-TUID: ntFbH52xX7Tj Hello, > So stat, lstat, and all other related function will return -EOVERFLOW > unless their 64 bits stat64, lstat64 counterpart is used. > > So I think this means that one cannot build the Guix bootstrap toolchain on an > NVME disk. After further investigations I think that it is needed to patch GNU Mes to fix this bug. We would need to add three new syscalls for x86: --8<---------------cut here---------------start------------->8--- #define SYS_stat64 0xc3 #define SYS_lstat64 0xc4 #define SYS_fstat64 0xc5 --8<---------------cut here---------------end--------------->8--- lib/linux/stat.c should be modified this way: --8<---------------cut here---------------start------------->8--- #if __i386__ #define STAT_SYSCALL SYS_stat64 #else #define STAT_SYSCALL SYS_stat #endif int stat (char const *file_name, struct stat *statbuf) { struct stat64 statbuf64; int ret; ret = _sys_call2 (STAT_SYSCALL, (long) file_name, (long) &statbuf64); #if __i386__ stat64_to_32(&statbuf64, statbuf); #else *statbuf = statbuf64; #endif return ret; } --8<---------------cut here---------------end--------------->8--- Then we would need to create stat64_to_32 which could be inspired from __xstat64_conv from the glibc. Then, lstat and fstat64 would need to be patched the same way. This way, we would replicate the glibc behavior. Thanks, Mathieu