Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 649048 - app-emulation/xen-4.9.1-r1 fails to compile of UEFI motherboard
Summary: app-emulation/xen-4.9.1-r1 fails to compile of UEFI motherboard
Status: RESOLVED DUPLICATE of bug 602052
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: Other Linux
: Normal normal (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-02-28 17:12 UTC by John L. Poole
Modified: 2018-03-01 22:08 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
build log (xen_build.log,543.55 KB, text/plain)
2018-02-28 17:14 UTC, John L. Poole
Details
emerge info (xen_emerge_info.log,4.95 KB, text/plain)
2018-02-28 17:15 UTC, John L. Poole
Details
environment (xen_environment.log,125.04 KB, text/plain)
2018-02-28 17:15 UTC, John L. Poole
Details
Patch for placement in /etc/portage/patches/app-emulation/xen (xen-4.9.1-r1_coff-x86-64.patch,4.83 KB, text/plain)
2018-03-01 22:08 UTC, John L. Poole
Details

Note You need to log in before you can comment on or make changes to this bug.
Description John L. Poole 2018-02-28 17:12:56 UTC
I have a UEFI based motherboard: https://www.supermicro.com/products/motherboard/ATOM/X10/A1SAi-2750F.cfm
and I am attempting upgrade Xen.  

Building is failing at a stage where binutils squawks and stops the build:

     efi/buildid.o: file not recognized: File format is ambiguous
     efi/buildid.o: matching formats: coff-x86-64 pe-x86-64


When I built this server around December 2016, I ran into this same problem and I consulted the Xen list and learned this may be a bug in binutils.  

See:  https://lists.xenproject.org/archives/html/xen-devel/2016-12/msg00815.html

I worked around this by installing my own binutils forcing it to utilize one of the file formats above or creating my own package, I do not remember.  Since I'm coming onto the problem again more than a year later, I think this may affect anyone else trying to install xen on a UEFI based system.

Unfortunately, my life in the last year has been complicated and I have not been able to keep the server running, so I took it off-line.  Now I am in the process of resurrecting it.  I've updated everything and the only thing left to upgrade is Xen. 

I think this may be a bug better assigned to sys-devel/binutils-2.29.1-r1, but we'll start here.


# emerge -pqv '=app-emulation/xen-4.9.1-r1::gentoo'[ebuild     U ] app-emulation/xen-4.9.1-r1 [4.8.0] USE="efi flask -custom-cflags -debug"

Logs to follow.
Comment 1 John L. Poole 2018-02-28 17:14:56 UTC
Created attachment 521396 [details]
build log
Comment 2 John L. Poole 2018-02-28 17:15:14 UTC
Created attachment 521398 [details]
emerge info
Comment 3 John L. Poole 2018-02-28 17:15:31 UTC
Created attachment 521400 [details]
environment
Comment 4 Tomáš Mózes 2018-02-28 20:15:32 UTC

*** This bug has been marked as a duplicate of bug 602052 ***
Comment 5 Tomáš Mózes 2018-02-28 20:16:34 UTC
Your patch attached to #602052 still works as a workaround.
Comment 6 John L. Poole 2018-03-01 22:08:42 UTC
Created attachment 521790 [details]
Patch for placement in /etc/portage/patches/app-emulation/xen

This patch is for the /etc/portage/patches/app-emulation/xen approach to patching, whereas my previous patch in Bug #602052 was for the Portage Overlay approach.