Build Virtualbox faild on Windows

Discussions related to using the OSE version of VirtualBox.
Post Reply
hungpmtin44
Posts: 7
Joined: 10. Mar 2024, 16:10

Build Virtualbox faild on Windows

Post by hungpmtin44 »

Hi everyone, i am building source code Virtualbox on Windows 11 with command:

Code: Select all

cscript configure.vbs --with-libSDL="D:\Codes\cpp\SDL-1.2.7-vc6" --with-qt5="C:\Qt\Qt5.12.12" --target-arch="x86"
env.bat
kmk
But got error:

Code: Select all

kBuild: Generating bison - D:/Codes/cpp/VirtualBox-7.0.14/out/win.amd64/release/obj/VBoxMesaLib/mesa-21.3.8/src/compiler/glsl/glcpp/glcpp-parse.h
: warning: conflicting outputs to file 'D:/Codes/cpp/VirtualBox-7.0.14/out/win.amd64/release/obj/VBoxMesaLib/mesa-21.3.8/src/compiler/glsl/glcpp/glcpp-parse.h' [-Wother]
bison: /dev/null: cannot open: No such file or directory
kmk: *** [D:/Codes/cpp/VirtualBox-7.0.14/src/VBox/Additions/3D/mesa/Makefile.kmk:506: D:/Codes/cpp/VirtualBox-7.0.14/out/win.amd64/release/obj/VBoxMesaLib/mesa-21.3.8/src/compiler/glsl/glcpp/glcpp-parse.h] Error 1 (0x1)
After this error, cmd waiting forever

Please help me, thank!

This is output after run configure.vbs:

Code: Select all

D:\Codes\cpp\VirtualBox-7.0.14>cscript configure.vbs --with-libSDL="D:\Codes\cpp\SDL-1.2.7-vc6" --with-qt5="C:\Qt\Qt5.12.12" --target-arch="x86"
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...
 Target architecture: x86.
 Host architecture: amd64.
 Found kBuild:               D:/Codes/cpp/VirtualBox-7.0.14/kBuild
 Found kBuild binaries:      D:\Codes\cpp\VirtualBox-7.0.14\kBuild\bin\win.amd64
Checking for Windows DDK v7.1...
 Found Windows DDK v7.1:     C:/WinDDK/7600.16385.1
Checking for Visual C++...
 Found Visual C++ VCC142:    C:/PROGRA~2/MICROS~2/2019/Enterprise/VC/Tools/MSVC/14.29.30133 (C:/Program Files (x86)/Microsoft Visual Studio/2019/Enterprise/VC/Tools/MSVC/14.29.30133)
Checking for Windows 10 SDK/WDK...
 Found Windows 10 SDK:       C:/PROGRA~2/WI3CF2~1/10 (C:/Program Files (x86)/Windows Kits/10)
 Found Windows 10 SDK version: 10.0.22621.0
Checking for Midl.exe...
 Found Midl.exe:             C:/WinDDK/7600.16385.1/bin/x86/midl.exe
Checking for yasm...
 Found yasm v1.3.0:          C:/src/depot_tools
Checking for nasm...
 Found nasm v2.16.01:        C:/Users/ngoch/AppData/Local/bin/NASM
Checking for OpenWatcom...
 Found OpenWatcom v1.9:      C:/WATCOM
Checking for libSDL...
 Found libSDL:               D:/Codes/cpp/SDL-1.2.7-vc6
Checking for libxml2...
 Found libxml2:              src/lib/libxml2-*
Checking for openssl...
 Found openssl:              src/libs/openssl-*
Checking for libcurl...
 Found libcurl:              src/libs/curl-*
Checking for Qt5...
 Found Qt5:                  C:/Qt/Qt5.12.12/5.12.12/msvc2017_64
 Found Qt5 infix:
Checking for Python...
 Found Python:               C:/Users/ngoch/AppData/Local/Programs/Python/Python311/python.exe

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

  env.bat
  kmk
Full log: https://drive(.)google(.)com/file/d/17wS-5jxU9bDNmWf6i6TB-Ncz_TqsJIX_/view?usp=sharing
Last edited by hungpmtin44 on 15. Mar 2024, 20:21, edited 1 time in total.
klaus
Oracle Corporation
Posts: 1139
Joined: 10. May 2007, 14:57

Re: Build Virtualbox faild on Windows

Post by klaus »

Is the directory of the file mentioned in the error message there? Or could it be that your Anti Virus software is getting in the way, blocking access to a file during the build process?
hungpmtin44
Posts: 7
Joined: 10. Mar 2024, 16:10

Re: Build Virtualbox faild on Windows

Post by hungpmtin44 »

I have added Virtualbox source code folder to exclution of Microsoft Security
hungpmtin44
Posts: 7
Joined: 10. Mar 2024, 16:10

Re: Build Virtualbox faild on Windows

Post by hungpmtin44 »

Now error:

Code: Select all

kBuild: Generating bison - D:/Codes/cpp/VirtualBox-7.0.14/out/win.amd64/release/obj/VBoxMesaLib/mesa-21.3.8/src/compiler/glsl/glcpp/glcpp-parse.h
: warning: conflicting outputs to file 'D:/Codes/cpp/VirtualBox-7.0.14/out/win.amd64/release/obj/VBoxMesaLib/mesa-21.3.8/src/compiler/glsl/glcpp/glcpp-parse.h' [-Wother]
bison: /dev/null: cannot open: No such file or directory
kmk: *** [D:/Codes/cpp/VirtualBox-7.0.14/src/VBox/Additions/3D/mesa/Makefile.kmk:506: D:/Codes/cpp/VirtualBox-7.0.14/out/win.amd64/release/obj/VBoxMesaLib/mesa-21.3.8/src/compiler/glsl/glcpp/glcpp-parse.h] Error 1 (0x1)
Post Reply