[Fixed] Compile VirtualBox on OpenIndiana /hipster

Discussions related to using VirtualBox on other (unsupported) hosts like FreeBSD.

[Fixed] Compile VirtualBox on OpenIndiana /hipster

Postby 3eka » 4. Sep 2018, 16:38

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 150 times
3eka
 
Posts: 7
Joined: 4. Jul 2016, 10:47
Location: Germany, Hessen, Eppstein
Primary OS: OpenSolaris other
VBox Version: OSE self-compiled
Guest OSses: Windows 10

Re: Compile VirtualBox on OpenIndiana /hipster

Postby 3eka » 4. Sep 2018, 16:45

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 3532 times
3eka
 
Posts: 7
Joined: 4. Jul 2016, 10:47
Location: Germany, Hessen, Eppstein
Primary OS: OpenSolaris other
VBox Version: OSE self-compiled
Guest OSses: Windows 10

Re: Compile VirtualBox on OpenIndiana /hipster

Postby 3eka » 5. Sep 2018, 08:49

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
Location: Germany, Hessen, Eppstein
Primary OS: OpenSolaris other
VBox Version: OSE self-compiled
Guest OSses: Windows 10

Re: Compile VirtualBox on OpenIndiana /hipster

Postby 3eka » 13. Sep 2018, 10:25

Anyone?
3eka
 
Posts: 7
Joined: 4. Jul 2016, 10:47
Location: Germany, Hessen, Eppstein
Primary OS: OpenSolaris other
VBox Version: OSE self-compiled
Guest OSses: Windows 10

Re: Compile VirtualBox on OpenIndiana /hipster

Postby michaln » 28. Sep 2018, 10:23

If you have trouble compiling or running on Oracle's Solaris, you'll get help here. Otherwise you're pretty much on your own.
michaln
Oracle Corporation
 
Posts: 2957
Joined: 19. Dec 2007, 15:45
Primary OS: MS Windows 7
VBox Version: PUEL
Guest OSses: Any and all

Re: Compile VirtualBox on OpenIndiana /hipster

Postby 3eka » 28. Sep 2018, 10:25

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.
3eka
 
Posts: 7
Joined: 4. Jul 2016, 10:47
Location: Germany, Hessen, Eppstein
Primary OS: OpenSolaris other
VBox Version: OSE self-compiled
Guest OSses: Windows 10

Re: Compile VirtualBox on OpenIndiana /hipster

Postby Ramshankar » 19. Dec 2018, 06:15

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.
Ramshankar
Oracle Corporation
 
Posts: 780
Joined: 7. Jan 2008, 16:17

Re: Compile VirtualBox on OpenIndiana /hipster

Postby 3eka » 30. Jan 2019, 16:37

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

Thanks
3eka
 
Posts: 7
Joined: 4. Jul 2016, 10:47
Location: Germany, Hessen, Eppstein
Primary OS: OpenSolaris other
VBox Version: OSE self-compiled
Guest OSses: Windows 10

Re: [Fixed] Compile VirtualBox on OpenIndiana /hipster

Postby socratis » 4. Feb 2019, 12:11

Thanks for reporting back, marking as [Fixed].
If you obfuscate any information requested, I will obfuscate my response. These are virtual UUIDs, not real ones.
Do NOT reply with the "QUOTE" button, please use the "POST REPLY", at the bottom of the form.
socratis
Site Moderator
 
Posts: 24368
Joined: 22. Oct 2010, 11:03
Location: Greece
Primary OS: Mac OS X other
VBox Version: PUEL
Guest OSses: Win(*>98), Linux*, OSX>10.5


Return to VirtualBox on Other Hosts

Who is online

Users browsing this forum: No registered users and 1 guest