[vbox-dev] VirtualBox-5.1.20a fails to compile - linux 32-bit
klaus.espenlaub at oracle.com
Tue May 2 10:04:46 UTC 2017
On 28.04.2017 16:24, John Frankish wrote:
>>> if readelf -S /usr/src/VirtualBox-5.1.20/out/linux.x86/release/obj/tstLdrObjR0/tstLdrObjR0.r0|grep -q "[cd]tors"; then echo "Found ctors/dtors in > > /usr/src/VirtualBox-5.1.20/out/linux.x86/release/obj/tstLdrObjR0/tstLdrObjR0.r0!"; exit 1; fi
>>> /etc/init.d/tc-functions: 72: Syntax error: Bad substitution
>>> kmk: *** [/usr/src/VirtualBox-5.1.20/out/linux.x86/release/obj/tstLdrObjR0/tstLdrObjR0.r0] Error 2
>>> kmk: *** Deleting file `/usr/src/VirtualBox-5.1.20/out/linux.x86/release/obj/tstLdrObjR0/tstLdrObjR0.r0'
>>> kmk: *** [/usr/src/VirtualBox-5.1.20/out/linux.x86/release/obj/tstLdrObjR0/tstLdrObjR0.r0] Deleting file `/usr/src/VirtualBox-
>>> I have not been able to fix the one above.
>> you get a lot of
>> /etc/init.d/tc-functions: 72: Syntax error: Bad substitution
>> I could only find out that this file is related to Tiny Core Linux, but
>> not what it does (especially not why the heck it gets executed all the
>> time as part of executing kmk recipes - the SHELL variable should be
>> pointing to kmk_ash, and I wouldn't see why it would look at this file).
>> I suspect that this causes a lot of confusion (and it's very obviously
>> totally unrelated to VirtualBox)...
> Indeed, the $SHELL variable looks to be the problem:
> $ echo $PATH
> $ which kmk_ash
> $ echo $SHELL
> ..but shouldn't "source ./env.sh" take care of that?
> What is the best way to set $SHELL, so that "kmk all" works?
The shell's SHELL variable should play absolutely no role with
kmk/kBuild, since it is overriding it with kmk_ash (unless the user
overrides it explicitly in the command line). This seems to work well,
except for your setup/system.
I wonder what you get as the output of "kmk -p" (will produce a LOT of
output to stdout), especially for the SHELL and MAKESHELL variables and
the comment line immediately before both. They should both be defined by
What's the complete kmk command line you are using?
More information about the vbox-dev