From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 60503 invoked by alias); 12 Oct 2015 13:00:24 -0000 Mailing-List: contact libc-alpha-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: libc-alpha-owner@sourceware.org Received: (qmail 60488 invoked by uid 89); 12 Oct 2015 13:00:23 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.3 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.2 X-HELO: relay1.mentorg.com Date: Mon, 12 Oct 2015 13:00:00 -0000 From: Joseph Myers To: Wilco Dijkstra CC: 'GNU C Library' Subject: RE: [PATCH 2/2] Remove ancient GCC string inlines In-Reply-To: <000a01d104ed$0b7a9c00$226fd400$@com> Message-ID: References: <000401d102aa$8db859e0$a9290da0$@com> <000801d102b1$3e4f33e0$baed9ba0$@com> <000901d104e0$069f65b0$13de3110$@com> <000a01d104ed$0b7a9c00$226fd400$@com> User-Agent: Alpine 2.10 (DEB 1266 2009-07-14) MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" X-SW-Source: 2015-10/txt/msg00319.txt.bz2 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 # elif defined(__ILP32__) # include # else # include # 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 . 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