Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 19 Apr 2012 15:50:14 +1000
From:      Petro Rossini <petro.rossini@gmail.com>
To:        AN <andy@neu.net>
Cc:        freebsd-emulation@freebsd.org
Subject:   Re: VBox upgrade fails
Message-ID:  <CAExkqpdwroWXqQ364PGyJiLeTVeAPN6H-rjORtXJwAVojCUT3g@mail.gmail.com>
In-Reply-To: <alpine.BSF.2.00.1204181553380.34141@mail.neu.net>
References:  <alpine.BSF.2.00.1204172001310.30965@mail.neu.net> <CAExkqpeOFVb-NuUk_xYfYwHfRceR3DA_Y-xxvOyJqB3Jo5XP1w@mail.gmail.com> <alpine.BSF.2.00.1204172024370.30965@mail.neu.net> <4F8E0C85.7010605@gmail.com> <alpine.BSF.2.00.1204181553380.34141@mail.neu.net>

next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, Apr 19, 2012 at 6:02 AM, AN <andy@neu.net> wrote:
>
> # portupgrade -va
> ---> =A0Session started at: Wed, 18 Apr 2012 15:56:15 -0400
> ---> =A0Upgrade of emulators/virtualbox-ose-kmod started at: Wed, 18 Apr =
2012
> 15:57:23 -0400
> ---> =A0Upgrading 'virtualbox-ose-kmod-4.1.8_1' to
> 'virtualbox-ose-kmod-4.1.12' (emulators/virtualbox-ose-kmod)
> ---> =A0Build of emulators/virtualbox-ose-kmod started at: Wed, 18 Apr 20=
12
> 15:57:23 -0400
> ---> =A0Building '/usr/ports/emulators/virtualbox-ose-kmod'
> =3D=3D=3D> =A0Cleaning for virtualbox-ose-kmod-4.1.12
> cd
> /usr/ports/emulators/virtualbox-ose-kmod/work/VirtualBox-4.1.12/out/freeb=
sd.amd64/release/bin/src
> && make SYSDIR=3D/usr/src/sys
> *** Building 'vboxdrv' module ***
> "/usr/share/mk/bsd.own.mk", line 483: MK_CLANG_IS_CC can't be set by a us=
er.
> *** [all] Error code 1
>
> I think it is a problem with the file /usr/share/mk/bsd.own.mk. =A0I will
> send a message to the ports list.

I looked into it.

I tend to believe that the VirtualBox patches for FreeBSD modifying
the Makefiles are the problem.

[root@DellT410two /usr/ports/emulators/virtualbox-ose-kmod]# find .
-type f -exec fgrep -H MK_CLANG_IS_CC  {} \;
./files/patch-src_VBox_HostDrivers_VBoxNetAdp_freebsd_Makefile:+MK_CLANG_IS=
_CC
?=3D no
./files/patch-src_VBox_HostDrivers_Support_freebsd_Makefile:+MK_CLANG_IS_CC
?=3D no
./files/patch-src_VBox_HostDrivers_VBoxNetFlt_freebsd_Makefile:+MK_CLANG_IS=
_CC
?=3D no

According to http://www.freebsd.org/cgi/cvsweb.cgi/src/share/mk/bsd.own.mk,
Revision 1.107.2.5,

this parameter decides whether the CLANG compiler is installed as /usr/bin/=
cc.

VirtualBox does not install the cc (that's done by installworld of the
base system build) so to set the variable here does not make sense to
me.

Regards
Peter



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAExkqpdwroWXqQ364PGyJiLeTVeAPN6H-rjORtXJwAVojCUT3g>