mailarchive of the ptxdist mailing list
 help / color / mirror / Atom feed
* [ptxdist] Failed to compile gdbserver
@ 2018-07-30 11:29 Denis OSTERLAND
  2018-07-30 11:44 ` Michael Olbrich
  0 siblings, 1 reply; 5+ messages in thread
From: Denis OSTERLAND @ 2018-07-30 11:29 UTC (permalink / raw)
  To: ptxdist

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

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2018-10-09 10:45 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-07-30 11:29 [ptxdist] Failed to compile gdbserver Denis OSTERLAND
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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox