Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751995AbbKIPvB (ORCPT ); Mon, 9 Nov 2015 10:51:01 -0500 Received: from mail-bl2on0061.outbound.protection.outlook.com ([65.55.169.61]:3041 "EHLO na01-bl2-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751819AbbKIPu6 (ORCPT ); Mon, 9 Nov 2015 10:50:58 -0500 Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=Yuri.Norov@caviumnetworks.com; Date: Mon, 9 Nov 2015 18:50:42 +0300 From: Yury Norov To: CC: Arnd Bergmann , Andreas Schwab , , LKML Subject: Re: [RFC PATCH v6 00/17] ILP32 for ARM64 Message-ID: <20151109155042.GA3550@yury-N73SV> References: <1446507046-24604-1-git-send-email-ynorov@caviumnetworks.com> <5795162.dlSUXvq6vJ@wuerfel> <22080083.1SbhEYEXOu@wuerfel> <4C408453-CDE5-4564-8D22-E59296F2045C@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <4C408453-CDE5-4564-8D22-E59296F2045C@gmail.com> User-Agent: Mutt/1.5.23 (2014-03-12) X-Originating-IP: [95.143.213.120] X-ClientProxiedBy: DB5PR06CA0034.eurprd06.prod.outlook.com (25.162.165.44) To DM2PR07MB624.namprd07.prod.outlook.com (10.141.177.154) X-Microsoft-Exchange-Diagnostics: 1;DM2PR07MB624;2:02r7mZ+mKB1LWxUi7+VudsvheOtWb3vVSKtAOyaDGhij4LMj42Cu8SvnCVWJuaGDdVV3XpBSY22/MJwSmtmUfn6NxDiKBY0lx2p+D5mSUi6YdHmqoiyf8zdN49zn5O7pOoTQsnmFdczcR01+xgtN2/z6JdvVrbGtVciuc/c2xzE=;3:YP1+tuWUU4PGCRrGUqSvN6W7N6uXni83uuWVCC52raKgl/RCi3coQwy3lZ58EtkKe2ak7gUniZAhWnu+jyqNE+BkmqI0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change-Antispam-Report-Test: UriScan:(236414709691187); X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(601004)(2401047)(8121501046)(5005006)(520078)(3002001)(10201501046);SRVR:DM2PR07MB624;BCL:0;PCL:0;RULEID:;SRVR:DM2PR07MB624; X-Microsoft-Exchange-Diagnostics: 1;DM2PR07MB624;4:J+bFSxESUO9ro+rKiycYYZhhlmoP7/FZVQG7alMajgbI8STLt+ZtlZjq7RNSY2ib5G18Rnje6sIf8h9Y7Sec7FvuzRrpBuHQMYlsxxmj63bnwuHbK9spTiED4fnjWpBVHx2KOtXwc3QRDkAlkzB78gNVxxDJl0O4jaBlXt2fnxmNncI3Mbg3ARIg6VphtZM8xtfNRDixDOw+EW4Ra/0PgYK8wwtgqX3w9fslYzCjtn002kQAtldRL3bjKG695gtaG6/BscpdZmEbtPlu6HzMyZma0YqSmLKED2Imz2+2xOHCVKKP8lt7+FOR6aVGiBmrEfVeXdoWPAgtaiTWXFvd+ux7DQt6koAFqHtPpGFLOgRqFPaSivQBgtxlu8BPRdq8 X-Forefront-PRVS: 0755F54DD9 X-Forefront-Antispam-Report: SFV:NSPM;SFS:(10009020)(6069001)(6009001)(164054003)(24454002)(189002)(377454003)(199003)(42186005)(83506001)(97736004)(77096005)(23676002)(50466002)(106356001)(110136002)(54356999)(50986999)(92566002)(81156007)(76176999)(189998001)(33716001)(105586002)(122386002)(5001960100002)(101416001)(2351001)(40100003)(5004730100002)(5007970100001)(2950100001)(4001350100001)(87976001)(5008740100001)(76506005)(19580405001)(33656002)(15975445007)(66066001)(47776003)(93886004)(19580395003)(217873001);DIR:OUT;SFP:1101;SCL:1;SRVR:DM2PR07MB624;H:localhost;FPR:;SPF:None;PTR:InfoNoRecords;MX:1;A:1;LANG:en; X-Microsoft-Exchange-Diagnostics: =?utf-8?B?MTtETTJQUjA3TUI2MjQ7MjM6N0RVeEEzWjN3YjJuZ2tLbkREVlVHVklOc2dq?= =?utf-8?B?clNiUTBKTzZXMW9l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IvJs9MGpEC3jIdPiMY0UbSZ44HS0zAn8BKNOe/RQCf2VUw/AtGawTsA== SpamDiagnosticOutput: 1:23 SpamDiagnosticMetadata: NSPM X-MS-Exchange-CrossTenant-OriginalArrivalTime: 09 Nov 2015 15:50:54.6762 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM2PR07MB624 X-Microsoft-Exchange-Diagnostics: 1;DM2PR07MB623;2:pOZWUslqBGaDFDTkMP+EWqSdwrJCNnZFpRRdUPj1KDt7+vnpsIEZW+hwxq1qVNRtliwagVNWYUWUKraTX6ha2ePnZUzqLSX0oxRjYh/8W9GMKpR8lXoEmS/IAy/nTAzjMKW6bdG2ZjfLxqHuxgQO6w6QaMnS+KEK+HRe+qtpeX4=;23:Oyz5riHnCDt4OGBRZxLoHzMqvgDS8I5LHJC8O0J1Bb6bOu5RPQzroRUdbPrwg2c0k+z6RXqSCQvTV+xfuitM5znGnpgtHh3afb22MNdS5zt0dI0VlsH417sNpZTIoCW52Mtc3rj3MhmLiBgjBNi9u5QfmUBNjwdL+UG9vW/Edf+G38V0j3RiA1bDFlqvO5Z8 X-OriginatorOrg: caviumnetworks.com Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1679 Lines: 49 On Mon, Nov 09, 2015 at 10:52:32PM +0800, pinskia@gmail.com wrote: > > > > 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 No, it's my fault. I forgot to add a patch that sets __BITS_PER_LONG to 32. I'll send it here now. -- 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/