Windows build error: Conflicting types for 'RTASSERTVAR'

Discussions related to using the OSE version of VirtualBox.

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

Postby petyr72 » 18. Jul 2016, 13:23

mhanor wrote: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.

I don't have a LocalConfig.kmk.

Here are the others:
- Config.kmk: http://pastebin.com/MBAuH9Fp
- Configure.log: http://pastebin.com/NDeifU4u
- AutoConfig.kmk: http://pastebin.com/SwTHU9uw
petyr72
 
Posts: 9
Joined: 26. Jun 2016, 21:23

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

Postby mhanor » 18. Jul 2016, 21:56

Run
Code: Select all   Expand viewCollapse view
set > env.txt
and attach the env.txt file.
Have you cleaned the out folder for a fresh build?
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 » 19. Jul 2016, 09:58

mhanor wrote:Run
Code: Select all   Expand viewCollapse view
set > env.txt
and attach the env.txt file.
Have you cleaned the out folder for a fresh build?


Here's the env.txt:
Code: Select all   Expand viewCollapse view
ADSK_3DSMAX_x64_2016=C:\Program Files\Autodesk\3ds Max 2016\
ALLUSERSPROFILE=C:\ProgramData
APPDATA=C:\Users\******\AppData\Roaming
APPVER=6.1
AWE_DIR=C:\Program Files (x86)\Awesomium Technologies LLC\Awesomium SDK\1.7.5.1\
CL=/AI C:\WINDOWS\Microsoft.NET\Framework64\v4.0.30319
CMAKE_PREFIX_PATH=C:\Users\******\Documents\Projects\libvorbis-1.3.5
CommandPromptType=Native
CommonProgramFiles=C:\Program Files\Common Files
CommonProgramFiles(x86)=C:\Program Files (x86)\Common Files
CommonProgramW6432=C:\Program Files\Common Files
COMPUTERNAME=DESKTOP-49H16N8
ComSpec=C:\WINDOWS\system32\cmd.exe
Configuration=Debug
CURRENT_CPU=x64
DXSDK_DIR=C:\Program Files (x86)\Microsoft DirectX SDK (June 2010)\
FrameworkVersion=v4.0.30319
GTK_BASEPATH=C:\Program Files (x86)\GtkSharp\2.12\
HOMEDRIVE=C:
HOMEPATH=\Users\******
INCLUDE=C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\INCLUDE;C:\Program Files\Microsoft SDKs\Windows\v7.1\INCLUDE;C:\Program Files\Microsoft SDKs\Windows\v7.1\INCLUDE\gl;
KBUILD_PATH=C:/Users/******/Documents/Projects/VirtualBoxSDK/kBuild
KBUILD_TARGET=win
KBUILD_TARGET_ARCH=amd64
LIB=C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\Lib\amd64;C:\Program Files\Microsoft SDKs\Windows\v7.1\Lib\X64;
LIBPATH=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\VC\Lib\amd64;
LOCALAPPDATA=C:\Users\******\AppData\Local
LOGONSERVER=\\DESKTOP-49H16N8
NUMBER_OF_PROCESSORS=4
ORIGINALPATH=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\
OS=Windows_NT
Path=C:/Users/******/Documents/Projects/VirtualBoxSDK/kBuild/bin/win.x86;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\Common7/IDE;;C:\Users\******\Documents\Projects\VirtualBoxSDK/tools/win.amd64/bin;
PATHEXT=.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC;.PY
PlatformToolset=Windows7.1SDK
PROCESSOR_ARCHITECTURE=AMD64
PROCESSOR_IDENTIFIER=Intel64 Family 6 Model 30 Stepping 5, GenuineIntel
PROCESSOR_LEVEL=6
PROCESSOR_REVISION=1e05
ProgramData=C:\ProgramData
ProgramFiles=C:\Program Files
ProgramFiles(x86)=C:\Program Files (x86)
ProgramW6432=C:\Program Files
PROMPT=$P$G
PSModulePath=C:\WINDOWS\system32\WindowsPowerShell\v1.0\Modules\
PUBLIC=C:\Users\Public
sdkdir=C:\Program Files\Microsoft SDKs\Windows\v7.1\
sourcesdk=C:\Program Files (x86)\Steam\steamapps\common\SourceSDK
SystemDrive=C:
SystemRoot=C:\WINDOWS
TARGET_CPU=x64
TARGET_PLATFORM=WIN7
TEMP=C:\Users\******\AppData\Local\Temp
TMP=C:\Users\******\AppData\Local\Temp
ToolsVersion=4.0
USERDOMAIN=DESKTOP-49H16N8
USERDOMAIN_ROAMINGPROFILE=DESKTOP-49H16N8
USERNAME=******
USERPROFILE=C:\Users\******
VBOX_MSI_INSTALL_PATH=C:\Program Files\Oracle\VirtualBox\
VK_SDK_PATH=C:\VulkanSDK\1.0.11.1
VProject=C:\Program Files (x86)\Steam\steamapps\common\half-life 2 episode two\ep2
VS100COMNTOOLS=C:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\Tools\
VS110COMNTOOLS=C:\Program Files (x86)\Microsoft Visual Studio 11.0\Common7\Tools\
VS120COMNTOOLS=C:\Program Files (x86)\Microsoft Visual Studio 12.0\Common7\Tools\
VS140COMNTOOLS=C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\Tools\
VSSDK140Install=C:\Program Files (x86)\Microsoft Visual Studio 14.0\VSSDK\
VULKAN_SDK=C:\VulkanSDK\1.0.11.1
windir=C:\WINDOWS
WindowsSDKDir=C:\Program Files\Microsoft SDKs\Windows\v7.1\
WindowsSDKVersionOverride=v7.1


What I've been doing is basically:
  • Delete "out"-directory
  • Start Windows SDK 7.1 Command Prompt as administrator
  • Change to VirtualBoxSDK directory
  • Run:
Code: Select all   Expand viewCollapse view
cscript configure.vbs ^
  --with-DDK="C:\WinDDK\7600.16385.1" ^
  --with-libSDL=C:\Users\******\Documents\SDL-1.2.15 ^
  --with-Qt4=C:\Qt\4.8.4 ^
  --with-MinGW-w64="C:\Users\******\Documents\mingw64" ^
  --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

  • Run: kBuild\envwin.cmd --win64
  • Run: env.bat
  • Run: kmk -j1
petyr72
 
Posts: 9
Joined: 26. Jun 2016, 21:23

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

Postby mhanor » 20. Jul 2016, 09:37

Show me the current build log.
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 petyr73 » 20. Jul 2016, 12:07

Here's the log after calling cscript configure:
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-MinGW-w64="C:\Users\******\Documents\mingw64" ^
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++...
 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/******/Documents/mingw64
Checking for libSDL...
 Found libSDL: C:/Users/******/Documents/SDL-1.2.15
Checking for openssl...
 Found openssl: C:/Users/******/Documents/openssl-1.0.1t
Checking for libcurl...
 Found libcurl: C:/Users/******/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 log after calling envwin.cmd:
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:\WINDOWS\MicrosoftNET\Framework64\v4.0.30319;C:\WINDOWS\MicrosoftNET\Framework\v4.0.30319;C:\WINDOWS\MicrosoftNET\Framework64\v3.5;C:\WINDOWS\MicrosoftNET\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)\NVIDIA Corporation\PhysX\Common


Here's the log after calling kmk:
Code: Select all   Expand viewCollapse view
C:\Users\******\Documents\Projects\VirtualBoxSDK>env.bat

C:\Users\******\Documents\Projects\VirtualBoxSDK>kmk -j1
Config.kmk:2579: C:/Users/******/Documents/Projects/VirtualBoxSDK/out/win.amd64/release/DynamicConfig.kmk: No such file or directory
Config.kmk:6265: C:/Users/******/Documents/Projects/VirtualBoxSDK/out/win.amd64/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.amd64/release/vboxapiwrap.kmk: No such file or directory
C:/Users/******/Documents/Projects/VirtualBoxSDK/out/win.amd64/release/obj/VirtualBox_stripped.xidl.ts -> C:/Users/******/Documents/Projects/VirtualBoxSDK/out/win.amd64/release/obj/VirtualBox_stripped.xidl
kBuild: Generating C:/Users/******/Documents/Projects/VirtualBoxSDK/out/win.amd64/release/vboxapiwrap.kmk
C:/Users/******/Documents/Projects/VirtualBoxSDK/out/win.amd64/release/vboxapiwrap.kmk.ts -> C:/Users/******/Documents/Projects/VirtualBoxSDK/out/win.amd64/release/vboxapiwrap.kmk
kBuild: Generating C:/Users/******/Documents/Projects/VirtualBoxSDK/out/win.amd64/release/revision.kmk
C:/Users/******/Documents/Projects/VirtualBoxSDK/out/win.amd64/release/revision.kmk.ts -> C:/Users/******/Documents/Projects/VirtualBoxSDK/out/win.amd64/release/revision.kmk
process_begin: CreateProcess(NULL, gcc.exe -print-libgcc-file-name, ...) failed.
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             ?=
VBOX_GCC32_PATH_CXX            ?=
VBOX_GCC32_VERSION_CC          ?= 30303
VBOX_GCC32_VERSION_CXX         ?= 30303
VBOX_GCC32_LIBGCC              ?=
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 =========
kBuild: Generating C:/Users/******/Documents/Projects/VirtualBoxSDK/out/win.amd64/release/version-stamp-raw-api-5.0.22_OSE-2016-Oracle_Corporation-Oracle_VM_VirtualBox-5_0-_OSE-******
kBuild: Generating C:/Users/******/Documents/Projects/VirtualBoxSDK/out/win.amd64/release/version-generated.h
kBuild: Generating C:/Users/******/Documents/Projects/VirtualBoxSDK/out/win.amd64/release/version-generated.mk
kBuild: Generating C:/Users/******/Documents/Projects/VirtualBoxSDK/out/win.amd64/release/product-generated.h
kBuild: Generating C:/Users/******/Documents/Projects/VirtualBoxSDK/out/win.amd64/release/package-generated.h
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
bin2c.c
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'
petyr73
 
Posts: 4
Joined: 20. Jul 2016, 12:02

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

Postby mhanor » 20. Jul 2016, 12:44

process_begin: CreateProcess(NULL, gcc.exe -print-libgcc-file-name, ...) failed.

You have to investigate this. Maybe your mingw64 path is not correct or it's missing some files.

What's the extended path name of your C:\PROGRA~2\MICROS~4.0 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 petyr73 » 20. Jul 2016, 14:48

mhanor wrote:
process_begin: CreateProcess(NULL, gcc.exe -print-libgcc-file-name, ...) failed.

You have to investigate this. Maybe your mingw64 path is not correct or it's missing some files.

I've tried adding mingw64 to the PATH manually, before executing kmk, and that seems to have fixed that error (but the linker errors still remain):
Code: Select all   Expand viewCollapse view
C:\Users\******\Documents\Projects\VirtualBoxSDK>SET PATH=%PATH%;C:\Users\******\Documents\mingw64\bin

C:\Users\******\Documents\Projects\VirtualBoxSDK>kmk -j1
Config.kmk:2579: C:/Users/******/Documents/Projects/VirtualBoxSDK/out/win.amd64/release/DynamicConfig.kmk: No such file or directory
Config.kmk:6265: C:/Users/******/Documents/Projects/VirtualBoxSDK/out/win.amd64/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.amd64/release/vboxapiwrap.kmk: No such file or directory
C:/Users/******/Documents/Projects/VirtualBoxSDK/out/win.amd64/release/obj/VirtualBox_stripped.xidl.ts -> C:/Users/******/Documents/Projects/VirtualBoxSDK/out/win.amd64/release/obj/VirtualBox_stripped.xidl
kBuild: Generating C:/Users/******/Documents/Projects/VirtualBoxSDK/out/win.amd64/release/vboxapiwrap.kmk
C:/Users/******/Documents/Projects/VirtualBoxSDK/out/win.amd64/release/vboxapiwrap.kmk.ts -> C:/Users/******/Documents/Projects/VirtualBoxSDK/out/win.amd64/release/vboxapiwrap.kmk
kBuild: Generating C:/Users/******/Documents/Projects/VirtualBoxSDK/out/win.amd64/release/revision.kmk
C:/Users/******/Documents/Projects/VirtualBoxSDK/out/win.amd64/release/revision.kmk.ts -> C:/Users/******/Documents/Projects/VirtualBoxSDK/out/win.amd64/release/revision.kmk
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 =========
kBuild: Generating C:/Users/******/Documents/Projects/VirtualBoxSDK/out/win.amd64/release/version-stamp-raw-api-5.0.22_OSE-2016-Oracle_Corporation-Oracle_VM_VirtualBox-5_0-_OSE-******
kBuild: Generating C:/Users/******/Documents/Projects/VirtualBoxSDK/out/win.amd64/release/version-generated.h
kBuild: Generating C:/Users/******/Documents/Projects/VirtualBoxSDK/out/win.amd64/release/version-generated.mk
kBuild: Generating C:/Users/******/Documents/Projects/VirtualBoxSDK/out/win.amd64/release/product-generated.h
kBuild: Generating C:/Users/******/Documents/Projects/VirtualBoxSDK/out/win.amd64/release/package-generated.h
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
bin2c.c
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~2.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'


mhanor wrote:What's the extended path name of your C:\PROGRA~2\MICROS~4.0 folder?

It's "C:\Program Files (x86)\Microsoft Visual Studio 10.0". I've tried forcing it to use different VS versions, but it always gets stuck at the linker errors.
petyr73
 
Posts: 4
Joined: 20. Jul 2016, 12:02

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

Postby mhanor » 20. Jul 2016, 23:44

Does your user home folder name contains special characters or spaces?
Have you modified any of the VirtualBox .kmk files?
I have no idea why it fails and I think it's impossible for me to guess the cause. I recommend you to use Process Monitor and build while this tool is running with applied filters, such as "operation is process start include" and looking at the process environment variables, or just monitoring for failed file access and odd file paths.

You could also insert $(info text) lines in the right places, inside kmk files of interest, to look at how some variables get propagated through the build process. If I were you, I would be very interested to know what happens with these variables: KBUILD_TARGET, BUILD_TARGET, BUILD_HOST, BUILD_PLATFORM.

I also attach a patch, which I apply before start building VirtualBox, but don't see any reasons why it should fail in this manner and this early, by not having applied these small modifications. Most of them are for configure.vbs, but you already have passed that step and your AutoConfig.kmk file looks fine to me. I think it's pointless to apply it, in your case, for the current issue.
Attachments
patch.txt
(2.74 KiB) Downloaded 24 times
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 petyr73 » 22. Jul 2016, 16:21

Alright, I did a complete retry.
I've set up a new Windows 10 x64 installation in virtual box, installed the Windows SDK 7.1, Windows DDK 7.1 and the other requisites, as well as Visual Studio Express 2010 (No other VS versions).
I got the same linker errors at some point, but somehow got around that (Not quite sure what did it). Now I'm much further then before, but still stuck.
Heres the new log: http://pastebin.com/iK8TubTR
The actual log is a lot longer than that, but there don't seem to be any warnings or errors before this part.

mhanor wrote:Have you modified any of the VirtualBox .kmk files?

I haven't done any changes, aside from turning signing mode on, and changing the name of the certificate which is required for the 64bit version.
petyr73
 
Posts: 4
Joined: 20. Jul 2016, 12:02

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

Postby mhanor » 22. Jul 2016, 17:56

You also need libcurl and openssl 32bit. Build them and create your own LocalConfig.kmk and add these lines to it, with the correct paths:

Code: Select all   Expand viewCollapse view
SDK_VBOX_OPENSSL-x86_INCS := d:/work_x86/openssl-1.0.1/include
SDK_VBOX_OPENSSL-x86_LIBS := d:/work_x86/openssl-1.0.1/lib/ssleay32.lib d:/work_x86/openssl-1.0.1/lib/libeay32.lib
SDK_VBOX_BLD_OPENSSL-x86_LIBS := $(SDK_VBOX_OPENSSL-x86_LIBS)
SDK_VBOX_LIBCURL-x86_INCS := d:/work_x86/curl/include
SDK_VBOX_LIBCURL-x86_LIBS.x86 := d:/work_x86/curl/libcurl.lib
Last edited by mhanor on 23. Jul 2016, 16:58, edited 1 time in total.
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 bnknguyen » 23. Jul 2016, 07:32

thank all for share
bnknguyen
 
Posts: 2
Joined: 23. Jul 2016, 07:30

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

Postby petyr73 » 23. Jul 2016, 21:52

mhanor wrote:You also need libcurl and openssl 32bit. Build them and create your own LocalConfig.kmk and add these lines to it, with the correct paths:

Thank you for your help and your patience. :)
It compiled without any further errors, everything seems to work now!
petyr73
 
Posts: 4
Joined: 20. Jul 2016, 12:02

Previous

Return to VirtualBox OSE

Who is online

Users browsing this forum: No registered users and 2 guests