qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] Mac: your linker does not support --whole-archive or -z
       [not found] <2CBFEC2D-0EB6-4363-AD57-B2338C3EC814@hotmail.com>
@ 2009-05-19 18:22 ` C.W. Betts
  2009-05-19 18:40   ` Anthony Liguori
  2009-05-19 19:59   ` Anthony Liguori
  0 siblings, 2 replies; 7+ messages in thread
From: C.W. Betts @ 2009-05-19 18:22 UTC (permalink / raw)
  To: qemu-devel

I recently got my git tree up and running again, but I encountered  
this error when trying to configure it:
Error: your linker does not support --whole-archive or -z.
Please report to qemu-devel@nongnu.org

I'm running Mac OS X 10.5.7

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

* Re: [Qemu-devel] Mac: your linker does not support --whole-archive or -z
  2009-05-19 18:22 ` [Qemu-devel] Mac: your linker does not support --whole-archive or -z C.W. Betts
@ 2009-05-19 18:40   ` Anthony Liguori
  2009-05-19 19:31     ` Andreas Färber
  2009-05-19 19:59   ` Anthony Liguori
  1 sibling, 1 reply; 7+ messages in thread
From: Anthony Liguori @ 2009-05-19 18:40 UTC (permalink / raw)
  To: C.W. Betts; +Cc: qemu-devel

C.W. Betts wrote:
> I recently got my git tree up and running again, but I encountered 
> this error when trying to configure it:
> Error: your linker does not support --whole-archive or -z.
> Please report to qemu-devel@nongnu.org
>
> I'm running Mac OS X 10.5.7

Can someone point me to the manual for the OS X linker?  I'm surprised 
it's not GNU ld...

Regards,

Anthony Liguori
>
>
>

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

* Re: [Qemu-devel] Mac: your linker does not support --whole-archive or -z
  2009-05-19 18:40   ` Anthony Liguori
@ 2009-05-19 19:31     ` Andreas Färber
  0 siblings, 0 replies; 7+ messages in thread
From: Andreas Färber @ 2009-05-19 19:31 UTC (permalink / raw)
  To: Anthony Liguori; +Cc: C.W. Betts, qemu-devel


Am 19.05.2009 um 20:40 schrieb Anthony Liguori:

> C.W. Betts wrote:
>> I recently got my git tree up and running again, but I encountered  
>> this error when trying to configure it:
>> Error: your linker does not support --whole-archive or -z.
>> Please report to qemu-devel@nongnu.org
>>
>> I'm running Mac OS X 10.5.7
>
> Can someone point me to the manual for the OS X linker?  I'm  
> surprised it's not GNU ld...

I told you in advance...

Andreas

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

* Re: [Qemu-devel] Mac: your linker does not support --whole-archive or -z
  2009-05-19 18:22 ` [Qemu-devel] Mac: your linker does not support --whole-archive or -z C.W. Betts
  2009-05-19 18:40   ` Anthony Liguori
@ 2009-05-19 19:59   ` Anthony Liguori
       [not found]     ` <7887E782-7732-4B9C-81AC-227B3CBED716@hotmail.com>
  1 sibling, 1 reply; 7+ messages in thread
From: Anthony Liguori @ 2009-05-19 19:59 UTC (permalink / raw)
  To: C.W. Betts; +Cc: qemu-devel

[-- Attachment #1: Type: text/plain, Size: 367 bytes --]

C.W. Betts wrote:
> I recently got my git tree up and running again, but I encountered 
> this error when trying to configure it:
> Error: your linker does not support --whole-archive or -z.
> Please report to qemu-devel@nongnu.org
>
> I'm running Mac OS X 10.5.7

Does this patch help?  Make sure to do configure and a full build.

Regards,

Anthony Liguori

>
>
>


[-- Attachment #2: mac-osx.patch --]
[-- Type: text/x-patch, Size: 705 bytes --]

diff --git a/configure b/configure
index 4111e7c..533fa35 100755
--- a/configure
+++ b/configure
@@ -1708,6 +1708,11 @@ elif check_linker_flags -z,allextract -z,defaultextract ; then
     # Solaris ld
     echo "ARLIBS_BEGIN=-Wl,-z,allextract" >> $config_mak
     echo "ARLIBS_END=-Wl,-z,defaultextract" >> $config_mak
+elif check_linker_flags -all_load ; then
+    echo "ARLIBS_BEGIN=-all_load" >> $config_mak
+    # This is technically obsolete but it seems like it would be necessary
+#    echo "ARLIBS_END=-noall_load" >> $config_mak
+    echo "ARLIBS_END=" >> $config_mak
 else
     echo "Error: your linker does not support --whole-archive or -z."
     echo "Please report to qemu-devel@nongnu.org"

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

* Re: [Qemu-devel] Mac: your linker does not support --whole-archive or -z
       [not found]     ` <7887E782-7732-4B9C-81AC-227B3CBED716@hotmail.com>
@ 2009-05-20  4:11       ` C.W. Betts
  2009-05-20 13:18         ` Anthony Liguori
  0 siblings, 1 reply; 7+ messages in thread
From: C.W. Betts @ 2009-05-20  4:11 UTC (permalink / raw)
  To: qemu-devel

[-- Attachment #1: Type: text/plain, Size: 1978 bytes --]


On May 19, 2009, at 1:59 PM, Anthony Liguori wrote:

> C.W. Betts wrote:
>> I recently got my git tree up and running again, but I encountered  
>> this error when trying to configure it:
>> Error: your linker does not support --whole-archive or -z.
>> Please report to qemu-devel@nongnu.org
>>
>> I'm running Mac OS X 10.5.7
>
> Does this patch help?  Make sure to do configure and a full build.
for some odd reason, it needs two -all_load in order to work.  Like so:

diff --git a/configure b/configure
index 4111e7c..533fa35 100755
--- a/configure
+++ b/configure
@@ -1708,6 +1708,11 @@ elif check_linker_flags -z,allextract - 
z,defaultextract ; then
     # Solaris ld
     echo "ARLIBS_BEGIN=-Wl,-z,allextract" >> $config_mak
     echo "ARLIBS_END=-Wl,-z,defaultextract" >> $config_mak
+elif check_linker_flags -all_load -all_load ; then
+    echo "ARLIBS_BEGIN=-all_load" >> $config_mak
+    # This is technically obsolete but it seems like it would be  
necessary
+#    echo "ARLIBS_END=-noall_load" >> $config_mak
+    echo "ARLIBS_END=" >> $config_mak
else
     echo "Error: your linker does not support --whole-archive or -z."
     echo "Please report to qemu-devel@nongnu.org"

>
>
> Regards,
>
> Anthony Liguori
>
>>
>>
>>
>
> diff --git a/configure b/configure
> index 4111e7c..533fa35 100755
> --- a/configure
> +++ b/configure
> @@ -1708,6 +1708,11 @@ elif check_linker_flags -z,allextract - 
> z,defaultextract ; then
>     # Solaris ld
>     echo "ARLIBS_BEGIN=-Wl,-z,allextract" >> $config_mak
>     echo "ARLIBS_END=-Wl,-z,defaultextract" >> $config_mak
> +elif check_linker_flags -all_load ; then
> +    echo "ARLIBS_BEGIN=-all_load" >> $config_mak
> +    # This is technically obsolete but it seems like it would be  
> necessary
> +#    echo "ARLIBS_END=-noall_load" >> $config_mak
> +    echo "ARLIBS_END=" >> $config_mak
> else
>     echo "Error: your linker does not support --whole-archive or -z."
>     echo "Please report to qemu-devel@nongnu.org"


[-- Attachment #2: Type: text/html, Size: 3163 bytes --]

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

* Re: [Qemu-devel] Mac: your linker does not support --whole-archive or -z
  2009-05-20  4:11       ` C.W. Betts
@ 2009-05-20 13:18         ` Anthony Liguori
  2009-05-27  9:50           ` Alexander Graf
  0 siblings, 1 reply; 7+ messages in thread
From: Anthony Liguori @ 2009-05-20 13:18 UTC (permalink / raw)
  To: C.W. Betts; +Cc: qemu-devel

C.W. Betts wrote:
>>
>> Does this patch help?  Make sure to do configure and a full build.
> for some odd reason, it needs two -all_load in order to work.  Like so:

check_linker_flags needs to be smarter... But with -all_load, QEMU 
compiles and things work as you'd expect?  Can you verify that qemu-img 
help output shows multiple supported formats?

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

* Re: [Qemu-devel] Mac: your linker does not support --whole-archive or -z
  2009-05-20 13:18         ` Anthony Liguori
@ 2009-05-27  9:50           ` Alexander Graf
  0 siblings, 0 replies; 7+ messages in thread
From: Alexander Graf @ 2009-05-27  9:50 UTC (permalink / raw)
  To: Anthony Liguori; +Cc: C.W. Betts, qemu-devel

Anthony Liguori wrote:
> C.W. Betts wrote:
>>>
>>> Does this patch help?  Make sure to do configure and a full build.
>> for some odd reason, it needs two -all_load in order to work.  Like so:
>
> check_linker_flags needs to be smarter... But with -all_load, QEMU
> compiles and things work as you'd expect?  Can you verify that
> qemu-img help output shows multiple supported formats?

Looks good with -all_load.

Alex

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

end of thread, other threads:[~2009-05-27  9:50 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <2CBFEC2D-0EB6-4363-AD57-B2338C3EC814@hotmail.com>
2009-05-19 18:22 ` [Qemu-devel] Mac: your linker does not support --whole-archive or -z C.W. Betts
2009-05-19 18:40   ` Anthony Liguori
2009-05-19 19:31     ` Andreas Färber
2009-05-19 19:59   ` Anthony Liguori
     [not found]     ` <7887E782-7732-4B9C-81AC-227B3CBED716@hotmail.com>
2009-05-20  4:11       ` C.W. Betts
2009-05-20 13:18         ` Anthony Liguori
2009-05-27  9:50           ` Alexander Graf

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 NNTP newsgroup(s).