Author Topic: VirtualBox version 176 compiling/testing  (Read 7043 times)

R.M. Klippstein

  • Sr. Member
  • ****
  • Posts: 313
  • Karma: +3/-0
    • View Profile
VirtualBox version 176 compiling/testing
« on: October 25, 2018, 11:31:10 pm »
@valerieus r176 on Netlabs won't compile for me using either OS4 kernel or IBM's  It gets to VBoxDD and fails on VBoxAcpi.o!

L:/176-vbox/src/VBox/Devices/PC/ACPI/VBoxAcpi.cpp:427:30: error: 'AmlCodeSsdtSta
ndard' was not declared in this scope
             pabAmlCode     = AmlCodeSsdtStandard;
                              ^
kmk: *** [L:/176-vbox/out/os2.x86/release/obj/VBoxDD/PC/ACPI/VBoxAcpi.o] Error 1

The failing command:
@g++.exe -c -Zomf -O2 -g -pipe -pedantic -Wshadow -Wshadow -Wall -Wextra -Wno-mi
ssing-field-initializers -Wno-unused -Wno-trigraphs -fdiagnostics-show-option -W
no-unused-parameter -Wlogical-op -Wno-long-long -Wno-long-long -Wno-delete-non-v
irtual-dtor -Wno-variadic-macros -march=i586 -O2 -mtune=generic -fno-omit-frame-
pointer -fno-strict-aliasing    -m32 -IL:/176-vbox/out/os2.x86/release/obj/VBoxD
D -IL:/176-vbox/src/VBox/HostDrivers/VBoxUSB/os2 -IL:/176-vbox/src/VBox/Devices/
build -IL:/176-vbox/src/VBox/Devices/Network/slirp -IL:/176-vbox/out/os2.x86/rel
ease/obj/VBoxDD/dtrace -IL:/176-vbox/include -IL:/176-vbox/out/os2.x86/release -
DVBOX -DVBOX_OSE -DVBOX_WITH_64_BITS_GUESTS -DVBOX_WITH_DEBUGGER -DRT_OS_OS2 -D_
_OS2__ -DRT_ARCH_X86 -D__X86__ -DIN_RING3 -DHC_ARCH_BITS=32 -DGC_ARCH_BITS=64 -D
VBOX_ACPI -DVBOX_HGCM_HOST_CODE -DVBOX_WITH_HGCM -DVBOX_WITH_DMI_CHASSIS -DVBOX_
WITH_DMI_OEMSTRINGS -DVBOXWDDM_WITH_VBVA -DVBOX_WITH_HGSMI -DVBOX_WITH_WDDM -DVB
OX_WITH_VMSVGA -DVBOX_WITH_VDMA -DVBOX_WITH_PXE_ROM -DVBOX_WITH_USB -DVBOX_WITH_
VUSB -DVBOX_WITH_INIP -DVBOX_WITH_E1000 -DVBOX_WITH_VIRTIO -DVBOX_WITH_UDPTUNNEL
 -DVBOX_WITH_NETSHAPER -DVBOX_WITH_AHCI -DIN_AHCI_R3 -DVBOX_WITH_BUSLOGIC -DVBOX
_WITH_LSILOGIC -DVBOX_WITH_PDM_ASYNC_COMPLETION -DVBOX_WITH_SCSI -DVBOX_WITH_EFI
 -DVBOX_WITH_MSI_DEVICES -DVBOX_WITH_NEW_PS2M -DVUSB_HAVE_USBPROXY_DEVICE -Wp,-M
D,L:/176-vbox/out/os2.x86/release/obj/VBoxDD/PC/ACPI/VBoxAcpi.o.dep -Wp,-MT,L:/1
76-vbox/out/os2.x86/release/obj/VBoxDD/PC/ACPI/VBoxAcpi.o -Wp,-MP -o L:/176-vbox
/out/os2.x86/release/obj/VBoxDD/PC/ACPI/VBoxAcpi.o L:/176-vbox/src/VBox/Devices/
PC/ACPI/VBoxAcpi.cpp
kmk: *** Waiting for unfinished jobs....
kmk: *** Exiting with status 2
#

Have I missed  including something?

Thanks   klipp.

Valery Sedletski

  • Sr. Member
  • ****
  • Posts: 368
  • Karma: +2/-0
    • View Profile
Re: VirtualBox version 176 compiling/testing
« Reply #1 on: October 26, 2018, 01:57:52 am »
2rklipp: Strange. What version of iasl.exe is in your AutoConfig.kmk? I have this one: L:/src/vbox/trunk/tools/os2.x86/bin/iasl.exe. Usually, iasl.exe from d:\ecs\bin is on PATH. If so, remove/rename it, so that, configure will find the correct one. Or, just change the path to it in AutoConfig.kmk to the one in vbox\tools\os2.x86\bin.

PS: Note that current VBox trunk is broken (VBox does not start), so you'd better not use it until I fix it.

R.M. Klippstein

  • Sr. Member
  • ****
  • Posts: 313
  • Karma: +3/-0
    • View Profile
Re: VirtualBox version 176 compiling/testing
« Reply #2 on: October 26, 2018, 11:01:00 pm »
2valerieus: No not strange, you told me about this fix a year ago and I wasn't smart enough to remember it.  It allows the compile to continue until this in Wraps:

kBuild: Compiling VBoxDD - L:/176-vbox/src/VBox/Devices/PC/ACPI/VBoxAcpi.cpp
kBuild: Compiling VBoxDbg - L:/176-vbox/out/os2.x86/release/obj/VBoxDbg/qtmoc/V
oxDbgStatsQt4.cpp
kBuild: Linking VBoxHlp
In file included from L:/176-vbox/src/VBox/Devices/PC/ACPI/VBoxAcpi.cpp:45:0:
L:/176-vbox/out/os2.x86/release/obj/VBoxDD/vboxssdt-standard.hex:13:19: warning
 extra tokens at end of #ifndef directive
 #ifndef __VBOXSSDT-STANDARD_HEX__
                   ^
L:/176-vbox/out/os2.x86/release/obj/VBoxDD/vboxssdt-standard.hex:14:19: warning
 missing whitespace after the macro name
 #define __VBOXSSDT-STANDARD_HEX__
                   ^
In file included from L:/176-vbox/src/VBox/Devices/PC/ACPI/VBoxAcpi.cpp:46:0:
L:/176-vbox/out/os2.x86/release/obj/VBoxDD/vboxssdt-cpuhotplug.hex:13:19: warni
g: extra tokens at end of #ifndef directive
 #ifndef __VBOXSSDT-CPUHOTPLUG_HEX__
                   ^
kBuild: Compiling VBoxXPCOMIPCC - L:/176-vbox/src/libs/xpcom18a4/ipc/ipcd/clien
/src/ipcdclient.cpp
kBuild: Compiling VBoxXPCOMIPCC - L:/176-vbox/src/libs/xpcom18a4/ipc/ipcd/clien
/src/ipcService.cpp
In file included from L:/176-vbox/src/VBox/Devices/PC/ACPI/VBoxAcpi.cpp:45:0:
L:/176-vbox/out/os2.x86/release/obj/VBoxDD/vboxssdt-standard.hex:16:23: error:
xpected initializer before '-' token
 unsigned char vboxssdt-standard_aml_code[] =
                       ^
L:/176-vbox/src/VBox/Devices/PC/ACPI/VBoxAcpi.cpp: In function 'int acpiPrepare
sdt(PPDMDEVINS, void**, size_t*)':
L:/176-vbox/src/VBox/Devices/PC/ACPI/VBoxAcpi.cpp:371:32: error: 'AmlCode' was
ot declared in this scope
         cbAmlCodeDsdt = sizeof(AmlCode);
                                ^
L:/176-vbox/src/VBox/Devices/PC/ACPI/VBoxAcpi.cpp: In function 'int acpiPrepare
sdt(PPDMDEVINS, void**, size_t*)':
L:/176-vbox/src/VBox/Devices/PC/ACPI/VBoxAcpi.cpp:422:30: error: 'AmlCodeSsdtCp
HotPlug' was not declared in this scope
             pabAmlCode     = AmlCodeSsdtCpuHotPlug;
                              ^
L:/176-vbox/src/VBox/Devices/PC/ACPI/VBoxAcpi.cpp:427:30: error: 'AmlCodeSsdtSt
ndard' was not declared in this scope
             pabAmlCode     = AmlCodeSsdtStandard;
                              ^
kmk: *** [L:/176-vbox/out/os2.x86/release/obj/VBoxDD/PC/ACPI/VBoxAcpi.o] Error

The failing command:
@g++.exe -c -Zomf -O2 -g -pipe -pedantic -Wshadow -Wshadow -Wall -Wextra -Wno-m
ssing-field-initializers -Wno-unused -Wno-trigraphs -fdiagnostics-show-option -
no-unused-parameter -Wlogical-op -Wno-long-long -Wno-long-long -Wno-delete-non-
irtual-dtor -Wno-variadic-macros -march=i586 -O2 -mtune=generic -fno-omit-frame
pointer -fno-strict-aliasing    -m32 -IL:/176-vbox/out/os2.x86/release/obj/VBox
D -IL:/176-vbox/src/VBox/HostDrivers/VBoxUSB/os2 -IL:/176-vbox/src/VBox/Devices
build -IL:/176-vbox/src/VBox/Devices/Network/slirp -IL:/176-vbox/out/os2.x86/re
ease/obj/VBoxDD/dtrace -IL:/176-vbox/include -IL:/176-vbox/out/os2.x86/release
DVBOX -DVBOX_OSE -DVBOX_WITH_64_BITS_GUESTS -DVBOX_WITH_DEBUGGER -DRT_OS_OS2 -D
_OS2__ -DRT_ARCH_X86 -D__X86__ -DIN_RING3 -DHC_ARCH_BITS=32 -DGC_ARCH_BITS=64 -
VBOX_ACPI -DVBOX_HGCM_HOST_CODE -DVBOX_WITH_HGCM -DVBOX_WITH_DMI_CHASSIS -DVBOX
WITH_DMI_OEMSTRINGS -DVBOXWDDM_WITH_VBVA -DVBOX_WITH_HGSMI -DVBOX_WITH_WDDM -DV
OX_WITH_VMSVGA -DVBOX_WITH_VDMA -DVBOX_WITH_PXE_ROM -DVBOX_WITH_USB -DVBOX_WITH
VUSB -DVBOX_WITH_INIP -DVBOX_WITH_E1000 -DVBOX_WITH_VIRTIO -DVBOX_WITH_UDPTUNNE
 -DVBOX_WITH_NETSHAPER -DVBOX_WITH_AHCI -DIN_AHCI_R3 -DVBOX_WITH_BUSLOGIC -DVBO
_WITH_LSILOGIC -DVBOX_WITH_PDM_ASYNC_COMPLETION -DVBOX_WITH_SCSI -DVBOX_WITH_EF
 -DVBOX_WITH_MSI_DEVICES -DVBOX_WITH_NEW_PS2M -DVUSB_HAVE_USBPROXY_DEVICE -Wp,-
D,L:/176-vbox/out/os2.x86/release/obj/VBoxDD/PC/ACPI/VBoxAcpi.o.dep -Wp,-MT,L:/
76-vbox/out/os2.x86/release/obj/VBoxDD/PC/ACPI/VBoxAcpi.o -Wp,-MP -o L:/176-vbo
/out/os2.x86/release/obj/VBoxDD/PC/ACPI/VBoxAcpi.o L:/176-vbox/src/VBox/Devices
PC/ACPI/VBoxAcpi.cpp
kmk: *** Waiting for unfinished jobs....
kmk: *** Exiting with status 2
#

Is this the Trunk problem that remains to be fixed?

Thanks klipp

Valery Sedletski

  • Sr. Member
  • ****
  • Posts: 368
  • Karma: +2/-0
    • View Profile
Re: VirtualBox version 176 compiling/testing
« Reply #3 on: October 26, 2018, 11:40:54 pm »
2rklipp: Did you tried to clean up the L:/176-vbox/out/os2.x86/release/obj/VBoxDD/ directory? If you replaced iasl.exe to the version in vbox\tools\os2.x86\bin directory, all should compile well.

>Is this the Trunk problem that remains to be fixed?

No, it should build until the end, without problems. But the binaries will be non-working.

R.M. Klippstein

  • Sr. Member
  • ****
  • Posts: 313
  • Karma: +3/-0
    • View Profile
Re: VirtualBox version 176 compiling/testing
« Reply #4 on: October 27, 2018, 01:16:53 am »
2valerieus, I must be missing something, tried what yousaid but still get these results on 2 different boxes, one running OS4 kernel and the other running IBM kernel.

kBuild: Pass - DLLs
kBuild: Compiling VBoxDD - L:/176-vbox/src/VBox/Devices/PC/ACPI/VBoxAcpi.cpp
In file included from L:/176-vbox/src/VBox/Devices/PC/ACPI/VBoxAcpi.cpp:45:0:
L:/176-vbox/out/os2.x86/release/obj/VBoxDD/vboxssdt-standard.hex:13:19: warning:
 extra tokens at end of #ifndef directive
 #ifndef __VBOXSSDT-STANDARD_HEX__
                   ^
L:/176-vbox/out/os2.x86/release/obj/VBoxDD/vboxssdt-standard.hex:14:19: warning:
 missing whitespace after the macro name
 #define __VBOXSSDT-STANDARD_HEX__
                   ^
In file included from L:/176-vbox/src/VBox/Devices/PC/ACPI/VBoxAcpi.cpp:46:0:
L:/176-vbox/out/os2.x86/release/obj/VBoxDD/vboxssdt-cpuhotplug.hex:13:19: warnin
g: extra tokens at end of #ifndef directive
 #ifndef __VBOXSSDT-CPUHOTPLUG_HEX__
                   ^
In file included from L:/176-vbox/src/VBox/Devices/PC/ACPI/VBoxAcpi.cpp:45:0:
L:/kBuild: Pass - Programs
176-vbox/out/os2.x86/release/obj/VBoxDD/vboxssdt-standard.hex:16:23: error: expe
cted initializer before '-' token
 unsigned char vboxssdt-standard_aml_code[] =
                       ^
L:/176-vbox/src/VBox/Devices/PC/ACPI/VBoxAcpi.cpp: In function 'int acpiPrepareD
sdt(PPDMDEVINS, void**, size_t*)':
L:/176-vbox/src/VBox/Devices/PC/ACPI/VBoxAcpi.cpp:371:32: error: 'AmlCode' was n
ot declared in this scope
         cbAmlCodeDsdt = sizeof(AmlCode);
                                ^
L:/176-vbox/src/VBox/Devices/PC/ACPI/VBoxAcpi.cpp: In function 'int acpiPrepareS
sdt(PPDMDEVINS, void**, size_t*)':
L:/176-vbox/src/VBox/Devices/PC/ACPI/VBoxAcpi.cpp:422:30: error: 'AmlCodeSsdtCpu
HotPlug' was not declared in this scope
             pabAmlCode     = AmlCodeSsdtCpuHotPlug;
                              ^
L:/176-vbox/src/VBox/Devices/PC/ACPI/VBoxAcpi.cpp:427:30: error: 'AmlCodeSsdtSta
ndard' was not declared in this scope
             pabAmlCode     = AmlCodeSsdtStandard;
                              ^
kmk: *** [L:/176-vbox/out/os2.x86/release/obj/VBoxDD/PC/ACPI/VBoxAcpi.o] Error 1

The failing command:
@g++.exe -c -Zomf -O2 -g -pipe -pedantic -Wshadow -Wshadow -Wall -Wextra -Wno-mi
ssing-field-initializers -Wno-unused -Wno-trigraphs -fdiagnostics-show-option -W
no-unused-parameter -Wlogical-op -Wno-long-long -Wno-long-long -Wno-delete-non-v
irtual-dtor -Wno-variadic-macros -march=i586 -O2 -mtune=generic -fno-omit-frame-
pointer -fno-strict-aliasing    -m32 -IL:/176-vbox/out/os2.x86/release/obj/VBoxD
D -IL:/176-vbox/src/VBox/HostDrivers/VBoxUSB/os2 -IL:/176-vbox/src/VBox/Devices/
build -IL:/176-vbox/src/VBox/Devices/Network/slirp -IL:/176-vbox/out/os2.x86/rel
ease/obj/VBoxDD/dtrace -IL:/176-vbox/include -IL:/176-vbox/out/os2.x86/release -
DVBOX -DVBOX_OSE -DVBOX_WITH_64_BITS_GUESTS -DVBOX_WITH_DEBUGGER -DRT_OS_OS2 -D_
_OS2__ -DRT_ARCH_X86 -D__X86__ -DIN_RING3 -DHC_ARCH_BITS=32 -DGC_ARCH_BITS=64 -D
VBOX_ACPI -DVBOX_HGCM_HOST_CODE -DVBOX_WITH_HGCM -DVBOX_WITH_DMI_CHASSIS -DVBOX_
WITH_DMI_OEMSTRINGS -DVBOXWDDM_WITH_VBVA -DVBOX_WITH_HGSMI -DVBOX_WITH_WDDM -DVB
OX_WITH_VMSVGA -DVBOX_WITH_VDMA -DVBOX_WITH_PXE_ROM -DVBOX_WITH_USB -DVBOX_WITH_
VUSB -DVBOX_WITH_INIP -DVBOX_WITH_E1000 -DVBOX_WITH_VIRTIO -DVBOX_WITH_UDPTUNNEL
 -DVBOX_WITH_NETSHAPER -DVBOX_WITH_AHCI -DIN_AHCI_R3 -DVBOX_WITH_BUSLOGIC -DVBOX
_WITH_LSILOGIC -DVBOX_WITH_PDM_ASYNC_COMPLETION -DVBOX_WITH_SCSI -DVBOX_WITH_EFI
 -DVBOX_WITH_MSI_DEVICES -DVBOX_WITH_NEW_PS2M -DVUSB_HAVE_USBPROXY_DEVICE -Wp,-M
D,L:/176-vbox/out/os2.x86/release/obj/VBoxDD/PC/ACPI/VBoxAcpi.o.dep -Wp,-MT,L:/1
76-vbox/out/os2.x86/release/obj/VBoxDD/PC/ACPI/VBoxAcpi.o -Wp,-MP -o L:/176-vbox
/out/os2.x86/release/obj/VBoxDD/PC/ACPI/VBoxAcpi.o L:/176-vbox/src/VBox/Devices/
PC/ACPI/VBoxAcpi.cpp
#

Guess I'll wait till you have some time to look into it further.

Thanks klipp

Lars

  • Hero Member
  • *****
  • Posts: 1298
  • Karma: +65/-0
    • View Profile
Re: VirtualBox version 176 compiling/testing
« Reply #5 on: October 27, 2018, 05:08:27 am »
I am pretty sure that C/C++ does not allow the hyphen in symbol or macro names or defines. Only underscore allowed.
At least I have never ever used a hyphen.

Valery Sedletski

  • Sr. Member
  • ****
  • Posts: 368
  • Karma: +2/-0
    • View Profile
Re: VirtualBox version 176 compiling/testing
« Reply #6 on: November 01, 2018, 01:17:12 am »
Since r177, I fixed the XPCOM communication in VBox, now it's repaired.

2rklipp: Are you sure L:\176-vbox\tools\os2.x86\bin\iasl.exe is in your AutoConfig.kmk? Can you show me it's contents? (Please insert it to pastebin.com and put a link here). Also, did you tried to delete the L:/176-vbox/out/os2.x86/release/obj/VBoxDD directory and try building it again, with either L:\176-vbox\tools\os2.x86\bin\iasl.exe and d:\ecs\bin\iasl.exe (or whatever directory in ArcaOS it is in)?

R.M. Klippstein

  • Sr. Member
  • ****
  • Posts: 313
  • Karma: +3/-0
    • View Profile
Re: VirtualBox version 176 compiling/testing
« Reply #7 on: November 01, 2018, 08:37:14 pm »
2valerieus, I'm out of town, I'll try to get to it Saturday or Sunday!

klipp

R.M. Klippstein

  • Sr. Member
  • ****
  • Posts: 313
  • Karma: +3/-0
    • View Profile
Re: VirtualBox version 176 compiling/testing
« Reply #8 on: November 03, 2018, 07:25:04 pm »
2valerieus, New compile using r-177 (and the correct iasl.exe (533548 size). It progresses and completes the virtualbox.exe build, links & installs it, then decides there is something else wrong and deletes virtualbox.exe with the following error!

kBuild: Installing VBoxNetDHCP => L:/177-vbox/out/os2.x86/release/bin/VBoxNetDHC
P.exe
kBuild: Installing VBoxNetLwipNAT => L:/177-vbox/out/os2.x86/release/bin/VBoxNet
NAT.exe
kBuild: Installing VMMR0 => L:/177-vbox/out/os2.x86/release/bin/VMMR0.r0
kBuild: Installing VBoxDD => L:/177-vbox/out/os2.x86/release/bin/VBoxDD.dll

Reading binary resource file L:\177-vbox\out\os2.x86\release\obj\VirtualBox\src\
platform\os2\VirtualBox.res


(0) RC: error - Only integer TYPE allowed ().
RC: 1 error detected

kmk: *** [L:/177-vbox/out/os2.x86/release/obj/VirtualBox/VirtualBox.exe] Error 1

The failing command:
@g++.exe @L:/177-vbox/out/os2.x86/release/obj/VirtualBox/VirtualBox.rsp
kmk: *** Deleting file `L:/177-vbox/out/os2.x86/release/obj/VirtualBox/VirtualBo
x.exe'
kmk: *** [L:/177-vbox/out/os2.x86/release/obj/VirtualBox/VirtualBox.exe] Deletin
g file `L:/177-vbox/out/os2.x86/release/obj/VirtualBox/VirtualBox.map'
kmk: *** [L:/177-vbox/out/os2.x86/release/obj/VirtualBox/VirtualBox.exe] Deletin
g file `L:/177-vbox/out/os2.x86/release/obj/VirtualBox/VirtualBox.rsp'
#

I've seen this before but don't remember the fix.

klipp

Valery Sedletski

  • Sr. Member
  • ****
  • Posts: 368
  • Karma: +2/-0
    • View Profile
Re: VirtualBox version 176 compiling/testing
« Reply #9 on: November 03, 2018, 10:57:34 pm »
2rklipp: Hm, what wrc.exe version do you have? I have this one:

Quote
[l:\data\vm\bochs]rpm -q gcc-wrc
gcc-wrc-4.9.2.1-3.oc00.pentium4

I have no problems with it. Also, did you tried to delete the

Quote
L:\177-vbox\out\os2.x86\release\obj\VirtualBox\src\
platform\os2\VirtualBox.res

file and try again? Does it help?

PS: TeLLie had also problems with iasl.exe, which seems to be resolved with
this version of iasl.exe:

Quote
ftp://osfree.org/upload/vbox/Iasl.exe

This is the version from eCS 2.2bII. The version from Arca OS has
problems.  Also, TeLLie had problems when building VBoxPcBios.rom,
which are not resolved, yet

R.M. Klippstein

  • Sr. Member
  • ****
  • Posts: 313
  • Karma: +3/-0
    • View Profile
Re: VirtualBox version 176 compiling/testing
« Reply #10 on: November 04, 2018, 05:59:21 pm »
2valerieus, I'm using iasl.exe from OSFree and the results are the same. I'm wondering, you are using gcc-wrc-4.9.2.1-3.oc00.pentieum. I'm using gcc-wrc-4.9.2-1-3.oc00.i686  Aparently there is a difference. Yum offers a gcc-wrc-4.9.2-1.oc00-i386 but not a pentieum version. The i386 version requires replacing pretty much all of gcc. Or are i386 and Pentienm the same thing possibly? 

klipp
« Last Edit: November 06, 2018, 03:49:05 am by R.M. Klippstein »