Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Chris Johns <chrisj@rtems.org>
To: Eli Zaretskii <eliz@gnu.org>
Cc: gdb-patches@sources.redhat.com
Subject: Re: H8300 simulator on MinGW fails to compile.
Date: Wed, 13 Sep 2006 20:10:00 -0000	[thread overview]
Message-ID: <450865A0.7070604@rtems.org> (raw)
In-Reply-To: <uodtjiu94.fsf@gnu.org>

Eli Zaretskii wrote:
>> Date: Wed, 13 Sep 2006 22:32:58 +1000
>> From: Chris Johns <chrisj@rtems.org>
>>
>> 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


  reply	other threads:[~2006-09-13 20:10 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-09-13 12:33 Chris Johns
2006-09-13 16:55 ` Eli Zaretskii
2006-09-13 20:10   ` Chris Johns [this message]
2006-09-13 20:30     ` Daniel Jacobowitz
2006-09-14  1:22       ` Chris Johns
2006-09-14  3:05         ` Daniel Jacobowitz
2006-09-14 23:43           ` Chris Johns
2006-09-16  3:53             ` Daniel Jacobowitz
2006-09-19  1:20               ` Chris Johns

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=450865A0.7070604@rtems.org \
    --to=chrisj@rtems.org \
    --cc=eliz@gnu.org \
    --cc=gdb-patches@sources.redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox