Page 1 of 1

[Fixed] Compile VirtualBox on OpenIndiana /hipster

Posted: 4. Sep 2018, 16:38
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.

Re: Compile VirtualBox on OpenIndiana /hipster

Posted: 4. Sep 2018, 16:45
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.

Re: Compile VirtualBox on OpenIndiana /hipster

Posted: 5. Sep 2018, 08:49
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

Re: Compile VirtualBox on OpenIndiana /hipster

Posted: 13. Sep 2018, 10:25
by 3eka
Anyone?

Re: Compile VirtualBox on OpenIndiana /hipster

Posted: 28. Sep 2018, 10:23
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.

Re: Compile VirtualBox on OpenIndiana /hipster

Posted: 28. Sep 2018, 10:25
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.

Re: Compile VirtualBox on OpenIndiana /hipster

Posted: 19. Dec 2018, 06:15
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).

Re: Compile VirtualBox on OpenIndiana /hipster

Posted: 30. Jan 2019, 16:37
by 3eka
You can close this, as in meantime OpenIndiana /hipster team has solved this problem..

Thanks

Re: [Fixed] Compile VirtualBox on OpenIndiana /hipster

Posted: 4. Feb 2019, 12:11
by socratis
Thanks for reporting back, marking as [Fixed].