public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
* [Patch build machinery] fix bootstrap fail on darwin8
@ 2010-07-01  8:19 IainS
  2010-07-01 10:27 ` Paolo Bonzini
  0 siblings, 1 reply; 3+ messages in thread
From: IainS @ 2010-07-01  8:19 UTC (permalink / raw)
  To: GCC Patches; +Cc: Paolo Bonzini, Richard Guenther

I can only test darwin8 relatively infrequently these days, and in  
doing so prior to the merge, found that bootstrap is broken for 4.5  
and trunk
(fails on compare m64 objects in libgcc and gomp multilibs).

This is because the ld "-x" flag is no longer appropriate (with  
intervening changes too numerous to identify which caused it).

the following patch fixes it and has been tested for 4.5 and trunk (at  
161635 on {powerpc,i686}-apple-darwin{8,9}, x86_64-apple-darwin10)

OK for 4.5 immediately and trunk when it reopens?

Iain

contrib/ChangeLog:

	compare-debug (Darwin): Remove '-x' flag from ld-based stripping.
        Add comment as to why we use ld for this.

Index: contrib/compare-debug
===================================================================
--- contrib/compare-debug	(revision 161635)
+++ contrib/compare-debug	(working copy)
@@ -59,8 +59,11 @@ trap 'rm -f "$1.$suf1" "$2.$suf2"' 0 1 2 15

  case `uname -s` in
  Darwin)
-  ld -S -x -r -no_uuid "$1" -o "$1.$suf1"
-  ld -S -x -r -no_uuid "$2" -o "$2.$suf2"
+  # The strip command on darwin does not remove linker UUID commands.
+  # However, we can use ld to do this and strip the binaries at the
+  # same time.
+  ld -S -r -no_uuid "$1" -o "$1.$suf1"
+  ld -S -r -no_uuid "$2" -o "$2.$suf2"
    ;;
  *)
    cp "$1" "$1.$suf1"

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

* Re: [Patch build machinery] fix bootstrap fail on darwin8
  2010-07-01  8:19 [Patch build machinery] fix bootstrap fail on darwin8 IainS
@ 2010-07-01 10:27 ` Paolo Bonzini
  2010-07-02  8:57   ` IainS
  0 siblings, 1 reply; 3+ messages in thread
From: Paolo Bonzini @ 2010-07-01 10:27 UTC (permalink / raw)
  To: IainS; +Cc: GCC Patches, Richard Guenther

On 07/01/2010 10:18 AM, IainS wrote:
> I can only test darwin8 relatively infrequently these days, and in doing
> so prior to the merge, found that bootstrap is broken for 4.5 and trunk
> (fails on compare m64 objects in libgcc and gomp multilibs).
>
> This is because the ld "-x" flag is no longer appropriate (with
> intervening changes too numerous to identify which caused it).
>
> the following patch fixes it and has been tested for 4.5 and trunk (at
> 161635 on {powerpc,i686}-apple-darwin{8,9}, x86_64-apple-darwin10)
>
> OK for 4.5 immediately and trunk when it reopens?
>
> Iain
>
> contrib/ChangeLog:
>
> compare-debug (Darwin): Remove '-x' flag from ld-based stripping.
> Add comment as to why we use ld for this.
>
> Index: contrib/compare-debug
> ===================================================================
> --- contrib/compare-debug (revision 161635)
> +++ contrib/compare-debug (working copy)
> @@ -59,8 +59,11 @@ trap 'rm -f "$1.$suf1" "$2.$suf2"' 0 1 2 15
>
> case `uname -s` in
> Darwin)
> - ld -S -x -r -no_uuid "$1" -o "$1.$suf1"
> - ld -S -x -r -no_uuid "$2" -o "$2.$suf2"
> + # The strip command on darwin does not remove linker UUID commands.
> + # However, we can use ld to do this and strip the binaries at the
> + # same time.
> + ld -S -r -no_uuid "$1" -o "$1.$suf1"
> + ld -S -r -no_uuid "$2" -o "$2.$suf2"
> ;;
> *)
> cp "$1" "$1.$suf1"

Ok.

Paolo

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

* Re: [Patch build machinery] fix bootstrap fail on darwin8
  2010-07-01 10:27 ` Paolo Bonzini
@ 2010-07-02  8:57   ` IainS
  0 siblings, 0 replies; 3+ messages in thread
From: IainS @ 2010-07-02  8:57 UTC (permalink / raw)
  To: Paolo Bonzini; +Cc: GCC Patches


On 1 Jul 2010, at 11:26, Paolo Bonzini wrote:

> On 07/01/2010 10:18 AM, IainS wrote:
>> contrib/ChangeLog:
>>
>> compare-debug (Darwin): Remove '-x' flag from ld-based stripping.
>> Add comment as to why we use ld for this.
>
> Ok.

r161675 (4.5), r161686 (trunk).
Iain

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

end of thread, other threads:[~2010-07-02  8:57 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-07-01  8:19 [Patch build machinery] fix bootstrap fail on darwin8 IainS
2010-07-01 10:27 ` Paolo Bonzini
2010-07-02  8:57   ` IainS

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).