From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 15707 invoked by alias); 13 Sep 2006 20:10:20 -0000 Received: (qmail 15699 invoked by uid 22791); 13 Sep 2006 20:10:20 -0000 X-Spam-Check-By: sourceware.org Received: from omta01ps.mx.bigpond.com (HELO omta01ps.mx.bigpond.com) (144.140.82.153) by sourceware.org (qpsmtpd/0.31) with ESMTP; Wed, 13 Sep 2006 20:10:17 +0000 Received: from kiwi.ods.com.au ([60.227.162.172]) by omta01ps.mx.bigpond.com with ESMTP id <20060913201006.PYVV8871.omta01ps.mx.bigpond.com@kiwi.ods.com.au>; Wed, 13 Sep 2006 20:10:06 +0000 Received: from [172.16.100.194] (lapdog.ods.com.au [172.16.100.194]) by kiwi.ods.com.au (8.12.8/8.12.8) with ESMTP id k8DKA3OG012721; Thu, 14 Sep 2006 06:10:04 +1000 Message-ID: <450865A0.7070604@rtems.org> Date: Wed, 13 Sep 2006 20:10:00 -0000 From: Chris Johns User-Agent: Thunderbird 1.5.0.5 (Windows/20060719) MIME-Version: 1.0 To: Eli Zaretskii CC: gdb-patches@sources.redhat.com Subject: Re: H8300 simulator on MinGW fails to compile. References: <4507FA7A.70504@rtems.org> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2006-09/txt/msg00068.txt.bz2 Eli Zaretskii wrote: >> Date: Wed, 13 Sep 2006 22:32:58 +1000 >> From: Chris Johns >> >> Building the target h8300-rtems4.7 on a MinGW host configured with: >> >> $ head config.status >> #! /bin/sh >> # Generated automatically by configure. >> # Run this file to recreate the current configuration. >> # This directory was configured as follows, >> # on host lapdog: >> # >> # ../gdb-6.5/configure --target=h8300-rtems4.7 --verbose --disable-nls >> --without-included-gettext --disable-win32-registry --disable-werror --enable-sim >> # >> # Compiler output produced by configure, useful for debugging >> # configure, is in ./config.log if it exists. >> >> fails to compile as signal numbers are not present. > > Please show the error messages. From the info you posted, I cannot > figure out the problem and how your patches solve it. > Sure. I should have had this in the original post. make[3]: Entering directory `/opt/gdb/6.5/h8300/sim/h8300' gcc -c -DHAVE_CONFIG_H -DPROFILE=1 -DWITH_PROFILE=-1 -DDEFAULT_INLINE=0 -D__USE_MINGW_FSEEK -I. -I../../../gdb-6.5/sim/h8300 -I../common -I../../../gdb-6.5/sim/h8300/../common -I../../include -I../../../gdb-6.5/sim/h8300/../../include -I../../bfd -I../../../gdb-6.5/sim/h8300/../../bfd -I../../opcodes -I../../../gdb-6.5/sim/h8300/../../opcodes -I../../intl -I../../../gdb-6.5/sim/h8300/../../intl -g -O2 ../../../gdb-6.5/sim/h8300/compile.c ../../../gdb-6.5/sim/h8300/compile.c: In function `sim_resume': ../../../gdb-6.5/sim/h8300/compile.c:1942: error: `SIGBUS' undeclared (first use in this function) ../../../gdb-6.5/sim/h8300/compile.c:1942: error: (Each undeclared identifier is reported only once ../../../gdb-6.5/sim/h8300/compile.c:1942: error: for each function it appears in.) make[3]: *** [compile.o] Error 1 Then after patching compile.c: make[3]: Entering directory `/opt/gdb/6.5/h8300/sim/h8300' gcc -c ../../../gdb-6.5/sim/h8300/../common/sim-signal.c -DHAVE_CONFIG_H -DPROFILE=1 -DWITH_PROFILE=-1 -DDEFAULT_INLINE=0 -D__USE_MINGW_FSEEK -I. -I../../../gdb-6.5/sim/h8300 -I../common -I../../../gdb-6.5/sim/h8300/../common -I../../include -I../../../gdb-6.5/sim/h8300/../../include -I../../bfd -I../../../gdb-6.5/sim/h8300/../../bfd -I../../opcodes -I../../../gdb-6.5/sim/h8300/../../opcodes -I../../intl -I../../../gdb-6.5/sim/h8300/../../intl -g -O2 ../../../gdb-6.5/sim/h8300/../common/sim-signal.c: In function `sim_signal_to_host': ../../../gdb-6.5/sim/h8300/../common/sim-signal.c:61: error: `SIGTRAP' undeclared (first use in this function) ../../../gdb-6.5/sim/h8300/../common/sim-signal.c:61: error: (Each undeclared identifier is reported only once ../../../gdb-6.5/sim/h8300/../common/sim-signal.c:61: error: for each function it appears in.) make[3]: *** [sim-signal.o] Error 1 Regards Chris