Page 1 of 1

Failed to compile VirtualBox 4.3.30 x64 on Win10 x64

Posted: 23. Aug 2015, 06:12
by zhangbo
hello,

I just failed to compile VirtualBox 4.3.30 x64 on Win10 x64, the error is:
D:\VirtualBox-4.3.30\kBuild\footer-pass2-installs.kmk:67: *** invalid syntax in conditional. Stop.

Any hints ? thanks. error log attached

Re: Failed to compile VirtualBox 4.3.30 x64 on Win10 x64

Posted: 23. Aug 2015, 08:22
by zhangbo
I just solved it by removing the "local" keyword from file D:\VirtualBox-4.3.30\kBuild\footer-pass2-installs.kmk, as the following.
It seems that "srcsrc" variable is re-defined.

ifneq ($(defpath),)
local srcsrc := $(abspathex $(srcsrc),$(defpath))
endif

Re: Failed to compile VirtualBox 4.3.30 x64 on Win10 x64

Posted: 23. Aug 2015, 11:05
by zhangbo
Too bad, I got another error:

kBuild: moc VBoxDbg - D:/vbx/src/VBox/Debugger/VBoxDbgGui.h
C:/Users/ADMINI~1/AppData/Local/Temp/make11364-1.sh: 1: Syntax error: "(" unexpected
kBuild: moc VBoxDbg - D:/vbx/src/VBox/Debugger/VBoxDbgConsole.h
kmk: *** [D:/vbx/out/win.amd6C:/Users/ADMINI~1/AppData/Local/Temp/make11364-2.sh: 1: Syntax error: "(" unexpected

Re: Failed to compile VirtualBox 4.3.30 x64 on Win10 x64

Posted: 23. Aug 2015, 12:42
by zhangbo
solved. It's due to the lack of short path name for "D:\Program Files (x86)\Microsoft Visual Studio 10.0".
Just run "fsutil behavior set disable8dot3 0" with admin rights, rename and recreate that directory.

New error appeared:

kBuild: Pass - Staging
kmk: *** No rule to make target `tstVBoxAPIWin.cpp', needed by `D:/VirtualBox-4.3.30/out/win.amd64/release/bin/sdk/bindings/tstShflSizes: TESTING
msctstShflSizes: SUCCESS
om/samples/tstVBoxAPIWin.cpp'. Stop.
kmk: *** Waiting for unfinished jobs....
kmk: *** Exiting with status 2