From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ricardo Wurmus Subject: Re: glibc 2.26 refuses to run on CentOS 6.8 Date: Mon, 19 Feb 2018 22:22:28 +0100 Message-ID: <87606ssmi3.fsf@elephly.net> References: <87eflgstqt.fsf@mdc-berlin.de> <87d110stkn.fsf@mdc-berlin.de> <87a7w4ssmx.fsf@mdc-berlin.de> <20180219202838.5c5358ce@scratchpost.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:33788) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ent8z-0008VU-9G for guix-devel@gnu.org; Mon, 19 Feb 2018 16:38:42 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ent8w-0004Mz-Lh for guix-devel@gnu.org; Mon, 19 Feb 2018 16:38:41 -0500 Received: from sender-of-o51.zoho.com ([135.84.80.216]:21147) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1ent8w-0004Md-DX for guix-devel@gnu.org; Mon, 19 Feb 2018 16:38:38 -0500 In-reply-to: <20180219202838.5c5358ce@scratchpost.org> List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: "Guix-devel" To: Danny Milosavljevic Cc: guix-devel@gnu.org, Ricardo Wurmus , 30537@debbugs.gnu.org Hi Danny, > Can you try just passing --enable-kernel=3D2.6.32 to "configure" of glibc= instead? > > It should set the minimal version without any weird patching. Does this work even though the official minimum kernel version for glibc 2.26 is 3.2.0? > But newer glibc has moved a lot of kernel definitions into glibc, might c= ause a > problem if glibc just assumes it's all there but in fact it's not there a= t > runtime (like the recent Haskell problem etc). The Red Hat kernels are a bit special in that they are not just old kernels, but heavily patched to work with newer software. The Nix people wrote that they have confirmed that 2.6.32 works up to glibc-2.26-131. There are additional notes on how that was done: # HOWTO: check glibc sources for changes in kernel requirements git log -p glibc-2.25.. sysdeps/unix/sysv/linux/x86_64/kernel-features.= h sysdeps/unix/sysv/linux/kernel-features.h # get kernel sources (update the URL) mkdir tmp && cd tmp curl http://vault.centos.org/6.9/os/Source/SPackages/kernel-2.6.32-696.= el6.src.rpm | rpm2cpio - | cpio -idmv tar xf linux-*.bz2 # check syscall presence, for example less linux-*?/arch/x86/kernel/syscall_table_32.S If there was a way to test for kernel features instead of looking at the kernel version I=E2=80=99d do that instead of looking for a way to relax th= e lower kernel version bound. -- Ricardo GPG: BCA6 89B6 3655 3801 C3C6 2150 197A 5888 235F ACAC https://elephly.net