Hi all I am trying to compile xen.efi on my system, but cannot get it to work (only xen.efi is a problem). I am using a xen-4.2.0 source from tar.gz and my package versions are: Binutils: 2.22.90 Binutils-multiarch: 2.22.90 Gcc: 4.7.2 My make command is like this sudo make dist-xen LD=--enable-targets=x86_64-pep Which compiles like without enable-targets, and indeed just tells me it cannot find enable-targets=x86_64-pep. My question is if my make command is correct and if it is how do I install the x86_64-pep target. The compile xen works fine if used through MBR, but I would like to skip the bootloader all together and just use EFI and xen.efi. I have the same problem whether I compile while boot through MBR or EFI. Kind regards Kristian Hagsted Rasmussen _______________________________________________ Xen-users mailing list Xen-users@lists.xen.org http://lists.xen.org/xen-users
On Fri, 2012-11-09 at 06:36 +0000, Kristian Hagsted Rasmussen wrote:> sudo make dist-xen LD=--enable-targets=x86_64-pepI''ve never built the EFI version but http://xenbits.xen.org/docs/unstable/misc/efi.html suggests to me that the --enable-targets=x86_64-pep option should have been based to the binutils configure script not to the Xen build as you have done here. You didn''t include your build logs (hint: this is always a good idea!) but I expect your build is ending with: ld: unrecognized option ''--enable-targets=x86_64-pep'' ld: use the --help option for usage information which should have been a strong hint that passing the option to the Xen build was not correct. AIUI if the binutils is suitably capable the Xen build will automatically include the efi target in the build with no need for additional options. Running "ld -m \?" should tell you which targets your binutils supports, it needs to include x86_64-pep and/or i386pep I think. Jan, am I right? Ian.
>>> On 09.11.12 at 09:46, Ian Campbell <Ian.Campbell@citrix.com> wrote: > On Fri, 2012-11-09 at 06:36 +0000, Kristian Hagsted Rasmussen wrote: > >> sudo make dist-xen LD=--enable-targets=x86_64-pep > > I''ve never built the EFI version but > http://xenbits.xen.org/docs/unstable/misc/efi.html suggests to me that > the --enable-targets=x86_64-pep option should have been based to the > binutils configure script not to the Xen build as you have done here. > You didn''t include your build logs (hint: this is always a good idea!) > but I expect your build is ending with: > ld: unrecognized option ''--enable-targets=x86_64-pep'' > ld: use the --help option for usage information > which should have been a strong hint that passing the option to the Xen > build was not correct. > > AIUI if the binutils is suitably capable the Xen build will > automatically include the efi target in the build with no need for > additional options. > > Running "ld -m \?" should tell you which targets your binutils supports, > it needs to include x86_64-pep and/or i386pep I think. > > Jan, am I right?Yes. Jan
> -----Original Message----- > From: Jan Beulich [mailto:JBeulich@suse.com] > Sent: 9. november 2012 10:07 > To: Ian Campbell; Kristian Hagsted Rasmussen > Cc: xen-users@lists.xen.org > Subject: Re: [Xen-users] Compile xen.efi > > >>> On 09.11.12 at 09:46, Ian Campbell <Ian.Campbell@citrix.com> wrote: > > On Fri, 2012-11-09 at 06:36 +0000, Kristian Hagsted Rasmussen wrote: > > You didn''t include your build logs (hint: this is always a good idea!)I will sent them when I am back home, but have no access to them right now as I am on work, sorry.> > ld: unrecognized option ''--enable-targets=x86_64-pep'' > > ld: use the --help option for usage information > > which should have been a strong hint that passing the option to the > > Xen build was not correct.The build did not end with errors, but as I found something similar to ld: unrecognized option ''--enable-targets=x86_64-pep'' I also suspected that it was wrong what I did.> > AIUI if the binutils is suitably capable the Xen build will > > automatically include the efi target in the build with no need for > > additional options.This is the portion where my problem actually is. I am currently using the latest packages from the Ubuntu 12.10 repository. Which states in the change log for binutils that --enable-targets=x86_64-pep is added to enable building xen.efi. But with "make dist-xen" I get the massages "EFI support disabled".> > Running "ld -m \?" should tell you which targets your binutils supports, it needs to include x86_64-pep and/or i386pep I think.Thanks for this hint, seems I couldn''t find it in my googling late last night. I will give it a try this afternoon and add the build log. Thanks for your time, Kristian Hagsted Rasmussen
>>> On 09.11.12 at 10:22, Kristian Hagsted Rasmussen <kristian@hagsted.dk> wrote: >> > AIUI if the binutils is suitably capable the Xen build will >> > automatically include the efi target in the build with no need for >> > additional options. > This is the portion where my problem actually is. I am currently using the > latest packages from the Ubuntu 12.10 repository. Which states in the change > log for binutils that --enable-targets=x86_64-pep is added to enable building > xen.efi. But with "make dist-xen" I get the massages "EFI support disabled".Just check xen/arch/x86/efi/disabled in your build tree - it contains the error message(s) from compiler or linker that caused the EFI portion of the build to get disabled. Jan
> -----Original Message----- > From: Jan Beulich [mailto:JBeulich@suse.com] > Sent: 9. november 2012 10:34 > To: Kristian Hagsted Rasmussen > Cc: Ian Campbell; xen-users@lists.xen.org > Subject: RE: [Xen-users] Compile xen.efi > > >>> On 09.11.12 at 10:22, Kristian Hagsted Rasmussen <kristian@hagsted.dk> > wrote: > >> > AIUI if the binutils is suitably capable the Xen build will > >> > automatically include the efi target in the build with no need for > >> > additional options. > > This is the portion where my problem actually is. I am currently using > > the latest packages from the Ubuntu 12.10 repository. Which states in > > the change log for binutils that --enable-targets=x86_64-pep is added > > to enable building xen.efi. But with "make dist-xen" I get the massages "EFI > support disabled". > > Just check xen/arch/x86/efi/disabled in your build tree - it contains the error > message(s) from compiler or linker that caused the EFI portion of the build to > get disabled.I believe I did that yesterday as the build log told me to, but it was empty. Just to be clear the EFI part should build even on a system booted through MBR right?> Jan
>>> On 09.11.12 at 10:41, Kristian Hagsted Rasmussen <kristian@hagsted.dk> wrote: >> From: Jan Beulich [mailto:JBeulich@suse.com] >> Just check xen/arch/x86/efi/disabled in your build tree - it contains the > error >> message(s) from compiler or linker that caused the EFI portion of the build > to >> get disabled. > I believe I did that yesterday as the build log told me to, but it was > empty.The file being present but empty shouldn''t happen. Right after having run the hypervisor build, what is the output of "ls -l xen/arch/x86/efi/"?> Just to be clear the EFI part should build even on a system booted through > MBR right?Yes - what you have running on the system hypervisor- or kernel- wise doesn''t matter at all. Jan
> -----Original Message----- > From: Jan Beulich [mailto:JBeulich@suse.com] > Sent: 9. november 2012 10:54 > To: Kristian Hagsted Rasmussen > Cc: Ian Campbell; xen-users@lists.xen.org > Subject: RE: [Xen-users] Compile xen.efi > > >>> On 09.11.12 at 10:41, Kristian Hagsted Rasmussen <kristian@hagsted.dk> > wrote: > >> From: Jan Beulich [mailto:JBeulich@suse.com] Just check > >> xen/arch/x86/efi/disabled in your build tree - it contains the > > error > >> message(s) from compiler or linker that caused the EFI portion of the > >> build > > to > >> get disabled. > > I believe I did that yesterday as the build log told me to, but it was > > empty.I have just done a new build from a clean copy of the source, and as you predicted I get: ld: unrecognised emulation mode: i386pep But what I don''t understand is why it is not install when it should be part of the binutils-multiarch package I have installed. This might be a question for the Ubuntu forums though.> The file being present but empty shouldn''t happen. Right after having run > the hypervisor build, what is the output of "ls -l xen/arch/x86/efi/"? > > > Just to be clear the EFI part should build even on a system booted > > through MBR right? > > Yes - what you have running on the system hypervisor- or kernel- wise > doesn''t matter at all. > > Jan
On 2012-11-09 12:09, Kristian Hagsted Rasmussen wrote:> I have just done a new build from a clean copy of the source, and as > you predicted I get: > ld: unrecognised emulation mode: i386pep > But what I don''t understand is why it is not install when it should > be part of the binutils-multiarch package I have installed. This > might > be a question for the Ubuntu forums though. >I was looking at this earlier in the week, you need the 2.22-7 version of the binutils-multiarch package but this seems to be only available in unstable. https://launchpad.net/ubuntu/+source/binutils/2.22.52.20120713-0ubuntu1 James
> -----Oprindelig meddelelse----- > Fra: xen-users-bounces@lists.xen.org [mailto:xen-users-bounces@lists.xen.org] På vegne af James Dingwall> On 2012-11-09 12:09, Kristian Hagsted Rasmussen wrote: > > I have just done a new build from a clean copy of the source, and as > > you predicted I get: > > ld: unrecognised emulation mode: i386pep But what I don''t understand > > is why it is not install when it should be part of the > > binutils-multiarch package I have installed. This might be a question > > for the Ubuntu forums though. > > > I was looking at this earlier in the week, you need the 2.22-7 version of the > binutils-multiarch package but this seems to be only available in unstable.You are right, seems I misunderstood the changelog. But there has now been an 2.22-7.1 update, where the --enable-targets=x86_64-pep wasn''t used, so in the end I had to recompile binutils myself.> https://launchpad.net/ubuntu/+source/binutils/2.22.52.20120713-0ubuntu1 > > James > > _______________________________________________ > Xen-users mailing list > Xen-users@lists.xen.org > http://lists.xen.org/xen-users