From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 10127 invoked by alias); 23 Jan 2013 09:29:22 -0000 Received: (qmail 10046 invoked by uid 22791); 23 Jan 2013 09:29:20 -0000 X-SWARE-Spam-Status: No, hits=-2.3 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_NONE,RCVD_IN_HOSTKARMA_NO,RCVD_IN_HOSTKARMA_YE X-Spam-Check-By: sourceware.org Received: from mout.gmx.net (HELO mout.gmx.net) (212.227.17.20) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Wed, 23 Jan 2013 09:29:16 +0000 Received: from mailout-de.gmx.net ([10.1.76.24]) by mrigmx.server.lan (mrigmx001) with ESMTP (Nemesis) id 0MQKg6-1TUGfO2IoO-00TimI for ; Wed, 23 Jan 2013 10:29:14 +0100 Received: (qmail invoked by alias); 23 Jan 2013 09:29:14 -0000 Received: from sito2_100.sit.fraunhofer.de (EHLO [141.12.89.24]) [141.12.67.100] by mail.gmx.net (mp024) with SMTP; 23 Jan 2013 10:29:14 +0100 Message-ID: <50FFAD68.2050901@mailueberfall.de> Date: Wed, 23 Jan 2013 09:29:00 -0000 From: Robert User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:17.0) Gecko/20130107 Thunderbird/17.0.2 MIME-Version: 1.0 To: gdb@sourceware.org Subject: Building gdb for Android using Android-ndk Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-IsSubscribed: yes Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org X-SW-Source: 2013-01/txt/msg00072.txt.bz2 Hi, I am trying to build gdb for Android using the "standalone-toolchain" created by the Android-NDK (make-standalone-toolchain.sh). My configure call is as follows: ./configure --target=arm-linux-androideabi --host=arm-linux-androideabi I tried different gdb versions - unfortunately earlier or later I ran into an error I could not solve. For example gdb 7.5 has only some minor problems where libraries like libsim.a, libbfd.a and other required additional processing using ranlib. I fixed this by manually executing ranlib on the specified libraries and then restarted the make process. But in the end the build process stops with the following error: make[5]: Leaving directory `/tmp/gdb-7.5/gdb/gdbserver' gcc -c -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 -Werror linux-arm-low.c linux-arm-low.c: In function ‘arm_prepare_to_resume’: linux-arm-low.c:714:9: error: cast to pointer from integer of different size [-Werror=int-to-pointer-cast] linux-arm-low.c:720:9: error: cast to pointer from integer of different size [-Werror=int-to-pointer-cast] linux-arm-low.c:734:9: error: cast to pointer from integer of different size [-Werror=int-to-pointer-cast] linux-arm-low.c:740:9: error: cast to pointer from integer of different size [-Werror=int-to-pointer-cast] BTW: Build environment is Ubuntu 12.04 (x86_64). Robert