This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: [PATCH 2/2] Enable ILP32 mode on aarch64
- From: Steve Ellcey <sellcey at caviumnetworks dot com>
- To: Andreas Schwab <schwab at suse dot de>
- Cc: <libc-alpha at sourceware dot org>
- Date: Wed, 30 Nov 2016 16:39:11 -0800
- Subject: Re: [PATCH 2/2] Enable ILP32 mode on aarch64
- Authentication-results: sourceware.org; auth=none
- Authentication-results: spf=none (sender IP is ) smtp.mailfrom=Steve dot Ellcey at cavium dot com;
- References: <1480445512.14808.18.camel@caviumnetworks.com> <mvm37i9s5f1.fsf@hawking.suse.de>
- Spamdiagnosticmetadata: NSPM
- Spamdiagnosticoutput: 1:99
On Wed, 2016-11-30 at 10:06 +0100, Andreas Schwab wrote:
> ../sysdeps/unix/sysv/linux/generic/rename.c: In function ‘rename’:
> ../sysdeps/unix/sysv/linux/aarch64/sysdep.h:41:32: error:
> ‘__NR_renameat’ undeclared (first use in this function)
> #define SYS_ify(syscall_name) (__NR_##syscall_name)
> ^
>
> Andreas.
Were you able to build a normal aarch64 glibc before? I do not
understand what is going on but to fix this I edited my
/usr/include/aarch64-linux-gnu/asm/unistd.h file to include
#define __ARCH_WANT_RENAMEAT
Without this change, even if I build with older non-modified glibc
sources I am hitting the bug you got above. I was able to build those
sources on the same system, with the same compiler before. I don't
know why things changed. My /usr/include/asm/unistd.h header file
already had that, I am not sure why the two header files were
different, but my best guess is that somehow that define got removed
from my kernel header file, but I don't know how that would happen
since I never changed it.
Steve Ellcey
sellcey@caviumnetworks.com