[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Xen-devel] Xen 4.1.0 RC2 released,


  • To: Ian Campbell <Ian.Campbell@xxxxxxxxxxxxx>
  • From: Nathan March <nathan@xxxxxx>
  • Date: Mon, 31 Jan 2011 10:14:38 -0800
  • Cc: "xen-devel@xxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxx>
  • Delivery-date: Mon, 31 Jan 2011 10:15:29 -0800
  • Domainkey-signature: a=rsa-sha1; c=nofws; d=gt.net; h=message-id:date :from:mime-version:to:cc:subject:references:in-reply-to :content-type:content-transfer-encoding; q=dns; s=mail; b=Yzpilu BtiZDFl9BH7TfIw2gHhTjvBeTKJc30ZbPyiKi8EQFJnhEaHj8wrAwCOLA2hSjY/L 92F/zktyhMM7/ZgzpD9jYaDsOOqPCgU83OnCpBMwVhXUoJ6EC9VQHAVDWD6NX4IR 5JWh0s0pKOZXIB5FFAJbZKu+R9zGHRaTKNmvw=
  • List-id: Xen developer discussion <xen-devel.lists.xensource.com>



On 1/29/2011 2:45 AM, Ian Campbell wrote:
I just built Xen with the following patch and it didn't break on a
Debian system (i.e. without as-needed enabled by default). Can you try
it in your environment?

Initially failed with:

ld -Wl,--no-as-needed   -melf_x86_64 -r -o built_in.o head.o
ld: unrecognized option '-Wl,--no-as-needed'
ld: use the --help option for usage information

Adjusted the patch to have a space instead of a comma between params and I get:

gcc -D__ASSEMBLY__ -O1 -fno-omit-frame-pointer -fno-optimize-sibling-calls -m64 -g -fno-strict-aliasing -Wall -Wstrict-prototypes -Wno-unused-value -Wdeclaration-after-statement -nostdinc -fno-builtin -fno-common -Wredundant-decls -iwithprefix include -Werror -Wno-pointer-arith -pipe -I/var/home/xen41/xen-unstable.hg/xen/include -I/var/home/xen41/xen-unstable.hg/xen/include/asm-x86/mach-generic -I/var/home/xen41/xen-unstable.hg/xen/include/asm-x86/mach-default -msoft-float -fno-stack-protector -fno-exceptions -mno-red-zone -fpic -fno-asynchronous-unwind-tables -DGCC_HAS_VISIBILITY_ATTRIBUTE -g -D__XEN__ -DVERBOSE -fno-omit-frame-pointer -DCONFIG_FRAME_POINTER -MMD -MF .head.o.d -c head.S -o head.o
ld -Wl --no-as-needed   -melf_x86_64 -r -o built_in.o head.o
ld: unrecognized option '-Wl'
ld: use the --help option for usage information

xen5 xen-unstable.hg # ld -v
GNU ld (GNU Binutils) 2.19.1

If I drop the -Wl out, it bails on:

gcc -O1 -fno-omit-frame-pointer -fno-optimize-sibling-calls -m64 -g -fno-strict-aliasing -std=gnu99 -Wall -Wstrict-prototypes -Wno-unused-value -Wdeclaration-after-statement -D__XEN_TOOLS__ -MMD -MF .xen-tmem-list-parse.d -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -Werror -I ../../tools/python/xen/lowlevel/xc -I ../../tools/libxc -I ../../tools/include --no-as-needed xen-tmem-list-parse.c -o xen-tmem-list-parse
cc1: error: unrecognized command line option "-fno-as-needed"

the --no-as-needed is valid for ld according to the man, but not for gcc as far as I can see.

- Nathan

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.