From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 9035 invoked by alias); 29 Apr 2009 07:53:50 -0000 Received: (qmail 9026 invoked by uid 22791); 29 Apr 2009 07:53:48 -0000 X-SWARE-Spam-Status: No, hits=-0.4 required=5.0 tests=AWL,BAYES_00 X-Spam-Check-By: sourceware.org Received: from outbound-sin.frontbridge.com (HELO SG2EHSOBE002.bigfish.com) (207.46.51.80) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Wed, 29 Apr 2009 07:53:41 +0000 Received: from mail96-sin-R.bigfish.com (10.3.40.3) by SG2EHSOBE002.bigfish.com (10.3.40.22) with Microsoft SMTP Server id 8.1.340.0; Wed, 29 Apr 2009 07:53:38 +0000 Received: from mail96-sin (localhost.localdomain [127.0.0.1]) by mail96-sin-R.bigfish.com (Postfix) with ESMTP id EE77C848135; Wed, 29 Apr 2009 07:53:37 +0000 (UTC) X-BigFish: VPS21(zz5164ih7cf0izz1202hzz2b68kz32i6bh61h) X-Spam-TCS-SCL: 0:0 Received: by mail96-sin (MessageSwitch) id 124099161549028_5217; Wed, 29 Apr 2009 07:53:35 +0000 (UCT) Received: from sohm.kpit.com (unknown [203.197.93.231]) by mail96-sin.bigfish.com (Postfix) with ESMTP id DEE811798059; Wed, 29 Apr 2009 07:53:31 +0000 (UTC) Content-Class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Subject: Re: Mingw GDB build fails for M16C target Date: Wed, 29 Apr 2009 08:40:00 -0000 Message-ID: <82C3BC9106BCE149B63464D79D0A22FD0A7AAAD1@sohm.kpit.com> From: Mahesh Basavaraj Shavari To: CC: 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: 2009-04/txt/msg00212.txt.bz2 > Mahesh, > Please try the patch below and let me know if it works for you. Hi Kevin, Thanks for you help. The provided patch solves the issues mentioned earlier, but gives the following new errors. ------------------------------------------------------------------------ -------------------------- i386-pc-mingw32msvc-gcc -c -DHAVE_CONFIG_H -DPROFILE=3D1 -DWITH_PROFILE=3D-1 -DDEFAULT_INLINE=3D0 -Wall -DTIMER_A -D__USE_MINGW_FSEEK -I. -I/home/mahesh/GDB/gdb-6.8/gdb-6.8.50.20090327/sim/m32c -I../common -I/home/mahesh/GDB/gdb-6.8/gdb-6.8.50.20090327/sim/m32c/../common -I../../include -I/home/mahesh/GDB/gdb-6.8/gdb-6.8.50.20090327/sim/m32c/../../include -I../../bfd -I/home/mahesh/GDB/gdb-6.8/gdb-6.8.50.20090327/sim/m32c/../../bfd -I../../opcodes -I/home/mahesh/GDB/gdb-6.8/gdb-6.8.50.20090327/sim/m32c/../../opcodes -I../../intl -g -O2 -D__USE_MINGW_ACCESS /home/mahesh/GDB/gdb-6.8/gdb-6.8.50.20090327/sim/m32c/mem.c /home/mahesh/GDB/gdb-6.8/gdb-6.8.50.20090327/sim/m32c/mem.c:29:24: sys/select.h: No such file or directory /home/mahesh/GDB/gdb-6.8/gdb-6.8.50.20090327/sim/m32c/mem.c:30:21: termios.h: No such file or directory /home/mahesh/GDB/gdb-6.8/gdb-6.8.50.20090327/sim/m32c/mem.c: In function `stdin_ready': /home/mahesh/GDB/gdb-6.8/gdb-6.8.50.20090327/sim/m32c/mem.c:383: error: `fd_set' undeclared (first use in this function) /home/mahesh/GDB/gdb-6.8/gdb-6.8.50.20090327/sim/m32c/mem.c:383: error: (Each undeclared identifier is reported only once /home/mahesh/GDB/gdb-6.8/gdb-6.8.50.20090327/sim/m32c/mem.c:383: error: for each function it appears in.) /home/mahesh/GDB/gdb-6.8/gdb-6.8.50.20090327/sim/m32c/mem.c:383: error: syntax error before "ifd" /home/mahesh/GDB/gdb-6.8/gdb-6.8.50.20090327/sim/m32c/mem.c:389: warning: implicit declaration of function `FD_ZERO' /home/mahesh/GDB/gdb-6.8/gdb-6.8.50.20090327/sim/m32c/mem.c:389: error: `ifd' undeclared (first use in this function) /home/mahesh/GDB/gdb-6.8/gdb-6.8.50.20090327/sim/m32c/mem.c:390: warning: implicit declaration of function `FD_SET' /home/mahesh/GDB/gdb-6.8/gdb-6.8.50.20090327/sim/m32c/mem.c:391: warning: implicit declaration of function `select' /home/mahesh/GDB/gdb-6.8/gdb-6.8.50.20090327/sim/m32c/mem.c: In function `m32c_sim_restore_console': /home/mahesh/GDB/gdb-6.8/gdb-6.8.50.20090327/sim/m32c/mem.c:399: warning: implicit declaration of function `tcsetattr' /home/mahesh/GDB/gdb-6.8/gdb-6.8.50.20090327/sim/m32c/mem.c:399: error: `TCSANOW' undeclared (first use in this function) /home/mahesh/GDB/gdb-6.8/gdb-6.8.50.20090327/sim/m32c/mem.c: In function `mem_get_byte': /home/mahesh/GDB/gdb-6.8/gdb-6.8.50.20090327/sim/m32c/mem.c:416: error: storage size of 'attr' isn't known /home/mahesh/GDB/gdb-6.8/gdb-6.8.50.20090327/sim/m32c/mem.c:417: warning: implicit declaration of function `tcgetattr' /home/mahesh/GDB/gdb-6.8/gdb-6.8.50.20090327/sim/m32c/mem.c:420: error: `ICANON' undeclared (first use in this function) /home/mahesh/GDB/gdb-6.8/gdb-6.8.50.20090327/sim/m32c/mem.c:420: error: `ECHO' undeclared (first use in this function) /home/mahesh/GDB/gdb-6.8/gdb-6.8.50.20090327/sim/m32c/mem.c:420: error: `ECHOE' undeclared (first use in this function) /home/mahesh/GDB/gdb-6.8/gdb-6.8.50.20090327/sim/m32c/mem.c:421: error: `TCSANOW' undeclared (first use in this function) /home/mahesh/GDB/gdb-6.8/gdb-6.8.50.20090327/sim/m32c/mem.c:416: warning: unused variable `attr' /home/mahesh/GDB/gdb-6.8/gdb-6.8.50.20090327/sim/m32c/mem.c: At top level: /home/mahesh/GDB/gdb-6.8/gdb-6.8.50.20090327/sim/m32c/mem.c:378: error: storage size of `oattr' isn't known make[3]: *** [mem.o] Error 1 make[3]: Leaving directory `/home/mahesh/GDB/gdb-6.8/build/m32c-elfbld6.8.50.20090327/sim/m32c' make[2]: *** [all] Error 1 make[2]: Leaving directory `/home/mahesh/GDB/gdb-6.8/build/m32c-elfbld6.8.50.20090327/sim' make[1]: *** [all-sim] Error 2 make[1]: Leaving directory `/home/mahesh/GDB/gdb-6.8/build/m32c-elfbld6.8.50.20090327' make: *** [all] Error 2 ------------------------------------------------------------------------ ------------------- Thanking you in anticipation. =20 Regards, Mahesh Shavari.