From mboxrd@z Thu Jan 1 00:00:00 1970 From: ynorov@caviumnetworks.com (Yury Norov) Date: Mon, 9 Nov 2015 18:50:42 +0300 Subject: [RFC PATCH v6 00/17] ILP32 for ARM64 In-Reply-To: <4C408453-CDE5-4564-8D22-E59296F2045C@gmail.com> References: <1446507046-24604-1-git-send-email-ynorov@caviumnetworks.com> <5795162.dlSUXvq6vJ@wuerfel> <22080083.1SbhEYEXOu@wuerfel> <4C408453-CDE5-4564-8D22-E59296F2045C@gmail.com> Message-ID: <20151109155042.GA3550@yury-N73SV> To: linux-arm-kernel@lists.infradead.org List-Id: linux-arm-kernel.lists.infradead.org On Mon, Nov 09, 2015 at 10:52:32PM +0800, pinskia at 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.