From: Denis OSTERLAND <denis.osterland@diehl.com>
To: "ptxdist@pengutronix.de" <ptxdist@pengutronix.de>
Subject: [ptxdist] Failed to compile gdbserver
Date: Mon, 30 Jul 2018 11:29:04 +0000 [thread overview]
Message-ID: <1532950144.5611.9.camel@diehl.com> (raw)
Hi,
I try to compile gdbserver with OSELAS.Toolchain-2018.02.0 on armv5te + armv7a, but it fails.
I tried the default version 7.6.1:
../gdbserver-7.6.1/gdb/gdbserver/linux-arm-low.c:328:1: error: conflicting types for 'ps_get_thread_area'
ps_get_thread_area (const struct ps_prochandle *ph,
^~~~~~~~~~~~~~~~~~
In file included from ../gdbserver-7.6.1/gdb/gdbserver/gdb_proc_service.h:25:0,
from ../gdbserver-7.6.1/gdb/gdbserver/linux-low.h:25,
from ../gdbserver-7.6.1/gdb/gdbserver/linux-arm-low.c:20:
/opt/OSELAS.Toolchain-2018.02.0/arm-v7a-linux-gnueabihf/gcc-7.3.1-glibc-2.27-binutils-2.30-kernel-4.15-sanitized/sysroot-arm-v7a-linux-gnueabihf/usr/include/proc_service.h:72:17: note: previous
declaration of 'ps_get_thread_area' was here
extern ps_err_e ps_get_thread_area (struct ps_prochandle *,
^~~~~~~~~~~~~~~~~~
../gdbserver-7.6.1/gdb/gdbserver/proc-service.c:136:1: error: conflicting types for 'ps_lgetfpregs'
ps_lgetfpregs (gdb_ps_prochandle_t ph, lwpid_t lwpid, void *fpregset)
^~~~~~~~~~~~~
In file included from ../gdbserver-7.6.1/gdb/gdbserver/gdb_proc_service.h:25:0,
from ../gdbserver-7.6.1/gdb/gdbserver/linux-low.h:25,
from ../gdbserver-7.6.1/gdb/gdbserver/proc-service.c:27:
/opt/OSELAS.Toolchain-2018.02.0/arm-v7a-linux-gnueabihf/gcc-7.3.1-glibc-2.27-binutils-2.30-kernel-4.15-sanitized/sysroot-arm-v7a-linux-gnueabihf/usr/include/proc_service.h:61:17: note: previous
declaration of 'ps_lgetfpregs' was here
extern ps_err_e ps_lgetfpregs (struct ps_prochandle *,
^~~~~~~~~~~~~
../gdbserver-7.6.1/gdb/gdbserver/proc-service.c:146:1: error: conflicting types for 'ps_lsetfpregs'
ps_lsetfpregs (gdb_ps_prochandle_t ph, lwpid_t lwpid, void *fpregset)
^~~~~~~~~~~~~
In file included from ../gdbserver-7.6.1/gdb/gdbserver/gdb_proc_service.h:25:0,
from ../gdbserver-7.6.1/gdb/gdbserver/linux-low.h:25,
from ../gdbserver-7.6.1/gdb/gdbserver/proc-service.c:27:
/opt/OSELAS.Toolchain-2018.02.0/arm-v7a-linux-gnueabihf/gcc-7.3.1-glibc-2.27-binutils-2.30-kernel-4.15-sanitized/sysroot-arm-v7a-linux-gnueabihf/usr/include/proc_service.h:63:17: note: previous
declaration of 'ps_lsetfpregs' was here
extern ps_err_e ps_lsetfpregs (struct ps_prochandle *,
^~~~~~~~~~~~~
Makefile:232: recipe for target 'proc-service.o' failed
make[1]: *** [proc-service.o] Error 1
##################
I tried to use the GDB version from Toolchain too, but same result:
../gdbserver-7.8.1/gdb/gdbserver/linux-arm-low.c:337:1: error: conflicting types for 'ps_get_thread_area'
ps_get_thread_area (const struct ps_prochandle *ph,
^~~~~~~~~~~~~~~~~~
In file included from ../gdbserver-7.8.1/gdb/gdbserver/gdb_proc_service.h:25:0,
from ../gdbserver-7.8.1/gdb/gdbserver/linux-low.h:23,
from ../gdbserver-7.8.1/gdb/gdbserver/linux-arm-low.c:20:
/opt/OSELAS.Toolchain-2018.02.0/arm-v7a-linux-gnueabihf/gcc-7.3.1-glibc-2.27-binutils-2.30-kernel-4.15-sanitized/sysroot-arm-v7a-linux-gnueabihf/usr/include/proc_service.h:72:17: note: previous
declaration of 'ps_get_thread_area' was here
extern ps_err_e ps_get_thread_area (struct ps_prochandle *,
^~~~~~~~~~~~~~~~~~
Makefile:239: recipe for target 'linux-arm-low.o' failed
../gdbserver-7.8.1/gdb/gdbserver/proc-service.c:138:1: error: conflicting types for 'ps_lgetfpregs'
ps_lgetfpregs (gdb_ps_prochandle_t ph, lwpid_t lwpid, void *fpregset)
^~~~~~~~~~~~~
In file included from ../gdbserver-7.8.1/gdb/gdbserver/gdb_proc_service.h:25:0,
from ../gdbserver-7.8.1/gdb/gdbserver/linux-low.h:23,
from ../gdbserver-7.8.1/gdb/gdbserver/proc-service.c:27:
/opt/OSELAS.Toolchain-2018.02.0/arm-v7a-linux-gnueabihf/gcc-7.3.1-glibc-2.27-binutils-2.30-kernel-4.15-sanitized/sysroot-arm-v7a-linux-gnueabihf/usr/include/proc_service.h:61:17: note: previous
declaration of 'ps_lgetfpregs' was here
extern ps_err_e ps_lgetfpregs (struct ps_prochandle *,
^~~~~~~~~~~~~
../gdbserver-7.8.1/gdb/gdbserver/proc-service.c:148:1: error: conflicting types for 'ps_lsetfpregs'
ps_lsetfpregs (gdb_ps_prochandle_t ph, lwpid_t lwpid, void *fpregset)
^~~~~~~~~~~~~
In file included from ../gdbserver-7.8.1/gdb/gdbserver/gdb_proc_service.h:25:0,
from ../gdbserver-7.8.1/gdb/gdbserver/linux-low.h:23,
from ../gdbserver-7.8.1/gdb/gdbserver/proc-service.c:27:
/opt/OSELAS.Toolchain-2018.02.0/arm-v7a-linux-gnueabihf/gcc-7.3.1-glibc-2.27-binutils-2.30-kernel-4.15-sanitized/sysroot-arm-v7a-linux-gnueabihf/usr/include/proc_service.h:63:17: note: previous
declaration of 'ps_lsetfpregs' was here
extern ps_err_e ps_lsetfpregs (struct ps_prochandle *,
^~~~~~~~~~~~~
Makefile:239: recipe for target 'proc-service.o' failed
make[1]: *** [proc-service.o] Error 1
###################
Which versions do you use?
Regards Denis
Diehl Connectivity Solutions GmbH
Geschäftsführung: Horst Leonberger
Sitz der Gesellschaft: Nürnberg - Registergericht: Amtsgericht
Nürnberg: HRB 32315
___________________________________________________________________________________________________
Der Inhalt der vorstehenden E-Mail ist nicht rechtlich bindend. Diese E-Mail enthaelt vertrauliche und/oder rechtlich geschuetzte Informationen.
Informieren Sie uns bitte, wenn Sie diese E-Mail faelschlicherweise erhalten haben. Bitte loeschen Sie in diesem Fall die Nachricht.
Jede unerlaubte Form der Reproduktion, Bekanntgabe, Aenderung, Verteilung und/oder Publikation dieser E-Mail ist strengstens untersagt.
The contents of the above mentioned e-mail is not legally binding. This e-mail contains confidential and/or legally protected information. Please inform us if you have received this e-mail by
mistake and delete it in such a case. Each unauthorized reproduction, disclosure, alteration, distribution and/or publication of this e-mail is strictly prohibited.
_______________________________________________
ptxdist mailing list
ptxdist@pengutronix.de
next reply other threads:[~2018-07-30 11:29 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-07-30 11:29 Denis OSTERLAND [this message]
2018-07-30 11:44 ` Michael Olbrich
2018-07-30 11:56 ` Denis OSTERLAND
2018-09-29 13:19 ` Andreas Pretzsch
2018-10-09 10:45 ` Michael Olbrich
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=1532950144.5611.9.camel@diehl.com \
--to=denis.osterland@diehl.com \
--cc=ptxdist@pengutronix.de \
/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.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox