From: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
To: Khem Raj <raj.khem@gmail.com>
Cc: musl@lists.openwall.com, Rich Felker <dalias@libc.org>
Subject: Re: Issues building gdbserver with musl
Date: Sat, 3 Jun 2017 22:13:15 +0200 [thread overview]
Message-ID: <20170603221315.4996cbac@free-electrons.com> (raw)
In-Reply-To: <CAMKF1soFtezHykBNmwJ=yeV6biquCdPi70jE9pzgsgX+pSoyKg@mail.gmail.com>
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
next prev parent reply other threads:[~2017-06-03 20:13 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-06-03 14:14 Thomas Petazzoni
2017-06-03 14:34 ` Khem Raj
2017-06-03 17:19 ` mzpqnxow
2017-06-03 20:14 ` Thomas Petazzoni
2017-06-03 20:13 ` Thomas Petazzoni [this message]
2017-06-03 22:50 ` mzpqnxow
2017-06-05 9:31 ` Thomas Petazzoni
2017-06-11 2:46 ` Rich Felker
2017-06-11 22:37 ` A. Wilcox
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20170603221315.4996cbac@free-electrons.com \
--to=thomas.petazzoni@free-electrons.com \
--cc=dalias@libc.org \
--cc=musl@lists.openwall.com \
--cc=raj.khem@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/musl/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).