Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 500064 - app-emulation/virtualbox-4.3.6 fails to build with gcc 4.8.x in bundled iPXE
Summary: app-emulation/virtualbox-4.3.6 fails to build with gcc 4.8.x in bundled iPXE
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Lars Wendler (Polynomial-C) (RETIRED)
URL: https://git.ipxe.org/ipxe.git/commit/...
Whiteboard:
Keywords:
Depends on: CVE-2014-6540
Blocks: gcc-4.8
  Show dependency tree
 
Reported: 2014-02-02 11:07 UTC by Tiziano Müller (RETIRED)
Modified: 2015-12-28 18:26 UTC (History)
2 users (show)

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


Attachments
Fix building iPXE with gcc-4.8+ (VirtualBox-4.3.6-gcc-4.8.patch,9.05 KB, patch)
2014-02-02 11:07 UTC, Tiziano Müller (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Tiziano Müller (RETIRED) gentoo-dev 2014-02-02 11:07:28 UTC
Created attachment 369328 [details, diff]
Fix building iPXE with gcc-4.8+

[...]
kmk_builtin_append -n "/var/tmp/paludis/app-emulation-virtualbox-4.3.6/work/VirtualBox-4.3.6/out/linux.amd64/release/obj/iPxeBaseBin/src/arch/i386/firmware/pcbios/hidemem.o.dep" "" "/var/tmp/paludis/app-emulation-virtualbox-4.3.6/work/VirtualBox-4.3.6/src/VBox/Devices/PC/ipxe/src/arch/i386/firmware/pcbios/hidemem.c:" ""
/var/tmp/paludis/app-emulation-virtualbox-4.3.6/work/VirtualBox-4.3.6/src/VBox/Devices/PC/ipxe/src/arch/i386/firmware/pcbios/bios_console.c: In function ‘bios_putchar’:
/var/tmp/paludis/app-emulation-virtualbox-4.3.6/work/VirtualBox-4.3.6/src/VBox/Devices/PC/ipxe/src/arch/i386/firmware/pcbios/bios_console.c:195:1: error: bp cannot be used in asm here
 }
 ^
/var/tmp/paludis/app-emulation-virtualbox-4.3.6/work/VirtualBox-4.3.6/src/VBox/Devices/PC/ipxe/src/arch/i386/firmware/pcbios/bios_console.c:195:1: error: bp cannot be used in asm here
kmk: *** [/var/tmp/paludis/app-emulation-virtualbox-4.3.6/work/VirtualBox-4.3.6/out/linux.amd64/release/obj/iPxeBaseBin/src/arch/i386/firmware/pcbios/bios_console.o] Error 1
kmk: *** Waiting for unfinished jobs....
[...]

The problem is in the bundled iPXE sources, see URL.

Unfortunately, the bundled iPXE sources seem to be outdated and therefore the iPXE patches need some work before they apply.

Attached is the patch I came up with, based on the following two from iPXE upstream:

https://git.ipxe.org/ipxe.git/commit/cba22d36b77da53890bd65fdadd0e63925687af0
https://git.ipxe.org/ipxe.git/commit/238050dfd46e3c4a87329da1d48b4d8dde5af8a1

could not do any testing yet, though.

This bug is basically a dupe of bug #475270
Comment 1 Peter Volkov (RETIRED) gentoo-dev 2014-07-21 10:23:33 UTC
Reported upstream: https://www.virtualbox.org/ticket/13227
Comment 2 Andreas Sturmlechner gentoo-dev 2014-08-17 14:22:26 UTC
fixed in upstream SVN
Comment 3 Anthony Basile gentoo-dev 2014-10-10 23:07:47 UTC
@Polynomia-C, can we get this in because this bug is blocking gcc-4.8.
Comment 4 Lars Wendler (Polynomial-C) (RETIRED) gentoo-dev 2014-10-11 08:05:57 UTC
(In reply to Anthony Basile from comment #3)
> @Polynomia-C, can we get this in because this bug is blocking gcc-4.8.

According to the upstream bug this is fixed in virtualbox-4.3.16.
Comment 5 Anthony Basile gentoo-dev 2014-10-11 18:19:21 UTC
(In reply to Lars Wendler (Polynomial-C) from comment #4)
> (In reply to Anthony Basile from comment #3)
> > @Polynomia-C, can we get this in because this bug is blocking gcc-4.8.
> 
> According to the upstream bug this is fixed in virtualbox-4.3.16.

Should we have <virtualbox-4.3.16 depend on <gcc-4.8?
Comment 6 Lars Wendler (Polynomial-C) (RETIRED) gentoo-dev 2014-10-12 16:50:20 UTC
(In reply to Anthony Basile from comment #5)
> (In reply to Lars Wendler (Polynomial-C) from comment #4)
> > (In reply to Anthony Basile from comment #3)
> > > @Polynomia-C, can we get this in because this bug is blocking gcc-4.8.
> > 
> > According to the upstream bug this is fixed in virtualbox-4.3.16.
> 
> Should we have <virtualbox-4.3.16 depend on <gcc-4.8?

I'd prefer stabilizing virtualbox-4.3.18 packages (all seven) alongside with gcc-4.8
Comment 7 Lars Wendler (Polynomial-C) (RETIRED) gentoo-dev 2014-10-12 18:28:13 UTC
Sorry, I meant virtualbox-4.3.16 in my previous comment, not -4.3.18 (which is way too new at the moment).
Comment 8 Anthony Basile gentoo-dev 2014-10-18 16:46:13 UTC
(In reply to Lars Wendler (Polynomial-C) from comment #6)
> (In reply to Anthony Basile from comment #5)
> > (In reply to Lars Wendler (Polynomial-C) from comment #4)
> > > (In reply to Anthony Basile from comment #3)
> > > > @Polynomia-C, can we get this in because this bug is blocking gcc-4.8.
> > > 
> > > According to the upstream bug this is fixed in virtualbox-4.3.16.
> > 
> > Should we have <virtualbox-4.3.16 depend on <gcc-4.8?
> 
> I'd prefer stabilizing virtualbox-4.3.18 packages (all seven) alongside with
> gcc-4.8

(In reply to Lars Wendler (Polynomial-C) from comment #7)
> Sorry, I meant virtualbox-4.3.16 in my previous comment, not -4.3.18 (which
> is way too new at the moment).

That's good enough for me.  Als long as nothing more needs to be done here to unblock gcc-4.8 we're good.
Comment 9 SpanKY gentoo-dev 2015-12-28 18:26:08 UTC
affected versions are no longer in the tree, and gcc-4.9 is stable now