Openwall GNU/*/Linux - a small security-enhanced Linux distro for servers
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date: Sat, 3 Jun 2017 22:13:15 +0200
From: Thomas Petazzoni <thomas.petazzoni@...e-electrons.com>
To: Khem Raj <raj.khem@...il.com>
Cc: musl@...ts.openwall.com, Rich Felker <dalias@...c.org>
Subject: Re: Issues building gdbserver with musl

Hello,

On Sat, 3 Jun 2017 07:34:14 -0700, Khem Raj wrote:

> >  - 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

Thanks. This fixes the build on ppc and pp64. A slightly modified
version also fixed the build on SuperH.

However, it feels a lot like a hack. Your patch says it has been
submitted upstream. What was the feedback ?

> >  - 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)

Any idea about these? <asm/user.h> for Microblaze in musl is empty,
with just:

/* FIXME: missing in kernel? */

Thanks,

Thomas
-- 
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux and Kernel engineering
http://free-electrons.com

Powered by blists - more mailing lists

Your e-mail address:

Confused about mailing lists and their use? Read about mailing lists on Wikipedia and check out these guidelines on proper formatting of your messages.