Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 234356 - app-emulation/virtualbox-1.6.2 headless on ~amd64 fails: kmk failed
Summary: app-emulation/virtualbox-1.6.2 headless on ~amd64 fails: kmk failed
Status: RESOLVED UPSTREAM
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: High normal (vote)
Assignee: Markus Ullmann (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-08-10 06:47 UTC by Hilco
Modified: 2008-10-27 10:04 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
The error with a bit more context. (virtualbox.err,5.51 KB, text/plain)
2008-08-10 06:48 UTC, Hilco
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Hilco 2008-08-10 06:47:49 UTC
USE flags: headless -additions -alsa -pulseaudio -sdk

The build fails.

Reproducible: Always

Steps to Reproduce:
1. emerge virtualbox
2.
3.

Actual Results:  
 * ERROR: app-emulation/virtualbox-1.6.2 failed.
 * Call stack:
 *               ebuild.sh, line   49:  Called src_compile
 *             environment, line 2809:  Called die
 * The specific snippet of code:
 *       MAKE="kmk" emake TOOL_GCC3_CC="$(tc-getCC)" TOOL_GCC3_CXX="$(tc-getCXX)" TOOL_GCC3_AS="$(tc-getCC)" TOOL_GCC3_AR="$(tc-getAR)" TOOL_GCC3_LD="$(tc-getCXX)" TOOL_GCC3_LD_SYSMOD="$(tc-getLD)" TOOL_GCC3_CFLAGS="${CFLAGS}" TOOL_GCC3_CXXFLAGS="${CXXFLAGS}" all || die "kmk failed"
 *  The die message:
 *   kmk failed
 * If you need support, post the topmost build error, and the call stack if relevant.
 * A complete build log is located at '/var/tmp/portage/app-emulation/virtualbox-1.6.2/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/app-emulation/virtualbox-1.6.2/temp/environment'.


Expected Results:  
The build succeeds.

Portage 2.2_rc6 (hardened/linux/amd64/2008.0/server, gcc-3.4.6, glibc-2.8_p20080602-r0, 2.6.24-hardened-r3 x86_64)
=================================================================
System uname: Linux-2.6.24-hardened-r3-x86_64-AMD_Athlon-tm-_64_X2_Dual_Core_Processor_3800+-with-glibc2.3.2
Timestamp of tree: Sat, 09 Aug 2008 02:15:01 +0000
app-shells/bash:     3.2_p39
dev-lang/python:     2.4.4-r6, 2.5.2-r7
dev-python/pycrypto: 2.0.1-r6
sys-apps/baselayout: 2.0.0
sys-apps/openrc:     0.2.5
sys-apps/sandbox:    1.2.18.1-r3
sys-devel/autoconf:  2.62-r1
sys-devel/automake:  1.10.1-r1
sys-devel/binutils:  2.18-r3
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   2.2.4
virtual/os-headers:  2.6.25-r4
ACCEPT_KEYWORDS="amd64 ~amd64"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=athlon64 -O2 -pipe -fforce-addr -fomit-frame-pointer"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/terminfo /etc/udev/rules.d"
CXXFLAGS="-march=athlon64 -O2 -pipe -fforce-addr -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="distlocks parallel-fetch preserve-libs sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://gentoo.arcticnetwork.ca/source/ http://gentoo.mirrors.tera-byte.com/ http://mirror.csclub.uwaterloo.ca/gentoo-distfiles/ "
LDFLAGS="-Wl,-O1"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.namerica.gentoo.org/gentoo-portage"
USE="acl amd64 apache2 bash-completion berkdb bzip2 chroot cli cracklib crypt dri gpm hardened headless iconv isdnlog justify mailwrapper midi mmx mudflap multilib ncurses nptl nptlonly pam pcre perl pic pppd python readline reflection session snmp spl sse sse2 ssl sysfs tcpd truetype urandom vim-syntax xml xorg zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" USERLAND="GNU" VIDEO_CARDS="fbdev glint i810 mach64 mga neomagic nv r128 radeon savage sis tdfx trident vesa vga via vmware voodoo"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
Comment 1 Hilco 2008-08-10 06:48:41 UTC
Created attachment 162604 [details]
The error with a bit more context.
Comment 2 Alessio Cassibba (X-Drum) 2008-08-12 01:03:49 UTC
(In reply to comment #0)
> USE flags: headless -additions -alsa -pulseaudio -sdk

Hi,
just tested on my amd64 and builds here, unfortunately i'm not using
your same profile (and compiler) i'm on: default-linux/amd64/2007.0/desktop (x86_64-pc-linux-gnu-4.1.2).

This problem seems related to the hardened gcc profile, could you test it with the
gcc 3.4.6-vanilla profile?
Comment 3 Hilco 2008-08-13 04:26:55 UTC
Okay, I tried both 1.6.2 and 1.6.4 with both vanilla and hardened. Vanilla compiles fine, hardened fails on kmk.

So it seems to be a hardened problem. Reassign to Hardened?
Comment 4 Luca Lesinigo 2008-08-17 23:48:42 UTC
I can confirm this error on a fresh new Gentoo Hardened 2008.0 amd64 multilib.

Using gcc-config to switch to vanilla gcc will compile virtualbox successfully.
Comment 5 Alessio Cassibba (X-Drum) 2008-08-18 00:02:33 UTC
(In reply to comment #3)
[..]
(In reply to comment #4)
[..]

Unluckily there are known problems with VirtualBox and the gcc-hardened profile
Comment 6 Markus Ullmann (RETIRED) gentoo-dev 2008-08-27 13:51:11 UTC
Please report this stuff also upstream as we're not the only distribution providing hardened toolchains. Sorry that we can't do more about it at the moment
Comment 7 Kai Krakow 2008-10-27 09:47:02 UTC
Is it safe to use the vanilla compiled version of VirtualBox when the rest of the system was compiled with the hardened toolchain?

I am currently also experiencing this problem and I don't want to go back to non-hardened because originally I decided to install hardened because somewhere in the gentoo docs I read that hardened toolchain is the recommended and supported server platform for gentoo.
Comment 8 Kai Krakow 2008-10-27 10:04:31 UTC
I'm adding the upstream URL for this issue to follow it there:

http://www.virtualbox.org/ticket/1262