public inbox for gdb@sourceware.org
 help / color / mirror / Atom feed
* Cross compile error
@ 2015-04-15  5:37 Fei Ding
  0 siblings, 0 replies; only message in thread
From: Fei Ding @ 2015-04-15  5:37 UTC (permalink / raw)
  To: gdb

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.

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2015-04-15  5:37 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-04-15  5:37 Cross compile error Fei Ding

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 read-only IMAP folder(s) and NNTP newsgroup(s).