From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/11389 Path: news.gmane.org!.POSTED!not-for-mail From: Khem Raj Newsgroups: gmane.linux.lib.musl.general Subject: Re: Issues building gdbserver with musl Date: Sat, 3 Jun 2017 07:34:14 -0700 Message-ID: References: <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="UTF-8" X-Trace: blaine.gmane.org 1496500499 16497 195.159.176.226 (3 Jun 2017 14:34:59 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sat, 3 Jun 2017 14:34:59 +0000 (UTC) Cc: Rich Felker To: musl@lists.openwall.com Original-X-From: musl-return-11402-gllmg-musl=m.gmane.org@lists.openwall.com Sat Jun 03 16:34:55 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 1dHA8l-00042P-0B for gllmg-musl@m.gmane.org; Sat, 03 Jun 2017 16:34:55 +0200 Original-Received: (qmail 21609 invoked by uid 550); 3 Jun 2017 14:34:57 -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 21561 invoked from network); 3 Jun 2017 14:34:57 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=Rf4Re77MFfFzo7zcquZA3O+4BnstkzVWkUDSTFKh8YI=; b=jVOX1DMJn0N8foVVaAGl7cTdY7+C1hfUN3Lil1r3HQKGH0zknfn9k0mjcSUm9sRYTu HqDqeb9JnbhoXsjOuQ+g87xnu5e8y4kazlVPw7Ya2XDuv9bFqmTmEhi1LeplueEpWZVQ FtQzTdwMgdZfOCrDoZ7Q6UTuwonO29CeooaPPl9sR18PEeO3UeGdWy9XxMghjSNVEgaC oj+ZooX75lBySMixXj4nZqYlFXqK2O2oV+l6Tt8R9zNmFehGblaXpmgotvPhUTUI3XCQ BdpQsEXC075EeoUQuNvC/ngSiKJCVbs7UDZiOYb94cWVo1jWy6NkZ7BFV7vpGLKwe0vw SwXA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=Rf4Re77MFfFzo7zcquZA3O+4BnstkzVWkUDSTFKh8YI=; b=HeSX2JmRcdNVFvApmnfyxDmjxhK1khoFiiSK5/jWoHpdWsA6XLzIWNWpox5/hYx4aq fhA290oLtpgKT9UVJxrVHRiA/zyJ4cGK0M0TgqG+A7QrLbN/QbMngGmY99ywyQxsrO1N rIQ5+b+Vd60S1wdBzsUcYC0QO6HcoMTgmEUOtTbKAsg7FHlloNhPGzPuIffutngRD3mo aMx8F5tM9UKOKGRi2haAX8xpzMwwRc2frRXyW9E8Cy+AfnXEiNUCklka4UaMIUgYD5tn b6fN4QvQZz30bZYG3i2DQ9oaRCya2tVsYddwq/9o1NLKa34VfWIKhSotFPG85IIzIktj tcKw== X-Gm-Message-State: AODbwcCBkC5LZl31HpSqw2DWPIRUQ+dDr1h6V7+UIriZVjPloTea2FAU GA1peQczXWYc0BrJ9Bgp5z9T4LZkKqmk X-Received: by 10.80.182.35 with SMTP id b32mr10295767ede.123.1496500485432; Sat, 03 Jun 2017 07:34:45 -0700 (PDT) In-Reply-To: <20170603161400.3f8d3e20@free-electrons.com> Xref: news.gmane.org gmane.linux.lib.musl.general:11389 Archived-At: Hi Thomas On Sat, Jun 3, 2017 at 7:14 AM, Thomas Petazzoni wrote: > 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' for ppe issues you can use something like http://git.yoctoproject.org/clean/cgit.cgi/poky/tree/meta/recipes-devtools/gdb/gdb/0004-ppc-ptrace-Define-pt_regs-uapi_pt_regs-on-GLIBC-syst.patch > > - 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