Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 28 Apr 2014 10:56:02 -0700
From:      Kevin Oberman <rkoberman@gmail.com>
To:        Miroslav Lachman <000.fbsd@quip.cz>
Cc:        vbox@freebsd.org, Jason Selwitz <jselwitz@verizon.net>
Subject:   Re: FreeBSD Port: emulators/virtualbox-ose
Message-ID:  <CAN6yY1sCXdbhMf-BVP9drj6Y4SnjTEsCeOCetSxb7BsSwRPBWA@mail.gmail.com>
In-Reply-To: <535E55DA.4050608@quip.cz>
References:  <535B48F2.4050201@verizon.net> <CAB7-od=1pi6FRn8ur4w36EoD_LX_cb7A1t0e13P%2Bcpd6KOjeOA@mail.gmail.com> <535D3019.7050701@verizon.net> <CAN6yY1vk%2BNPuCgFY7w3%2B5mOBEv13qC7KeM9PNoMJ=GtRJUSmyA@mail.gmail.com> <535E55DA.4050608@quip.cz>

next in thread | previous in thread | raw e-mail | index | archive | help
On Mon, Apr 28, 2014 at 6:21 AM, Miroslav Lachman <000.fbsd@quip.cz> wrote:

> Kevin Oberman wrote:
>
>> On Sun, Apr 27, 2014 at 9:28 AM, Jason Selwitz<jselwitz@verizon.net>
>>  wrote:
>>
>
> [...]
>
>
>  I don't see an error there. Was this run with MAKE_JOBS_UNSAFE=yes? If
>> not,
>> the error came from some other job and is in earlier (perhaps much
>> earlier)
>> output.
>>
>
> Just for the record...
> I tried to compile VirtualBox on FreeBSD 10.0 last week. The compilation
> always failed until I set DISABLE_MAKE_JOBS=true. Then it went OK.
>
> I have error messages from compilation:
>
> First attempt:
>
> x-4.3.10/src/VBox/Runtime/common/zip/gzipvfs.cpp
> kBuild: Compiling RuntimeBldProg - /usr/ports/emulators/
> virtualbox-ose/work/VirtualBox-4.3.10/src/VBox/Runtime/common/zip/zip.cpp
> /usr/ports/emulators/virtualbox-ose/work/VirtualBox-4.3.10/src/VBox/
> Runtime/common/zip/tarcmd.cpp:165:49: warning:
>       expression result unused [-Wunused-value]
>     for (uint32_t iName = 0; papszNames[iName]; iName)
>                                                 ^~~~~
> kBuild: Compiling RuntimeBldProg - /usr/ports/emulators/
> virtualbox-ose/work/VirtualBox-4.3.10/src/VBox/Runtime/generic/createtemp-
> generic.cpp
> ..
> ..
> kBuild: Compiling RuntimeBldProg - /usr/ports/emulators/
> virtualbox-ose/work/VirtualBox-4.3.10/src/VBox/
> Runtime/common/asm/ASMRdMsrEx.asm
> kBuild: Compiling RuntimeBldProg - /usr/ports/emulators/
> virtualbox-ose/work/VirtualBox-4.3.10/src/VBox/
> Runtime/common/asm/ASMWrMsrEx.asm
> *** Signal 11
>
>
> Stop.
> make[1]: stopped in /usr/ports/emulators/virtualbox-ose
> *** Error code 1
>
> Stop.
> make: stopped in /usr/ports/emulators/virtualbox-ose
>
> ===>>> make failed for emulators/virtualbox-ose
> ===>>> Aborting update
>
> ===>>> Update for emulators/virtualbox-ose failed
> ===>>> Aborting update
>
>
>
> Second attempt:
>
> kBuild: Compiling RuntimeBldProg - /usr/ports/emulators/
> virtualbox-ose/work/VirtualBox-4.3.10/src/VBox/Runtime/generic/
> RTFileQuerySize-generic.cpp
> kBuild: Compiling RuntimeBldProg - /usr/ports/emulators/
> virtualbox-ose/work/VirtualBox-4.3.10/src/VBox/
> Runtime/generic/RTFileReadAll-generic.cpp
> *** Signal 11
>
>
> Stop.
> make[1]: stopped in /usr/ports/emulators/virtualbox-ose
> *** Error code 1
>
> Stop.
> make: stopped in /usr/ports/emulators/virtualbox-ose
>
> ===>>> make failed for emulators/virtualbox-ose
> ===>>> Aborting update
>
> ===>>> Update for emulators/virtualbox-ose failed
> ===>>> Aborting update
>
>
> On thinrd attempt, I added DISABLE_MAKE_JOBS=true ad compilation was
> successful. I don't know why it got Signal 11 before.
>
> Miroslav Lachman
>

This indicates that the build, when split into multiple jobs to build
faster on mufti-processor systems fails. This is almost always a race
condition where the result of one job is needed by another, but has not
completed in time. This would explain why everyone does not see this issue.
Options can also trigger this.

The point of building with DISABLE_MAKE_JOBS=true (or MAKE_JOBS_UNSAFE=yes)
is to serialize the build to avoid such cases and toi assure that error
messages are all together with the log of the build that generated them. I
erred in suggesting MAKE_JOBS_UNSAFE-yes. It is for use in a port's
Makefile when it is known to have an issue with multi-job builds.
DISABLE_MAKE_JOBS=true is the variable for a user to force serial builds.
Sorry for the error!
-- 
R. Kevin Oberman, Network Engineer, Retired
E-mail: rkoberman@gmail.com



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