This is the mail archive of the gdb@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Cross compile error


Hi

I want to compile a gdbserver for android device on Linux Ubuntu 14.04
(AMD64), and I've installed cross compile tools with `apt-get install
gcc-arm-linux-androideabi`, my option of configure script for gdb is
`--target=arm-linux-androideabi`, option for gdbserver is
`--host=arm-linux-androideabi`.

gdb has compiled successfully, but gdbserver has failed, like this:
========================
arm-linux-androideabi-gcc -g -O2    -I. -I. -I./../common
-I./../regformats -I./../../include -I./../gnulib/import
-Ibuild-gnulib-gdbserver/import -Wall -Wdeclaration-after-statement
-Wpointer-arith -Wformat-nonliteral -Wno-char-subscripts -Wempty-body
-Werror -DGDBSERVER -c -o linux-osdata.o -MT linux-osdata.o -MMD -MP
-MF .deps/linux-osdata.Tpo ../common/linux-osdata.c
../common/linux-osdata.c:1055:1: error: conflicting types for 'group_from_gid'
In file included from ../common/linux-osdata.c:37:0:
/usr/lib/gcc/arm-linux-androideabi/4.7.3/../../../../arm-linux-androideabi/include/grp.h:72:8:
note: previous declaration of 'group_from_gid' was here
make=: *** [linux-osdata.o] Error 1
=========================

How can I solve this?  Thanks.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]