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

Re: [Xen-devel] [BUG] Xen-4.8.0 efi/buildid.o: file not recognized/Ambiguous




Den 08. des. 2016 20:35, skrev John L. Poole:
> 
> 
> On 12/7/2016 8:51 AM, Jan Beulich wrote:
>>>>> On 07.12.16 at 16:57, <jlpoole56@xxxxxxxxx> wrote:
>>> I did the the following:
>>>
>>> wget https://downloads.xenproject.org/release/xen/4.8.0/xen-4.8.0.tar.gz 
>>> tar -xvzf xen-4.8.0.tar.gz
>>> cd /usr/local/src/xen-4.8.0
>>> ./configure
>>>
>>> The config.log is available at: http://napadata.net/paste/view/9e7faf3d 
>>>
>>>
>>> make
>>>
>>>     ...
>>>      mv -f .efi.lds.d.new .efi.lds.d
>>>      gcc -Wall -Werror -Wstrict-prototypes -O2 -fomit-frame-pointer 
>>> -fno-strict-aliasing -Wdeclaration-after-statement -g -o efi/mkreloc 
>>> efi/mkreloc.c
>>>      ld -mi386pep --subsystem=10 --image-base=0xffff82d080000000 
>>> --stack=0,0 --heap=0,0 --strip-debug --section-alignment=0x200000 
>>> --file-alignment=0x20 --major-image-version=4 --minor-image-version=8 
>>> --major-os-version=2 --minor-os-version=0 --major-subsystem-version=2 
>>> --minor-subsystem-version=0 --build-id=sha1 -T efi.lds -N prelink-efi.o 
>>> efi/relocs-dummy.o /usr/local/src/xen-4.8.0/xen/common/symbols-dummy.o 
>>> efi/buildid.o -o 
>>> /usr/local/src/xen-4.8.0/xen/.xen.efi.0xffff82d080000000.0 &&   ld 
>>> -mi386pep --subsystem=10 --image-base=0xffff82d0c0000000 --stack=0,0 
>>> --heap=0,0 --strip-debug --section-alignment=0x200000 
>>> --file-alignment=0x20 --major-image-version=4 --minor-image-version=8 
>>> --major-os-version=2 --minor-os-version=0 --major-subsystem-version=2 
>>> --minor-subsystem-version=0 --build-id=sha1 -T efi.lds -N prelink-efi.o 
>>> efi/relocs-dummy.o /usr/local/src/xen-4.8.0/xen/common/symbols-dummy.o 
>>> efi/buildid.o -o 
>>> /usr/local/src/xen-4.8.0/xen/.xen.efi.0xffff82d0c0000000.0 && :
>>>      efi/buildid.o: file not recognized: File format is ambiguous
>>>      efi/buildid.o: matching formats: coff-x86-64 pe-x86-64
>> Hmm, at the first glance I'd call this a binutils bug: When talking
>> about an object file, it's necessarily COFF and never PE. But I'd
>> have to study their logic first to be certain. What binutils version
>> are you using, and what's the target list e.g. objcopy lists at the
>> end of its --help output?
>>
>> Jan
>>
> 
> I updated my binutils to 2.27 and I successfully completed "make". 
> Thank you.
> 

I have the same problem with binutils-2.27 on gentoo. Worked around it
by adding " -b coff-x86-64 " to the ld command line before $(note_file).

Running with  gentoo-sources-4.8.12-gentoo-r1 as dom0 kernel. Compiled
with gcc set to x86_64-pc-linux-gnu-5.4.0 .


Apart from that seems to be running nicely, in early test :-)


_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxx
https://lists.xen.org/xen-devel

 


Rackspace

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