[Fixed] Compile VirtualBox on OpenIndiana /hipster

Discussions related to using VirtualBox on other (unsupported) hosts like FreeBSD.
Post Reply
3eka
Posts: 7
Joined: 4. Jul 2016, 10:47
Primary OS: OpenSolaris other
VBox Version: OSE self-compiled
Guest OSses: Windows 10
Location: Germany, Hessen, Eppstein

[Fixed] Compile VirtualBox on OpenIndiana /hipster

Post by 3eka »

Hi all,

I have tried to compile vbox trunk version on my OpenIndiana (OI) /hipster (fork of OpenSolaris, based on illumos)...
Did few tweaks so only 64 bit version to be compiled and to include Qt5 from installed IPS package (shell script attached).

So far so good, until it gets to DTrace:
$ kmk
kBuild: Pass - Build Programs
kBuild: Pass - Libraries
kBuild: Pass - DLLs
kBuild: Generating VBoxC - /nobackup/SFW_build/VBox/vbox-trunk/out/solaris.amd64/release/obj/VBoxC/dtrace/VBoxAPI-dtrace-object-format.o
kBuild: Pass - Programs
kBuild: Pass - Other Stuff
kBuild: Pass - Staging
dtrace: failed to link script /nobackup/SFW_build/VBox/vbox-trunk/out/solaris.amd64/release/obj/VBoxAPIWrap/VBoxAPI.d: No probe sites found for declared provider
kmk: *** [/nobackup/SFW_build/VBox/vbox-trunk/out/solaris.amd64/release/obj/VBoxC/dtrace/VBoxAPI-dtrace-object-format.o] Error 1
The failing command:
@dtrace -64 -G -C -o "/nobackup/SFW_build/VBox/vbox-trunk/out/solaris.amd64/release/obj/VBoxC/dtrace/VBoxAPI-dtrace-object-format.o" -s "/nobackup/SFW_build/VBox/vbox-trunk/out/solaris.amd64/release/obj/VBoxAPIWrap/VBoxAPI.d" $(filter-out %-dtrace-object-format.o, $(VBoxC_2_OBJS))
Is there any option to skip dtrace probes (maybe illumos has not implemented all of them)? That also stops package generation...

BTW, OI /hipster is detected as solaris...

Thanks in advance.
Best regards.
Attachments
build-vbox.sh.txt
(1.09 KiB) Downloaded 248 times
3eka
Posts: 7
Joined: 4. Jul 2016, 10:47
Primary OS: OpenSolaris other
VBox Version: OSE self-compiled
Guest OSses: Windows 10
Location: Germany, Hessen, Eppstein

Re: Compile VirtualBox on OpenIndiana /hipster

Post by 3eka »

And, yes - VirtualBox starts from build directory. I have to check if it can run guests...

Somehow, information about Qt5 is wrong (shows 5.6.2, but 5.8.0 is installed)... See attached image.

When trying to build package, it also shows dtrace error (see previous post).

Best regards.
Attachments
VBox-trunk-info-2018-09-04T14-42-20.png
VBox-trunk-info-2018-09-04T14-42-20.png (100.99 KiB) Viewed 40450 times
3eka
Posts: 7
Joined: 4. Jul 2016, 10:47
Primary OS: OpenSolaris other
VBox Version: OSE self-compiled
Guest OSses: Windows 10
Location: Germany, Hessen, Eppstein

Re: Compile VirtualBox on OpenIndiana /hipster

Post by 3eka »

UPDATE:

I have created new boot environment and tied to run compiled vbox version... Lot of related files are missing (were not compiled, I guess), like VBoxC.so, etc...

Regards.

P.S. Used this guide: https://www.virtualbox.org/wiki/Solaris ... structions
3eka
Posts: 7
Joined: 4. Jul 2016, 10:47
Primary OS: OpenSolaris other
VBox Version: OSE self-compiled
Guest OSses: Windows 10
Location: Germany, Hessen, Eppstein

Re: Compile VirtualBox on OpenIndiana /hipster

Post by 3eka »

Anyone?
michaln
Oracle Corporation
Posts: 2973
Joined: 19. Dec 2007, 15:45
Primary OS: MS Windows 7
VBox Version: PUEL
Guest OSses: Any and all
Contact:

Re: Compile VirtualBox on OpenIndiana /hipster

Post by michaln »

If you have trouble compiling or running on Oracle's Solaris, you'll get help here. Otherwise you're pretty much on your own.
3eka
Posts: 7
Joined: 4. Jul 2016, 10:47
Primary OS: OpenSolaris other
VBox Version: OSE self-compiled
Guest OSses: Windows 10
Location: Germany, Hessen, Eppstein

Re: Compile VirtualBox on OpenIndiana /hipster

Post by 3eka »

michaln wrote:If you have trouble compiling or running on Oracle's Solaris, you'll get help here. Otherwise you're pretty much on your own.
I have asked how to disable DTRACE compilation. That is all I need.

Regards.
Ramshankar
Oracle Corporation
Posts: 793
Joined: 7. Jan 2008, 16:17

Re: Compile VirtualBox on OpenIndiana /hipster

Post by Ramshankar »

Search for "VBOX_WITH_DTRACE_" in Config.kmk in the root directory of the source code. There are bunch of DTrace options (R3 - ring-3, R0 - ring-0 etc.)

There is also a VBOX_WITH_NATIVE_DTRACE option. I'm not sure which one you need to disable without doing more investigation. Feel free to experiment and create a "LocalConfig.kmk" alongside Config.kmk for overriding these options (instead of modifying Config.kmk directly).
Oracle Corp.
3eka
Posts: 7
Joined: 4. Jul 2016, 10:47
Primary OS: OpenSolaris other
VBox Version: OSE self-compiled
Guest OSses: Windows 10
Location: Germany, Hessen, Eppstein

Re: Compile VirtualBox on OpenIndiana /hipster

Post by 3eka »

You can close this, as in meantime OpenIndiana /hipster team has solved this problem..

Thanks
socratis
Site Moderator
Posts: 27330
Joined: 22. Oct 2010, 11:03
Primary OS: Mac OS X other
VBox Version: PUEL
Guest OSses: Win(*>98), Linux*, OSX>10.5
Location: Greece

Re: [Fixed] Compile VirtualBox on OpenIndiana /hipster

Post by socratis »

Thanks for reporting back, marking as [Fixed].
Do NOT send me Personal Messages (PMs) for troubleshooting, they are simply deleted.
Do NOT reply with the "QUOTE" button, please use the "POST REPLY", at the bottom of the form.
If you obfuscate any information requested, I will obfuscate my response. These are virtual UUIDs, not real ones.
Post Reply