Summary: | emulators/virtualbox-ose-kmod fails to build on freebsd10/i386 | ||||||||
---|---|---|---|---|---|---|---|---|---|
Product: | Ports & Packages | Reporter: | Dmitry Afanasiev <KOT> | ||||||
Component: | Individual Port(s) | Assignee: | Virtualbox Team (Nobody) <vbox> | ||||||
Status: | Closed FIXED | ||||||||
Severity: | Affects Only Me | ||||||||
Priority: | Normal | ||||||||
Version: | Latest | ||||||||
Hardware: | Any | ||||||||
OS: | Any | ||||||||
Attachments: |
|
Description
Dmitry Afanasiev
2013-11-07 06:30:00 UTC
Responsible Changed From-To: freebsd-ports-bugs->vbox Over to maintainer (via the GNATS Auto Assign Tool) Could you please try to verify that this issue still exists on FreeBSD 10.0-BETA3 because I tried it and it worked fine. It might be that this was header pollution was fixed in the base system already. --=20 Bernhard Fr=F6hlich http://www.bluelife.at/ On 13.11.2013 19:55, Bernhard Fröhlich wrote: > Could you please try to verify that this issue still exists on FreeBSD > 10.0-BETA3 > because I tried it and it worked fine. It might be that this was > header pollution was > fixed in the base system already. Did you tried to build port on _i386_ platform? I updated system to 10.0-BETA3 #0 r258159 and problem still exists. make output attached. Also I checked latest available source code for x86/specialreg.h at http://svnweb.freebsd.org/base/stable/10/sys/x86/include/specialreg.h?view=markup And, for example, I see MSR_IA32_PLATFORM_ID's declaration at line 350. I think, root cause of errors is predefining in VirtualBox's include/iprt/x86.h of some new defines in x86/specialreg.h. I have tried to reproduce that on FreeBSD 10.0-RC1/i386 and It seems to hav= e been fixed. Could someone please verify that? https://redports.org/buildarchive/20131216141726-28728/ --=20 Bernhard Fr=F6hlich http://www.bluelife.at/ Same problem on 9.2-STABLE of yesterday, unable to build -kmod. Created a patch inspired on this PR but I'm not able to apply automatically simply adding to files/, maybe because the port redirect some variables to ../virtualbox-ose, anyway using the same patch syntax from CLI (I only removed --quiet): # make clean extract # patch -d /usr/ports/emulators/virtualbox-ose-kmod/work/VirtualBox-4.3.8 --forward -E -p0 -V simple --suffix .orig < files/patch-include-iprt-x86.h -----8<----- Hmm... Looks like a unified diff to me... The text leading up to this was: -------------------------- |--- include/iprt/x86.h.orig 2014-02-25 17:59:50.000000000 +0100 |+++ include/iprt/x86.h 2014-03-12 14:14:44.000000000 +0100 -------------------------- Patching file include/iprt/x86.h using Plan A... Hunk #1 succeeded at 923. Hunk #2 succeeded at 1003. Hunk #3 succeeded at 1051. done -----8<----- # make patch build install I can complete the port but now I have errors on main -ose :-( Attached there is a working (for build/install) patch, not sure if doesn't reboot when loaded, do not try on production machines ;) # uname -a FreeBSD tiger.fi.esaote.it 9.2-STABLE FreeBSD 9.2-STABLE #31 r262976: Mon Mar 10 19:29:01 CET 2014 root@tiger.fi.esaote.it:/usr/obj/usr/src/sys/TIGER i386 -- Riccardo. On Wed, Mar 12, 2014 at 05:12:31PM +0100, Riccardo Torrini wrote: > Same problem on 9.2-STABLE ... Created a patch ... A really really better patch than mine is linked from PR 187444 (specific for version 9), now it compile but same panic/reboot... http://www.freebsd.org/cgi/query-pr.cgi?pr=ports/187444 https://svn.redports.org/virtualbox/emulators/virtualbox-ose/files/patch-include-iprt-x86.h -- Riccardo. Author: jkim Date: Thu Mar 13 17:41:51 2014 New Revision: 348107 URL: http://svnweb.freebsd.org/changeset/ports/348107 QAT: https://qat.redports.org/buildarchive/r348107/ Log: Work around build problems on recent stable/9. PR: ports/183739 Added: head/emulators/virtualbox-ose/files/patch-include-iprt-x86.h (contents, props changed) Added: head/emulators/virtualbox-ose/files/patch-include-iprt-x86.h ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/emulators/virtualbox-ose/files/patch-include-iprt-x86.h Thu Mar 13 17:41:51 2014 (r348107) @@ -0,0 +1,18 @@ +--- include/iprt/x86.h.orig 2014-02-25 11:59:50.000000000 -0500 ++++ include/iprt/x86.h 2014-03-11 16:46:08.000000000 -0400 +@@ -35,6 +35,15 @@ + # pragma D depends_on library vbox-types.d + #endif + ++/* Workaround for FreeBSD machine/specialreg.h defining MSRs */ ++#ifdef RT_OS_FREEBSD ++# undef MSR_P5_MC_ADDR ++# undef MSR_P5_MC_TYPE ++# undef MSR_IA32_PLATFORM_ID ++# undef MSR_BBL_CR_CTL3 ++# undef MSR_IA32_MISC_ENABLE ++#endif ++ + /* Workaround for Solaris sys/regset.h defining CS, DS */ + #ifdef RT_OS_SOLARIS + # undef CS _______________________________________________ svn-ports-all@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/svn-ports-all To unsubscribe, send any mail to "svn-ports-all-unsubscribe@freebsd.org" State Changed From-To: open->closed The fix was committed as r348107. Thanks! |