Page 1 of 1

Unable to compile Virtualbox kernel on Red Hat 4.8

Posted: 2. Jul 2009, 23:58
by vap824
I am trying to install 2.2.4 or 3.0.0 on red hat 4.8 and the virtualbox kernel compile gives an error.. as below please help..

Code: Select all

CPI: PCI Interrupt 0000:00:0f.0[A] -> GSI 23 (level, low) -> IRQ 185
ACPI: PCI Interrupt Link [AAZA] enabled at IRQ 22
ACPI: PCI Interrupt 0000:00:10.1[B] -> GSI 22 (level, low) -> IRQ 193
ACPI: PCI Interrupt Link [APC4] enabled at IRQ 19
ACPI: PCI Interrupt 0000:04:07.0[A] -> GSI 19 (level, low) -> IRQ 217
ACPI: PCI Interrupt Link [APC2] enabled at IRQ 17
ACPI: PCI Interrupt 0000:04:09.0[A] -> GSI 17 (level, low) -> IRQ 225
Simple Boot Flag at 0x3a set to 0x80
apm: BIOS version 1.2 Flags 0x07 (Driver version 1.16ac)
apm: disabled - APM is not SMP safe.
audit: initializing netlink socket (disabled)
audit(1246642604.892:1): initialized
highmem bounce pool size: 64 pages
Total HugeTLB memory allocated, 0
VFS: Disk quotas dquot_6.5.1
Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
SELinux:  Registering netfilter hooks
Initializing Cryptographic API
ksign: Installing public key data
Loading keyring
- Added public key C0DE75A848806649
- User ID: Oracle USA, Inc. (Kernel Module GPG key)
pci_hotplug: PCI Hot Plug PCI Core version: 0.5
ACPI: Processor [CPU0] (supports C1)
ACPI: Processor [CPU1] (supports C1)
Real Time Clock Driver v1.12
Linux agpgart interface v0.100 (c) Dave Jones
serio: i8042 AUX port at 0x60,0x64 irq 12
serio: i8042 KBD port at 0x60,0x64 irq 1
Serial: 8250/16550 driver $Revision: 1.90 $ 68 ports, IRQ sharing enabled
RAMDISK driver initialized: 16 RAM disks of 16384K size 1024 blocksize
divert: not allocating divert_blk for non-ethernet device lo
Uniform Multi-Platform E-IDE driver Revision: 7.00alpha2
ide: Assuming 33MHz system bus speed for PIO modes; override with idebus=xx
Probing IDE interface ide0...
Probing IDE interface ide1...
Probing IDE interface ide2...
Probing IDE interface ide3...
Probing IDE interface ide4...
Probing IDE interface ide5...
ide-floppy driver 0.99.newide
usbcore: registered new driver hiddev
usbcore: registered new driver usbhid
drivers/usb/input/hid-core.c: v2.0:USB HID core driver
mice: PS/2 mouse device common for all mice
input: AT Translated Set 2 keyboard on isa0060/serio0
input: PS/2 Generic Mouse on isa0060/serio1
md: md driver 0.90.0 MAX_MD_DEVS=256, MD_SB_DISKS=27
NET: Registered protocol family 2
IP route cache hash table entries: 262144 (order: 8, 1048576 bytes)
TCP established hash table entries: 262144 (order: 10, 4194304 bytes)
TCP bind hash table entries: 262144 (order: 9, 3145728 bytes)
TCP: Hash tables configured (established 262144 bind 262144)
Initializing IPsec netlink socket
NET: Registered protocol family 1
NET: Registered protocol family 17
ACPI wakeup devices:
HUB0 XVRA XVRB XVRC USB0 USB2 AZAD MMAC MMCI
ACPI: (supports S0 S1 S3 S4 S5)
Freeing unused kernel memory: 192k freed
SCSI subsystem initialized
libata version 2.00 loaded.
sata_nv 0000:00:0e.0: version 3.2
ACPI: PCI Interrupt 0000:00:0e.0[A] -> GSI 20 (level, low) -> IRQ 209
PCI: Setting latency timer of device 0000:00:0e.0 to 64
ata1: SATA max UDMA/133 cmd 0x9F0 ctl 0xBF2 bmdma 0xE000 irq 209
ata2: SATA max UDMA/133 cmd 0x970 ctl 0xB72 bmdma 0xE008 irq 209
scsi0 : sata_nv
ata1: SATA link up 3.0 Gbps (SStatus 123 SControl 300)
ata1.00: ATA-7, max UDMA/133, 976773168 sectors: LBA48 NCQ (depth 0/32)
ata1.00: ata1: dev 0 multi count 16
ata1.00: configured for UDMA/133
scsi1 : sata_nv
ata2: SATA link up 1.5 Gbps (SStatus 113 SControl 300)
ata2.00: ATAPI, max UDMA/100
ata2.00: configured for UDMA/100
Using cfq io scheduler
  Vendor: ATA       Model: WDC WD5000AAJS-2  Rev: 12.0
  Type:   Direct-Access                      ANSI SCSI revision: 05
SCSI device sda: 976773168 512-byte hdwr sectors (500108 MB)
SCSI device sda: drive cache: write back
SCSI device sda: 976773168 512-byte hdwr sectors (500108 MB)
SCSI device sda: drive cache: write back
 sda: sda1 sda2 sda3 sda4 < sda5 sda6 sda7 sda8 sda9 sda10 >
Attached scsi disk sda at scsi0, channel 0, id 0, lun 0
  Vendor: PBDS      Model: DVD+-RW DH-16W1S  Rev: 2D14
  Type:   CD-ROM                             ANSI SCSI revision: 05
ACPI: PCI Interrupt 0000:00:0f.0[A] -> GSI 23 (level, low) -> IRQ 185
PCI: Setting latency timer of device 0000:00:0f.0 to 64
ata3: SATA max UDMA/133 cmd 0x9E0 ctl 0xBE2 bmdma 0xCC00 irq 185
ata4: SATA max UDMA/133 cmd 0x960 ctl 0xB62 bmdma 0xCC08 irq 185
scsi2 : sata_nv
ata3: SATA link down (SStatus 0 SControl 300)
scsi3 : sata_nv
ata4: SATA link down (SStatus 0 SControl 300)
kjournald starting.  Commit interval 5 seconds
EXT3-fs: mounted filesystem with ordered data mode.
SELinux:  Disabled at runtime.
SELinux:  Unregistering netfilter hooks
sr0: scsi3-mmc drive: 48x/48x writer cd/rw xa/form2 cdda tray
Uniform CD-ROM driver Revision: 3.20
Attached scsi CD-ROM sr0 at scsi1, channel 0, id 0, lun 0
inserting floppy driver for 2.6.9-89.0.0.0.1.ELsmp
Floppy drive(s): fd0 is 1.44M
floppy0: no floppy controllers found
b44.c:v0.95 (Aug 3, 2004)
ACPI: PCI Interrupt 0000:04:07.0[A] -> GSI 19 (level, low) -> IRQ 217
PCI: Setting latency timer of device 0000:04:07.0 to 64
divert: allocating divert_blk for eth0
eth0: Broadcom 4400 10/100BaseT Ethernet 00:1a:a0:20:02:b8
ACPI: PCI Interrupt 0000:00:10.1[B] -> GSI 22 (level, low) -> IRQ 193
PCI: Setting latency timer of device 0000:00:10.1 to 64
MC: drivers/edac/edac_mc.c version MC $Revision: 1.3 $
MC0: Giving out device to k8_edac Athlon64/Opteron: PCI 0000:00:18.2 (0000:00:18.2)
pciehp: Address64 -------- Resource unparsed
pciehp: Address64 -------- Resource unparsed
pciehp: Address64 -------- Resource unparsed
Evaluate _OSC Set fails. Status = 0x0005
pciehp: Both _OSC and OSHP methods do not exist
pciehp: Address64 -------- Resource unparsed
pciehp: Address64 -------- Resource unparsed
pciehp: Address64 -------- Resource unparsed
Evaluate _OSC Set fails. Status = 0x0005
pciehp: Both _OSC and OSHP methods do not exist
pciehp: Address64 -------- Resource unparsed
pciehp: Address64 -------- Resource unparsed
pciehp: Address64 -------- Resource unparsed
Evaluate _OSC Set fails. Status = 0x0005
pciehp: Both _OSC and OSHP methods do not exist
ACPI: PCI Interrupt 0000:00:0b.1[B] -> GSI 21 (level, low) -> IRQ 201
ehci_hcd 0000:00:0b.1: EHCI Host Controller
PCI: Setting latency timer of device 0000:00:0b.1 to 64
ehci_hcd 0000:00:0b.1: irq 201, pci mem f8822000
ehci_hcd 0000:00:0b.1: new USB bus registered, assigned bus number 1
PCI: cache line size of 64 is not supported by device 0000:00:0b.1
ehci_hcd 0000:00:0b.1: USB 2.0 enabled, EHCI 1.00, driver 2004-May-10
hub 1-0:1.0: USB hub found
hub 1-0:1.0: 8 ports detected
ohci_hcd: 2004 Feb 02 USB 1.1 'Open' Host Controller (OHCI) Driver (PCI)
ACPI: PCI Interrupt 0000:00:0b.0[A] -> GSI 22 (level, low) -> IRQ 193
ohci_hcd 0000:00:0b.0: OHCI Host Controller
PCI: Setting latency timer of device 0000:00:0b.0 to 64
ohci_hcd 0000:00:0b.0: irq 193, pci mem f88cc000
ohci_hcd 0000:00:0b.0: new USB bus registered, assigned bus number 2
hub 2-0:1.0: USB hub found
hub 2-0:1.0: 8 ports detected
md: Autodetecting RAID arrays.
md: autorun ...
md: ... autorun DONE.
ACPI: Power Button (FF) [PWRF]
usb 2-3: new low speed USB device using address 2
input: USB HID v1.10 Keyboard [Dell Dell USB Keyboard] on usb-0000:00:0b.0-3
usb 2-4: new low speed USB device using address 3
input: USB HID v1.11 Mouse [Dell Dell USB Optical Mouse] on usb-0000:00:0b.0-4
EXT3 FS on sda10, internal journal
device-mapper: 4.5.5-ioctl (2006-12-01) initialised: dm-devel@redhat.com
kjournald starting.  Commit interval 5 seconds
EXT3 FS on sda1, internal journal
EXT3-fs: mounted filesystem with ordered data mode.
kjournald starting.  Commit interval 5 seconds
EXT3 FS on sda9, internal journal
EXT3-fs: mounted filesystem with ordered data mode.
kjournald starting.  Commit interval 5 seconds
EXT3 FS on sda7, internal journal
EXT3-fs: mounted filesystem with ordered data mode.
kjournald starting.  Commit interval 5 seconds
EXT3 FS on sda2, internal journal
EXT3-fs: mounted filesystem with ordered data mode.
kjournald starting.  Commit interval 5 seconds
EXT3 FS on sda5, internal journal
EXT3-fs: mounted filesystem with ordered data mode.
kjournald starting.  Commit interval 5 seconds
EXT3 FS on sda8, internal journal
EXT3-fs: mounted filesystem with ordered data mode.
kjournald starting.  Commit interval 5 seconds
EXT3 FS on sda6, internal journal
EXT3-fs: mounted filesystem with ordered data mode.
NET: Registered protocol family 10
Disabled Privacy Extensions on device c034f6a0(lo)
IPv6 over IPv4 tunneling driver
divert: not allocating divert_blk for non-ethernet device sit0
Adding 8193140k swap on /dev/sda3.  Priority:-1 extents:1
powernow-k8: Found 1 AMD Athlon(tm) 64 X2 Dual Core Processor 4000+ processors (2 cpu cores) (version 2.00.00-rhel4)
powernow-k8:    0 : fid 0xd (2100 MHz), vid 0xa
powernow-k8:    1 : fid 0xc (2000 MHz), vid 0xb
powernow-k8:    2 : fid 0xa (1800 MHz), vid 0xd
powernow-k8:    3 : fid 0x2 (1000 MHz), vid 0x12
powernow-k8:    0 : fid 0xd (2100 MHz), vid 0xa
powernow-k8:    1 : fid 0xc (2000 MHz), vid 0xb
powernow-k8:    2 : fid 0xa (1800 MHz), vid 0xd
powernow-k8:    3 : fid 0x2 (1000 MHz), vid 0x12
ip_tables: (C) 2000-2002 Netfilter core team
ip_tables: (C) 2000-2002 Netfilter core team
ADDRCONF(NETDEV_UP): eth0: link is not ready
b44: eth0: Link is up at 100 Mbps, full duplex.
b44: eth0: Flow control is off for TX and off for RX.
ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
i2c /dev entries driver
lp: driver loaded but no devices found
eth0: no IPv6 routers present
[[b]b]vboxdrv: version magic '2.6.9-89.0.0.0.1.ELsmp SMP 686 REGPARM 4KSTACKS gcc-3.2' should be '2.6.9-89.0.0.0.1.ELsmp SMP 686 REGPARM 4KSTACKS gcc-3.4'
vboxdrv: version magic '2.6.9-89.0.0.0.1.ELsmp SMP 686 REGPARM 4KSTACKS gcc-3.2' should be '2.6.9-89.0.0.0.1.ELsmp SMP 686 REGPARM 4KSTACKS gcc-3.4'
i think so there is an issue with the last 4 lines ...thanking in advance..

thanks
vap824

Modedit: I put the log in code tags, it makes it a bit easier to read, and saves a long scroll down ;).

Re: Unable to compile Virtualbox kernel on Red Hat 4.8

Posted: 3. Jul 2009, 10:47
by Sasquatch
I think the problem is that the kernel is build with GCC 3.2, but you currently have a different version installed, 3.4. When compiling kernel modules, one of the requirements is that you have the same compiler version installed that is used on the kernel.

If possible, update the kernel, because it's really old. 2.6.9 is a long time ago. 2.6.30 is already final and the first alpha of 2.6.31 has been released already. Red Hat 4.8 isn't brand new either, but that doesn't mean it should work with an ancient kernel.

Re: Unable to compile Virtualbox kernel on Red Hat 4.8

Posted: 3. Jul 2009, 13:58
by fixedwheel
@vap824 read here: http://forums.virtualbox.org/viewtopic.php?f=7&t=13762
Sasquatch wrote:Red Hat 4.8 isn't brand new either, but that doesn't mean it should work with an ancient kernel.
you're kidding? RHEL 4.8 was released about two months ago ... what else if thats not brand new? :P and 2.6.9 will always be the kernel for the RHEL 4 Series

Re: Unable to compile Virtualbox kernel on Red Hat 4.8

Posted: 3. Jul 2009, 16:15
by vap824
If it is an issue with the kernel, is there any way to upgrade the kernel, or any workaround for me to install the virtualbox..cause the issue still persists when i am trying to install older versions of Virtualbox..i will appreciate if you guys can help me out as i am a newbie to os administration...
thanks
vap824

Re: Unable to compile Virtualbox kernel on Red Hat 4.8

Posted: 3. Jul 2009, 18:37
by fixedwheel
its an issue with a compat-gcc package, read the answers from TrevorPH and sej7278 in the mentioned thread. (Centos is a compatible rebuild of RHEL, so Centos 4.7 is like RHEL 4.7)
sej7278 wrote:it seems the package compat-oracle-rhel4.i386 is what does all this - an rpm provided by oracle to allow installation.

they effectively disabled the gcc346 that comes with the operating system, then install gcc323 just so that they can use it to compile some library that actually requires gcc296. go back to programming school oracle, bloody amateurs!
post the output from

Code: Select all

rpm -qa|grep compat

Re: Unable to compile Virtualbox kernel on Red Hat 4.8

Posted: 3. Jul 2009, 19:33
by vap824
Below is the o/p which has the rpm reqd..
[root@~]# rpm -qa|grep compat
java-1.4.2-gcj-compat-1.4.2.0-27jpp
compat-libgcc-296-2.96-132.7.2
compat-libstdc++-296-2.96-132.7.2
compat-openldap-2.1.30-12.el4
compat-gcc-32-3.2.3-47.3
compat-dapl-2.0.15-1.el4
compat-libcom_err-1.0-5
compat-gcc-32-c++-3.2.3-47.3
compat-oracle-rhel4-1.0-5
compat-db-4.1.25-9
compat-libcwait-2.1-1
compat-libstdc++-33-3.2.3-47.3
compat-boost-1331-1.33.1-5.0.1.el4

Re: Unable to compile Virtualbox kernel on Red Hat 4.8

Posted: 3. Jul 2009, 23:24
by vap824
hi guys i have followed the steps mentioned by trevor and i was sucessfully able to compile the kernel....now a new issue i was able to create a virtual machine but when i try to start it aborts....

the steps if followed are as below

1. removed compat-oracle
2. installed virtualbox 2.2.4
3 .installed compat-oracle
4. created virtual machine
5. when trying to start the machine a black srceen appears and disappears and the machine is in a aborted state....guys need help
thanks
vap824

Re: Unable to compile Virtualbox kernel on Red Hat 4.8

Posted: 4. Jul 2009, 11:43
by Sasquatch
When the machine aborts and crashes, there usually is a log that's cut off right at the moment it crashes. Please post the log here. And list the settings too, you might have enabled something that's causing it.

Re: Unable to compile Virtualbox kernel on Red Hat 4.8

Posted: 4. Jul 2009, 15:16
by vap824
hi i am attaching the log file...