Windows build error: Conflicting types for 'RTASSERTVAR'

Discussions related to using the OSE version of VirtualBox.

Windows build error: Conflicting types for 'RTASSERTVAR'

Postby petyr72 » 26. Jun 2016, 21:35

I'm trying to build VirtualBox 5.0.22 on a Windows OS (Windows 10 x64), following the instructions from the wiki.
The configuration script runs without problems, but when trying to run the 'kmk'-command, it eventually gets stuck. Here's the log where the error occurs:
Code: Select all   Expand viewCollapse view
C:\Users\*****\Documents\Projects\VirtualBoxSDK>kmk > kmk.log
Config.kmk:2579: C:/Users/*****/Documents/Projects/VirtualBoxSDK/out/win.x86/release/DynamicConfig.kmk: No such file or directory
Config.kmk:6265: C:/Users/*****/Documents/Projects/VirtualBoxSDK/out/win.x86/release/revision.kmk: No such file or directory
C:/Users/*****/Documents/Projects/VirtualBoxSDK/src/VBox/Main/webservice/Makefile.kmk:105: VBOX_PATH_GSOAP not found...
C:/Users/*****/Documents/Projects/VirtualBoxSDK/src/VBox/Main/Makefile.kmk:212: C:/Users/*****/Documents/Projects/VirtualBoxSDK/out/win.x86/release/vboxapiwrap.kmk: No such file or directory
C:/Users/*****/Documents/Projects/VirtualBoxSDK/kBuild/sdks/W32API.kmk:45: kBuild: PATH_SDK_W32API couldn't be determined!
C:/Users/*****/Documents/Projects/VirtualBoxSDK/src/VBox/Main/webservice/Makefile.kmk:105: VBOX_PATH_GSOAP not found...
C:/Users/*****/Documents/Projects/VirtualBoxSDK/kBuild/sdks/W32API.kmk:45: kBuild: PATH_SDK_W32API couldn't be determined!
cc1plus.exe: warning: command line option "-Werror-implicit-function-declaration" is valid for C/ObjC but not for C++
VirtualBox.idl
unknwn.idl
wtypes.idl
basetsd.h
guiddef.h
oaidl.idl
objidl.idl
oaidl.acf
In file included from C:/Users/*****/Documents/Projects/VirtualBoxSDK/src/recompiler/target-i386/cpu.h:61:0,
                 from C:/Users/*****/Documents/Projects/VirtualBoxSDK/src/recompiler/VBoxRecompiler.c:26:
C:/Users/*****/Documents/Projects/VirtualBoxSDK/include/iprt/critsect.h:91:1: error: conflicting types for 'RTASSERTVAR'
C:/Users/*****/Documents/Projects/VirtualBoxSDK/include/iprt/critsect.h:91:1: note: previous declaration of 'RTASSERTVAR' was here
In file included from C:/Users/*****/Documents/Projects/VirtualBoxSDK/src/recompiler/target-i386/cpu.h:61:0,
                 from C:/Users/*****/Documents/Projects/VirtualBoxSDK/src/recompiler/VBoxRecompiler.c:26:
C:/Users/*****/Documents/Projects/VirtualBoxSDK/include/iprt/critsect.h:431:1: error: conflicting types for 'RTASSERTVAR'
C:/Users/*****/Documents/Projects/VirtualBoxSDK/include/iprt/critsect.h:431:1: note: previous declaration of 'RTASSERTVAR' was here
In file included from C:/Users/*****/Documents/Projects/VirtualBoxSDK/src/recompiler/target-i386/cpu.h:64:0,
                 from C:/Users/*****/Documents/Projects/VirtualBoxSDK/src/recompiler/VBoxRecompiler.c:26:
C:/Users/*****/Documents/Projects/VirtualBoxSDK/include/iprt/asm.h: In function 'ASMAtomicXchgPtr':
C:/Users/*****/Documents/Projects/VirtualBoxSDK/include/iprt/asm.h:513:71: warning: cast from pointer to integer of different size
C:/Users/*****/Documents/Projects/VirtualBoxSDK/include/iprt/asm.h:513:12: warning: cast to pointer from integer of different size
In file included from C:/Users/*****/Documents/Projects/VirtualBoxSDK/src/recompiler/target-i386/cpu.h:64:0,
                 from C:/Users/*****/Documents/Projects/VirtualBoxSDK/src/recompiler/VBoxRecompiler.c:26:
C:/Users/*****/Documents/Projects/VirtualBoxSDK/include/iprt/asm.h: In function 'ASMAtomicXchgR3Ptr':
C:/Users/*****/Documents/Projects/VirtualBoxSDK/include/iprt/asm.h:587:74: warning: cast from pointer to integer of different size
C:/Users/*****/Documents/Projects/VirtualBoxSDK/include/iprt/asm.h:587:12: warning: cast to pointer from integer of different size
C:/Users/*****/Documents/Projects/VirtualBoxSDK/include/iprt/asm.h: In function 'ASMAtomicCmpXchgPtrVoid':
C:/Users/*****/Documents/Projects/VirtualBoxSDK/include/iprt/asm.h:925:66: warning: cast from pointer to integer of different size
C:/Users/*****/Documents/Projects/VirtualBoxSDK/include/iprt/asm.h:925:83: warning: cast from pointer to integer of different size
C:/Users/*****/Documents/Projects/VirtualBoxSDK/include/iprt/asm.h: In function 'ASMAtomicCmpXchgExPtrVoid':
C:/Users/*****/Documents/Projects/VirtualBoxSDK/include/iprt/asm.h:1281:68: warning: cast from pointer to integer of different size
C:/Users/*****/Documents/Projects/VirtualBoxSDK/include/iprt/asm.h:1281:85: warning: cast from pointer to integer of different size
C:/Users/*****/Documents/Projects/VirtualBoxSDK/include/iprt/asm.h: In function 'ASMAtomicReadPtr':
C:/Users/*****/Documents/Projects/VirtualBoxSDK/include/iprt/asm.h:1794:12: warning: cast to pointer from integer of different size
C:/Users/*****/Documents/Projects/VirtualBoxSDK/include/iprt/asm.h: In function 'ASMAtomicUoReadPtr':
C:/Users/*****/Documents/Projects/VirtualBoxSDK/include/iprt/asm.h:1835:12: warning: cast to pointer from integer of different size
C:/Users/*****/Documents/Projects/VirtualBoxSDK/include/iprt/asm.h: In function 'ASMAtomicWritePtrVoid':
C:/Users/*****/Documents/Projects/VirtualBoxSDK/include/iprt/asm.h:2221:57: warning: cast from pointer to integer of different size
In file included from C:/Users/*****/Documents/Projects/VirtualBoxSDK/include/VBox/sup.h:36:0,
                 from C:/Users/*****/Documents/Projects/VirtualBoxSDK/include/VBox/vmm/vmm.h:31,
                 from C:/Users/*****/Documents/Projects/VirtualBoxSDK/src/recompiler/target-i386/cpu.h:65,
                 from C:/Users/*****/Documents/Projects/VirtualBoxSDK/src/recompiler/VBoxRecompiler.c:26:
C:/Users/*****/Documents/Projects/VirtualBoxSDK/include/iprt/asm-amd64-x86.h: At top level:In file included from C:/Users/*****/Documents/Projects/VirtualBoxSDK/src/recompiler/target-i386/cpu.h:61:0,
                 from C:/Users/*****/Documents/Projects/VirtualBoxSDK/src/recompiler/qemu-common.h:44,
                 from C:/Users/*****/Documents/Projects/VirtualBoxSDK/src/recompiler/target-i386/exec.h:43,
                 from C:/Users/*****/Documents/Projects/VirtualBoxSDK/src/recompiler/cpu-exec.c:30:
C:/Users/*****/Documents/Projects/VirtualBoxSDK/include/iprt/critsect.h:91:1: error: conflicting types for 'RTASSERTVAR'

C:/Users/*****/Documents/Projects/VirtualBoxSDK/include/iprt/asm-amd64-x86.h:118:1: error: conflicting types for 'RTASSERTVAR'C:/Users/*****/Documents/Projects/VirtualBoxSDK/include/iprt/critsect.h:91:1: note: previous declaration of 'RTASSERTVAR' was here

C:/Users/*****/Documents/Projects/VirtualBoxSDK/include/iprt/asm-amd64-x86.h:118:1: note: previous declaration of 'RTASSERTVAR' was hereIn file included from C:/Users/*****/Documents/Projects/VirtualBoxSDK/src/recompiler/target-i386/cpu.h:61:0,
                 from C:/Users/*****/Documents/Projects/VirtualBoxSDK/src/recompiler/qemu-common.h:44,
                 from C:/Users/*****/Documents/Projects/VirtualBoxSDK/src/recompiler/target-i386/exec.h:43,
                 from C:/Users/*****/Documents/Projects/VirtualBoxSDK/src/recompiler/cpu-exec.c:30:
C:/Users/*****/Documents/Projects/VirtualBoxSDK/include/iprt/critsect.h:431:1: error: conflicting types for 'RTASSERTVAR'

C:/Users/*****/Documents/Projects/VirtualBoxSDK/include/iprt/asm-amd64-x86.h:153:1: error: conflicting types for 'RTASSERTVAR'C:/Users/*****/Documents/Projects/VirtualBoxSDK/include/iprt/critsect.h:431:1: note: previous declaration of 'RTASSERTVAR' was here

C:/Users/*****/Documents/Projects/VirtualBoxSDK/include/iprt/asm-amd64-x86.h:153:1: note: previous declaration of 'RTASSERTVAR' was hereIn file included from C:/Users/*****/Documents/Projects/VirtualBoxSDK/src/recompiler/target-i386/cpu.h:64:0,
                 from C:/Users/*****/Documents/Projects/VirtualBoxSDK/src/recompiler/qemu-common.h:44,
                 from C:/Users/*****/Documents/Projects/VirtualBoxSDK/src/recompiler/target-i386/exec.h:43,
                 from C:/Users/*****/Documents/Projects/VirtualBoxSDK/src/recompiler/cpu-exec.c:30:
C:/Users/*****/Documents/Projects/VirtualBoxSDK/include/iprt/asm.h: In function 'ASMAtomicXchgPtr':

C:/Users/*****/Documents/Projects/VirtualBoxSDK/include/iprt/asm.h:513:71: warning: cast from pointer to integer of different size
C:/Users/*****/Documents/Projects/VirtualBoxSDK/include/iprt/asm.h:513:12: warning: cast to pointer from integer of different size
In file included from C:/Users/*****/Documents/Projects/VirtualBoxSDK/src/recompiler/target-i386/cpu.h:64:0,
                 from C:/Users/*****/Documents/Projects/VirtualBoxSDK/src/recompiler/qemu-common.h:44,
                 from C:/Users/*****/Documents/Projects/VirtualBoxSDK/src/recompiler/target-i386/exec.h:43,
                 from C:/Users/*****/Documents/Projects/VirtualBoxSDK/src/recompiler/cpu-exec.c:30:
C:/Users/*****/Documents/Projects/VirtualBoxSDK/include/iprt/asm.h: In function 'ASMAtomicXchgR3Ptr':In file included from C:/Users/*****/Documents/Projects/VirtualBoxSDK/src/recompiler/target-i386/cpu.h:67:0,
                 from C:/Users/*****/Documents/Projects/VirtualBoxSDK/src/recompiler/VBoxRecompiler.c:26:
C:/Users/*****/Documents/Projects/VirtualBoxSDK/include/VBox/vmm/cpumctx.h:422:1: error: conflicting types for 'RTASSERTVAR'

C:/Users/*****/Documents/Projects/VirtualBoxSDK/include/iprt/asm.h:587:74: warning: cast from pointer to integer of different sizeC:/Users/*****/Documents/Projects/VirtualBoxSDK/include/VBox/vmm/cpumctx.h:422:1: note: previous declaration of 'RTASSERTVAR' was here

C:/Users/*****/Documents/Projects/VirtualBoxSDK/include/iprt/asm.h:587:12: warning: cast to pointer from integer of different size
C:/Users/*****/Documents/Projects/VirtualBoxSDK/include/iprt/asm.h: In function 'ASMAtomicCmpXchgPtrVoid':
C:/Users/*****/Documents/Projects/VirtualBoxSDK/include/iprt/asm.h:925:66: warning: cast from pointer to integer of different size
C:/Users/*****/Documents/Projects/VirtualBoxSDK/include/iprt/asm.h:925:83: warning: cast from pointer to integer of different size
C:/Users/*****/Documents/Projects/VirtualBoxSDK/include/iprt/asm.h: In function 'ASMAtomicCmpXchgExPtrVoid':
C:/Users/*****/Documents/Projects/VirtualBoxSDK/include/iprt/asm.h:1281:68: warning: cast from pointer to integer of different size
C:/Users/*****/Documents/Projects/VirtualBoxSDK/include/iprt/asm.h:1281:85: warning: cast from pointer to integer of different size
C:/Users/*****/Documents/Projects/VirtualBoxSDK/include/iprt/asm.h: In function 'ASMAtomicReadPtr':
C:/Users/*****/Documents/Projects/VirtualBoxSDK/include/iprt/asm.h:1794:12: warning: cast to pointer from integer of different size
C:/Users/*****/Documents/Projects/VirtualBoxSDK/include/iprt/asm.h: In function 'ASMAtomicUoReadPtr':
C:/Users/*****/Documents/Projects/VirtualBoxSDK/include/iprt/asm.h:1835:12: warning: cast to pointer from integer of different size
In file included from C:/Users/*****/Documents/Projects/VirtualBoxSDK/include/iprt/cpuset.h:31:0,
                 from C:/Users/*****/Documents/Projects/VirtualBoxSDK/include/VBox/sup.h:34,
                 from C:/Users/*****/Documents/Projects/VirtualBoxSDK/include/VBox/vmm/pgm.h:30,
                 from C:/Users/*****/Documents/Projects/VirtualBoxSDK/src/recompiler/exec.c:50:
C:/Users/*****/Documents/Projects/VirtualBoxSDK/include/iprt/asm.h: In function 'ASMAtomicXchgPtr':C:/Users/*****/Documents/Projects/VirtualBoxSDK/include/iprt/asm.h: In function 'ASMAtomicWritePtrVoid':In file included from C:/Users/*****/Documents/Projects/VirtualBoxSDK/include/VBox/vmm/iom.h:30:0,
                 from C:/Users/*****/Documents/Projects/VirtualBoxSDK/src/recompiler/VBoxRecompiler.c:36:
C:/Users/*****/Documents/Projects/VirtualBoxSDK/include/VBox/dis.h:643:1: error: conflicting types for 'RTASSERTVAR'


C:/Users/*****/Documents/Projects/VirtualBoxSDK/include/VBox/dis.h:643:1: note: previous declaration of 'RTASSERTVAR' was hereC:/Users/*****/Documents/Projects/VirtualBoxSDK/include/iprt/asm.h:513:71: warning: cast from pointer to integer of different sizeC:/Users/*****/Documents/Projects/VirtualBoxSDK/include/iprt/asm.h:2221:57: warning: cast from pointer to integer of different size


C:/Users/*****/Documents/Projects/VirtualBoxSDK/include/iprt/asm.h:513:12: warning: cast to pointer from integer of different size
In file included from C:/Users/*****/Documents/Projects/VirtualBoxSDK/include/iprt/cpuset.h:31:0,
                 from C:/Users/*****/Documents/Projects/VirtualBoxSDK/include/VBox/sup.h:34,
                 from C:/Users/*****/Documents/Projects/VirtualBoxSDK/include/VBox/vmm/pgm.h:30,
                 from C:/Users/*****/Documents/Projects/VirtualBoxSDK/src/recompiler/exec.c:50:
C:/Users/*****/Documents/Projects/VirtualBoxSDK/include/iprt/asm.h: In function 'ASMAtomicXchgR3Ptr':In file included from C:/Users/*****/Documents/Projects/VirtualBoxSDK/include/VBox/sup.h:36:0,
                 from C:/Users/*****/Documents/Projects/VirtualBoxSDK/include/VBox/vmm/vmm.h:31,
                 from C:/Users/*****/Documents/Projects/VirtualBoxSDK/src/recompiler/target-i386/cpu.h:65,
                 from C:/Users/*****/Documents/Projects/VirtualBoxSDK/src/recompiler/qemu-common.h:44,
                 from C:/Users/*****/Documents/Projects/VirtualBoxSDK/src/recompiler/target-i386/exec.h:43,
                 from C:/Users/*****/Documents/Projects/VirtualBoxSDK/src/recompiler/cpu-exec.c:30:
C:/Users/*****/Documents/Projects/VirtualBoxSDK/include/iprt/asm-amd64-x86.h: At top level:

C:/Users/*****/Documents/Projects/VirtualBoxSDK/include/iprt/asm.h:587:74: warning: cast from pointer to integer of different sizeC:/Users/*****/Documents/Projects/VirtualBoxSDK/include/iprt/asm-amd64-x86.h:118:1: error: conflicting types for 'RTASSERTVAR'

C:/Users/*****/Documents/Projects/VirtualBoxSDK/include/iprt/asm.h:587:12: warning: cast to pointer from integer of different sizeC:/Users/*****/Documents/Projects/VirtualBoxSDK/include/iprt/asm-amd64-x86.h:118:1: note: previous declaration of 'RTASSERTVAR' was hereIn file included from C:/Users/*****/Documents/Projects/VirtualBoxSDK/src/recompiler/VBoxRecompiler.c:47:0:
C:/Users/*****/Documents/Projects/VirtualBoxSDK/include/VBox/vmm/uvm.h:72:1: error: conflicting types for 'RTASSERTVAR'
C:/Users/*****/Documents/Projects/VirtualBoxSDK/include/VBox/vmm/uvm.h:72:1: note: previous declaration of 'RTASSERTVAR' was here
C:/Users/*****/Documents/Projects/VirtualBoxSDK/include/VBox/vmm/uvm.h:154:1: error: conflicting types for 'RTASSERTVAR'


C:/Users/*****/Documents/Projects/VirtualBoxSDK/include/VBox/vmm/uvm.h:154:1: note: previous declaration of 'RTASSERTVAR' was here
C:/Users/*****/Documents/Projects/VirtualBoxSDK/include/iprt/asm.h: In function 'ASMAtomicCmpXchgPtrVoid':C:/Users/*****/Documents/Projects/VirtualBoxSDK/include/VBox/vmm/uvm.h:155:1: error: conflicting types for 'RTASSERTVAR'C:/Users/*****/Documents/Projects/VirtualBoxSDK/include/iprt/asm-amd64-x86.h:153:1: error: conflicting types for 'RTASSERTVAR'

C:/Users/*****/Documents/Projects/VirtualBoxSDK/include/VBox/vmm/uvm.h:155:1: note: previous declaration of 'RTASSERTVAR' was here
C:/Users/*****/Documents/Projects/VirtualBoxSDK/include/iprt/asm.h:925:66: warning: cast from pointer to integer of different size
C:/Users/*****/Documents/Projects/VirtualBoxSDK/include/iprt/asm-amd64-x86.h:153:1: note: previous declaration of 'RTASSERTVAR' was hereC:/Users/*****/Documents/Projects/VirtualBoxSDK/include/VBox/vmm/uvm.h:156:1: error: conflicting types for 'RTASSERTVAR'


C:/Users/*****/Documents/Projects/VirtualBoxSDK/include/iprt/asm.h:925:83: warning: cast from pointer to integer of different sizeC:/Users/*****/Documents/Projects/VirtualBoxSDK/include/VBox/vmm/uvm.h:156:1: note: previous declaration of 'RTASSERTVAR' was here

C:/Users/*****/Documents/Projects/VirtualBoxSDK/include/iprt/asm.h: In function 'ASMAtomicCmpXchgExPtrVoid':C:/Users/*****/Documents/Projects/VirtualBoxSDK/include/VBox/vmm/uvm.h:157:1: error: conflicting types for 'RTASSERTVAR'
In file included from C:/Users/*****/Documents/Projects/VirtualBoxSDK/src/recompiler/target-i386/cpu.h:67:0,
                 from C:/Users/*****/Documents/Projects/VirtualBoxSDK/src/recompiler/qemu-common.h:44,
                 from C:/Users/*****/Documents/Projects/VirtualBoxSDK/src/recompiler/target-i386/exec.h:43,
                 from C:/Users/*****/Documents/Projects/VirtualBoxSDK/src/recompiler/cpu-exec.c:30:
C:/Users/*****/Documents/Projects/VirtualBoxSDK/include/VBox/vmm/cpumctx.h:422:1: error: conflicting types for 'RTASSERTVAR'C:/Users/*****/Documents/Projects/VirtualBoxSDK/include/iprt/asm.h:1281:68: warning: cast from pointer to integer of different size


C:/Users/*****/Documents/Projects/VirtualBoxSDK/include/VBox/vmm/uvm.h:157:1: note: previous declaration of 'RTASSERTVAR' was hereC:/Users/*****/Documents/Projects/VirtualBoxSDK/include/VBox/vmm/cpumctx.h:422:1: note: previous declaration of 'RTASSERTVAR' was hereC:/Users/*****/Documents/Projects/VirtualBoxSDK/include/iprt/asm.h:1281:85: warning: cast from pointer to integer of different size


C:/Users/*****/Documents/Projects/VirtualBoxSDK/include/VBox/vmm/uvm.h:158:1: error: conflicting types for 'RTASSERTVAR'C:/Users/*****/Documents/Projects/VirtualBoxSDK/include/iprt/asm.h: In function 'ASMAtomicReadPtr':

C:/Users/*****/Documents/Projects/VirtualBoxSDK/include/VBox/vmm/uvm.h:158:1: note: previous declaration of 'RTASSERTVAR' was hereC:/Users/*****/Documents/Projects/VirtualBoxSDK/include/iprt/asm.h:1794:12: warning: cast to pointer from integer of different size

C:/Users/*****/Documents/Projects/VirtualBoxSDK/include/iprt/asm.h: In function 'ASMAtomicUoReadPtr':
C:/Users/*****/Documents/Projects/VirtualBoxSDK/include/iprt/asm.h:1835:12: warning: cast to pointer from integer of different size
C:/Users/*****/Documents/Projects/VirtualBoxSDK/include/iprt/asm.h: In function 'ASMAtomicWritePtrVoid':
C:/Users/*****/Documents/Projects/VirtualBoxSDK/include/iprt/asm.h:2221:57: warning: cast from pointer to integer of different size
In file included from C:/Users/*****/Documents/Projects/VirtualBoxSDK/include/VBox/sup.h:36:0,
                 from C:/Users/*****/Documents/Projects/VirtualBoxSDK/include/VBox/vmm/pgm.h:30,
                 from C:/Users/*****/Documents/Projects/VirtualBoxSDK/src/recompiler/exec.c:50:
C:/Users/*****/Documents/Projects/VirtualBoxSDK/include/iprt/asm-amd64-x86.h: At top level:
C:/Users/*****/Documents/Projects/VirtualBoxSDK/include/iprt/asm-amd64-x86.h:118:1: error: conflicting types for 'RTASSERTVAR'
C:/Users/*****/Documents/Projects/VirtualBoxSDK/include/iprt/asm-amd64-x86.h:118:1: note: previous declaration of 'RTASSERTVAR' was here
C:/Users/*****/Documents/Projects/VirtualBoxSDK/include/iprt/asm-amd64-x86.h:153:1: error: conflicting types for 'RTASSERTVAR'
C:/Users/*****/Documents/Projects/VirtualBoxSDK/include/iprt/asm-amd64-x86.h:153:1: note: previous declaration of 'RTASSERTVAR' was here
kmk: *** [C:/Users/*****/Documents/Projects/VC:/Users/*****/Documents/Projects/VirtualBoxSDK/src/recompiler/cpu-exec.c: In function 'cpu_exec_nocache':ir
tuC:/Users/*****/Documents/Projects/VirtualBoxSDK/src/recompiler/cpu-exec.c:126:41: error: macro "tcg_qemu_tb_exec" passed 2 arguments, but takes just 1In file included from C:/Users/*****/Documents/Projects/VirtualBoxSDK/src/recompiler/target-i386/cpu.h:61:0,
                 from C:/Users/*****/Documents/Projects/VirtualBoxSDK/src/recompiler/translate-all.c:38:
C:/Users/*****/Documents/Projects/VirtualBoxSDK/include/iprt/critsect.h:91:1: error: conflicting types for 'RTASSERTVAR'
aC:/Users/*****/Documents/Projects/VirtualBoxSDK/src/recompiler/cpu-exec.c:126:5: error: 'tcg_qemu_tb_exec' undeclared (first use in this function)

C:/Users/*****/Documents/Projects/VirtualBoxSDK/src/recompiler/cpu-exec.c:126:5: note: each undeclared identifier is reported only once for each function it appears inlC:/Users/*****/Documents/Projects/VirtualBoxSDK/include/iprt/critsect.h:91:1: note: previous declaration of 'RTASSERTVAR' was here
BIn file included from C:/Users/*****/Documents/Projects/VirtualBoxSDK/src/recompiler/target-i386/cpu.h:61:0,
                 from C:/Users/*****/Documents/Projects/VirtualBoxSDK/src/recompiler/exec.c:53:
C:/Users/*****/Documents/Projects/VirtualBoxSDK/include/iprt/critsect.h:91:1: error: conflicting types for 'RTASSERTVAR'
oC:/Users/*****/Documents/Projects/VirtualBoxSDK/src/recompiler/cpu-exec.c: In function 'cpu_x86_exec':
xIn file included from C:/Users/*****/Documents/Projects/VirtualBoxSDK/src/recompiler/target-i386/cpu.h:61:0,
                 from C:/Users/*****/Documents/Projects/VirtualBoxSDK/src/recompiler/translate-all.c:38:
C:/Users/*****/Documents/Projects/VirtualBoxSDK/include/iprt/critsect.h:431:1: error: conflicting types for 'RTASSERTVAR'
SC:/Users/*****/Documents/Projects/VirtualBoxSDK/include/iprt/critsect.h:91:1: note: previous declaration of 'RTASSERTVAR' was here
DK
C:/Users/*****/Documents/Projects/VirtualBoxSDK/include/iprt/critsect.h:431:1: note: previous declaration of 'RTASSERTVAR' was hereC:/Users/*****/Documents/Projects/VirtualBoxSDK/src/recompiler/cpu-exec.c:783:53: error: macro "tcg_qemu_tb_exec" passed 2 arguments, but takes just 1/

C:/Users/*****/Documents/Projects/VirtualBoxSDK/src/recompiler/cpu-exec.c:783:21: error: 'tcg_qemu_tb_exec' undeclared (first use in this function)In file included from C:/Users/*****/Documents/Projects/VirtualBoxSDK/src/recompiler/target-i386/cpu.h:61:0,
                 from C:/Users/*****/Documents/Projects/VirtualBoxSDK/src/recompiler/exec.c:53:
C:/Users/*****/Documents/Projects/VirtualBoxSDK/include/iprt/critsect.h:431:1: error: conflicting types for 'RTASSERTVAR'oIn file included from C:/Users/*****/Documents/Projects/VirtualBoxSDK/src/recompiler/target-i386/cpu.h:64:0,
                 from C:/Users/*****/Documents/Projects/VirtualBoxSDK/src/recompiler/translate-all.c:38:
C:/Users/*****/Documents/Projects/VirtualBoxSDK/include/iprt/asm.h: In function 'ASMAtomicXchgPtr':

u
t/C:/Users/*****/Documents/Projects/VirtualBoxSDK/include/iprt/asm.h:513:71: warning: cast from pointer to integer of different sizeC:/Users/*****/Documents/Projects/VirtualBoxSDK/include/iprt/critsect.h:431:1: note: previous declaration of 'RTASSERTVAR' was herew
i
n.xC:/Users/*****/Documents/Projects/VirtualBoxSDK/include/iprt/asm.h:513:12: warning: cast to pointer from integer of different size8In file included from C:/Users/*****/Documents/Projects/VirtualBoxSDK/src/recompiler/target-i386/cpu.h:67:0,
                 from C:/Users/*****/Documents/Projects/VirtualBoxSDK/src/recompiler/exec.c:53:
C:/Users/*****/Documents/Projects/VirtualBoxSDK/include/VBox/vmm/cpumctx.h:422:1: error: conflicting types for 'RTASSERTVAR'
6
/rC:/Users/*****/Documents/Projects/VirtualBoxSDK/include/VBox/vmm/cpumctx.h:422:1: note: previous declaration of 'RTASSERTVAR' was hereeIn file included from C:/Users/*****/Documents/Projects/VirtualBoxSDK/src/recompiler/target-i386/cpu.h:64:0,
                 from C:/Users/*****/Documents/Projects/VirtualBoxSDK/src/recompiler/translate-all.c:38:
C:/Users/*****/Documents/Projects/VirtualBoxSDK/include/iprt/asm.h: In function 'ASMAtomicXchgR3Ptr':l
e
asC:/Users/*****/Documents/Projects/VirtualBoxSDK/include/iprt/asm.h:587:74: warning: cast from pointer to integer of different sizee
/oC:/Users/*****/Documents/Projects/VirtualBoxSDK/include/iprt/asm.h:587:12: warning: cast to pointer from integer of different sizebj
/VBoxRemPrimary/C:/Users/*****/Documents/Projects/VirtualBoxSDK/include/iprt/asm.h: In function 'ASMAtomicCmpXchgPtrVoid':VB
oxC:/Users/*****/Documents/Projects/VirtualBoxSDK/include/iprt/asm.h:925:66: warning: cast from pointer to integer of different sizeRe
coC:/Users/*****/Documents/Projects/VirtualBoxSDK/include/iprt/asm.h:925:83: warning: cast from pointer to integer of different sizempi
ler.o] Error 1C:/Users/*****/Documents/Projects/VirtualBoxSDK/include/iprt/asm.h: In function 'ASMAtomicCmpXchgExPtrVoid':

C:/Users/*****/Documents/Projects/VirtualBoxSDK/include/iprt/asm.h:1281:68: warning: cast from pointer to integer of different size
kC:/Users/*****/Documents/Projects/VirtualBoxSDK/include/iprt/asm.h:1281:85: warning: cast from pointer to integer of different sizemk
: *** Waiting for unfiC:/Users/*****/Documents/Projects/VirtualBoxSDK/include/iprt/asm.h: In function 'ASMAtomicReadPtr':ni
shC:/Users/*****/Documents/Projects/VirtualBoxSDK/include/iprt/asm.h:1794:12: warning: cast to pointer from integer of different sizeed
 jobC:/Users/*****/Documents/Projects/VirtualBoxSDK/include/iprt/asm.h: In function 'ASMAtomicUoReadPtr':s.
..C:/Users/*****/Documents/Projects/VirtualBoxSDK/include/iprt/asm.h:1835:12: warning: cast to pointer from integer of different size.

kmk: *** [C:/C:/Users/*****/Documents/Projects/VirtualBoxSDK/include/iprt/asm.h: In function 'ASMAtomicWritePtrVoid':Us
erC:/Users/*****/Documents/Projects/VirtualBoxSDK/include/iprt/asm.h:2221:57: warning: cast from pointer to integer of different sizes
/*****/Documents/Projects/VirtualBoxSDK/out/win.x86/release/obj/VBoxRemPrimary/cpu-exec.o] Error 1
kmk: *** [C:/UIn file included from C:/Users/*****/Documents/Projects/VirtualBoxSDK/include/VBox/sup.h:36:0,
                 from C:/Users/*****/Documents/Projects/VirtualBoxSDK/include/VBox/vmm/vmm.h:31,
                 from C:/Users/*****/Documents/Projects/VirtualBoxSDK/src/recompiler/target-i386/cpu.h:65,
                 from C:/Users/*****/Documents/Projects/VirtualBoxSDK/src/recompiler/translate-all.c:38:
C:/Users/*****/Documents/Projects/VirtualBoxSDK/include/iprt/asm-amd64-x86.h: At top level:ser
s/C:/Users/*****/Documents/Projects/VirtualBoxSDK/include/iprt/asm-amd64-x86.h:118:1: error: conflicting types for 'RTASSERTVAR'Fl
orC:/Users/*****/Documents/Projects/VirtualBoxSDK/include/iprt/asm-amd64-x86.h:118:1: note: previous declaration of 'RTASSERTVAR' was hereia
n/DocumC:/Users/*****/Documents/Projects/VirtualBoxSDK/include/iprt/asm-amd64-x86.h:153:1: error: conflicting types for 'RTASSERTVAR'ent
s/C:/Users/*****/Documents/Projects/VirtualBoxSDK/include/iprt/asm-amd64-x86.h:153:1: note: previous declaration of 'RTASSERTVAR' was herePr
ojects/VirtualBoxSDK/out/win.x86/release/obj/VBoxRemPrimary/exec.o] Error 1
In file included from C:/Users/*****/Documents/Projects/VirtualBoxSDK/src/recompiler/target-i386/cpu.h:67:0,
                 from C:/Users/*****/Documents/Projects/VirtualBoxSDK/src/recompiler/translate-all.c:38:
C:/Users/*****/Documents/Projects/VirtualBoxSDK/include/VBox/vmm/cpumctx.h:422:1: error: conflicting types for 'RTASSERTVAR'
C:/Users/*****/Documents/Projects/VirtualBoxSDK/include/VBox/vmm/cpumctx.h:422:1: note: previous declaration of 'RTASSERTVAR' was here
kmk: *** [C:/Users/*****/Documents/Projects/VirtualBoxSDK/out/win.x86/release/obj/VBoxRemPrimary/translate-all.o] Error 1
kmk: *** Exiting with status 2

C:\Users\*****\Documents\Projects\VirtualBoxSDK>


I'm stuck at this point and can't find anything related to this problem anywhere (Not with Windows at least).
Anyone got any ideas?
petyr72
 
Posts: 9
Joined: 26. Jun 2016, 21:23

Re: Windows build error: Conflicting types for 'RTASSERTVAR'

Postby noteirak » 26. Jun 2016, 21:36

Moved to "VirtualBox OSE"
Hyperbox - Virtual Infrastructure Manager - https://kamax.io/hbox/
Manage your VirtualBox infrastructure the free way!
noteirak
Site Moderator
 
Posts: 5198
Joined: 13. Jan 2012, 11:14
Primary OS: Debian other
VBox Version: OSE Debian
Guest OSses: Debian, Win 2k8, Win 7

Re: Windows build error: Conflicting types for 'RTASSERTVAR'

Postby mhanor » 28. Jun 2016, 09:36

Are you trying to build the 64 bit VirtualBox OSE? Use the Windows SDK x64 command prompt. Also, run kBuild\envwin.cmd --win64 before running kmk. Clear the build cache before attempting again, just this once.
mhanor
Volunteer
 
Posts: 317
Joined: 7. Oct 2009, 12:40
Primary OS: MS Windows 10
VBox Version: PUEL
Guest OSses: various

Re: Windows build error: Conflicting types for 'RTASSERTVAR'

Postby petyr72 » 28. Jun 2016, 17:11

mhanor wrote:Are you trying to build the 64 bit VirtualBox OSE? Use the Windows SDK x64 command prompt. Also, run kBuild\envwin.cmd --win64 before running kmk. Clear the build cache before attempting again, just this once.


Thanks. Yes, I'm trying to build the 64 bit version.
I got a bit further this time:
Code: Select all   Expand viewCollapse view
C:\Users\*****\Documents\Projects\VirtualBoxSDK>kmk
C:/Users/*****/Documents/Projects/VirtualBoxSDK/src/VBox/Main/webservice/Makefile.kmk:105: VBOX_PATH_GSOAP not found...
kBuild: Pass - Build Programs
kBuild: Compiling bin2c - C:/Users/*****/Documents/Projects/VirtualBoxSDK/src/bldprogs/bin2c.c
kBuild: Compiling biossums - C:/Users/*****/Documents/Projects/VirtualBoxSDK/src/bldprogs/biossums.c
kBuild: Compiling filesplitter - C:/Users/*****/Documents/Projects/VirtualBoxSDK/src/bldprogs/filesplitter.cpp
kBuild: Compiling VBoxCmp - C:/Users/*****/Documents/Projects/VirtualBoxSDK/src/bldprogs/VBoxCmp.cpp
biossums.c
bin2c.c
filesplitter.cpp
VBoxCmp.cpp
c:\program files (x86)\microsoft visual studio 10.0\vc\include\codeanalysis\sourceannotations.h(79): error C2059: syntax error: '['
c:\program files (x86)\microsoft visual studio 10.0\vc\include\codeanalysis\sourceannotations.h(79): error C2059: syntax error: '['c:\program files (x86)\microsoft visual studio 10.0\vc\include\codeanalysis\sourceannotations.h(110): error C2059: syntax error: '['

c:\program files (x86)\microsoft visual studio 10.0\vc\include\codeanalysis\sourceannotations.h(141): error C2059: syntax error: '['c:\program files (x86)\microsoft visual studio 10.0\vc\include\codeanalysis\sourceannotations.h(110): error C2059: syntax error: '['
c:\program files (x86)\microsoft visual studio 10.0\vc\include\codeanalysis\sourceannotations.h(153): error C2059: syntax error: '['

c:\program files (x86)\microsoft visual studio 10.0\vc\include\codeanalysis\sourceannotations.h(163): error C2059: syntax error: '['c:\program files (x86)\microsoft visual studio 10.0\vc\include\codeanalysis\sourceannotations.h(141): error C2059: syntax error: '['
c:\program files (x86)\microsoft visual studio 10.0\vc\include\codeanalysis\sourceannotations.h(174): error C2059: syntax error: '['

c:\program files (x86)\microsoft visual studio 10.0\vc\include\codeanalysis\sourceannotations.h(153): error C2059: syntax error: '['c:\program files (x86)\microsoft visual studio 10.0\vc\include\codeanalysis\sourceannotations.h(184): error C2059: syntax error: '['

c:\program files (x86)\microsoft visual studio 10.0\vc\include\codeanalysis\sourceannotations.h(194): error C2059: syntax error: '['c:\program files (x86)\microsoft visual studio 10.0\vc\include\codeanalysis\sourceannotations.h(163): error C2059: syntax error: '['

c:\program files (x86)\microsoft visual studio 10.0\vc\include\codeanalysis\sourceannotations.h(206): error C2059: syntax error: '['c:\program files (x86)\microsoft visual studio 10.0\vc\include\codeanalysis\sourceannotations.h(174): error C2059: syntax error: '['

c:\program files (x86)\microsoft visual studio 10.0\vc\include\codeanalysis\sourceannotations.h(184): error C2059: syntax error: '['
c:\program files (x86)\microsoft visual studio 10.0\vc\include\codeanalysis\sourceannotations.h(194): error C2059: syntax error: '['
c:\program files (x86)\microsoft visual studio 10.0\vc\include\codeanalysis\sourceannotations.h(206): error C2059: syntax error: '['
kmk: *** [C:/Users/*****/Documents/Projects/VirtualBoxSDK/out/win.amd64/release/obj/biossums/biossums.obj] Error 2
The failing command:
@ C:\PROGRA~2\MICROS~1.0\VC\bin\amd64\cl.exe -c -TC -nologo -O2 -Zi -Zl -GR- -EHsc -GF -W3 -wd4065 -wd4244 -wd4996 -Zc:wchar_t- -O2 -Oy- -MT -IC:/PROGRA~2/MICROS~4.0/VC/include -IC:/WinDDK/7600.16385.1/inc/atl71 -IC:/PROGRA~2/MICROS~1/Windows/v7.1A/Include -IC:/Users/*****/Documents/Projects/VirtualBoxSDK/include -IC:/Users/*****/Documents/Projects/VirtualBoxSDK/out/win.amd64/release -IC:/PROGRA~2/MICROS~4.0/VC/include -DVBOX -DVBOX_OSE -DVBOX_WITH_64_BITS_GUESTS -DVBOX_WITH_DEBUGGER -DRT_OS_WINDOWS -D__WIN__ -DRT_ARCH_AMD64 -D__AMD64__ -D__WIN64__ -DVBOX_WITH_HARDENING -DIN_RING3 -DLOG_DISABLED -D_CRT_SECURE_NO_DEPRECATE -FdC:/Users/*****/Documents/Projects/VirtualBoxSDK/out/win.amd64/release/obj/biossums/biossums-obj.pdb -FD -FoC:/Users/*****/Documents/Projects/VirtualBoxSDK/out/win.amd64/release/obj/biossums/biossums.obj C:\\Users\\*****\\Documents\\Projects\\VirtualBoxSDK\\src\\bldprogs\\biossums.c
kmk: *** [C:/Users/*****/Documents/Projects/VirtualBoxSDK/out/win.amd64/release/obj/biossums/biossums.obj] Deleting file `C:/Users/*****/Documents/Projects/VirtualBoxSDK/out/win.amd64/release/obj/biossums/biossums-obj.idb'
kmk: *** Waiting for unfinished jobs....
kmk: *** [C:/Users/*****/Documents/Projects/VirtualBoxSDK/out/win.amd64/release/obj/bin2c/bin2c.obj] Error 2
The failing command:
@ C:\PROGRA~2\MICROS~1.0\VC\bin\amd64\cl.exe -c -TC -nologo -O2 -Zi -Zl -GR- -EHsc -GF -W3 -wd4065 -wd4244 -wd4996 -Zc:wchar_t- -O2 -Oy- -MT -IC:/PROGRA~2/MICROS~4.0/VC/include -IC:/WinDDK/7600.16385.1/inc/atl71 -IC:/PROGRA~2/MICROS~1/Windows/v7.1A/Include -IC:/Users/*****/Documents/Projects/VirtualBoxSDK/include -IC:/Users/*****/Documents/Projects/VirtualBoxSDK/out/win.amd64/release -IC:/PROGRA~2/MICROS~4.0/VC/include -DVBOX -DVBOX_OSE -DVBOX_WITH_64_BITS_GUESTS -DVBOX_WITH_DEBUGGER -DRT_OS_WINDOWS -D__WIN__ -DRT_ARCH_AMD64 -D__AMD64__ -D__WIN64__ -DVBOX_WITH_HARDENING -DIN_RING3 -DLOG_DISABLED -D_CRT_SECURE_NO_DEPRECATE -FdC:/Users/*****/Documents/Projects/VirtualBoxSDK/out/win.amd64/release/obj/bin2c/bin2c-obj.pdb -FD -FoC:/Users/*****/Documents/Projects/VirtualBoxSDK/out/win.amd64/release/obj/bin2c/bin2c.obj C:\\Users\\*****\\Documents\\Projects\\VirtualBoxSDK\\src\\bldprogs\\bin2c.c
kmk: *** [C:/Users/*****/Documents/Projects/VirtualBoxSDK/out/win.amd64/release/obj/bin2c/bin2c.obj] Deleting file `C:/Users/*****/Documents/Projects/VirtualBoxSDK/out/win.amd64/release/obj/bin2c/bin2c-obj.idb'
kmk: *** Exiting with status 2

C:\Users\*****\Documents\Projects\VirtualBoxSDK>


I'm now stuck at:
c:\program files (x86)\microsoft visual studio 10.0\vc\include\codeanalysis\sourceannotations.h(79): error C2059: syntax error: '['

I'm using the Visual Studio 2015 compiler / command line, but it's trying to use the 2010 headers, so I'm assuming that's the problem.

I know that the VirtualBox build instructions recommend using Visual Studio 2010 Express, but that version doesn't seem to have any 64bit libraries (They're located in "C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\lib\amd64" for Visual Studio 2015, but there's no such directory for 2010.).

Is there anything I can do to prevent it from trying to use the 2010 headers?
petyr72
 
Posts: 9
Joined: 26. Jun 2016, 21:23

Re: Windows build error: Conflicting types for 'RTASSERTVAR'

Postby mhanor » 29. Jun 2016, 00:14

Unfortunately, I can't help you here. I always compile VirtualBox using the Windows 7.1 SDK (VC2010 compiler).
mhanor
Volunteer
 
Posts: 317
Joined: 7. Oct 2009, 12:40
Primary OS: MS Windows 10
VBox Version: PUEL
Guest OSses: various

Re: Windows build error: Conflicting types for 'RTASSERTVAR'

Postby petyr72 » 17. Jul 2016, 21:15

mhanor wrote:Unfortunately, I can't help you here. I always compile VirtualBox using the Windows 7.1 SDK (VC2010 compiler).

I've installed the 7.1 SDK now, and tried to run it through its command prompt, but once again, I'm stuck:
Code: Select all   Expand viewCollapse view
C:\Users\******\Documents\Projects\VirtualBoxSDK>kBuild\envwin.cmd --win64
dbg: _KBUILD_PATH=C:\Users\******\Documents\Projects\VirtualBoxSDK\kBuild
dbg: _KBUILD_TYPE=release
dbg: _KBUILD_HOST=win
dbg: _KBUILD_HOST_ARCH=amd64
dbg: _KBUILD_HOST_CPU=blend
dbg: _KBUILD_TARGET=win
dbg: _KBUILD_TARGET_ARCH=amd64
dbg: _KBUILD_TARGET_CPU=blend
dbg: _KBUILD_BIN_PATH=C:\Users\******\Documents\Projects\VirtualBoxSDK\kBuild\bin\win.amd64
dbg: _KBUILD_NEW_PATH=C:\Users\******\Documents\Projects\VirtualBoxSDK\kBuild\bin\win.amd64;C:\Users\******\Documents\Projects\VirtualBoxSDK\kBuild\bin\win.amd64;C:\Users\******\Documents\Projects\VirtualBoxSDK\kBuild\bin\win.amd64;C:\Users\******\Documents\Projects\VirtualBoxSDK\kBuild\bin\win.amd64;C:\WINDOWS\Microsoft.NET\Framework64\v4.0.30319;C:\WINDOWS\Microsoft.NET\Framework\v4.0.30319;C:\WINDOWS\Microsoft.NET\Framework64\v3.5;C:\WINDOWS\Microsoft.NET\Framework\v3.5;;C:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\IDE;C:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\Tools;;C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\Bin\amd64;C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\Bin\VCPackages;;C:\Program Files\Microsoft SDKs\Windows\v7.1\Bin\NETFX 4.0 Tools\x64;C:\Program Files\Microsoft SDKs\Windows\v7.1\Bin\x64;C:\Program Files\Microsoft SDKs\Windows\v7.1\Bin;;C:\Perl64\site\bin;C:\Perl64\bin;C:\VulkanSDK\1.0.11.1\Bin;C:\ProgramData\Oracle\Java\javapath;C:\VulkanSDK\1.0.8.0\Bin;C:\Program Files\ImageMagick-6.9.3-Q16;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\AMD\ATI.ACE\Core-Static;C:\Program Files\Microsoft SQL Server\120\Tools\Binn\;C:\Program Files\TortoiseSVN\bin;C:\Program Files (x86)\ATI Technologies\ATI.ACE\Core-Static;C:\Program Files\Common Files\Autodesk Shared\;C:\Users\******\.dnx\bin;C:\Program Files\Microsoft DNX\Dnvm\;C:\Program Files (x86)\Windows Kits\8.1\Windows Performance Toolkit\;C:\Program Files (x86)\GtkSharp\2.12\bin;C:\Program Files (x86)\Skype\Phone\;C:\Program Files (x86)\NVIDIA Corporation\DDS Utilities;C:\Program Files\Microsoft SQL Server\130\Tools\Binn\;C:\Program Files\Git\cmd;C:\Program Files (x86)\CMake\bin;C:\WINDOWS\SysWOW64\WindowsPowerShell\v1.0\Modules\TShell\TShell\;C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\bin;C:\Users\******\Documents\mingw64\bin;C:\Users\******\Documents\mingw64\bin;C:\Program Files (x86)\Windows Kits\8.1\bin\x64;C:\Program Files\Microsoft SDKs\Windows\v7.1

C:\Users\******\Documents\Projects\VirtualBoxSDK>kmk
C:/Users/******/Documents/Projects/VirtualBoxSDK/src/VBox/Main/webservice/Makefile.kmk:105: VBOX_PATH_GSOAP not found...
C:/Users/******/Documents/Projects/VirtualBoxSDK/kBuild/tools/VCC100AMD64.kmk:51: kBuild: PATH_TOOL_VCC100AMD64 cannot be determined!
C:/Users/******/Documents/Projects/VirtualBoxSDK/kBuild/sdks/LIBSDL.kmk:67: kBuild: PATH_SDK_LIBSDL couldn't be determined!
kBuild: Pass - Build Programs
kmk: *** No rule to make target `C:\Program/Kernel32.Lib', needed by `C:/Users/******/Documents/Projects/VirtualBoxSDK/out/win.amd64/release/obj/bin2c/bin2c.exe'.  Stop.

C:\Users\******\Documents\Projects\VirtualBoxSDK>


It ends at:
kmk: *** No rule to make target `C:\Program/Kernel32.Lib', needed by `C:/Users/******/Documents/Projects/VirtualBoxSDK/out/win.amd64/release/obj/bin2c/bin2c.exe'. Stop.


I'm not sure what it's even trying to do at this point.

// EDIT:
The commands I've run are:
Code: Select all   Expand viewCollapse view
runas /user:Administrator cscript configure.vbs ^
  --with-DDK="C:\WinDDK\7600.16385.1" ^
  --with-DXSDK="C:\Program Files (x86)\Microsoft DirectX SDK (June 2010)" ^
  --with-libSDL=C:\Users\******\Documents\SDL-1.2.15 ^
  --with-MinGW=C:\Users\******\Documents\mingw64 ^
  --with-Qt4=C:\Qt\4.8.4 ^
  --with-SDK="C:\Program Files\Microsoft SDKs\Windows\v7.1" ^
  --with-python=C:\Python27 ^
  --with-openssl=C:\Users\******\Documents\openssl-1.0.1t ^
  --with-libcurl=C:\Users\******\Documents\curl-7.49.1 ^
  > C:\Users\******\Documents\Projects\VirtualBoxSDK\configure.log 2>&1


kBuild\envwin.cmd --win64
kmk
petyr72
 
Posts: 9
Joined: 26. Jun 2016, 21:23

Re: Windows build error: Conflicting types for 'RTASSERTVAR'

Postby mhanor » 17. Jul 2016, 22:49

Why do you need to run a configure.vbs as Administrator? It doesn't sound right to me.
Also, you need to run env.bat before kmk.
mhanor
Volunteer
 
Posts: 317
Joined: 7. Oct 2009, 12:40
Primary OS: MS Windows 10
VBox Version: PUEL
Guest OSses: various

Re: Windows build error: Conflicting types for 'RTASSERTVAR'

Postby petyr72 » 18. Jul 2016, 07:06

mhanor wrote:Why do you need to run a configure.vbs as Administrator? It doesn't sound right to me.
Also, you need to run env.bat before kmk.

I got a permission error last time I tried to run configure.vbs regularly.
It works without running it as administrator now, not sure why.

Either way, I'm still getting the same error, even when running "env.bat" before "kmk". :?
petyr72
 
Posts: 9
Joined: 26. Jun 2016, 21:23

Re: Windows build error: Conflicting types for 'RTASSERTVAR'

Postby mhanor » 18. Jul 2016, 08:16

Attach the configure.log (compressed) here or on google drive with the link
mhanor
Volunteer
 
Posts: 317
Joined: 7. Oct 2009, 12:40
Primary OS: MS Windows 10
VBox Version: PUEL
Guest OSses: various

Re: Windows build error: Conflicting types for 'RTASSERTVAR'

Postby petyr72 » 18. Jul 2016, 09:09

mhanor wrote:Attach the configure.log (compressed) here or on google drive with the link

The log was empty for some reason (Which I interpreted as there not being any errors).
Anyway, I've removed the "runas"-command and the log-file, so my command now looks like this:
Code: Select all   Expand viewCollapse view
cscript configure.vbs ^
  --with-DDK="C:\WinDDK\7600.16385.1" ^
  --with-DXSDK="C:\Program Files (x86)\Microsoft DirectX SDK (June 2010)" ^
  --with-libSDL=C:\Users\******\Documents\SDL-1.2.15 ^
  --with-MinGW=C:\Users\******\Documents\mingw64 ^
  --with-Qt4=C:\Qt\4.8.4 ^
  --with-SDK="C:\Program Files\Microsoft SDKs\Windows\v7.1" ^
  --with-python=C:\Python27 ^
  --with-openssl=C:\Users\******\Documents\openssl-1.0.1t ^
  --with-libcurl=C:\Users\******\Documents\curl-7.49.1


warning: Ignornig --with-dxsdk (the DirectX SDK is no longer required).
syntax error: Unknown option '--with-MinGW=C:\Users\******\Documents\mingw64'.
Usage: cscript configure.vbs [options]


I got the "--with-MinGW" from this thread, might be obsolete?

So, I removed the "--with-MinGW" and "--with-DXSDK", which lets me go a bit further:
Code: Select all   Expand viewCollapse view
C:\Users\******\Documents\Projects\VirtualBoxSDK>cscript configure.vbs ^
More?   --with-DDK="C:\WinDDK\7600.16385.1" ^
More?   --with-libSDL=C:\Users\******\Documents\SDL-1.2.15 ^
More?   --with-Qt4=C:\Qt\4.8.4 ^
More?   --with-SDK="C:\Program Files\Microsoft SDKs\Windows\v7.1" ^
More?   --with-python=C:\Python27 ^
More?   --with-openssl=C:\Users\******\Documents\openssl-1.0.1t ^
More?   --with-libcurl=C:\Users\******\Documents\curl-7.49.1
Microsoft (R) Windows Script Host Version 5.812
Copyright (C) Microsoft Corporation. All rights reserved.

Shell inheritance test: OK
Source path: OK
Checking for kBuild...
 Found kBuild: C:/Users/******/Documents/Projects/VirtualBoxSDK/kBuild
 Found kBuild binaries: C:/Users/******/Documents/Projects/VirtualBoxSDK/kBuild/bin/win.x86
Checking for Windows DDK v7.1...
 Found Windows DDK v7.1: C:/WinDDK/7600.16385.1
Checking for Visual C++...
error: Executing '' (which we believe to be the Visual C++ compiler driver) failed.


Now stuck at:
error: Executing '' (which we believe to be the Visual C++ compiler driver) failed.


// EDIT:
This is where it gets stuck:
Code: Select all   Expand viewCollapse view
   if Shell(DosSlashes(strPathVC & "/bin/cl.exe"), True) <> 0 then
      MsgError "Executing '" & strClExe & "' (which we believe to be the Visual C++ compiler driver) failed."
      exit sub
   end if

Looks like it can't find the cl.exe, but I'm not sure where it's trying to look for it. If I try to just run "cl.exe" from the command prompt, it can find it just fine.
I'm not that familiar with VBScript, but it looks like 'strClExe' isn't even defined anywhere.

// EDIT2:
'strPathVC' points to ''C:/PROGRA~2/MICROS~4.0/VC", which exists, and contains the "bin/cl.exe" it's looking for.
I've noticed that I can only access "C:/PROGRA~2/MICROS~4.0/VC" through the explorer by using backslashes instead ("C:\PROGRA~2\MICROS~4.0\VC"), that might be the problem?

// EDIT3:
I can just comment the line that does the check and it runs fine:
Code: Select all   Expand viewCollapse view
C:\Users\Florian\Documents\Projects\VirtualBoxSDK>cscript configure.vbs ^
More?   --with-DDK="C:\WinDDK\7600.16385.1" ^
More?   --with-libSDL=C:\Users\Florian\Documents\SDL-1.2.15 ^
More?   --with-Qt4=C:\Qt\4.8.4 ^
More?   --with-SDK="C:\Program Files\Microsoft SDKs\Windows\v7.1" ^
More?   --with-python=C:\Python27 ^
More?   --with-openssl=C:\Users\Florian\Documents\openssl-1.0.1t ^
More?   --with-libcurl=C:\Users\Florian\Documents\curl-7.49.1
Microsoft (R) Windows Script Host Version 5.812
Copyright (C) Microsoft Corporation. All rights reserved.

Shell inheritance test: OK
Source path: OK
Checking for kBuild...
 Found kBuild: C:/Users/Florian/Documents/Projects/VirtualBoxSDK/kBuild
 Found kBuild binaries: C:/Users/Florian/Documents/Projects/VirtualBoxSDK/kBuild/bin/win.x86
Checking for Windows DDK v7.1...
 Found Windows DDK v7.1: C:/WinDDK/7600.16385.1
Checking for Visual C++...
 Found Visual C++ v10 with DDK ATL: C:/PROGRA~2/MICROS~4.0/VC (C:/Program Files (x86)/Microsoft Visual Studio 10.0/VC)
Checking for Windows Platform SDK (recent)...
 Found Windows Platform SDK (v71): C:/PROGRA~1/MIA713~1/Windows/v7.1 (C:/Program Files/Microsoft SDKs/Windows/v7.1)
Checking for Midl.exe...
 Found Midl.exe: C:/PROGRA~1/MIA713~1/Windows/v7.1/bin/Midl.exe (C:/Program Files/Microsoft SDKs/Windows/v7.1/Bin/Midl.exe)
Checking for MinGW32 GCC v3.3.x + Binutils + Runtime + W32API...
warning: Can't locate a suitable MinGW32 installation, ignoring since we're targeting AMD64 and won't need it.
Checking for MinGW-w64 GCC (unprefixed)...
 Found MinGW-w64 (GCC v4.5.4): C:/Users/Florian/Documents/mingw64
Checking for libSDL...
 Found libSDL: C:/Users/Florian/Documents/SDL-1.2.15
Checking for openssl...
 Found openssl: C:/Users/Florian/Documents/openssl-1.0.1t
Checking for libcurl...
 Found libcurl: C:/Users/Florian/Documents/curl-7.49.1
Checking for Qt4...
 Found Qt4 : C:/Qt/4.8.4
Checking for Python...
 Found Python : C:\Python27

Execute env.bat once before you start to build VBox:

  env.bat
  kmk


Here's the new log:
Code: Select all   Expand viewCollapse view
C:\Users\******\Documents\Projects\VirtualBoxSDK>kBuild\envwin.cmd --win64
dbg: _KBUILD_PATH=C:\Users\******\Documents\Projects\VirtualBoxSDK\kBuild
dbg: _KBUILD_TYPE=release
dbg: _KBUILD_HOST=win
dbg: _KBUILD_HOST_ARCH=amd64
dbg: _KBUILD_HOST_CPU=blend
dbg: _KBUILD_TARGET=win
dbg: _KBUILD_TARGET_ARCH=amd64
dbg: _KBUILD_TARGET_CPU=blend
dbg: _KBUILD_BIN_PATH=C:\Users\******\Documents\Projects\VirtualBoxSDK\kBuild\bin\win.amd64
dbg: _KBUILD_NEW_PATH=C:\Users\******\Documents\Projects\VirtualBoxSDK\kBuild\bin\win.amd64;C:/Users/******/Documents/Projects/VirtualBoxSDK/kBuild/bin/win.x86;C:/Users/******/Documents/Projects/VirtualBoxSDK/kBuild/bin/win.x86;C:\Users\******\Documents\Projects\VirtualBoxSDK\kBuild\bin\win.amd64;C:/Users/******/Documents/Projects/VirtualBoxSDK/kBuild/bin/win.x86;C:/Users/******/Documents/Projects/VirtualBoxSDK/kBuild/bin/win.x86;C:\Users\******\Documents\Projects\VirtualBoxSDK\kBuild\bin\win.amd64;C:\Users\******\Documents\Projects\VirtualBoxSDK\kBuild\bin\win.amd64;C:\Users\******\Documents\Projects\VirtualBoxSDK\kBuild\bin\win.amd64;C:\Users\******\Documents\Projects\VirtualBoxSDK\kBuild\bin\win.amd64;C:\Users\******\Documents\Projects\VirtualBoxSDK\kBuild\bin\win.amd64;C:\Users\******\Documents\Projects\VirtualBoxSDK\kBuild\bin\win.amd64;C:\Users\******\Documents\Projects\VirtualBoxSDK\kBuild\bin\win.amd64;C:\Users\******\Documents\Projects\VirtualBoxSDK\kBuild\bin\win.amd64;C:\Users\******\Documents\Projects\VirtualBoxSDK\kBuild\bin\win.amd64;C:\WINDOWS\Microsoft.NET\Framework64\v4.0.30319;C:\WINDOWS\Microsoft.NET\Framework\v4.0.30319;C:\WINDOWS\Microsoft.NET\Framework64\v3.5;C:\WINDOWS\Microsoft.NET\Framework\v3.5;;C:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\IDE;C:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\Tools;;C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\Bin\amd64;C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\Bin\VCPackages;;C:\Program Files\Microsoft SDKs\Windows\v7.1\Bin\NETFX 4.0 Tools\x64;C:\Program Files\Microsoft SDKs\Windows\v7.1\Bin\x64;C:\Program Files\Microsoft SDKs\Windows\v7.1\Bin;;C:\Perl64\site\bin;C:\Perl64\bin;C:\VulkanSDK\1.0.11.1\Bin;C:\ProgramData\Oracle\Java\javapath;C:\VulkanSDK\1.0.8.0\Bin;C:\Program Files\ImageMagick-6.9.3-Q16;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\AMD\ATI.ACE\Core-Static;C:\Program Files\Microsoft SQL Server\120\Tools\Binn\;C:\Program Files\TortoiseSVN\bin;C:\Program Files (x86)\ATI Technologies\ATI.ACE\Core-Static;C:\Program Files\Common Files\Autodesk Shared\;C:\Users\******\.dnx\bin;C:\Program Files\Microsoft DNX\Dnvm\;C:\Program Files (x86)\Windows Kits\8.1\Windows Performance Toolkit\;C:\Program Files (x86)\GtkSharp\2.12\bin;C:\Program Files (x86)\Skype\Phone\;C:\Program Files (x86)\NVIDIA Corporation\DDS Utilities;C:\Program Files\Microsoft SQL Server\130\Tools\Binn\;C:\Program Files\Git\cmd;C:\Program Files (x86)\CMake\bin;C:\WINDOWS\SysWOW64\WindowsPowerShell\v1.0\Modules\TShell\TShell\;C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\bin;C:\Users\******\Documents\mingw64\bin;C:\Users\******\Documents\mingw64\bin;C:\Program Files (x86)\Windows Kits\8.1\bin\x64;C:\Program Files\Microsoft SDKs\Windows\v7.1;C:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7/IDE;;C:\Users\******\Documents\Projects\VirtualBoxSDK/tools/win.amd64/bin;

C:\Users\******\Documents\Projects\VirtualBoxSDK>env.bat

C:\Users\******\Documents\Projects\VirtualBoxSDK>kmk
C:/Users/******/Documents/Projects/VirtualBoxSDK/src/VBox/Main/webservice/Makefile.kmk:105: VBOX_PATH_GSOAP not found...
kBuild: Generating C:/Users/******/Documents/Projects/VirtualBoxSDK/out/win.amd64/release/DynamicConfig.kmk
========= START OF C:/Users/******/Documents/Projects/VirtualBoxSDK/out/win.amd64/release/DynamicConfig.kmk =========
VBOX_GCC_PATH_CC               ?= C:/Users/******/Documents/mingw64/bin/gcc.exe
VBOX_GCC_PATH_CXX              ?= C:/Users/******/Documents/mingw64/bin/g++.exe
VBOX_GCC_VERSION_CC            ?= 30303
VBOX_GCC_VERSION_CXX           ?= 30303
VBOX_GCC_LIBGCC                ?= c:/users/******/documents/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/4.5.4/libgcc.a
VBOX_GCC_Wno-pointer-sign      ?=
VBOX_GCC_Wno-array_bounds      ?=
VBOX_GCC_Wextra                ?=
ifneq ($(VBOX_GCC_VERSION_CC),)
 ifneq ($(int-ge $(VBOX_GCC_VERSION_CC),40500),)
  VBOX_GCC_Wlogical-op           ?=
 endif
endif
VBOX_GCC_Wno-address           ?=
VBOX_GCC_Wno-delete-non-virtual-dtor    ?=
VBOX_GCC_Wno-int-to-pointer-cast        ?=
VBOX_GCC_Wno-invalid-offsetof           ?=
VBOX_GCC_Wno-missing-field-initializers ?=
VBOX_GCC_Wno-pointer-to-int-cast        ?=
VBOX_GCC_Wno-variadic-macros   ?=
VBOX_GCC_Wno-vla               ?=
VBOX_GCC_Wno-overlength-strings?=
VBOX_GCC_fno-stack-protector   ?=
VBOX_GCC_fno-dwarf2-cfi-asm    ?=
VBOX_GCC_no-pie                ?=
VBOX_GCC_fdiagnostics-show-option ?=
VBOX_GCC_mtune-generic         ?=
VBOX_LD_as_needed              ?=
VBOX_GCC_BUGGY_REGPARM         ?= $(int-lt $(VBOX_GCC_VERSION_CC),30400)
ifneq ($(VBOX_GCC_VERSION_CC),)
 ifneq ($(int-ge $(VBOX_GCC_VERSION_CC),40000),)
  VBOX_GCC_fvisibility-hidden  ?=
 endif
endif
ifneq ($(VBOX_GCC_VERSION_CXX),)
 ifneq ($(int-ge $(VBOX_GCC_VERSION_CXX),40000),)
  VBOX_GCC_fvisibility-inlines-hidden ?=
 endif
endif
ifneq ($(VBOX_GCC_VERSION_CXX),)
 ifneq ($(int-ge $(VBOX_GCC_VERSION_CXX),40800),)
  VBOX_GCC_Wno-unused-parameter ?= -Wno-unused-parameter
 endif
endif
ifneq ($(VBOX_GCC_VERSION_CXX),)
 ifneq ($(int-ge $(VBOX_GCC_VERSION_CXX),40800),)
  VBOX_GCC_std ?= -std=c++11
 else ifneq ($(int-ge $(VBOX_GCC_VERSION_CXX),40600),)
  VBOX_GCC_std ?= -std=c++0x
 endif
endif
VBOX_GCC_pipe                  ?= -pipe
VBOX_PATH_GCC_INCS             ?=
VBOX_GCC32_PATH_CC             ?= C:/Users/******/Documents/mingw64/bin/gcc.exe
VBOX_GCC32_PATH_CXX            ?= C:/Users/******/Documents/mingw64/bin/g++.exe
VBOX_GCC32_VERSION_CC          ?= 30303
VBOX_GCC32_VERSION_CXX         ?= 30303
VBOX_GCC32_LIBGCC              ?= c:/users/******/documents/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/4.5.4/libgcc.a
VBOX_GCC32_Wno-variadic-macros ?=
VBOX_YASM_Wno-segreg-in-64bit  ?=
VBOX_HAVE_FLEX    ?=
VBOX_HAVE_BISON   ?=
VBOX_HAVE_XMLLINT ?=
=========== END OF C:/Users/******/Documents/Projects/VirtualBoxSDK/out/win.amd64/release/DynamicConfig.kmk =========
C:/Users/******/Documents/Projects/VirtualBoxSDK/src/VBox/Main/webservice/Makefile.kmk:105: VBOX_PATH_GSOAP not found...
kBuild: Pass - Build Programs
kBuild: Compiling bin2c - C:/Users/******/Documents/Projects/VirtualBoxSDK/src/bldprogs/bin2c.c
kBuild: Compiling biossums - C:/Users/******/Documents/Projects/VirtualBoxSDK/src/bldprogs/biossums.c
bin2c.c
kBuild: Compiling filesplitter - C:/Users/******/Documents/Projects/VirtualBoxSDK/src/bldprogsbiossums.c
/filesplitter.cpp
kBuild: Compiling VBoxCmp - C:/Users/******/Documents/Projects/VirtualBoxSDK/src/bldprogs/VBoxCmp.cpp
filesplitter.cpp
VBoxCmp.cpp
kBuild: Compiling VBoxDef2LazyLoad - C:/Users/******/Documents/Projects/VirtualBoxSDK/src/bldprogs/VBoxDef2LazyLoad.cpp
kBuild: Compiling VBoxPeSetVerVBoxDef2LazyLoad.cpp
sion - C:/Users/******/Documents/Projects/VirtualBoxSDK/src/bldprogs/VBoxPeSetVersion.cpp
VBoxPeSetVersion.cpp
kBuild: Compiling VBoxCheckImports - C:/Users/******/Documents/Projects/VirtualBoxSDK/src/bldprogs/VBoxCheckImports.cpp
VBoxCheckImports.cpp
kBuild: Pass - Libraries
kBuild: Compiling VBox-liblzf - C:/Users/******/Documents/Projects/VirtualBoxSDK/src/libs/liblzf-3.4/lzf_c.c
lzf_c.c
c:\program files (x86)\microsoft visual studio 10.0\vc\include\codeanalysis\sourceannotations.h(79): error C2059: syntax error: '['
c:\program files (x86)\microsoft visual studio 10.0\vc\include\codeanalysis\sourceannotations.h(110): error C2059: syntax error: '['
c:\program files (x86)\microsoft visual studio 10.0\vc\include\codeanalysis\sourceannotations.h(141): error C2059: syntax error: '['
c:\program files (x86)\microsoft visual studio 10.0\vc\include\codeanalysis\sourceannotations.h(153): error C2059: syntax error: '['kBu
ilc:\program files (x86)\microsoft visual studio 10.0\vc\include\codeanalysis\sourceannotations.h(163): error C2059: syntax error: '['d: Co
mpilic:\program files (x86)\microsoft visual studio 10.0\vc\include\codeanalysis\sourceannotations.h(174): error C2059: syntax error: '['n
gc:\program files (x86)\microsoft visual studio 10.0\vc\include\codeanalysis\sourceannotations.h(184): error C2059: syntax error: '['
Vc:\program files (x86)\microsoft visual studio 10.0\vc\include\codeanalysis\sourceannotations.h(194): error C2059: syntax error: '['B
oc:\program files (x86)\microsoft visual studio 10.0\vc\include\codeanalysis\sourceannotations.h(206): error C2059: syntax error: '['x
-liblzf - C:/Users/******/Documents/Projects/VirtualBoxSDK/src/libs/liblzf-3.4/lzf_d.c
kBuild: Compiling VBox-liblzf-static - C:/Users/******/Documents/Projects/VirtualBoxSDK/src/libs/liblzf-3.4/lzf_c.c
kmk: *** [C:/Users/Florialzf_d.c
n/Documents/Projects/VirtualBoxSDK/out/win.amd64/release/obj/VBox-liblzf/lzf_c.obj] Error 2
The failing command:
c:\program files (x86)\microsoft visual studio 10.0\vc\include\codeanalysis\sourceannotations.h(79): error C2059: syntax error: '['@
 Clzf_c.c
c:\program files (x86)\microsoft visual studio 10.0\vc\include\codeanalysis\sourceannotations.h(110): error C2059: syntax error: '[':
\Pc:\program files (x86)\microsoft visual studio 10.0\vc\include\codeanalysis\sourceannotations.h(141): error C2059: syntax error: '['R
Oc:\program files (x86)\microsoft visual studio 10.0\vc\include\codeanalysis\sourceannotations.h(153): error C2059: syntax error: '['G
RAc:\program files (x86)\microsoft visual studio 10.0\vc\include\codeanalysis\sourceannotations.h(163): error C2059: syntax error: '['~
2\c:\program files (x86)\microsoft visual studio 10.0\vc\include\codeanalysis\sourceannotations.h(174): error C2059: syntax error: '['M
Ic:\program files (x86)\microsoft visual studio 10.0\vc\include\codeanalysis\sourceannotations.h(184): error C2059: syntax error: '['Cc:\program files (x86)\microsoft visual studio 10.0\vc\include\codeanalysis\sourceannotations.h(79): error C2059: syntax error: '['
R
Oc:\program files (x86)\microsoft visual studio 10.0\vc\include\codeanalysis\sourceannotations.h(194): error C2059: syntax error: '['Sc:\program files (x86)\microsoft visual studio 10.0\vc\include\codeanalysis\sourceannotations.h(110): error C2059: syntax error: '['
~
1c:\program files (x86)\microsoft visual studio 10.0\vc\include\codeanalysis\sourceannotations.h(206): error C2059: syntax error: '['c:\program files (x86)\microsoft visual studio 10.0\vc\include\codeanalysis\sourceannotations.h(141): error C2059: syntax error: '['.

0\c:\program files (x86)\microsoft visual studio 10.0\vc\include\codeanalysis\sourceannotations.h(153): error C2059: syntax error: '['V
C\c:\program files (x86)\microsoft visual studio 10.0\vc\include\codeanalysis\sourceannotations.h(163): error C2059: syntax error: '['b
ic:\program files (x86)\microsoft visual studio 10.0\vc\include\codeanalysis\sourceannotations.h(174): error C2059: syntax error: '['n
\c:\program files (x86)\microsoft visual studio 10.0\vc\include\codeanalysis\sourceannotations.h(184): error C2059: syntax error: '['a
mc:\program files (x86)\microsoft visual studio 10.0\vc\include\codeanalysis\sourceannotations.h(194): error C2059: syntax error: '['d
64c:\program files (x86)\microsoft visual studio 10.0\vc\include\codeanalysis\sourceannotations.h(206): error C2059: syntax error: '['\
cl.exe -c -TC -nologo -O2 -Zi -Zl -GR- -EHsc -GF -MD -W3 -wd4065 -wd4244 -wd4996 -Zc:wchar_t- -O2 -Oy- -WX -IC:/Users/******/Documents/Projects/VirtualBoxSDK/out/win.amd64/release/obj/VBox-liblzf/dtrace -IC:/PROGRA~2/MICROS~4.0/VC/include -IC:/WinDDK/7600.16385.1/inc/atl71 -IC:/PROGRA~1/MIA713~1/Windows/v7.1/Include -IC:/Users/******/Documents/Projects/VirtualBoxSDK/include -IC:/Users/******/Documents/Projects/VirtualBoxSDK/out/win.amd64/release -IC:/PROGRA~2/MICROS~4.0/VC/include -DVBOX -DVBOX_OSE -DVBOX_WITH_64_BITS_GUESTS -DVBOX_WITH_DEBUGGER -DRT_OS_WINDOWS -D__WIN__ -DRT_ARCH_AMD64 -D__AMD64__ -D__WIN64__ -DVBOX_WITH_HARDENING -DIN_RING3 -DHC_ARCH_BITS=64 -DGC_ARCH_BITS=64 -DULTRA_FAST=1 -DHLOG=12 -D_CRT_SECURE_NO_DEPRECATE -DSTRICT_ALIGN=0 -FdC:/Users/******/Documents/Projects/VirtualBoxSDK/out/win.amd64/release/obj/VBox-liblzf/lzf_c-obj.pdb -FD -FoC:/Users/******/Documents/Projects/VirtualBoxSDK/out/win.amd64/release/obj/VBox-liblzf/lzf_c.obj C:\\Users\\******\\Documents\\Projects\\VirtualBoxSDK\\src\\libs\\liblzf-3.4\\lzf_c.c
kmk: *** [C:/Users/******/Documents/Projects/VirtualBoxSDK/out/win.amd64/release/obj/VBox-liblzf/lzf_c.obj] Deleting file `C:/Users/******/Documents/Projects/VirtualBoxSDK/out/win.amd64/release/obj/VBox-liblzf/lzf_c-obj.idb'
kmk: *** Waiting for unfinished jobs....
kmk: *** [C:/Users/******/Documents/Projects/VirtualBoxSDK/out/win.amd64/release/obj/VBox-liblzf/lzf_d.obj] Error 2
The failing command:
@ C:\PROGRA~2\MICROS~1.0\VC\bin\amd64\cl.exe -c -TC -nologo -O2 -Zi -Zl -GR- -EHsc -GF -MD -W3 -wd4065 -wd4244 -wd4996 -Zc:wchar_t- -O2 -Oy- -WX -IC:/Users/******/Documents/Projects/VirtualBoxSDK/out/win.amd64/release/obj/VBox-liblzf/dtrace -IC:/PROGRA~2/MICROS~4.0/VC/include -IC:/WinDDK/7600.16385.1/inc/atl71 -IC:/PROGRA~1/MIA713~1/Windows/v7.1/Include -IC:/Users/******/Documents/Projects/VirtualBoxSDK/include -IC:/Users/******/Documents/Projects/VirtualBoxSDK/out/win.amd64/release -IC:/PROGRA~2/MICROS~4.0/VC/include -DVBOX -DVBOX_OSE -DVBOX_WITH_64_BITS_GUESTS -DVBOX_WITH_DEBUGGER -DRT_OS_WINDOWS -D__WIN__ -DRT_ARCH_AMD64 -D__AMD64__ -D__WIN64__ -DVBOX_WITH_HARDENING -DIN_RING3 -DHC_ARCH_BITS=64 -DGC_ARCH_BITS=64 -DULTRA_FAST=1 -DHLOG=12 -D_CRT_SECURE_NO_DEPRECATE -DSTRICT_ALIGN=0 -FdC:/Users/******/Documents/Projects/VirtualBoxSDK/out/win.amd64/release/obj/VBox-liblzf/lzf_d-obj.pdb -FD -FoC:/Users/******/Documents/Projects/VirtualBoxSDK/out/win.amd64/release/obj/VBox-liblzf/lzf_d.obj C:\\Users\\******\\Documents\\Projects\\VirtualBoxSDK\\src\\libs\\liblzf-3.4\\lzf_d.c
kmk: *** [C:/Users/******/Documents/Projects/VirtualBoxSDK/out/win.amd64/release/obj/VBox-liblzf/lzf_d.obj] Deleting file `C:/Users/******/Documents/Projects/VirtualBoxSDK/out/win.amd64/release/obj/VBox-liblzf/lzf_d-obj.idb'
kmk: *** [C:/Users/******/Documents/Projects/VirtualBoxSDK/out/win.amd64/release/obj/VBox-liblzf-static/lzf_c.obj] Error 2
The failing command:
@ C:\PROGRA~2\MICROS~1.0\VC\bin\amd64\cl.exe -c -TC -nologo -O2 -Zi -Zl -GR- -EHsc -GF -W3 -wd4065 -wd4244 -wd4996 -Zc:wchar_t- -O2 -Oy- -MT -IC:/Users/******/Documents/Projects/VirtualBoxSDK/out/win.amd64/release/obj/VBox-liblzf-static/dtrace -IC:/PROGRA~2/MICROS~4.0/VC/include -IC:/WinDDK/7600.16385.1/inc/atl71 -IC:/PROGRA~1/MIA713~1/Windows/v7.1/Include -IC:/Users/******/Documents/Projects/VirtualBoxSDK/include -IC:/Users/******/Documents/Projects/VirtualBoxSDK/out/win.amd64/release -IC:/PROGRA~2/MICROS~4.0/VC/include -DVBOX -DVBOX_OSE -DVBOX_WITH_64_BITS_GUESTS -DVBOX_WITH_DEBUGGER -DRT_OS_WINDOWS -D__WIN__ -DRT_ARCH_AMD64 -D__AMD64__ -D__WIN64__ -DVBOX_WITH_HARDENING -DIN_RT_STATIC -DIN_RT_R3 -DIN_SUP_STATIC -DIN_RING3 -DHC_ARCH_BITS=64 -DGC_ARCH_BITS=64 -DIN_RING3 -DHC_ARCH_BITS=64 -DGC_ARCH_BITS=64 -DULTRA_FAST=1 -DHLOG=12 -D_CRT_SECURE_NO_DEPRECATE -DSTRICT_ALIGN=0 -FdC:/Users/******/Documents/Projects/VirtualBoxSDK/out/win.amd64/release/obj/VBox-liblzf-static/lzf_c-obj.pdb -FD -FoC:/Users/******/Documents/Projects/VirtualBoxSDK/out/win.amd64/release/obj/VBox-liblzf-static/lzf_c.obj C:\\Users\\******\\Documents\\Projects\\VirtualBoxSDK\\src\\libs\\liblzf-3.4\\lzf_c.c
kmk: *** [C:/Users/******/Documents/Projects/VirtualBoxSDK/out/win.amd64/release/obj/VBox-liblzf-static/lzf_c.obj] Deleting file `C:/Users/******/Documents/Projects/VirtualBoxSDK/out/win.amd64/release/obj/VBox-liblzf-static/lzf_c-obj.idb'
kmk: *** Exiting with status 2


The first error it shows is:
c:\program files (x86)\microsoft visual studio 10.0\vc\include\codeanalysis\sourceannotations.h(79): error C2059: syntax error: '['

Which is the same error I've had before. It looks like it's still using the wrong cl.exe, even though I have visual studio 2010 installed, as well as the Windows 7.1 SDK (And I'm running everything through the command prompt of the SDK).
Is there some way I can force it to use the cl.exe in ".../Microsoft Visual Studio 10.0/VC/bin"?

// EDIT4:
I've tried renaming the "bin" directories of all visual studio versions except 2010 temporarily and ran "kmk" again. The log is... interesting?
Code: Select all   Expand viewCollapse view
C:\Users\******\Documents\Projects\VirtualBoxSDK>kmk
C:/Users/******/Documents/Projects/VirtualBoxSDK/src/VBox/Main/webservice/Makefile.kmk:105: VBOX_PATH_GSOAP not found...
kBuild: Pass - Build Programs
kBuild: Linking bin2c
kBuild: Linking biossums
kBuild: Linking filesplitter
kBuild: Linking VBoxCmp
bin2c.obj : error LNK2019: unresolved external symbol _fseek referenced in function _fsize
bin2c.obj : error LNK2019: unresolved extefrinlaels pslyimtbtoelr ._ofbtje l:l  errerfore LrNKe201n9: cunereds oilnv efdu necxttieornn a_lf ssiyzmeb
ol b_i_ns2tca.to6b4ji 3:2  errerfoerr eLnNcKVe2Bod0x 1Ci9bmn:ip  o.fusounsbnrujcem tss:io. oloenvbr ejr_d os :rte  axeLttrN
erKro2nr0fa 1ilL9l N:esKsy2pm0l b1iuo9tnl:tr eseol_v rfeu.pdnor rbieejnxs tto:fel  rvernereadrfl oe errsx eytLnmeNcbrKeon2dla0  l1i_ 9nvs: fy fpmuurbnniorcnlett sif_oo slnrtv ere_frduec srheaerxgn tecre
eerdfn eabirline n ns2fcycuem.ndboc obtiljin  o _:nfs  ute"nrreccrnthouirrmo   nrLR eNT_fKEne2Xar0Ime1Ten9C
c:Oe DduEb n iir_one_s scsfoduulemnvcscel.td oi pboerjnxi  tn:"et crEehnrraarrrl(o  cr*sh  yaL_mrN_b Kcoc2dlo0e n1c_s9l_t: _  si*uto,nrb.rc_.ehf.sru)o(n"lcc vh( ea?rdrpe  rfe*iex,nrtiteenEnrtrcn)rea"@dl @  (Yis?Anys? mtAfbrWuoc4nlhRc rTt_@Eiu@XonYInlAT iPC_nAOukDDs PEarA@geD@efHP
e@BrZDe)Zbn
Zic)ne
2dfc i.ilVoneBb sojfpx ulC:nim ctpett.rieororbon.jr o  _b:Lfj Na eKt:r2a r0leo1
rr9or :loL drNun KnaL2rmN0eeK1ss29o.0:ll1 vi9ueb:nd( r uueennsxlrotielensvrkoen.ldaov lbee jdxs) ty eem:xrb tnoeealrrl rn _oasrrlye  mmLsboNyovKmle2b  0o_r0lfe1 pf:_re virufnenptnrrfcei esnrdote lffiv enerr deef fnueecnxrectedten ircionennad  l f_ iumsnnay cimftnbui
onolcn tb _ii"uonenn2nl cui".mnio knbR
tjT  E_:Xb_ IiceTodrCserOscoDulrEm   spL_.rN_oiKcbn2djt0e E1c:r9l r: e( prcurrhnioarnrret  sELcorNolrKnv(2sec0tdh1  a9*er:,x  .tcu.eon.rnr)nse"ats l o( *l?s,vpy.erm.dib. no)etl"xE  tr_(erf?r@fpn@lraYuilAsn HhtsP EyBrrmDerbZf@oZe@l)rY
eA_n?fcAfceWild4lo ResiTsenEp  XlrfIieuTtfnCtecOertDreiE.no@ocn@be Pjd_B  mD:iaZ niZe n)rf

ruonrVcb BtiLoinNxo2KCnc2m .0p_o1.fb9oaj:bt  ja:u l n:
er reersbrooirrloo vsrLes NduLK mN2esK0x.21to09eb1:rj9 n :ua: nl ur enesrrsyreomoslbrovo lelLvd Ne_ Kdfe2 px0ert1xie9tnr:etn rfaun lnar rlese fyssemoyrblmeovbnleoc dle_  dfe_ ex_iot_nfei  rofrnbuea_nflfce utrsnieyconm ncbr eoe"dlfi  eni_rtnve  fn_fpc_urecniddcn etticifnlo   nrfp eur_fnimecnarttieiEnnor
cnre (d"cb ehiinannur2 m cf c.uRoonTnbcEsjtXt iI :oT* nC,e O.r_D.rfE.oa )rt_" a_ Llc(N
d?Kep2cbr0lii1 on9pstr:sEi urnumrtns@Er.@reoYrsbA(ojHcl Phv:Bae DrdeZ  rZcer)oxo
ntrse trLf nNi*aKl,l2e. 0s.s1p.y9l)m:i"b t out(lne? rrp_e.rfsoieobnrljtrv Eoe:rrd r  e@rer@exrYftoAeer?rr AenLWnaN4clKRe 2Tds0E y1Xim9Inb:T o CfluOu nDn_rEcfe@tps@iroPoilBnnvD teZ_fdZm  )are
iexnft
eVerBreobnnxiacCnlem2 dpcs ..yioomnbbb jjof  lu:: n  _cee_trr_irrioooonrrb   __LLffNNuaKKnt22ca00 l11r
99e::f  beuuirnnoerrsneescssueoomdlls vv.ieeonddb   jfee uxx:ntt ceeetrrrinnroaaonllr    "ssLiyyNnmmKtbb2 oo0_ll1_  9c__:dsi etsucrpnlerr rieprnsrotoir ln rvtreeEefdrfe rere(rexcenthnceacerredn d ac iloin nn ss fytfum unb*nco,ctl.ti .io_.on_)n _" _i "mo(sab?ti_prnfru
uicnntctb  Ei_rrnier2of@cbe@.urYofeAb nHj*cP  eB:_dD _ ZeciZrdn)re
ocfrlu  fnLoicNpltKeei2nso0Fpn1il 9li_:etf (taucetnhrara.lero
s bcojolb nvi:seo tdse  sr*eur)xmo"tsr e. (roL?nbNoajKpl 2e :0ns 1Fye9imr:lbr eoou@lrn@  rY_LeAfNsPrKoAe2lUa0v_d1ei 9dor: be eufuxfent@rre@eerPnsnBcoaDell@dv Z es)idy
n m ebfxoVutlBne ocr_xtnfCiacmollpn o. sso_yebmm jabr ioe:nlf
 ee_rrfebrwniorcnrie2 tdcLe .N ioKrnb2e j0ff 1eu:9rn :ece ntrucirneoordnre   si"LoniNl nKvft2eu 0dn_1 c_9etc:xid toeuencnr lrn_ eamoslapo ielsnnvy
Memadbk boeeilfxo its_les_erueLnmriasrsl.nt oo(sb cyjrhm eab:fro e lerc reo_rnnfocscretl d oL *sNi,eKnc 2 hr0fae1urf9n e:ccr toeuinnnoscrntee  ds"* os,iltsnvrt eurfdcuu tcne tcx_ tti_ieoiorbonnub afu_l fm * as *iy_ nm_*
bc)od"lbe  ic(_nl?f2 oecopr.peroenobnMrjFa  ikr:lee effe(ierclrrheeoaLnrric  seLctdNo@ Kn@i2sYn0tA 1 Hf9*Pu:)Bn "Dcu 0tn(Pir?AoeoPnspA oeU_ln_mvFiaeioidlbn eu
e@fx@@tYb@eAi@rPoZnAs)aUs
l_u imsosfyb.imuolbfbeo@jsl@ p P:l_B ifDeto@rtpZree)orn
r.  orLbeVNjfBK eo2:rx0 eC1enm9rcp:re. odour bn ijrLn eN :sKf o2uel0nrv1cre9tod:ir  o eunLxn Ntr_Keem2rsa0noi1aln9lv
: e sduy bnmeirbxneot2sleco r.l_novfaebrldje   ase:dyx  mterbereorrflnoe arr_l ef LnosNcpyKeem2dnb0  o1irl9ne : f_ fefuuronneprcneetcnsie oodrln ev ife_nedm r afeeiunxnnct
ceetdri bnoiiannol  s "fssiuuynnmmtcsb t.o_iol_ob cnj_d  se":tcs rtletr rouorlcpo terr n e_MLfiaNeokKrbe2euf0fni1 cl9*ee: dL_  i_uiscnntdr (eefccsuhlona lcrovt peicedoon nnFe six_tltm eea*(ri,cnncha
halar r s cbycoimonnbns2ostclt .  *o_*)bs,"jts  rt(:er? ruoercproterr no _Frrii eolLfbeNeu@Krf@2e Y0n*A1c P9e*A:d)U  "_ui inn(or ?befousupfone@lcn@vtMPeiaBdokD ne@e fZx_i)tml
eaeriLnVniaB
sloxCmp.tob jb@s i@y:oYm sAbesHoruPlrmB osD_r.0s oPtLbArNjPtK Ao2:Uu0 _l1ei 9ror:rbe oufurfen @rrL@eeN@nsKZco2)el0
dv1 e9id f:nei  xluftenuesrnrpecnlstaioiltlo tvnsee yrd_m. mboeaobxiljtn  e
_:rf neearbrlrir onosr2ry c mr.LbeoNofbKlej2 r 0_e:1_n 9ece:rer rdrun onoirr n er LsefNofuKlen2vrc0eet1dni9 co:een xd ut "neierrnnen usafmolu l nRvscTeytEdmiX boIeonTxl Ct _Oe_mDrsaEnti arn_le
_ rcsrdyoemrbcb iloro lesc fso_eum_rmp_esasn.recoecebFudjir  lii:etn sy e(_frscurtonorocrukt ciiLteoN  nK_r 2ie"0ofi1ben9urt:fe   n_u*c_n,ecrsddet esricounllc  vtfce uld_no icseotexbiMtuoaefnkr  en*_fa)mil"al  ies(nLy?
imcsbotom(lpbs ait_rnrfe2uoFccpi.telo neb_ sjir@ oe@:bfY ueAefr?r eAr*nWo,c4rieR ndTLt EN)iXK"nI2  T0(fC1?uO9cnD:lcE ot@usi@neoPrMnAea Usk__oemilfaoviibelnude
f L@ei@xbs0tit@eo@Zrs@)nsY
auAlmH sPVs.AByoUomb_xbjiCo oml:bp  u.@efo_r@b_r@jsoH er@:c Z uL)erN
riKrt2oy0fr_1i c9lLh:eNe sKcup2knl0_ri1ceto9sto:oek lriuv.eneo@rdb4e j se rox:elt fveeeerrrdnre aonelrcx  etsLdeyN rmKinb2nao0 ll1f  9us_:nym cmeutbmniosroleen ts _ o_frlmeevaofeifedn r
reeLnxeIctfNeeeKdrr  ne:ian nlce  erfsdruy onmircbn to LilfNo uKn_n2 _c0_et0mri1aro:inn no u
 "nLrerIeneNfusKemo r l:eRv nTeecEdreX rdIeo TxriCt nOeL DrNfEnKu a2n_l0c_ 0tcs1idy:oem ncbu lon" lric eno_stmmo pal_aiv_rneceCddFR eiTeclSxlett saec(rrlstnotuasrpleu
 McCsat:yk /me_Ubfisoioellbr eus_Lf/mi Fas*lit,on(srCstiRtraTrunSuc/tctDat or _ct_iuuiompobe
bunuftf os *l/*)dP,"nri aon(mjt?ee)csc"o.t mls(pi/?abVcr(ileuroFntsilueliaMenlaskBk@.oe@oxfYbSiAjDl?)KeA /LW:oi4 usRettTr/@Erw@XoiYIrnAT .HCLaPONmADKdUE26_@04i@0/oP1rbA:euU lf_ue@ina@orsHbee@us/Zfoo)@lb
@vj0e/@dfbZ ii)eln
xe2tscep/rVlbnBiiaotnlxt2 Cecsmr.yp.em.oxbobeobj lj :  : _: f_ eauertnrralrolior nr ek Lr
LNrCNKo:K2r/20 U01Ls19Ne9:Kr: 1s u1/un2Fnr0lre:oes rso1iol7alv nveu/ednDd ro eecexsuxtomteleervnrnetnadsal /l Pe srxsyotymjemberbocnoltal sl _/s_fV
frirereeta udra erlfeBeforexerSneDcnKec/deo dui tni/ nwf iufnnu.cnatcmitdoi6no4 n/" ri"eneltne ua_ms_ ecR/dToeEbcXjlI/ TbrCieOoaDsdEsF ui_ml_sec/(dbceihcoalsr s cucomomsnp.saertxe eF* i,:lc ehfsaa(rts at*lr  u*ec,rturk nom_srkii :ogL bnNueKfd1*  1**i2*,n0 st:[t  Cr*1:u)5/c" Ut us (ne_?rriresoes/baoFudllfFvo ier*ldi)e a"@en @x/(YtD?AeocHrcoPnumBampDleaPsnrA
tePsFA/iDPlPreAosIj@@e@ZcY)tA
s?/AVWi4frRitTluEeaXslIpBTloCixOtSDtDEeK@r/@.oPouAbtUj/_ wi:io nbe.urafrm@od@r60 4@L/ZNr)Ke
2l0e1aV9sB:eo /xuoCnbmrjpe/.sbooilbnvj2e cd:/  beeixrntr2eocrr.n eaLxlNe K]s2 y0Em1rb9ro:ol r u _n1fr1te2es0loll v
edf eeTrxhetene crfenadai lli insn ygfm ubcnooclmt mi_aofnncd l:"o
ne@t   rC_e:_f/cePdrReeOcnGlcR eArd~e 2ai/dnMF IifCluRenO(cSct~hi4ao.rn0  /c_VomCna/sibtni
n*L/,IlcNihKna kr:.  e*ex re*r ,o-urnn osLliNogKgn2oe0 d0- 1mi:an ctuh n*ir)ne"es :o(xl?8vr6ee da  d eF xi tl ee r@ n@ aY lA  H sP yB mD bP oA lP  A _D mP aA iI n@ CZ R) T
 S-tIagrntfouirple
e:Cs4:p1/l9Ui7st et/reNsrO/.DFo lb/ojIr Ni:Ca RneE/rMDrEooNcrTu AmLLeN:nKNt2Os0 /1/P9Mr:Ao PjuIenNcrFteOss:/oEVlXivPreOtdRu TaeSlx Bt/oeLxraSnrDagKle/ Aosduydtmr/bewosilsn A._wafamerdre6r 4o//rDr yernleaefmaeisrceeB/naocsbeejd / /ViNBnxo CxfoCummnppca/ttVi Bo/onRx eC"lmiepna.tse ex_ e_/ cD:de ebfcualgt  ar/leO apedtrF:riRoleref ( Lc/hNOaKpr1t 1:c2Io0cn:fs  t1/ 1V* e,urcnshriaeorsn o:*l5 v0*e0,d.u 2ne2sx it/geDnrIenSdaA lLisLn
OtW L*I)B": l(i?brceda.dlFiibl e/@D@IYSAAHLPLBODWPLAIPBA:DlPiAbIc@mZt)d
.libf i/lDeIsSpAlLiLtOtWeLrI.Bo:bmjs v:c retr.rloirb  L/NDKI2S0A1L9L:O WuLnIrBe:smoslvvcerdt de.xltiebr n/aDlI SsAyLmLbOoWlL I_Bf:rmesavdc prretf.elriebn c/eDdI SiAnL LfOuWnLcItBi:omns v"cipnrtt d_._lcidbe c l   r e a/dOFUiTl:eC(:c/hUasre rcso/nFslto r*i,acnh/aDro c*u m*e,nutnss/iPgrnoejde citnst/ V*i)r"t u(a?lrBeoaxdSFDiKl/eo@u@tY/AwHiPnB.DaPmAdP6A4D/PrAeIl@eZa)s
e/obj/fbiilne2scp/lbiitnt2ecr..eoxbej  /:M AePrIrNoFrO :LENXKP2O0R1T9S:  /uInNrCeRsEoMlEvNeTdA Le:xNtOe r/nMaAlP :sCy:m/bUosle r_sm/aFllloorci arne/fDeorceunmceendt si/nP rfoujneccttiso/nV i"ritnuta l_B_ocxdSeDcKl/ orueta/dwFiinl.ea(mcdh6a4r/ rceolnesats e*/,ocbhja/rb i*n 2*c,/ubnisni2gcn.emda pi n t   */)L"I B(P?ArTeHa:dCF:i/lPeR@O@GYRAAH~P1B/DMPIAAP7A1D3P~A1I/@WZi)n
dows/fvi7l.e1s/pLliibt t@eCr:./oUbsje r:s /eFrlroorri aLnN/KD2o0c1u9m:e nutnsr/ePsrooljveecdt se/xVtierrtnuaall BsoyxmSbDoKl/ o_u_t_/sweicnu.raimtdy6_4c/oroeklieea sree/foebrje/nbciend2 ci/nb ifnu2ncc.trisopn "
nt __cdekcmlk :r ead*F*i*l e[(Cc:h/aUrs ecrosn/sFtl o*r,icahna/rD o*c u*m,eunntssi/gPnreodj eicntts /*V)i"r t(u?arleBaodxFSiDlKe/@o@uYtA/HwPiBnD.PaAmPdA6D4P/ArIe@lZe)a
se/obfji/lbeisnp2lci/tbtienr2.co.bejx e:]  eDrerloert iLnNgK 2f0i1l9e:  `uCn:r/eUssoelrvse/dF leoxrtiearnn/aDlo csuymmebnotls /@P_r_osjeeccutrsi/tVyi_rcthueaclkB_ocxoSoDkKi/eo@u4t /rweifne.raemndc6e4d/ rienl efausnec/toibojn/ b"iinn2tc /_b_icnd2ecc.lm arpe'adF
le(char consktm k*:, cha*r* **  [*C,:u/nUssiegrnse/dF lionrti a*n)/"D o(c?urmeeandtFsi/lPer@o@jYeAcHtPsB/DVPiArPtAuDaPlABIo@xZS)D
K/outf/iwliens.palmidt6t4e/rr.eolbeja s:e /eorbrjo/rb iLnN2Kc2/0b1i9n:2 ucn.reexseo]l vDeedl eetxitnegr nfaill es y`mCb:o/lU s_efrwsr/iFtleo rrieafne/rDeonccuedm ienn tfsu/nPcrtoijoenc t"si/nVti r_t_ucadleBcolx wSrDiKt/eoSuutb/Fwiilne.(acmhda6r4 /croenlseta s*e,/cohbajr/ bcionn2sct/ b*i,nu2ncs.irgsnpe'd i
t)" (?writkemSku:b Fil*e*@*@ Y[ACH:P/BUDs0eIr@sZ/)F
loriafni/lDeoscpulmietnttesr/.Porbojj e:c tesr/rVoirr tLuNaKl2B0o1x9S:D Ku/noruets/owlivne.da medx6t4e/rrnealle assyem/booblj /_bpirni2nct/fb irne2fce.reexnec]e dD eilne tfiunngc tfiiolne  "`iCn:t/ U_s_ecrdse/cFll osrpilaint/FDiolceu(mcehnatrs /cPornosjte c*t,sc/hVairr tcuoanlsBto x*S,DsKt/rouuctt/ w_iino.baumfd 6*4)/"r e(l?esapslei/toFbijl/eb@i@nY2AcH/PbBiDn02PcA.Up_dibo'buf
@@Z)
fileskpmlki:t ter*.*o*b jW a:i teirnrgo rf oLrN Ku2n0f1i9n:i suhnerde sjoolbvse.d. .e.xte
nal ksmykm:b ol *_*m*e m[cCh:r/ Urseefresr/eFnlcoerdi ainn/ Dfoucnucmteinotns /"Pirnotj e_c_tcsd/eVcilr tsupalliBtoFxiSlDeK(/cohuatr/ wcionn.satm d*6,4c/hraerl ecaosnes/to b*j,/sbtirouscstu m_si/obbiuofs s*u)m"s .(e?xsep]l iEtrFriolre @1@1Y2A0HPB
0PATU_hieo bfuafi@l@i@nZg)
commafnidl:e
p@l iCt:t/ePrR.OoGbRjA ~:2 /eMrIrCoRrO SL~N4K.200/1V9C:/ buinnr/elsionlkv.eedx ee x-tneorlnoaglo  s-ymmabcohli n_es:txr8s6t r   r e f e r e n c e d   i n   f u n c t i o n   " i-nItg n_o_rced:e4c1l9 7s p/lNiOtDF i/lIeN(CcRhEaMrE NcToAnLs:tN O* ,/cMhAaPrI NcFoOn:sEtX P*O,RsTtSr u/cLta r_gieoAbdudfr e*s)s"A w(a?rsep l/iDtyFnialmei@c@BYaAsHeP B/DN0xPCAoUm_piaotb u/fR@e@l@eZa)s
e /Defbiulge s/pOlpitt:tReerf. o/bOjp t:: Iecrfr o/rV eLrNsKi2o0n1:95:0 0u.n2r2e s/oDlIvSeAdL LeOxWtLeIrBn:alli bscydm.bloilb  _/mDeImScApLyL OrWeLfIeBr:elnicbecdm tidn. lfiubn c/tDiIoSnA L"LiOnWtL I_B_:cmdsevcclr ts.plliibt F/iDlIeS(AcLhLaOrW LcIoBn:smts v*c,rcthda.rl icbo n/sDtI S*A,LsLtOrWuLcItB :_misovbcupfr t*.)l"i b( ?/sDpIlSiAtLFLiOlWeL@I@BY:AmHsPvBcDp0rPtAdU._liiobb u f @ @ @ Z/)O
ULTI:NCK: /:U seerrrso/rF lLoNrKi2a0n0/1D:o cuunmreenstosl/vPerdo jeexcttesr/nVailr tsuyamlbBoolx S_DmKa/ionuCtR/TwSitna.ratmudp6
4C/:r/eUlseearsse//Folbojr/ibaino/sDsoucmusm/ebnitoss/sPurmosj.eecxtes //VMiArPtIuNaFlOB:oExXSPDOKR/ToSu t//IwNiCnR.EaMmEdN6T4A/Lr:eNlOe a/sMeA/Po:bCj://fUisleerssp/lFiltotreira/nf/iDloecsupmleintttse/rP.reoxjee c:t sf/aVtiarlt uearlrBoorx SLDNKK/1o1u2t0/:w i2n2. aumndr6e4s/orlevleeda seex/toebrjn/abliso
ssums/biossums.map    /LIBPATH:C:/PROGRA~1/MIA713~1/Windows/v7.1/Lib @C:/Users/******/Documents/Projects/VirtualBoxSDK/out/win.amd64/release/obj/biossums/biossums.rsp
kmk: *** [C:/Users/******/Documents/Projects/VirtualBoxSDK/out/win.amd64/release/obj/biossums/biossums.exe] Deleting file `C:/Users/******/Documents/Projects/VirtualBoxSDK/out/win.amd64/release/obj/biossums/biossums.map'
kmk: *** [C:/Users/******/Documents/Projects/VirtualBoxSDK/out/win.amd64/release/obj/biossums/biossums.exe] Deleting file `C:/Users/******/Documents/Projects/VirtualBoxSDK/out/win.amd64/release/obj/biossums/biossums.rsp'
kmk: *** [C:/Users/******/Documents/Projects/VirtualBoxSDK/out/win.amd64/release/obj/biossums/biossums.exe] Deleting file `C:/Users/******/Documents/Projects/VirtualBoxSDK/out/win.amd64/release/obj/biossums/biossums.pdb'
kmk: *** [C:/Users/******/Documents/Projects/VirtualBoxSDK/out/win.amd64/release/obj/filesplitter/filesplitter.exe] Error 1120
The failing command:
@ C:/PROGRA~2/MICROS~4.0/VC/bin/link.exe -nologo -machine:x86                           -Ignore:4197 /NOD /INCREMENTAL:NO /MAPINFO:EXPORTS /LargeAddressAware /DynamicBase /NxCompat /Release /Debug /Opt:Ref /Opt:Icf /Version:500.22 /DISALLOWLIB:libcd.lib /DISALLOWLIB:libcmtd.lib /DISALLOWLIB:msvcrt.lib /DISALLOWLIB:msvcrtd.lib /DISALLOWLIB:msvcprt.lib /DISALLOWLIB:msvcprtd.lib      /OUT:C:/Users/******/Documents/Projects/VirtualBoxSDK/out/win.amd64/release/obj/filesplitter/filesplitter.exe /MAPINFO:EXPORTS /INCREMENTAL:NO /MAP:C:/Users/******/Documents/Projects/VirtualBoxSDK/out/win.amd64/release/obj/filesplitter/filesplitter.map    /LIBPATH:C:/PROGRA~1/MIA713~1/Windows/v7.1/Lib @C:/Users/******/Documents/Projects/VirtualBoxSDK/out/win.amd64/release/obj/filesplitter/filesplitter.rsp
kmk: *** [C:/Users/******/Documents/Projects/VirtualBoxSDK/out/win.amd64/release/obj/filesplitter/filesplitter.exe] Deleting file `C:/Users/******/Documents/Projects/VirtualBoxSDK/out/win.amd64/release/obj/filesplitter/filesplitter.map'
kmk: *** [C:/Users/******/Documents/Projects/VirtualBoxSDK/out/win.amd64/release/obj/filesplitter/filesplitter.exe] Deleting file `C:/Users/******/Documents/Projects/VirtualBoxSDK/out/win.amd64/release/obj/filesplitter/filesplitter.rsp'
kmk: *** [C:/Users/******/Documents/Projects/VirtualBoxSDK/out/win.amd64/release/obj/filesplitter/filesplitter.exe] Deleting file `C:/Users/******/Documents/Projects/VirtualBoxSDK/out/win.amd64/release/obj/filesplitter/filesplitter.pdb'
kmk: *** [C:/Users/******/Documents/Projects/VirtualBoxSDK/out/win.amd64/release/obj/VBoxCmp/VBoxCmp.exe] Error 1120
The failing command:
@ C:/PROGRA~2/MICROS~4.0/VC/bin/link.exe -nologo -machine:x86                           -Ignore:4197 /NOD /INCREMENTAL:NO /MAPINFO:EXPORTS /LargeAddressAware /DynamicBase /NxCompat /Release /Debug /Opt:Ref /Opt:Icf /Version:500.22 /DISALLOWLIB:libcd.lib /DISALLOWLIB:libcmtd.lib /DISALLOWLIB:msvcrt.lib /DISALLOWLIB:msvcrtd.lib /DISALLOWLIB:msvcprt.lib /DISALLOWLIB:msvcprtd.lib      /OUT:C:/Users/******/Documents/Projects/VirtualBoxSDK/out/win.amd64/release/obj/VBoxCmp/VBoxCmp.exe /MAPINFO:EXPORTS /INCREMENTAL:NO /MAP:C:/Users/******/Documents/Projects/VirtualBoxSDK/out/win.amd64/release/obj/VBoxCmp/VBoxCmp.map    /LIBPATH:C:/PROGRA~1/MIA713~1/Windows/v7.1/Lib @C:/Users/******/Documents/Projects/VirtualBoxSDK/out/win.amd64/release/obj/VBoxCmp/VBoxCmp.rsp
kmk: *** [C:/Users/******/Documents/Projects/VirtualBoxSDK/out/win.amd64/release/obj/VBoxCmp/VBoxCmp.exe] Deleting file `C:/Users/******/Documents/Projects/VirtualBoxSDK/out/win.amd64/release/obj/VBoxCmp/VBoxCmp.map'
kmk: *** [C:/Users/******/Documents/Projects/VirtualBoxSDK/out/win.amd64/release/obj/VBoxCmp/VBoxCmp.exe] Deleting file `C:/Users/******/Documents/Projects/VirtualBoxSDK/out/win.amd64/release/obj/VBoxCmp/VBoxCmp.rsp'
kmk: *** [C:/Users/******/Documents/Projects/VirtualBoxSDK/out/win.amd64/release/obj/VBoxCmp/VBoxCmp.exe] Deleting file `C:/Users/******/Documents/Projects/VirtualBoxSDK/out/win.amd64/release/obj/VBoxCmp/VBoxCmp.pdb'
kmk: *** Exiting with status 2
petyr72
 
Posts: 9
Joined: 26. Jun 2016, 21:23

Re: Windows build error: Conflicting types for 'RTASSERTVAR'

Postby mhanor » 18. Jul 2016, 10:00

Run kmk -j1
This will give you readable output. Otherwise this happens when concurrent make processes write messages to the console.
mhanor
Volunteer
 
Posts: 317
Joined: 7. Oct 2009, 12:40
Primary OS: MS Windows 10
VBox Version: PUEL
Guest OSses: various

Re: Windows build error: Conflicting types for 'RTASSERTVAR'

Postby petyr72 » 18. Jul 2016, 10:04

mhanor wrote:Run kmk -j1
This will give you readable output. Otherwise this happens when concurrent make processes write messages to the console.


Thanks. Looks like it's only linker errors left now:
Code: Select all   Expand viewCollapse view
C:\Users\******\Documents\Projects\VirtualBoxSDK>kmk -j1
C:/Users/******/Documents/Projects/VirtualBoxSDK/src/VBox/Main/webservice/Makefile.kmk:105: VBOX_PATH_GSOAP not found...
kBuild: Pass - Build Programs
kBuild: Linking bin2c
bin2c.obj : error LNK2019: unresolved external symbol _fseek referenced in function _fsize
bin2c.obj : error LNK2019: unresolved external symbol _ftell referenced in function _fsize
bin2c.obj : error LNK2019: unresolved external symbol _fprintf referenced in function _usage
bin2c.obj : error LNK2019: unresolved external symbol ___iob_func referenced in function _usage
bin2c.obj : error LNK2019: unresolved external symbol _remove referenced in function _main
bin2c.obj : error LNK2019: unresolved external symbol _fflush referenced in function _main
bin2c.obj : error LNK2019: unresolved external symbol _feof referenced in function _main
bin2c.obj : error LNK2019: unresolved external symbol _ferror referenced in function _main
bin2c.obj : error LNK2019: unresolved external symbol _isprint referenced in function _main
bin2c.obj : error LNK2019: unresolved external symbol _fread referenced in function _main
bin2c.obj : error LNK2019: unresolved external symbol _fclose referenced in function _main
bin2c.obj : error LNK2019: unresolved external symbol _fopen referenced in function _main
bin2c.obj : error LNK2019: unresolved external symbol _strtol referenced in function _main
bin2c.obj : error LNK2019: unresolved external symbol _strtoul referenced in function _main
bin2c.obj : error LNK2019: unresolved external symbol ___security_cookie referenced in function _main
bin2c.obj : error LNK2019: unresolved external symbol @__security_check_cookie@4 referenced in function _main
LINK : error LNK2001: unresolved external symbol _mainCRTStartup
C:/Users/******/Documents/Projects/VirtualBoxSDK/out/win.amd64/release/obj/bin2c/bin2c.exe : fatal error LNK1120: 17 unresolved externals
kmk: *** [C:/Users/******/Documents/Projects/VirtualBoxSDK/out/win.amd64/release/obj/bin2c/bin2c.exe] Error 1120
The failing command:
@ C:/PROGRA~2/MICROS~4.0/VC/bin/link.exe -nologo -machine:x86                           -Ignore:4197 /NOD /INCREMENTAL:NO /MAPINFO:EXPORTS /LargeAddressAware /DynamicBase /NxCompat /Release /Debug /Opt:Ref /Opt:Icf /Version:500.22 /DISALLOWLIB:libcd.lib /DISALLOWLIB:libcmtd.lib /DISALLOWLIB:msvcrt.lib /DISALLOWLIB:msvcrtd.lib /DISALLOWLIB:msvcprt.lib /DISALLOWLIB:msvcprtd.lib      /OUT:C:/Users/******/Documents/Projects/VirtualBoxSDK/out/win.amd64/release/obj/bin2c/bin2c.exe /MAPINFO:EXPORTS /INCREMENTAL:NO /MAP:C:/Users/******/Documents/Projects/VirtualBoxSDK/out/win.amd64/release/obj/bin2c/bin2c.map    /LIBPATH:C:/PROGRA~1/MIA713~1/Windows/v7.1/Lib @C:/Users/******/Documents/Projects/VirtualBoxSDK/out/win.amd64/release/obj/bin2c/bin2c.rsp
kmk: *** [C:/Users/******/Documents/Projects/VirtualBoxSDK/out/win.amd64/release/obj/bin2c/bin2c.exe] Deleting file `C:/Users/******/Documents/Projects/VirtualBoxSDK/out/win.amd64/release/obj/bin2c/bin2c.map'
kmk: *** [C:/Users/******/Documents/Projects/VirtualBoxSDK/out/win.amd64/release/obj/bin2c/bin2c.exe] Deleting file `C:/Users/******/Documents/Projects/VirtualBoxSDK/out/win.amd64/release/obj/bin2c/bin2c.rsp'
kmk: *** [C:/Users/******/Documents/Projects/VirtualBoxSDK/out/win.amd64/release/obj/bin2c/bin2c.exe] Deleting file `C:/Users/******/Documents/Projects/VirtualBoxSDK/out/win.amd64/release/obj/bin2c/bin2c.pdb'

C:\Users\******\Documents\Projects\VirtualBoxSDK>
petyr72
 
Posts: 9
Joined: 26. Jun 2016, 21:23

Re: Windows build error: Conflicting types for 'RTASSERTVAR'

Postby mhanor » 18. Jul 2016, 10:17

C:/PROGRA~2/MICROS~4.0/VC/bin/link.exe -nologo -machine:x86

That's not good...
Also, you should clean the out folder.
mhanor
Volunteer
 
Posts: 317
Joined: 7. Oct 2009, 12:40
Primary OS: MS Windows 10
VBox Version: PUEL
Guest OSses: various

Re: Windows build error: Conflicting types for 'RTASSERTVAR'

Postby petyr72 » 18. Jul 2016, 10:57

mhanor wrote:
C:/PROGRA~2/MICROS~4.0/VC/bin/link.exe -nologo -machine:x86

That's not good...
Also, you should clean the out folder.

Hm.. I'm not sure why it's trying to link with x86 architecture, the "out" directory only contains "win.amd64".
I've tried running the command with "-machine:amd64" manually instead:
Code: Select all   Expand viewCollapse view
C:\Users\Florian\Documents\Projects\VirtualBoxSDK>C:/PROGRA~2/MICROS~4.0/VC/bin/link.exe -nologo -machine:amd64                           -Ignore:4197 /NOD /INCREMENTAL:NO /MAPINFO:EXPORTS /LargeAddressAware /DynamicBase /NxCompat /Release /Debug /Opt:Ref /Opt:Icf /Version:500.22 /DISALLOWLIB:libcd.lib /DISALLOWLIB:libcmtd.lib /DISALLOWLIB:msvcrt.lib /DISALLOWLIB:msvcrtd.lib /DISALLOWLIB:msvcprt.lib /DISALLOWLIB:msvcprtd.lib      /OUT:C:/Users/Florian/Documents/Projects/VirtualBoxSDK/out/win.amd64/release/obj/bin2c/bin2c.exe /MAPINFO:EXPORTS /INCREMENTAL:NO /MAP:C:/Users/Florian/Documents/Projects/VirtualBoxSDK/out/win.amd64/release/obj/bin2c/bin2c.map    /LIBPATH:C:/PROGRA~1/MIA713~1/Windows/v7.1/Lib @C:/Users/Florian/Documents/Projects/VirtualBoxSDK/out/win.amd64/release/obj/bin2c/bin2c.rsp
C:\Users\Florian\Documents\Projects\VirtualBoxSDK\out\win.amd64\release\obj\bin2c\bin2c.obj : fatal error LNK1112: module machine type 'X86' conflicts with target machine type 'x64'


How can I force the entire thing to be built with x64?
I've also tried setting "g_strTargetArch" in configure.vbs to "amd64" and retried the whole process (Cleaned as well), same result.
petyr72
 
Posts: 9
Joined: 26. Jun 2016, 21:23

Re: Windows build error: Conflicting types for 'RTASSERTVAR'

Postby mhanor » 18. Jul 2016, 12:37

You probably have something set the wrong way in your environment or in your LocalConfig.kmk, I can't say anything about it, without having a look at your configure.log, LocalConfig.kmk and AutoConfig.kmk files
My bin2c.exe is a 64 bit executable, so that's why I think it's a not good sign.

Btw, you can't link objects that were build for 32 bit, into a 64 bit executable.
mhanor
Volunteer
 
Posts: 317
Joined: 7. Oct 2009, 12:40
Primary OS: MS Windows 10
VBox Version: PUEL
Guest OSses: various

Next

Return to VirtualBox OSE

Who is online

Users browsing this forum: No registered users and 1 guest