Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 277546 - xulrunner-1.9.0.11-r1 fails to crosscompile with hardened kernel
Summary: xulrunner-1.9.0.11-r1 fails to crosscompile with hardened kernel
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Mozilla Gentoo Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-07-12 22:40 UTC by Thomas Sachau
Modified: 2009-07-27 20:37 UTC (History)
1 user (show)

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


Attachments
build.log for xulrunner-1.9.0.11-r1 (build.log,215.16 KB, text/plain)
2009-07-12 22:43 UTC, Thomas Sachau
Details
config for current kernel as requested by Zorry (.config,44.56 KB, text/plain)
2009-07-14 16:18 UTC, Thomas Sachau
Details
build log for 1.9.0.12 (build.log,241.89 KB, text/plain)
2009-07-26 16:02 UTC, ferret
Details
/usr/bin/nspr-config (nspr-config,740 bytes, text/plain)
2009-07-26 16:03 UTC, ferret
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Thomas Sachau gentoo-dev 2009-07-12 22:40:26 UTC
i have a crosscompile setup, where i compile x86 packages on amd64. The environment is set to x86 and it uses gcc -m32. It does compile, if i switch to a none-hardened kernel. Attached the build.log
Comment 1 Thomas Sachau gentoo-dev 2009-07-12 22:43:40 UTC
Created attachment 197681 [details]
build.log for xulrunner-1.9.0.11-r1
Comment 2 Thomas Sachau gentoo-dev 2009-07-14 16:18:18 UTC
Created attachment 197940 [details]
config for current kernel as requested by Zorry
Comment 3 ferret 2009-07-26 00:26:30 UTC
I have the same error with xulrunner-1.9.0.12, also trying to compile an x86 package with gcc -m32.  I don't have a hardened kernel though.

I also tried xulrunner-1.9.1-r1 and got a similar failure.  The error message is instead associated with the initialisation of DELETE_ON_CLOSE in xpcom/io/nsILocalFile.idl

$ emerge --info

Portage 2.1.6.13 (default/linux/amd64/2008.0/desktop, gcc-4.3.3, glibc-2.10.1-r0, 2.6.30-gentoo-r1 x86_64)
=================================================================
System uname: Linux-2.6.30-gentoo-r1-x86_64-AMD_Turion-tm-_64_Mobile_ML-34-with-gentoo-2.0.1
Timestamp of tree: Sat, 25 Jul 2009 01:15:01 +0000
app-shells/bash:     4.0_p24
dev-java/java-config: 2.1.8-r1
dev-lang/python:     2.6.2-r1
sys-apps/baselayout: 2.0.1
sys-apps/openrc:     0.4.3-r3
sys-apps/sandbox:    2.0
sys-devel/autoconf:  2.13, 2.63-r1
sys-devel/automake:  1.9.6-r2, 1.10.2, 1.11
sys-devel/binutils:  2.19.1-r1
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.6a
virtual/os-headers:  2.6.30
ACCEPT_KEYWORDS="amd64 ~amd64"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=athlon64 -O2 -pipe -fomit-frame-pointer"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/splash /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c /etc/udev/rules.d"
CXXFLAGS="-march=athlon64 -O2 -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="buildsyspkg collision-protect distlocks fixpackages parallel-fetch protect-owned sandbox sfperms strict unmerge-orphans userfetch userpriv usersandbox"
GENTOO_MIRRORS="http://www.mirrorservice.org/sites/www.ibiblio.org/gentoo/ http://gentoo.mirror.sdv.fr http://ftp.heanet.ie/pub/gentoo/"
LANG="en_GB.UTF-8"
LDFLAGS="-Wl,-O1"
LINGUAS="en en_GB"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
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"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="3dnow 3dnowext X aac aalib acpi alsa amd64 avi bash-completion berkdb bittorrent bluetooth branding bzip2 cairo cdparanoia cdr cleartype cli cracklib crypt curl directfb divx dri dvd dvdr dvdread eds emboss encode evo fam fbcon fbsplash ffmpeg firefox flac flash ftp gdbm gif gmp gnutls gpm gtk gtk2 iconv id3 imap imlib java javascript jikes jpeg kpathsea lame libcaca libnotify libwww lua lzo mad midi mikmod mmx mmxext mng motif mp3 mp4 mpeg mudflap multilib music ncurses nptl nptlonly ogg oggvorbis opengl openmp pcre pdf pdflib perl png ppds python quicktime readline reflection rtc samba sdl session spell spl sqlite sse sse2 ssl startup-notification svg sysfs tcpd theora tiff truetype unicode usb videos vim-syntax vorbis wmf x264 xcb xft xml xml2 xorg xosd xulrunner xv xvid zlib" ALSA_CARDS="atiixp" 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="evdev keyboard mouse" KERNEL="linux" LCD_DEVICES="ncurses text" LINGUAS="en en_GB" USERLAND="GNU" VIDEO_CARDS="radeon vesa"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 4 Jory A. Pratt gentoo-dev 2009-07-26 15:18:51 UTC
(In reply to comment #3)
> I have the same error with xulrunner-1.9.0.12, also trying to compile an x86
> package with gcc -m32.  I don't have a hardened kernel though.
> 
> I also tried xulrunner-1.9.1-r1 and got a similar failure.  The error message
> is instead associated with the initialisation of DELETE_ON_CLOSE in
> xpcom/io/nsILocalFile.idl
> 
> $ emerge --info
> 
> Portage 2.1.6.13 (default/linux/amd64/2008.0/desktop, gcc-4.3.3,
> glibc-2.10.1-r0, 2.6.30-gentoo-r1 x86_64)
> =================================================================
> System uname:
> Linux-2.6.30-gentoo-r1-x86_64-AMD_Turion-tm-_64_Mobile_ML-34-with-gentoo-2.0.1
> Timestamp of tree: Sat, 25 Jul 2009 01:15:01 +0000
> app-shells/bash:     4.0_p24
> dev-java/java-config: 2.1.8-r1
> dev-lang/python:     2.6.2-r1
> sys-apps/baselayout: 2.0.1
> sys-apps/openrc:     0.4.3-r3
> sys-apps/sandbox:    2.0
> sys-devel/autoconf:  2.13, 2.63-r1
> sys-devel/automake:  1.9.6-r2, 1.10.2, 1.11
> sys-devel/binutils:  2.19.1-r1
> sys-devel/gcc-config: 1.4.1
> sys-devel/libtool:   2.2.6a
> virtual/os-headers:  2.6.30
> ACCEPT_KEYWORDS="amd64 ~amd64"
> CBUILD="x86_64-pc-linux-gnu"
> CFLAGS="-march=athlon64 -O2 -pipe -fomit-frame-pointer"
> CHOST="x86_64-pc-linux-gnu"
> CONFIG_PROTECT="/etc"
> CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/
> /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild
> /etc/sandbox.d /etc/splash /etc/terminfo /etc/texmf/language.dat.d
> /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c
> /etc/udev/rules.d"
> CXXFLAGS="-march=athlon64 -O2 -pipe -fomit-frame-pointer"
> DISTDIR="/usr/portage/distfiles"
> FEATURES="buildsyspkg collision-protect distlocks fixpackages parallel-fetch
> protect-owned sandbox sfperms strict unmerge-orphans userfetch userpriv
> usersandbox"
> GENTOO_MIRRORS="http://www.mirrorservice.org/sites/www.ibiblio.org/gentoo/
> http://gentoo.mirror.sdv.fr http://ftp.heanet.ie/pub/gentoo/"
> LANG="en_GB.UTF-8"
> LDFLAGS="-Wl,-O1"
> LINGUAS="en en_GB"
> MAKEOPTS="-j2"
> PKGDIR="/usr/portage/packages"
> PORTAGE_CONFIGROOT="/"
> 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"
> PORTDIR_OVERLAY="/usr/local/portage"
> SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
> USE="3dnow 3dnowext X aac aalib acpi alsa amd64 avi bash-completion berkdb
> bittorrent bluetooth branding bzip2 cairo cdparanoia cdr cleartype cli cracklib
> crypt curl directfb divx dri dvd dvdr dvdread eds emboss encode evo fam fbcon
> fbsplash ffmpeg firefox flac flash ftp gdbm gif gmp gnutls gpm gtk gtk2 iconv
> id3 imap imlib java javascript jikes jpeg kpathsea lame libcaca libnotify
> libwww lua lzo mad midi mikmod mmx mmxext mng motif mp3 mp4 mpeg mudflap
> multilib music ncurses nptl nptlonly ogg oggvorbis opengl openmp pcre pdf
> pdflib perl png ppds python quicktime readline reflection rtc samba sdl session
> spell spl sqlite sse sse2 ssl startup-notification svg sysfs tcpd theora tiff
> truetype unicode usb videos vim-syntax vorbis wmf x264 xcb xft xml xml2 xorg
> xosd xulrunner xv xvid zlib" ALSA_CARDS="atiixp" 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="evdev keyboard mouse" KERNEL="linux" LCD_DEVICES="ncurses text"
> LINGUAS="en en_GB" USERLAND="GNU" VIDEO_CARDS="radeon vesa"
> Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LC_ALL,
> PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
> 

Please post your build log, I notice in Thomas's build log it finds the 64bit libs which can not be used in linking for 32bit package, which is where the problem is.
Comment 5 ferret 2009-07-26 16:02:54 UTC
Created attachment 199231 [details]
build log for 1.9.0.12
Comment 6 ferret 2009-07-26 16:03:32 UTC
Created attachment 199232 [details]
/usr/bin/nspr-config

I was also asked to attach /usr/bin/nspr-config
Comment 7 Jory A. Pratt gentoo-dev 2009-07-27 02:10:27 UTC
Tommy is this fixed? If so please ensure all changes are commited to the multilib overlay.
Comment 8 Thomas Sachau gentoo-dev 2009-07-27 20:37:12 UTC
The issue was due to a missed lib64 path for the linker, does now compile and install for me and ferret.