From: "John L. Poole" Subject: Re: [BUG] Xen-4.8.0 efi/buildid.o: file not recognized/Ambiguous Date: Thu, 8 Dec 2016 11:35:06 -0800 Message-ID: <31853fb4-a761-876a-9278-2938a382cc22@gmail.com> References: <67b30376-49cb-3d16-c208-6bba78b5ecc1@gmail.com> <58484C180200007800126701@prv-mh.provo.novell.com> Reply-To: jlpoole56@gmail.com Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============2362464054655477677==" Return-path: In-Reply-To: <58484C180200007800126701@prv-mh.provo.novell.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Errors-To: xen-devel-bounces@lists.xen.org Sender: "Xen-devel" To: Jan Beulich Cc: xen-devel@lists.xen.org List-Id: xen-devel@lists.xenproject.org This is a multi-part message in MIME format. --===============2362464054655477677== Content-Type: multipart/alternative; boundary="------------093FC8E1F3629EB6DB55B89F" This is a multi-part message in MIME format. --------------093FC8E1F3629EB6DB55B89F Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit On 12/7/2016 8:51 AM, Jan Beulich wrote: >>>> On 07.12.16 at 16:57, 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. John --------------093FC8E1F3629EB6DB55B89F Content-Type: text/html; charset=windows-1252 Content-Transfer-Encoding: 8bit



On 12/7/2016 8:51 AM, Jan Beulich wrote:
On 07.12.16 at 16:57, <jlpoole56@gmail.com> 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.

John

--------------093FC8E1F3629EB6DB55B89F-- --===============2362464054655477677== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KWGVuLWRldmVs IG1haWxpbmcgbGlzdApYZW4tZGV2ZWxAbGlzdHMueGVuLm9yZwpodHRwczovL2xpc3RzLnhlbi5v cmcveGVuLWRldmVsCg== --===============2362464054655477677==--