GNU bug report logs - #42448
readdir misbehaves when running 32-bit user space on a 64-bit-kernel - kernel/userspace interface mismatch in getdents64

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: guix; Severity: critical; Reported by: Brett Gilio <brettg@HIDDEN>; merged with #43513; dated Mon, 20 Jul 2020 19:45:01 UTC; Maintainer for guix is bug-guix@HIDDEN.
Changed bug title to 'readdir misbehaves when running 32-bit user space on a 64-bit-kernel - kernel/userspace interface mismatch in getdents64' from 'readdir misbehaves when running 32-bit user space on a 64-bit-kernel - kernel/userspace interface mismatch in getdents' Request was from Danny Milosavljevic <dannym@HIDDEN> to control <at> debbugs.gnu.org. Full text available.
Changed bug title to 'readdir misbehaves when running 32-bit user space on a 64-bit-kernel - kernel/userspace interface mismatch in getdents' from 'Kernel/userspace interface mismatch between 32 bit user space and 64 bit kernel - readdir' Request was from Danny Milosavljevic <dannym@HIDDEN> to control <at> debbugs.gnu.org. Full text available.
Severity set to 'critical' from 'important' Request was from Danny Milosavljevic <dannym@HIDDEN> to control <at> debbugs.gnu.org. Full text available.
Changed bug title to 'Kernel/userspace interface mismatch between 32 bit user space and 64 bit kernel - readdir' from ''getdents' misbehaves when emulating 32-bit code on a 64-bit-kernel host' Request was from Danny Milosavljevic <dannym@HIDDEN> to control <at> debbugs.gnu.org. Full text available.
Severity set to 'important' from 'normal' Request was from Ludovic Courtès <ludo@HIDDEN> to control <at> debbugs.gnu.org. Full text available.
Changed bug title to ''getdents' misbehaves when emulating 32-bit code on a 64-bit-kernel host' from 'Issue with Qemu Binfmt and CMake not detecting compiler.' Request was from Ludovic Courtès <ludo@HIDDEN> to control <at> debbugs.gnu.org. Full text available.
Merged 42448 43513. Request was from Ludovic Courtès <ludo@HIDDEN> to control <at> debbugs.gnu.org. Full text available.

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


Received: (at 42448) by debbugs.gnu.org; 20 Jul 2020 23:04:16 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Jul 20 19:04:16 2020
Received: from localhost ([127.0.0.1]:36670 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1jxepU-000118-06
	for submit <at> debbugs.gnu.org; Mon, 20 Jul 2020 19:04:16 -0400
Received: from eggs.gnu.org ([209.51.188.92]:57312)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <brettg@HIDDEN>) id 1jxepR-00010v-Ht
 for 42448 <at> debbugs.gnu.org; Mon, 20 Jul 2020 19:04:14 -0400
Received: from fencepost.gnu.org ([2001:470:142:3::e]:43021)
 by eggs.gnu.org with esmtp (Exim 4.90_1)
 (envelope-from <brettg@HIDDEN>) id 1jxepM-0007wd-BU
 for 42448 <at> debbugs.gnu.org; Mon, 20 Jul 2020 19:04:08 -0400
Received: from [2605:6000:1a0d:48fb::e9] (port=55578 helo=lenovo-t430)
 by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256)
 (Exim 4.82) (envelope-from <brettg@HIDDEN>) id 1jxepL-0003wG-3H
 for 42448 <at> debbugs.gnu.org; Mon, 20 Jul 2020 19:04:08 -0400
From: Brett Gilio <brettg@HIDDEN>
To: 42448 <at> debbugs.gnu.org
Subject: A possible solution
Date: Mon, 20 Jul 2020 18:04:07 -0500
Message-ID: <87v9ihkcuw.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 42448
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: -3.3 (---)

As Marius Bakke pointed out on IRC, this issue is related to a change in
CMake where after 3.15 they removed the explicit `#define
_FILE_OFFSET_BITS 64`. The solution solution to this is to add

--8<---------------cut here---------------start------------->8---
CFLAGS="-D_FILE_OFFSET_BITS=64"
CXXFLAGS="-D_FILE_OFFSET_BITS=64"
--8<---------------cut here---------------end--------------->8---

to CMakes compilation procedure. This is a core-updates change. I will
leave this issue open for now in case this needs more
investigation. Since I am just coming off of a haitus I think there are
changes to the core-updates and staging procedures so I dont think I am
comfortable making this change myself.

Brett Gilio




Information forwarded to bug-guix@HIDDEN:
bug#42448; Package guix. Full text available.

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


Received: (at submit) by debbugs.gnu.org; 20 Jul 2020 19:44:09 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Jul 20 15:44:08 2020
Received: from localhost ([127.0.0.1]:36292 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1jxbho-00007H-Aq
	for submit <at> debbugs.gnu.org; Mon, 20 Jul 2020 15:44:08 -0400
Received: from lists.gnu.org ([209.51.188.17]:40264)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <brettg@HIDDEN>) id 1jxbhm-000079-1c
 for submit <at> debbugs.gnu.org; Mon, 20 Jul 2020 15:44:07 -0400
Received: from eggs.gnu.org ([2001:470:142:3::10]:52224)
 by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <brettg@HIDDEN>) id 1jxbhl-0000sL-QX
 for bug-guix@HIDDEN; Mon, 20 Jul 2020 15:44:05 -0400
Received: from fencepost.gnu.org ([2001:470:142:3::e]:40088)
 by eggs.gnu.org with esmtp (Exim 4.90_1)
 (envelope-from <brettg@HIDDEN>) id 1jxbhl-0006O9-IJ
 for bug-guix@HIDDEN; Mon, 20 Jul 2020 15:44:05 -0400
Received: from [2605:6000:1a0d:48fb::e9] (port=55422 helo=lenovo-t430)
 by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256)
 (Exim 4.82) (envelope-from <brettg@HIDDEN>) id 1jxbhl-0001rh-1F
 for bug-guix@HIDDEN; Mon, 20 Jul 2020 15:44:05 -0400
From: Brett Gilio <brettg@HIDDEN>
To: bug-guix@HIDDEN
Subject: Issue with Qemu Binfmt and CMake not detecting compiler.
Date: Mon, 20 Jul 2020 14:44:15 -0500
Message-ID: <87y2nej7jk.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: submit
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: -3.3 (---)

Hey all,

Opening a bug report as per a request following this issue identified
at: https://lists.gnu.org/archive/html/guix-devel/2020-07/msg00124.html.

To recap, when running

--8<---------------cut here---------------start------------->8---
./pre-inst-env guix build --system=armhf-linux swi-prolog
--8<---------------cut here---------------end--------------->8---

the configure phase is failing to identify the C/CXX compiler
toolchains to compile a test CMake file. There is a variety of
CMakeError.log and other object outputs that populate the build
directory when ran with --keep-failed.

This seems to be reported before, but subsequently patched at
https://issues.guix.gnu.org/38454#3. This only occurs when using the
Qemu method of compiling on a foreign architecture, and is not present
when natively compiling on true hardware.

Thanks,
Brett Gilio




Acknowledgement sent to Brett Gilio <brettg@HIDDEN>:
New bug report received and forwarded. Copy sent to bug-guix@HIDDEN. Full text available.
Report forwarded to bug-guix@HIDDEN:
bug#42448; Package guix. 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: Tue, 29 Sep 2020 14:45:02 UTC

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