atom feed13 messages in org.freebsd.freebsd-emulationRe: VBox upgrade fails
FromSent OnAttachments
ANApr 17, 2012 5:03 pm 
Petro RossiniApr 17, 2012 5:12 pm 
ANApr 17, 2012 5:25 pm 
mattApr 17, 2012 5:35 pm 
Mario LoboApr 17, 2012 7:13 pm 
Petro RossiniApr 17, 2012 10:27 pm 
ANApr 18, 2012 1:02 pm 
Petro RossiniApr 18, 2012 10:09 pm 
Petro RossiniApr 18, 2012 10:49 pm 
ANApr 19, 2012 12:33 am 
Bernhard FroehlichApr 19, 2012 12:38 am 
Petro RossiniApr 19, 2012 5:10 pm 
Bernhard FroehlichApr 20, 2012 1:02 am 
Subject:Re: VBox upgrade fails
From:AN (an@neu.net)
Date:Apr 18, 2012 1:02:30 pm
List:org.freebsd.freebsd-emulation

On Tue, 17 Apr 2012, matt wrote:

On 04/17/12 17:25, AN wrote:

On Wed, 18 Apr 2012, Petro Rossini wrote:

On Wed, Apr 18, 2012 at 10:03 AM, AN <an@neu.net> wrote:

Trying to update VBox fails with:

# portsnap fetch update # pkg_version -vl\< virtualbox-ose-4.1.8 < needs updating (port has 4.1.12) .. *** Building 'vboxdrv' module *** "/usr/share/mk/bsd.own.mk", line 483: MK_CLANG_IS_CC can't be set by a user. *** [all] Error code 1

Stop in /usr/ports/emulators/virtualbox-ose-kmod/work/VirtualBox-4.1.12/out/freebsd.amd64/release/bin/src. *** [do-build] Error code 1

That looks very similar to the compile error I had before on a FreeBSD-8 system. I upgraded to FreeBSD-9 and did not see the error anymore.

I suspect compiling on FreebSD-8 is broken.

Is your system FreeBSD-8 or 9?

I am on 10-current.

FreeBSD FBSD10 10.0-CURRENT FreeBSD 10.0-CURRENT #11 r234399: Tue Apr 17 18:15:12 EDT 2012 root@FBSD10:/usr/obj/usr/src/sys/MYKERNEL amd64

Are you at the very latest CURRENT? Are you csup'd or portsnapped to the latest ports tree?

Are you trying to build with clang?

For what it's worth the only compiler that will build virtualbox-ose is base cc, however I have built the kmods with clang and base cc. If you have csup'd recently, can you post your make.conf?

I didn't have any problems with 4.1.12 on last week's CURRENT...I didn't try with clang however.

I upgraded to current yesterday: # uname -a FreeBSD FBSD10 10.0-CURRENT FreeBSD 10.0-CURRENT #11 r234399: Tue Apr 17 18:15:12 EDT 2012 root@FBSD10:/usr/obj/usr/src/sys/MYKERNEL amd64

Using the standard system compiler.

# date Wed Apr 18 15:55:18 EDT 2012 [root@FBSD10 ~]# portsnap fetch update Looking up portsnap.FreeBSD.org mirrors... 4 mirrors found. Fetching snapshot tag from portsnap5.FreeBSD.org... done. Latest snapshot on server matches what we already have. No updates needed. Ports tree is already up to date.

# portupgrade -va ---> Session started at: Wed, 18 Apr 2012 15:56:15 -0400 ---> Upgrade of emulators/virtualbox-ose-kmod started at: Wed, 18 Apr 2012 15:57:23 -0400 ---> Upgrading 'virtualbox-ose-kmod-4.1.8_1' to 'virtualbox-ose-kmod-4.1.12' (emulators/virtualbox-ose-kmod) ---> Build of emulators/virtualbox-ose-kmod started at: Wed, 18 Apr 2012 15:57:23 -0400 ---> Building '/usr/ports/emulators/virtualbox-ose-kmod' ===> Cleaning for virtualbox-ose-kmod-4.1.12 cd /usr/ports/emulators/virtualbox-ose-kmod/work/VirtualBox-4.1.12/out/freebsd.amd64/release/bin/src && make SYSDIR=/usr/src/sys *** Building 'vboxdrv' module *** "/usr/share/mk/bsd.own.mk", line 483: MK_CLANG_IS_CC can't be set by a user. *** [all] Error code 1

Stop in /usr/ports/emulators/virtualbox-ose-kmod/work/VirtualBox-4.1.12/out/freebsd.amd64/release/bin/src. *** [do-build] Error code 1

Stop in /usr/ports/emulators/virtualbox-ose-kmod. *** [build] Error code 1

Stop in /usr/ports/emulators/virtualbox-ose-kmod. ** Command failed [exit code 1]: /usr/bin/script -qa /tmp/portupgrade20120418-78849-1dapkc2-0 env UPGRADE_TOOL=portupgrade UPGRADE_PORT=virtualbox-ose-kmod-4.1.8_1 UPGRADE_PORT_VER=4.1.8_1 make ** Fix the problem and try again. ---> Build of emulators/virtualbox-ose-kmod ended at: Wed, 18 Apr 2012 15:57:45 -0400 (consumed 00:00:21)