Virtualbox 7.0.12 Build failed on Windows 11 x64

Discussions related to using the OSE version of VirtualBox.
Post Reply
Matteo06
Posts: 8
Joined: 30. Oct 2023, 19:37

Virtualbox 7.0.12 Build failed on Windows 11 x64

Post by Matteo06 »

Hi, when i try to build Virtualbox 7.0.12 from source on Windows 11 x64 i get this error:

Code: Select all

kBuild: Generating tstVMStructSize - D:/Download/VirtualBox-7.0.12/out/win.amd64/release/obj/VMM/tstAsmStructsHC.h
kmk: error: /bin/nm.exe: not found!
kmk: *** [D:/Download/VirtualBox-7.0.12/src/VBox/VMM/testcase/Makefile.kmk:790: D:/Download/VirtualBox-7.0.12/out/win.amd64/release/obj/VMM/tstAsmStructsHC.h] Error 2 (0x2)
To build Virtualbox 7.0.12, i run these commands:
1)

Code: Select all

cscript configure.vbs --with-libSDL=..\SDL --with-qt5=D:\Qt\Qt5.12.12\5.12.12\msvc2017_64
2)

Code: Select all

env.bat
3)

Code: Select all

kmk --priority=5
I want to point out that binutils is installed and if I run nm the command is detected.
Matteo06
Posts: 8
Joined: 30. Oct 2023, 19:37

Re: Virtualbox 7.0.12 Build failed on Windows 11 x64

Post by Matteo06 »

Could someone help me please?
scottgus1
Site Moderator
Posts: 20945
Joined: 30. Dec 2009, 20:14
Primary OS: MS Windows 10
VBox Version: PUEL
Guest OSses: Windows, Linux

Re: Virtualbox 7.0.12 Build failed on Windows 11 x64

Post by scottgus1 »

We aren't ignoring this topic, it's just that those who build apps on Windows may be fewer and far-between-er than builders on Linux. Try a bump of this topic every week for a month, then if nothing happens, it is just too rare a subject.

You might try the mailing lists or the IRC: https://www.virtualbox.org/wiki/Community
Matteo06
Posts: 8
Joined: 30. Oct 2023, 19:37

Re: Virtualbox 7.0.12 Build failed on Windows 11 x64

Post by Matteo06 »

Ok, thanks.
Matteo06
Posts: 8
Joined: 30. Oct 2023, 19:37

Re: Virtualbox 7.0.12 Build failed on Windows 11 x64

Post by Matteo06 »

How do I bump this topic?
scottgus1
Site Moderator
Posts: 20945
Joined: 30. Dec 2009, 20:14
Primary OS: MS Windows 10
VBox Version: PUEL
Guest OSses: Windows, Linux

Re: Virtualbox 7.0.12 Build failed on Windows 11 x64

Post by scottgus1 »

You just did. :lol: :D
klaus
Oracle Corporation
Posts: 1139
Joined: 10. May 2007, 14:57

Re: Virtualbox 7.0.12 Build failed on Windows 11 x64

Post by klaus »

Looks like you found a corner of the VirtualBox build which still depends on MinGW-W64. Shouldn't be the case, but hard to deny.

It is used for only one sanity check testcase which is not absolutely vital to have, therefore you have two options: either add VBOX_NM=nm.exe to your kmk command line (which should use nm from binutils correctly) or edit src/VBox/VMM/testcase/Makefile.kmk, deleting the first line containing tstAsmStructs.run (which should disable the only testcase needing nm).
Matteo06
Posts: 8
Joined: 30. Oct 2023, 19:37

Re: Virtualbox 7.0.12 Build failed on Windows 11 x64

Post by Matteo06 »

I added VBOX_NM=path of nm to the LocalConfig.kmk file and now it compiles. Thanks for your help.
Post Reply