Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Virtualbox problems with either 4.X or 5.X [solved]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
RayDude
Advocate
Advocate


Joined: 29 May 2004
Posts: 2062
Location: San Jose, CA

PostPosted: Sun Nov 22, 2015 5:50 am    Post subject: Virtualbox problems with either 4.X or 5.X [solved] Reply with quote

I've googled on this and haven't found a solution.

Has anyone any advice?

Code:

kmk_builtin_mkdir -p -- /var/tmp/portage/app-emulation/virtualbox-5.0.10/work/VirtualBox-5.0.10/out/linux.amd64/release/obj/VBoxJXpcom/src/
  CXX VBoxJXpcom - {C}/src/libs/xpcom18a4/java/src/nsAppFileLocProviderProxy.cpp
x86_64-pc-linux-gnu-g++ -c -O2 -g -pipe -ansi -Wall -Wno-unused -Wno-non-virtual-dtor -Wno-invalid-offsetof -Wno-sign-compare -Wno-unused -Wno-ctor-dtor-privacy -fvisibility-inlines-hidden -fvisibility=hidden -DVBOX_HAVE_VISIBILITY_HIDDEN -DRT_USE_VISIBILITY_DEFAULT -fdiagnostics-show-option -Wno-delete-non-virtual-dtor -fPIC -Wno-write-strings -O -pthread -m64 -I/var/tmp/portage/app-emulation/virtualbox-5.0.10/work/VirtualBox-5.0.10/src/libs/xpcom18a4/java/src -I/opt/oracle-jre-bin-1.8.0.66/include -I/opt/oracle-jre-bin-1.8.0.66/include/linux -I/var/tmp/portage/app-emulation/virtualbox-5.0.10/work/VirtualBox-5.0.10/src/libs/xpcom18a4/xpcom/glue -I/var/tmp/portage/app-emulation/virtualbox-5.0.10/work/VirtualBox-5.0.10/src/libs/xpcom18a4/xpcom/build -I/var/tmp/portage/app-emulation/virtualbox-5.0.10/work/VirtualBox-5.0.10/out/linux.amd64/release/obj/vboxjxpcom-gen/jdest -I/var/tmp/portage/app-emulation/virtualbox-5.0.10/work/VirtualBox-5.0.10/src/libs/xpcom18a4/xpcom/build -I/var/tmp/portage/app-emulation/virtualbox-5.0.10/work/VirtualBox-5.0.10/src/libs/xpcom18a4/xpcom/ds -I/var/tmp/portage/app-emulation/virtualbox-5.0.10/work/VirtualBox-5.0.10/src/libs/xpcom18a4/xpcom/io -I/var/tmp/portage/app-emulation/virtualbox-5.0.10/work/VirtualBox-5.0.10/src/libs/xpcom18a4/xpcom/base -I/var/tmp/portage/app-emulation/virtualbox-5.0.10/work/VirtualBox-5.0.10/src/libs/xpcom18a4/xpcom/components -I/var/tmp/portage/app-emulation/virtualbox-5.0.10/work/VirtualBox-5.0.10/src/libs/xpcom18a4/xpcom/threads -I/var/tmp/portage/app-emulation/virtualbox-5.0.10/work/VirtualBox-5.0.10/src/libs/xpcom18a4/xpcom/proxy/src -I/var/tmp/portage/app-emulation/virtualbox-5.0.10/work/VirtualBox-5.0.10/src/libs/xpcom18a4/xpcom/reflect/xptcall/src -I/var/tmp/portage/app-emulation/virtualbox-5.0.10/work/VirtualBox-5.0.10/src/libs/xpcom18a4/ipc/ipcd/client/src -I/var/tmp/portage/app-emulation/virtualbox-5.0.10/work/VirtualBox-5.0.10/src/libs/xpcom18a4/ipc/ipcd/shared/src -I/var/tmp/portage/app-emulation/virtualbox-5.0.10/work/VirtualBox-5.0.10/src/libs/xpcom18a4/ipc/ipcd/extensions/lock/src -I/var/tmp/portage/app-emulation/virtualbox-5.0.10/work/VirtualBox-5.0.10/src/libs/xpcom18a4/ipc/ipcd/extensions/transmngr/src -I/var/tmp/portage/app-emulation/virtualbox-5.0.10/work/VirtualBox-5.0.10/src/libs/xpcom18a4/ipc/ipcd/extensions/dconnect/src -I/var/tmp/portage/app-emulation/virtualbox-5.0.10/work/VirtualBox-5.0.10/src/libs/xpcom18a4/ipc/ipcd/extensions/transmngr/common -I/var/tmp/portage/app-emulation/virtualbox-5.0.10/work/VirtualBox-5.0.10/out/linux.amd64/release/bin/sdk/bindings/xpcom/include -I/var/tmp/portage/app-emulation/virtualbox-5.0.10/work/VirtualBox-5.0.10/out/linux.amd64/release/bin/sdk/bindings/xpcom/include/nsprpub -I/var/tmp/portage/app-emulation/virtualbox-5.0.10/work/VirtualBox-5.0.10/out/linux.amd64/release/bin/sdk/bindings/xpcom/include/string -I/var/tmp/portage/app-emulation/virtualbox-5.0.10/work/VirtualBox-5.0.10/out/linux.amd64/release/bin/sdk/bindings/xpcom/include/xpcom -I/var/tmp/portage/app-emulation/virtualbox-5.0.10/work/VirtualBox-5.0.10/out/linux.amd64/release/bin/sdk/bindings/xpcom/include/ipcd -I/var/tmp/portage/app-emulation/virtualbox-5.0.10/work/VirtualBox-5.0.10/src/libs/xpcom18a4/java -I/var/tmp/portage/app-emulation/virtualbox-5.0.10/work/VirtualBox-5.0.10/out/linux.amd64/release/obj/VBoxJXpcom/dtrace -I/var/tmp/portage/app-emulation/virtualbox-5.0.10/work/VirtualBox-5.0.10/include -I/var/tmp/portage/app-emulation/virtualbox-5.0.10/work/VirtualBox-5.0.10/out/linux.amd64/release -DVBOX -DVBOX_OSE -DVBOX_WITH_64_BITS_GUESTS -DVBOX_WITH_DEBUGGER -DRT_OS_LINUX -D_FILE_OFFSET_BITS=64 -DRT_ARCH_AMD64 -D__AMD64__ -DVBOX_WITH_HARDENING -DRTPATH_APP_PRIVATE=\"/usr/share/virtualbox\" -DRTPATH_APP_PRIVATE_ARCH=\"/usr/lib64/virtualbox\" -DRTPATH_SHARED_LIBS=\"/usr/lib64/virtualbox\" -DRTPATH_APP_DOCS=\"\" -DMOZILLA_CLIENT=1 -DNDEBUG=1 -D_IMPL_NS_COM -DXPCOM_DLL_BASE=\"VBoxXPCOM\" -DMOZ_DLL_SUFFIX=\".so\" -DIN_RING3 -DVBOX_USE_IPRT_IN_XPCOM -DVBOX_WITH_XPCOM_NAMESPACE_CLEANUP -DMOZ_PRESERVE_PIC -DEXPORT_XPTI_API -DEXPORT_XPT_API -DVBOX_WITH_XPCOM -DOSTYPE=\"Linux2.6\" -DOSARCH=\"Linux\" -DXP_UNIX=1 -D_GNU_SOURCE -DHAVE_VISIBILITY_ATTRIBUTE=1 -DHAVE_VA_LIST_AS_ARRAY -DHAVE_VA_COPY -DVA_COPY\(a\,b\)=__builtin_va_copy\(a\,b\) -Wp,-MD,/var/tmp/portage/app-emulation/virtualbox-5.0.10/work/VirtualBox-5.0.10/out/linux.amd64/release/obj/VBoxJXpcom/src/nsAppFileLocProviderProxy.o.dep -Wp,-MT,/var/tmp/portage/app-emulation/virtualbox-5.0.10/work/VirtualBox-5.0.10/out/linux.amd64/release/obj/VBoxJXpcom/src/nsAppFileLocProviderProxy.o -Wp,-MP -o /var/tmp/portage/app-emulation/virtualbox-5.0.10/work/VirtualBox-5.0.10/out/linux.amd64/release/obj/VBoxJXpcom/src/nsAppFileLocProviderProxy.o /var/tmp/portage/app-emulation/virtualbox-5.0.10/work/VirtualBox-5.0.10/src/libs/xpcom18a4/java/src/nsAppFileLocProviderProxy.cpp
In file included from /var/tmp/portage/app-emulation/virtualbox-5.0.10/work/VirtualBox-5.0.10/src/libs/xpcom18a4/java/src/nsAppFileLocProviderProxy.cpp:38:0:
/var/tmp/portage/app-emulation/virtualbox-5.0.10/work/VirtualBox-5.0.10/src/libs/xpcom18a4/java/src/nsAppFileLocProviderProxy.h:42:17: fatal error: jni.h: No such file or directory
 #include "jni.h"
                 ^
compilation terminated.
kmk: *** [/var/tmp/portage/app-emulation/virtualbox-5.0.10/work/VirtualBox-5.0.10/out/linux.amd64/release/obj/VBoxJXpcom/src/nsAppFileLocProviderProxy.o] Error 1
 * ERROR: app-emulation/virtualbox-5.0.10::gentoo failed (compile phase):
 *   emake failed
 *
 * If you need support, post the output of `emerge --info '=app-emulation/virtualbox-5.0.10::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=app-emulation/virtualbox-5.0.10::gentoo'`.
 * The complete build log is located at '/var/tmp/portage/app-emulation/virtualbox-5.0.10/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/app-emulation/virtualbox-5.0.10/temp/environment'.
 * Working directory: '/var/tmp/portage/app-emulation/virtualbox-5.0.10/work/VirtualBox-5.0.10'
 * S: '/var/tmp/portage/app-emulation/virtualbox-5.0.10/work/VirtualBox-5.0.10'
!!! When you file a bug report, please include the following information:
GENTOO_VM=  CLASSPATH="" JAVA_HOME=""
JAVACFLAGS="" COMPILER=""
and of course, the output of emerge --info =virtualbox-5.0.10

>>> Failed to emerge app-emulation/virtualbox-5.0.10, Log file:

>>>  '/var/tmp/portage/app-emulation/virtualbox-5.0.10/temp/build.log'

 * Messages for package app-emulation/virtualbox-5.0.10:

 * ERROR: app-emulation/virtualbox-5.0.10::gentoo failed (compile phase):
 *   emake failed
 *
 * If you need support, post the output of `emerge --info '=app-emulation/virtualbox-5.0.10::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=app-emulation/virtualbox-5.0.10::gentoo'`.
 * The complete build log is located at '/var/tmp/portage/app-emulation/virtualbox-5.0.10/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/app-emulation/virtualbox-5.0.10/temp/environment'.
 * Working directory: '/var/tmp/portage/app-emulation/virtualbox-5.0.10/work/VirtualBox-5.0.10'
 * S: '/var/tmp/portage/app-emulation/virtualbox-5.0.10/work/VirtualBox-5.0.10'

_________________
Some day there will only be free software.


Last edited by RayDude on Sun Nov 22, 2015 7:19 pm; edited 1 time in total
Back to top
View user's profile Send private message
kvada
n00b
n00b


Joined: 11 Nov 2014
Posts: 15

PostPosted: Sun Nov 22, 2015 6:10 am    Post subject: Reply with quote

Try MAKEOPTS=-j1 emerge virtualbox
Back to top
View user's profile Send private message
RayDude
Advocate
Advocate


Joined: 29 May 2004
Posts: 2062
Location: San Jose, CA

PostPosted: Sun Nov 22, 2015 5:08 pm    Post subject: Reply with quote

kvada wrote:
Try MAKEOPTS=-j1 emerge virtualbox


Thanks.

That's exactly how I generated this output. It was my last ditch attempt.

I've also tried reinstalling oracle-java and the virtual java packages.

Any other ideas?
_________________
Some day there will only be free software.
Back to top
View user's profile Send private message
ian.au
Guru
Guru


Joined: 07 Apr 2011
Posts: 592
Location: Australia

PostPosted: Sun Nov 22, 2015 5:33 pm    Post subject: Reply with quote

Code:
emerge --info
and post here.
Back to top
View user's profile Send private message
RayDude
Advocate
Advocate


Joined: 29 May 2004
Posts: 2062
Location: San Jose, CA

PostPosted: Sun Nov 22, 2015 5:42 pm    Post subject: Reply with quote

Code:
emerge --info
Portage 2.2.20.1 (python 2.7.10-final-0, default/linux/amd64/13.0, gcc-4.9.3, glibc-2.21-r1, 4.2.2-gentoo x86_64)
=================================================================
System uname: Linux-4.2.2-gentoo-x86_64-Intel-R-_Core-TM-_i7-4720HQ_CPU_@_2.60GHz-with-gentoo-2.2
KiB Mem:    16391768 total,  11005104 free
KiB Swap:   15500284 total,  15500284 free
Timestamp of repository gentoo: Mon, 16 Nov 2015 00:00:01 +0000
sh bash 4.3_p39
ld GNU ld (Gentoo 2.25.1 p1.1) 2.25.1
app-shells/bash:          4.3_p39::gentoo
dev-java/java-config:     2.2.0::gentoo
dev-lang/perl:            5.20.2::gentoo
dev-lang/python:          2.7.10::gentoo, 3.3.5-r1::gentoo, 3.4.3::gentoo
dev-util/cmake:           3.3.1-r1::gentoo
dev-util/pkgconfig:       0.28-r2::gentoo
sys-apps/baselayout:      2.2::gentoo
sys-apps/openrc:          0.17::gentoo
sys-apps/sandbox:         2.6-r1::gentoo
sys-devel/autoconf:       2.13::gentoo, 2.69::gentoo
sys-devel/automake:       1.11.6-r1::gentoo, 1.14.1::gentoo, 1.15::gentoo
sys-devel/binutils:       2.25.1-r1::gentoo
sys-devel/gcc:            4.8.5::gentoo, 4.9.3::gentoo
sys-devel/gcc-config:     1.7.3::gentoo
sys-devel/libtool:        2.4.6::gentoo
sys-devel/make:           4.1-r1::gentoo
sys-kernel/linux-headers: 3.18::gentoo (virtual/os-headers)
sys-libs/glibc:           2.21-r1::gentoo
Repositories:

gentoo
    location: /usr/portage
    sync-type: rsync
    sync-uri: rsync://rsync.gentoo.org/gentoo-portage
    priority: -1000

gamerlay
    location: /var/lib/layman/gamerlay
    masters: gentoo
    priority: 0

local
    location: /usr/portage/local
    masters: gentoo
    priority: 1

ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -mtune=native -O2 -pipe -fomit-frame-pointer -fexcess-precision=fast"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /home/mythtv/ /usr/lib64/libreoffice/program/sofficerc /usr/share/config /usr/share/gnupg/qualified.txt /usr/share/webapps"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-march=native -mtune=native -O2 -pipe -fomit-frame-pointer -fexcess-precision=fast"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS=" --with-bdeps=y"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j8"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
USE="64bit X a52 aac aalib acl acpi akonadi alivec alsa amd64 ao apache2 aspell audio audiofile autostart avahi avi bash-completion berkdb binary-drivers bitmap-fonts bittorrent bluetooth bluray bonjour boost bzip2 bzlib caps cdda cddax cddb cdio cdparanoia cdr cdrom cdsound cec cgi clang cleartype cli cmake consolekit corefonts cracklib crypt css csv cups cupsddk curl curlwrappers cxx dbus device-mapper dflib dhcpcd disk-partition diskio divx4linux dri dts dv dvd dvdr dvdread eclipse emoticon encode exif extras faac faad fame fat fax fbcon fbcondecor ffmpeg fftw flac foomaticdb fortran ftp fuse games gd gdbm gif gimp git glib gnutls goom gpm gstreamer gudev hal hpcups hpijs html htmltidy httpd hwdb iconv icu id3 id3tag imagecache imagemagick imap inotify iproute2 ipv6 irda ithreads jadetex java jpeg jpeg2k kde kdepim kdm lame libdvdread lirc live llvm-shared-libs lm_sensors logrotate logviewer lua lzo mad maildir matroska mikmod mim minizip mjpeg mmx mmxext mng mod modules mozilla mp3 mp3tunes mp4 mpd mpeg mplayer multilib mysql mythtv ncurses net network nfs nfsv3 nfsv4 nls nptl nsplugin nvidia nxclient ogg ogg123 oggvorbis ogm openal opengl openmp openssl oss oxygen pam pcre pdf perl phonon php png policykit posix postscript ppds profile projectm pvr python qt qt3 qt3support qt4 qtmultimedia quicktime rar raw rdesktop readline real rtmp rtsp samba samba4 scanner seccomp semantic-desktop server session sftp sms spell sql sse sse2 ssl stream subversion suid svg syslog tcltk tcpd theora thesaurus threads tidy tiff tk truetype twolame udev udev-acl unicode unzip upnp usb v4l v4l2 vaapi vcd vdpau vhosts video vnc vorbis wav webcam webserver wma x264 x265 xattr xcomposite xine xml xml2 xmltv xorgmodule xulrunner xv xvid yahoo zeroconf zip zlib" ABI_X86="64 32" ALSA_CARDS="hda_intel" APACHE2_MODULES="access auth auth_basic auth_dbm auth_anon auth_digest alias file-cache echo charset-lite cache disk-cache mem-cache ext-filter case_filter filter case-filter-in deflate mime-magic cern-meta expires headers usertrack authz_host unique-id proxy proxy-connect proxy-ftp proxy-http info include cgi cgid dav dav-fs vhost-alias speling rewrite log_config logio env setenvif mime status autoindex asis negotiation dir imap actions userdir so unique_id proxy_http authn_file authz_user authz_host" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump author" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="aes avx avx2 fma3 mmx mmxext popcnt sse sse2 sse3 sse4_1 sse4_2 ssse3" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ublox ubx" GRUB_PLATFORMS="efi-64" INPUT_DEVICES="keyboard mouse evdev joystick" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="en_US en" LIRC_DEVICES="devinput mceusb mceusb2" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-5" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_2 python3_3 python_3_4" RUBY_TARGETS="ruby20 ruby21" USERLAND="GNU" VIDEO_CARDS="nvidia" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
USE_PYTHON="2.7 3.2 3.3 3.4"
Unset:  CC, CPPFLAGS, CTARGET, CXX, INSTALL_MASK, LANG, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS

_________________
Some day there will only be free software.
Back to top
View user's profile Send private message
Hu
Moderator
Moderator


Joined: 06 Mar 2007
Posts: 21624

PostPosted: Sun Nov 22, 2015 5:47 pm    Post subject: Reply with quote

Do you need USE=java for virtualbox? If not, try disabling it.
Back to top
View user's profile Send private message
RayDude
Advocate
Advocate


Joined: 29 May 2004
Posts: 2062
Location: San Jose, CA

PostPosted: Sun Nov 22, 2015 7:11 pm    Post subject: Reply with quote

That fixed it.

Code:
 echo app-emulation/virtualbox -java >> /etc/portage/package.use/virtualbox


Thanks much!
_________________
Some day there will only be free software.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum