Solved [SOLVED] Virtualbox 4.3.10 on FreeBSD 10

Hi,

I am trying to install Virtualbox 4.3.10 but get following error:

Code:
  0x802afbe10: i64 = TargetGlobalAddress<void (i8*, i8*, i8*)* @supR0SemEventDestructor> 0 [ID=19]
In function: SUPSemEventCreate
cc: error: clang frontend command failed with exit code 70 (use -v to see invocation)
FreeBSD clang version 3.3 (tags/RELEASE_33/final 183502) 20130610
Target: x86_64-unknown-freebsd10.0
Thread model: posix
cc: note: diagnostic msg: PLEASE submit a bug report to http://llvm.org/bugs/ and include the crash backtrace, preprocessed source, and associated run script.
cc: note: diagnostic msg: 
********************

PLEASE ATTACH THE FOLLOWING FILES TO THE BUG REPORT:
Preprocessed source(s) and associated run script(s) are located at:
cc: note: diagnostic msg: /tmp/SUPDrvSem-nqeoJx.c
cc: note: diagnostic msg: /tmp/SUPDrvSem-nqeoJx.sh
cc: note: diagnostic msg: 

********************
*** [SUPDrvSem.o] Error code 70

make[3]: stopped in /usr/ports/emulators/virtualbox-ose-kmod/work/VirtualBox-4.3.10/out/freebsd.amd64/release/bin/src/vboxdrv
--- SUPDrv.o ---
fatal error: error in backend: Cannot select: 0x803146410: i64 = X86ISD::WrapperRIP 0x803146810 [ID=31]
  0x803146810: i64 = TargetGlobalAddress<[4 x i8]* @.str366> 0 [ID=27]
In function: supdrvInitDevExt
cc: error: clang frontend command failed with exit code 70 (use -v to see invocation)
FreeBSD clang version 3.3 (tags/RELEASE_33/final 183502) 20130610
Target: x86_64-unknown-freebsd10.0
Thread model: posix
cc: note: diagnostic msg: PLEASE submit a bug report to http://llvm.org/bugs/ and include the crash backtrace, preprocessed source, and associated run script.
cc: note: diagnostic msg: 
********************

PLEASE ATTACH THE FOLLOWING FILES TO THE BUG REPORT:
Preprocessed source(s) and associated run script(s) are located at:
cc: note: diagnostic msg: /tmp/SUPDrv-a0xrAY.c
cc: note: diagnostic msg: /tmp/SUPDrv-a0xrAY.sh
cc: note: diagnostic msg: 

********************
*** [SUPDrv.o] Error code 70

make[3]: stopped in /usr/ports/emulators/virtualbox-ose-kmod/work/VirtualBox-4.3.10/out/freebsd.amd64/release/bin/src/vboxdrv
2 errors

make[3]: stopped in /usr/ports/emulators/virtualbox-ose-kmod/work/VirtualBox-4.3.10/out/freebsd.amd64/release/bin/src/vboxdrv
*** [all] Error code 2

make[2]: stopped in /usr/ports/emulators/virtualbox-ose-kmod/work/VirtualBox-4.3.10/out/freebsd.amd64/release/bin/src
1 error

make[2]: stopped in /usr/ports/emulators/virtualbox-ose-kmod/work/VirtualBox-4.3.10/out/freebsd.amd64/release/bin/src
===> Compilation failed unexpectedly.
Try to set MAKE_JOBS_UNSAFE=yes and rebuild before reporting the failure to
the maintainer.
*** Error code 1

Stop.
make[1]: stopped in /usr/ports/emulators/virtualbox-ose-kmod
*** Error code 1

Stop.
make: stopped in /usr/ports/emulators/virtualbox-ose-kmod

===>>> make failed for emulators/virtualbox-ose-kmod
===>>> Aborting update

===>>> Update for emulators/virtualbox-ose-kmod failed
===>>> Aborting update

===>>> Killing background jobs
Terminated

===>>> You can restart from the point of failure with this command line:
       portmaster <flags> emulators/virtualbox-ose emulators/virtualbox-ose-kmod 

===>>> Exiting

any ideas?
 
Re: Virtualbox 4.3.10 on FreeBSD 10

I recently updated ports tree.

However how do I find out how old is my ports tree?
 
Re: Virtualbox 4.3.10 on FreeBSD 10

Code:
[root@sonce /backup/sonce]# ls -l /usr/ports/.portsnap.INDEX
-rw-r--r--  1 root  wheel  2107578 Apr 15 00:04 /usr/ports/.portsnap.INDEX
 
Re: Virtualbox 4.3.10 on FreeBSD 10

Please provide the contents of your /etc/make.conf and /etc/src.conf files, if present.
 
Re: Virtualbox 4.3.10 on FreeBSD 10

Code:
[aquarius@sonce /usr/local/www/timebits.com]$ cat /etc/make.conf
# CC=gcc48
# CXX=g++48
# CPP=cpp48
CPUTYPE?=core2
CFLAGS=-O2 -fno-strict-aliasing -pipe -fPIC
CXXFLAGS+=-fconserve-space
NO_FORTRAN=true
NO_I4B=true
NO_LPR=true
NO_X=true
NO_GAMES=true
NO_PROFILE=true
WITHOUT="X11"
NO_KERBEROS=true
PYTHON_VERSION=2.7
DEFAULT_VERSIONS=python=2.7
# WITH_PKGNG=yes
# WITHOUT_PKGNG=yes
# added by use.perl 2013-08-21 15:28:28
# PERL_VERSION=5.18.1
[aquarius@sonce /usr/local/www/timebits.com]$ cat /etc/src.conf
cat: /etc/src.conf: No such file or directory
 
Re: Virtualbox 4.3.10 on FreeBSD 10

rokj said:
Code:
[aquarius@sonce /usr/local/www/timebits.com]$ cat /etc/make.conf
# CC=gcc48
# CXX=g++48
# CPP=cpp48
CPUTYPE?=core2
CFLAGS=-O2 -fno-strict-aliasing -pipe -fPIC
CXXFLAGS+=-fconserve-space
...
[aquarius@sonce /usr/local/www/timebits.com]$ cat /etc/src.conf
cat: /etc/src.conf: No such file or directory
I would try commenting out or removing the CFLAGS and CXXFLAGS statements and retry. emulators/virtualbox-ose builds successfully on my FreeBSD-10.0 system without them. Also, as a general rule, if you are modifying CFLAGS/CXXFLAGS you should always use "+=". On your CFLAGS statement you have "=".
 
Re: Virtualbox 4.3.10 on FreeBSD 10

The CFLAGS and CXXFLAGS are a problem. They might offer small improvements at the cost of larger problems. At the same time, they prevent individual ports that can profitably use custom CFLAGS settings from using them.

So not only do they provide little real improvement, they are a net negative.
 
Re: Virtualbox 4.3.10 on FreeBSD 10

After commenting out CFLAGS and CXXFLAGS, VirtualBox compiled successfully. Thx Thanks again!
 
Back
Top