From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/11388 Path: news.gmane.org!.POSTED!not-for-mail From: Thomas Petazzoni Newsgroups: gmane.linux.lib.musl.general Subject: Issues building gdbserver with musl Date: Sat, 3 Jun 2017 16:14:00 +0200 Organization: Free Electrons Message-ID: <20170603161400.3f8d3e20@free-electrons.com> Reply-To: musl@lists.openwall.com NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Trace: blaine.gmane.org 1496499274 5487 195.159.176.226 (3 Jun 2017 14:14:34 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sat, 3 Jun 2017 14:14:34 +0000 (UTC) To: musl@lists.openwall.com, Rich Felker Original-X-From: musl-return-11401-gllmg-musl=m.gmane.org@lists.openwall.com Sat Jun 03 16:14:30 2017 Return-path: Envelope-to: gllmg-musl@m.gmane.org Original-Received: from mother.openwall.net ([195.42.179.200]) by blaine.gmane.org with smtp (Exim 4.84_2) (envelope-from ) id 1dH9oz-0001Ab-PC for gllmg-musl@m.gmane.org; Sat, 03 Jun 2017 16:14:29 +0200 Original-Received: (qmail 15677 invoked by uid 550); 3 Jun 2017 14:14:31 -0000 Mailing-List: contact musl-help@lists.openwall.com; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-ID: Original-Received: (qmail 15472 invoked from network); 3 Jun 2017 14:14:28 -0000 X-Mailer: Claws Mail 3.13.2 (GTK+ 2.24.30; x86_64-pc-linux-gnu) Xref: news.gmane.org gmane.linux.lib.musl.general:11388 Archived-At: Hello, We are building a number of toolchains, some of them using the musl C library, and are seeing that gdbserver fails to build with musl on a number of architectures. We have used musl 1.1.16, i.e the latest version. Here are the failures that we see: - On SuperH: usr/sh4-buildroot-linux-musl/sysroot/usr/include/asm/ptrace_32.h:44:8: error: redefinition of 'struct pt_regs' - On PowerPC64 and PowerPC64le: usr/powerpc64-buildroot-linux-musl/sysroot/usr/include/asm/ptrace.h:31:8: error: redefinition of 'struct pt_regs' usr/powerpc64le-buildroot-linux-musl/sysroot/usr/include/asm/ptrace.h:31:8: error: redefinition of 'struct pt_regs' - On PowerPC: usr/powerpc-buildroot-linux-musl/sysroot/usr/include/asm/ptrace.h:31:8: error: redefinition of 'struct pt_regs' - On Microblaze, little endian and big endian usr/microblaze-buildroot-linux-musl/sysroot/usr/include/sys/procfs.h:30:2: error: unknown type name 'elf_gregset_t' error: 'Elf64_auxv_t' undeclared (first use in this function) error: 'Elf32_auxv_t' undeclared (first use in this function) ... On all those architectures, gdbserver builds fine with other C libraries. I had a brief look at the commits in musl since 1.1.16 and couldn't spot anything that looked related. Are you interested in fixing those issues? If needed, I can provide an easy way of reproducing those build failures. Thanks! Thomas -- Thomas Petazzoni, CTO, Free Electrons Embedded Linux and Kernel engineering http://free-electrons.com