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