Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
* Can't build mips-elf-run on OSX
@ 2010-01-06 11:28 Masaki Muranaka
  2010-01-07  0:09 ` [patch] " Masaki Muranaka
  2010-01-07 16:43 ` Nick Clifton
  0 siblings, 2 replies; 8+ messages in thread
From: Masaki Muranaka @ 2010-01-06 11:28 UTC (permalink / raw)
  To: gdb-patches, binutils

Hello maintainers,

I failed to build mips-elf-run on OSX (x86_64-apple-darwin10.2.0) host.
Error log is below.

The immediate cause is that stpcpy is defined as macro on OSX host.
But there seems have a general issue.

It is required config.h by bfd/sysdep.h. This should be bfd/config.h.
But gcc (at least apple's genuine build) includes sim/mips/config.h.
So definitions in bfd/config.h like HAVE_DECL_STPCPY is not defined.

To begin with, sim/mips/interp.c needs bfd/sysdep.h? 
I could built interp.c successfully without bfd/sysdep.h on my environment.

Thanks,

- - -
In file included from ../../../pf3gnuchains4x/sim/mips/interp.c:67:
../../../pf3gnuchains4x/sim/mips/../..//bfd/sysdep.h:135: error: expected declaration specifiers or ‘...’ before numeric constant
../../../pf3gnuchains4x/sim/mips/../..//bfd/sysdep.h:135: error: expected ‘)’ before ‘!=’ token
../../../pf3gnuchains4x/sim/mips/../..//bfd/sysdep.h:135: error: expected ‘)’ before ‘?’ token
make[2]: *** [interp.o] Error 1
make[1]: *** [all] Error 1
make: *** [all-sim] Error 2
- - -
--
Masaki Muranaka
Monami software



^ permalink raw reply	[flat|nested] 8+ messages in thread

* [patch] Re: Can't build mips-elf-run on OSX
  2010-01-06 11:28 Can't build mips-elf-run on OSX Masaki Muranaka
@ 2010-01-07  0:09 ` Masaki Muranaka
  2010-01-18  0:41   ` [ping] " Masaki Muranaka
  2010-01-18  3:27   ` Joel Brobecker
  2010-01-07 16:43 ` Nick Clifton
  1 sibling, 2 replies; 8+ messages in thread
From: Masaki Muranaka @ 2010-01-07  0:09 UTC (permalink / raw)
  To: gdb-patches

Hello,
I remove binutils ML from the header since this issue is depended on sim only.

According to ChangeLog (Wed Jul 17 18:12:38 1996  Stu Grossman  (grossman@critters.cygnus.com)),
the reason why interp.c is to get SIGBUS definition.
I think we have already changed signal handling. So we don't need to include sysdep.h.

I tested the patch follows on i386-pc-mingw32, x86_64-unknown-linux-gnu, x86_64-apple-darwin10.2.0.

- - - - -
2010-01-07  Masaki Muranaka  <monaka@monami-software.com>

        * interp.c: Don't include sysdep.h

- - - - -
diff --git a/sim/mips/interp.c b/sim/mips/interp.c
index 20ab54b..5516e00 100644
--- a/sim/mips/interp.c
+++ b/sim/mips/interp.c
@@ -64,8 +64,6 @@ code on the hardware.
 #include "gdb/callback.h"   /* GDB simulator callback interface */
 #include "gdb/remote-sim.h" /* GDB simulator interface */
 
-#include "sysdep.h"
-
 #ifndef PARAMS
 #define PARAMS(x) 
 #endif

- - - - -
On 2010/01/06, at 20:28, Masaki Muranaka wrote:

> Hello maintainers,
> 
> I failed to build mips-elf-run on OSX (x86_64-apple-darwin10.2.0) host.
> Error log is below.
> 
> The immediate cause is that stpcpy is defined as macro on OSX host.
> But there seems have a general issue.
> 
> It is required config.h by bfd/sysdep.h. This should be bfd/config.h.
> But gcc (at least apple's genuine build) includes sim/mips/config.h.
> So definitions in bfd/config.h like HAVE_DECL_STPCPY is not defined.
> 
> To begin with, sim/mips/interp.c needs bfd/sysdep.h? 
> I could built interp.c successfully without bfd/sysdep.h on my environment.
> 
> Thanks,
> 
> - - -
> In file included from ../../../pf3gnuchains4x/sim/mips/interp.c:67:
> ../../../pf3gnuchains4x/sim/mips/../..//bfd/sysdep.h:135: error: expected declaration specifiers or ‘...’ before numeric constant
> ../../../pf3gnuchains4x/sim/mips/../..//bfd/sysdep.h:135: error: expected ‘)’ before ‘!=’ token
> ../../../pf3gnuchains4x/sim/mips/../..//bfd/sysdep.h:135: error: expected ‘)’ before ‘?’ token
> make[2]: *** [interp.o] Error 1
> make[1]: *** [all] Error 1
> make: *** [all-sim] Error 2
> - - -
> --
> Masaki Muranaka
> Monami software
> 
> 
> 


^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: Can't build mips-elf-run on OSX
  2010-01-06 11:28 Can't build mips-elf-run on OSX Masaki Muranaka
  2010-01-07  0:09 ` [patch] " Masaki Muranaka
@ 2010-01-07 16:43 ` Nick Clifton
  2010-01-08  0:18   ` Masaki Muranaka
  1 sibling, 1 reply; 8+ messages in thread
From: Nick Clifton @ 2010-01-07 16:43 UTC (permalink / raw)
  To: Masaki Muranaka; +Cc: gdb-patches, binutils, Thiemo Seufer

Hi Masaki,

> It is required config.h by bfd/sysdep.h. This should be bfd/config.h.
> But gcc (at least apple's genuine build) includes sim/mips/config.h.
> So definitions in bfd/config.h like HAVE_DECL_STPCPY is not defined.

This sounds like a problem with the configure script in the sim/mips 
directory - presumably it should be including a check of the stpcpy 
function.

> To begin with, sim/mips/interp.c needs bfd/sysdep.h? 
> I could built interp.c successfully without bfd/sysdep.h on my environment.

Me too - so it would appear to be unnecessary.  Please note however that 
I cannot approved such a change - you need a GDB maintainer for that. 
Thiemo is listed as the sim/mips maintainer...

Cheers
   Nick


^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: Can't build mips-elf-run on OSX
  2010-01-07 16:43 ` Nick Clifton
@ 2010-01-08  0:18   ` Masaki Muranaka
  0 siblings, 0 replies; 8+ messages in thread
From: Masaki Muranaka @ 2010-01-08  0:18 UTC (permalink / raw)
  To: Nick Clifton; +Cc: gdb-patches, binutils, Thiemo Seufer

Hello Nick,

Thanks for your comment. I figured out after sending that mail, so I already sent a patch to gdb-patches ML.
As you say, this issue is caused by sim/mips.

Thanks,

On 2010/01/08, at 1:37, Nick Clifton wrote:

> Hi Masaki,
> 
>> It is required config.h by bfd/sysdep.h. This should be bfd/config.h.
>> But gcc (at least apple's genuine build) includes sim/mips/config.h.
>> So definitions in bfd/config.h like HAVE_DECL_STPCPY is not defined.
> 
> This sounds like a problem with the configure script in the sim/mips directory - presumably it should be including a check of the stpcpy function.
> 
>> To begin with, sim/mips/interp.c needs bfd/sysdep.h? I could built interp.c successfully without bfd/sysdep.h on my environment.
> 
> Me too - so it would appear to be unnecessary.  Please note however that I cannot approved such a change - you need a GDB maintainer for that. Thiemo is listed as the sim/mips maintainer...
> 
> Cheers
>  Nick
> 
> 


^ permalink raw reply	[flat|nested] 8+ messages in thread

* [ping] Re: [patch] Re: Can't build mips-elf-run on OSX
  2010-01-07  0:09 ` [patch] " Masaki Muranaka
@ 2010-01-18  0:41   ` Masaki Muranaka
  2010-01-18  3:27   ` Joel Brobecker
  1 sibling, 0 replies; 8+ messages in thread
From: Masaki Muranaka @ 2010-01-18  0:41 UTC (permalink / raw)
  To: gdb-patches; +Cc: Thiemo Seufer

ping?

On 2010/01/07, at 9:09, Masaki Muranaka wrote:

> Hello,
> I remove binutils ML from the header since this issue is depended on sim only.
> 
> According to ChangeLog (Wed Jul 17 18:12:38 1996  Stu Grossman  (grossman@critters.cygnus.com)),
> the reason why interp.c is to get SIGBUS definition.
> I think we have already changed signal handling. So we don't need to include sysdep.h.
> 
> I tested the patch follows on i386-pc-mingw32, x86_64-unknown-linux-gnu, x86_64-apple-darwin10.2.0.
> 
> - - - - -
> 2010-01-07  Masaki Muranaka  <monaka@monami-software.com>
> 
>        * interp.c: Don't include sysdep.h
> 
> - - - - -
> diff --git a/sim/mips/interp.c b/sim/mips/interp.c
> index 20ab54b..5516e00 100644
> --- a/sim/mips/interp.c
> +++ b/sim/mips/interp.c
> @@ -64,8 +64,6 @@ code on the hardware.
> #include "gdb/callback.h"   /* GDB simulator callback interface */
> #include "gdb/remote-sim.h" /* GDB simulator interface */
> 
> -#include "sysdep.h"
> -
> #ifndef PARAMS
> #define PARAMS(x) 
> #endif
> 
> - - - - -
> On 2010/01/06, at 20:28, Masaki Muranaka wrote:
> 
>> Hello maintainers,
>> 
>> I failed to build mips-elf-run on OSX (x86_64-apple-darwin10.2.0) host.
>> Error log is below.
>> 
>> The immediate cause is that stpcpy is defined as macro on OSX host.
>> But there seems have a general issue.
>> 
>> It is required config.h by bfd/sysdep.h. This should be bfd/config.h.
>> But gcc (at least apple's genuine build) includes sim/mips/config.h.
>> So definitions in bfd/config.h like HAVE_DECL_STPCPY is not defined.
>> 
>> To begin with, sim/mips/interp.c needs bfd/sysdep.h? 
>> I could built interp.c successfully without bfd/sysdep.h on my environment.
>> 
>> Thanks,
>> 
>> - - -
>> In file included from ../../../pf3gnuchains4x/sim/mips/interp.c:67:
>> ../../../pf3gnuchains4x/sim/mips/../..//bfd/sysdep.h:135: error: expected declaration specifiers or ‘...’ before numeric constant
>> ../../../pf3gnuchains4x/sim/mips/../..//bfd/sysdep.h:135: error: expected ‘)’ before ‘!=’ token
>> ../../../pf3gnuchains4x/sim/mips/../..//bfd/sysdep.h:135: error: expected ‘)’ before ‘?’ token
>> make[2]: *** [interp.o] Error 1
>> make[1]: *** [all] Error 1
>> make: *** [all-sim] Error 2
>> - - -
>> --
>> Masaki Muranaka
>> Monami software
>> 
>> 
>> 
> 
> 


^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [patch] Re: Can't build mips-elf-run on OSX
  2010-01-07  0:09 ` [patch] " Masaki Muranaka
  2010-01-18  0:41   ` [ping] " Masaki Muranaka
@ 2010-01-18  3:27   ` Joel Brobecker
  2010-01-18  4:14     ` Masaki Muranaka
  1 sibling, 1 reply; 8+ messages in thread
From: Joel Brobecker @ 2010-01-18  3:27 UTC (permalink / raw)
  To: Masaki Muranaka; +Cc: gdb-patches

> 2010-01-07  Masaki Muranaka  <monaka@monami-software.com>
> 
>         * interp.c: Don't include sysdep.h

Sorry for the delay, but I wanted to see if one of the sim maintainers
would step in and review.

This is approved.

I cannot locate you in our FSF copyright assignment database.
Do you have a copyright assignment on file?  In the meantime,
we can accept this patch under the small change rule.

-- 
Joel


^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [patch] Re: Can't build mips-elf-run on OSX
  2010-01-18  3:27   ` Joel Brobecker
@ 2010-01-18  4:14     ` Masaki Muranaka
  2010-01-18  4:17       ` Joel Brobecker
  0 siblings, 1 reply; 8+ messages in thread
From: Masaki Muranaka @ 2010-01-18  4:14 UTC (permalink / raw)
  To: Joel Brobecker; +Cc: gdb-patches

Hello,

I requested assignment but I've not get it (maybe troubles in transit).
I sent request again just before. I'll sign the assignment for a couple of weeks.
(But my patches are all tiny. So I think they can be applied the small
 change rule as you say.)

On 2010/01/18, at 12:27, Joel Brobecker wrote:

>> 2010-01-07  Masaki Muranaka  <monaka@monami-software.com>
>> 
>>        * interp.c: Don't include sysdep.h
> 
> Sorry for the delay, but I wanted to see if one of the sim maintainers
> would step in and review.
> 
> This is approved.
> 
> I cannot locate you in our FSF copyright assignment database.
> Do you have a copyright assignment on file?  In the meantime,
> we can accept this patch under the small change rule.
> 
> -- 
> Joel
> 


^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [patch] Re: Can't build mips-elf-run on OSX
  2010-01-18  4:14     ` Masaki Muranaka
@ 2010-01-18  4:17       ` Joel Brobecker
  0 siblings, 0 replies; 8+ messages in thread
From: Joel Brobecker @ 2010-01-18  4:17 UTC (permalink / raw)
  To: Masaki Muranaka; +Cc: gdb-patches

> I requested assignment but I've not get it (maybe troubles in transit).

OK - hopefully just in transit, but do check with the FSF clerk,
say, in a couple of weeks, if you haven't heard from the FSF.

> (But my patches are all tiny. So I think they can be applied the small
>  change rule as you say.)

I wasn't clear in my earlier message, sorry. I have already applied
your patch.

-- 
Joel


^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2010-01-18  4:17 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-01-06 11:28 Can't build mips-elf-run on OSX Masaki Muranaka
2010-01-07  0:09 ` [patch] " Masaki Muranaka
2010-01-18  0:41   ` [ping] " Masaki Muranaka
2010-01-18  3:27   ` Joel Brobecker
2010-01-18  4:14     ` Masaki Muranaka
2010-01-18  4:17       ` Joel Brobecker
2010-01-07 16:43 ` Nick Clifton
2010-01-08  0:18   ` Masaki Muranaka

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox