You are not logged in.

#1 2007-10-22 16:59:19

tony5429
Member
Registered: 2006-03-28
Posts: 1,025
Website

x86_64 virtualbox-ose

does anyone know why the open-source virtualbox-ose in the community repo has not been compiled for arch64? I would love to have that...

Offline

#2 2007-11-12 20:31:45

tony5429
Member
Registered: 2006-03-28
Posts: 1,025
Website

Re: x86_64 virtualbox-ose

anyone?

Offline

#3 2007-11-18 18:39:20

big_gie
Member
Registered: 2005-01-19
Posts: 637

Re: x86_64 virtualbox-ose

I tryed doing so but failed. It is kind of tricky, because it needs 32 bits libraries for building.
Here's a pkgbuild I've been working on:

# $Id: PKGBUILD,v 1.3 2007/10/24 10:51:49 Romashka Exp $
# Maintainer: Roman Kyrylych <roman@archlinux.org>
# Contributor: Michal Krenek <mikos@sg1.cz>
# Contributor: niQo

pkgname=virtualbox-ose
pkgver=1.5.2
pkgrel=1
pkgdesc="Powerful x86 virtualization for enterprise as well as home use (Open Source Edition)"
url="http://www.virtualbox.org"
license=('GPL')
arch=('i686' 'x86_64')
replaces=('virtualbox')
provides=('virtualbox')
conflicts=('virtualbox')
depends=('virtualbox-modules' 'libidl2' 'libxslt' 'xalan-c' 'e2fsprogs' 'xerces-c' 'libxcursor')
makedepends=('bin86' 'dev86' 'iasl' 'libstdc++5' 'pkgconfig' 'qt' 'sdl' 'sdl_ttf' 'alsa-lib')
install=virtualbox.install
source=(http://www.virtualbox.org/download/${pkgver}/VirtualBox-${pkgver}_OSE.tar.bz2 \
        virtualbox-remove-splitted-stuff.patch
        60-virtualbox.rules)
md5sums=('2940f92160c88e241606f0fa91428b2c'
         '0f5ba612d7f4e8c600af1d8f042d3eba'
         '519d32d8c2408e0ed9d643f412117644')

build() {
  cd $startdir/src/VirtualBox-${pkgver}_OSE

  # remove additions and vboxdrv
  patch -p0 < ../virtualbox-remove-splitted-stuff.patch

  [ "$CARCH" = "x86_64" ] && export LDFLAGS="$LDFLAGS /opt/lib32/usr/lib/ /opt/lib32/lib/"
  ./configure --with-qt-dir=$QTDIR || return 1
  source ./env.sh
  kmk all || return 1

  cd out/linux.$BUILD_PLATFORM_ARCH/release/bin
  rm -rf sdk src tst* testcase vboxdrv.ko SUPInstall SUPUninstall
  mkdir -p $startdir/pkg/usr/{bin,lib/virtualbox,share/virtualbox}

  install -m644 *.so $startdir/pkg/usr/lib/
  install -m644 *.gc *.r0 *.xpt ../obj/src/VBox/VMM/tstVMM/tstVMM \
                $startdir/pkg/usr/lib/virtualbox/

  # if you move the binaries in /usr/share the sky will fall on your head
  for each in vditool VBoxManage VBoxSVC VBoxSDL VirtualBox VBoxBFE VBoxXPCOMIPCD VBoxTunctl VBox.sh; do
      install -m755 $each $startdir/pkg/usr/lib/virtualbox/$each
      ln -fs /usr/lib/virtualbox/$each $startdir/pkg/usr/bin/$each

      # I like lowercase binaries :)
      ln -fs /usr/lib/virtualbox/$each $startdir/pkg/usr/bin/$( echo $each | tr [:upper:] [:lower:] )
  done

  cp -R components $startdir/pkg/usr/lib/virtualbox/

  cp -R nls/ $startdir/pkg/usr/share/virtualbox/
  cd $startdir/pkg/usr/lib/virtualbox/; ln -s ../VBox* .

  # desktop stuff
  install -D -m644 $startdir/src/VirtualBox-${pkgver}_OSE/src/VBox/Installer/linux/VirtualBox.desktop \
                        $startdir/pkg/usr/share/applications/virtualbox.desktop
  install -D -m644 $startdir/src/VirtualBox-${pkgver}_OSE/src/VBox/Installer/linux/VBox.png \
                    $startdir/pkg/usr/share/pixmaps/VBox.png

  # udev rule
  install -D -m644 $startdir/src/60-virtualbox.rules \
    $startdir/pkg/etc/udev/rules.d/60-virtualbox.rules
}

configure fails with :

***** Checking 32-bit support *****
compiling the following source file:
#include <stdint.h>
int main(void)
{
  return 0;
}
using the following command line:
gcc -m32 -O -Wall -o .tmp_out .tmp_src.c
/usr/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-unknown-linux-gnu/4.2.2/libgcc.a when searching for -lgcc
/usr/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-unknown-linux-gnu/4.2.2/libgcc.a when searching for -lgcc
/usr/bin/ld: cannot find -lgcc
collect2: ld returned 1 exit status

Offline

#4 2007-11-18 18:43:46

Pierre
Developer
From: Bonn
Registered: 2004-07-05
Posts: 1,967
Website

Re: x86_64 virtualbox-ose

You cannot compile the ose version because it needs a cross-compiler. But you can use the standard version. Here are some PKGBUILDs:  http://users.archlinux.de/~pierre/packa … irtualbox/

Last edited by Pierre (2008-01-25 21:50:05)

Offline

#5 2008-01-25 21:18:22

tony5429
Member
Registered: 2006-03-28
Posts: 1,025
Website

Re: x86_64 virtualbox-ose

The link is broken... Anyone know how to do it?

Offline

#6 2008-01-25 21:50:16

Pierre
Developer
From: Bonn
Registered: 2004-07-05
Posts: 1,967
Website

Re: x86_64 virtualbox-ose

Link repaired. :-)

Offline

#7 2008-11-17 22:07:33

tony5429
Member
Registered: 2006-03-28
Posts: 1,025
Website

Re: x86_64 virtualbox-ose

I'm bringing back an old topic here, but I am still not sure I understand why the closed-source virtualbox works in 64-bit, but the open-source virtualbox does not.... Can someone explain? Thanks.

Offline

#8 2009-09-17 22:50:47

feralert
Member
Registered: 2007-03-21
Posts: 12

Re: x86_64 virtualbox-ose

tony5429 wrote:

I'm bringing back an old topic here, but I am still not sure I understand why the closed-source virtualbox works in 64-bit, but the open-source virtualbox does not.... Can someone explain? Thanks.

Hey all,
I'm an old archlinux user that is back after a while. I was making myself the same question, why cant vbox ose work on 64 bits while vbox puse can?
Im not demanding or anything like that, its just that id like to know the reason.
It's a pitty we have to work with privative software while there is an open solution.

Sorry for the old topic and thanks for all posible answers.

P.D.: Feels great being back! Archlinux rocks!!

Offline

#9 2009-09-17 23:04:29

wonder
Developer
From: Bucharest, Romania
Registered: 2006-07-05
Posts: 5,941
Website

Re: x86_64 virtualbox-ose

because virtualbox-ose demands a multilib gcc and we don't support this.

Checking for libcap library: found, OK.
Checking for compiler.h: compiler.h not found, OK.
Checking for 32-bit support: 
  Cannot compile 32-bit applications (missing headers and/or libraries)!

like i side note, if would be nice if we are demanting this upstream, opening feature request. native 64 bit version


Give what you have. To someone, it may be better than you dare to think.

Offline

#10 2009-09-21 14:30:58

jelly
Administrator
From: /dev/null
Registered: 2008-06-10
Posts: 716

Re: x86_64 virtualbox-ose

ofcourse they should provide a native 64bit version, it's sad that some company's , programmers don't support 64 bit. i686 is dead

Offline

Board footer

Powered by FluxBB