[PATCH 2/2] Remove ancient GCC string inlines
Joseph Myers
joseph@codesourcery.com
Mon Oct 12 13:00:00 GMT 2015
On Mon, 12 Oct 2015, Wilco Dijkstra wrote:
> ../sysdeps/unix/sysv/linux/i386/sysdep.h:409:12: error: '__NR_set_thread_area' undeclared (first use
> in this function)
If you have a compiler installation with working -m32 support, it should
be searching a copy of kernel headers (installed with the Linux kernel's
headers_install target) containing asm/unistd.h that looks like
#ifndef _ASM_X86_UNISTD_H
#define _ASM_X86_UNISTD_H
/* x32 syscall flag bit */
#define __X32_SYSCALL_BIT 0x40000000
# ifdef __i386__
# include <asm/unistd_32.h>
# elif defined(__ILP32__)
# include <asm/unistd_x32.h>
# else
# include <asm/unistd_64.h>
# endif
#endif /* _ASM_X86_UNISTD_H */
and where unistd_32.h contains the definition of __NR_set_thread_area, and
where an include of sys/syscall.h from within glibc ends up including that
<asm/unistd.h>.
So, you need to find out why your compiler installation isn't finding an
appropriate asm/unistd.h, and fix that problem.
--
Joseph S. Myers
joseph@codesourcery.com
More information about the Libc-alpha
mailing list