Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752047AbbKIPAk (ORCPT ); Mon, 9 Nov 2015 10:00:40 -0500 Received: from mail-io0-f177.google.com ([209.85.223.177]:33799 "EHLO mail-io0-f177.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751417AbbKIPAj convert rfc822-to-8bit (ORCPT ); Mon, 9 Nov 2015 10:00:39 -0500 References: <1446507046-24604-1-git-send-email-ynorov@caviumnetworks.com> <5795162.dlSUXvq6vJ@wuerfel> <22080083.1SbhEYEXOu@wuerfel> Mime-Version: 1.0 (1.0) In-Reply-To: <22080083.1SbhEYEXOu@wuerfel> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8BIT Message-Id: <4C408453-CDE5-4564-8D22-E59296F2045C@gmail.com> Cc: Andreas Schwab , linux-arm-kernel@lists.infradead.org, Yury Norov , LKML X-Mailer: iPad Mail (13A404) From: pinskia@gmail.com Subject: Re: [RFC PATCH v6 00/17] ILP32 for ARM64 Date: Mon, 9 Nov 2015 22:52:32 +0800 To: Arnd Bergmann Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1433 Lines: 44 > On Nov 9, 2015, at 10:36 PM, Arnd Bergmann wrote: > >> On Monday 09 November 2015 15:33:51 Andreas Schwab wrote: >> Arnd Bergmann writes: >> >>>> On Monday 09 November 2015 14:23:59 Andreas Schwab wrote: >>>> Yury Norov writes: >>>> >>>>> This is what I run: >>>>> https://github.com/norov/glibc/tree/thunderx-ilp32-32time_toff_t >>>> >>>> That doesn't work for me: >>>> >>>> ../sysdeps/unix/sysv/linux/generic/sysdep.h:24:22: error: ‘__NR_llseek’ undeclar >>>> ed (first use in this function) >>>> ../sysdeps/unix/sysv/linux/aarch64/sysdep.h:41:32: error: ‘__NR_fcntl64’ undeclared (first use in this function) >>> >>> Did you re-export the kernel headers that you use as the base? >> >> I'm using the patched 4.3 kernel headers. > > Ok. > >> Why is defining __BITS_PER_LONG to 64 unconditionally? > > It should not, that is a bug. I don't know how Yury built his glibc, > but it can't work if __BITS_PER_LONG is wrong. Looks like I had changed the header file manually for building glibc and Yury and myself missed that when he updated the patches. Thanks, Andrew > > Arnd -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/