From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nathan March Subject: Re: Xen 4.1.0 RC2 released, Date: Mon, 31 Jan 2011 10:14:38 -0800 Message-ID: <4D46FC0E.6060102@gt.net> References: <4D41FA20.40509@gt.net> <1296204837.14780.6925.camel@zakaz.uk.xensource.com> <4D43146C.50203@gt.net> <1296241979.20804.88.camel@localhost.localdomain> <4D431792.2040303@gt.net> <1296243386.20804.97.camel@localhost.localdomain> <4D4332D2.1010506@gt.net> <1296251666.20804.99.camel@localhost.localdomain> <4D43422A.80202@gt.net> <1296297936.20804.123.camel@localhost.localdomain> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1296297936.20804.123.camel@localhost.localdomain> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Ian Campbell Cc: "xen-devel@lists.xensource.com" List-Id: xen-devel@lists.xenproject.org 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