Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 407689 - media-tv/xbmc-11.0-rc1 USE=profile - x86_64-pc-linux-gnu-gcc: -pie and -pg|p|profile are incompatible when linking
Summary: media-tv/xbmc-11.0-rc1 USE=profile - x86_64-pc-linux-gnu-gcc: -pie and -pg|p|...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal major (vote)
Assignee: The Gentoo Linux Hardened Team
URL:
Whiteboard:
Keywords:
: 544454 544468 (view as bug list)
Depends on:
Blocks:
 
Reported: 2012-03-10 15:39 UTC by Kfir Ozer
Modified: 2015-09-17 19:15 UTC (History)
2 users (show)

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


Attachments
config.log file for xbmc-11.0_rc1 (config.log,233.41 KB, text/plain)
2012-03-11 03:20 UTC, Kfir Ozer
Details
config.log file for xbmc-11.0_rc1 with commented out code in prepare() (config.log,235.18 KB, text/plain)
2012-03-11 03:39 UTC, Kfir Ozer
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Kfir Ozer 2012-03-10 15:39:46 UTC
xbmc fails to configure and it proves the following error message:
configure: error: cannot compute sizeof (size_t)

full error message and emerge --info is shown below.


Reproducible: Always

Actual Results:  
won't configure

Expected Results:  
to be configured

error message:

checking size of size_t... configure: error: in `/var/tmp/portage/media-tv/xbmc-11.0_rc1/work/xbmc-11.0-Eden_rc1':
configure: error: cannot compute sizeof (size_t)
See `config.log' for more details

!!! Please attach the following file when seeking support:
!!! /var/tmp/portage/media-tv/xbmc-11.0_rc1/work/xbmc-11.0-Eden_rc1/config.log
 * ERROR: media-tv/xbmc-11.0_rc1 failed (configure phase):
 *   econf failed
 * 
 * Call stack:
 *          ebuild.sh, line   85:  Called src_configure
 *        environment, line 5279:  Called econf '--docdir=/usr/share/doc/xbmc-11.0_rc1' '--disable-ccache' '--disable-optimizations' '--enable-external-libraries' '--enable-gl' '--disable-airplay' '--enable-avahi' '--disable-libbluray' '--enable-dvdcss' '--disable-debug' '--disable-goom' '--disable-hal' '--disable-joystick' '--enable-mid' '--enable-mysql' '--enable-profiling' '--enable-projectm' '--disable-pulse' '--disable-mythtv' '--enable-rsxs' '--disable-rtmp' '--enable-samba' '--disable-vaapi' '--disable-vdpau' '--enable-webserver' '--enable-xrandr'
 *   phase-helpers.sh, line  467:  Called die
 * The specific snippet of code:
 *   			die "econf failed"
 * 
 * If you need support, post the output of 'emerge --info =media-tv/xbmc-11.0_rc1',
 * the complete build log and the output of 'emerge -pqv =media-tv/xbmc-11.0_rc1'.
 * The complete build log is located at '/var/tmp/portage/media-tv/xbmc-11.0_rc1/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/media-tv/xbmc-11.0_rc1/temp/environment'.
 * S: '/var/tmp/portage/media-tv/xbmc-11.0_rc1/work/xbmc-11.0-Eden_rc1'

-----------

emerge --info:

/usr/lib64/portage/pym/portage/package/ebuild/config.py:353: UserWarning: 'cache.metadata_overlay.database' is deprecated: /etc/portage/modules
  (user_auxdbmodule, modules_file))
Portage 2.1.10.49 (hardened/linux/amd64, gcc-4.5.3, glibc-2.14.1-r2, 3.2.9-gentoo x86_64)
=================================================================
System uname: Linux-3.2.9-gentoo-x86_64-Intel-R-_Core-TM-2_Quad_CPU_@_2.40GHz-with-gentoo-2.1
Timestamp of tree: Sat, 10 Mar 2012 09:45:01 +0000
ccache version 3.1.7 [disabled]
app-shells/bash:          4.2_p20
dev-java/java-config:     2.1.11-r3
dev-lang/python:          2.7.2-r3, 3.1.4-r3, 3.2.2
dev-util/ccache:          3.1.7
dev-util/cmake:           2.8.7-r4
dev-util/pkgconfig:       0.26
sys-apps/baselayout:      2.1
sys-apps/openrc:          0.9.9.2
sys-apps/sandbox:         2.5
sys-devel/autoconf:       2.13, 2.68
sys-devel/automake:       1.10.3, 1.11.3
sys-devel/binutils:       2.22-r1
sys-devel/gcc:            4.5.3-r2
sys-devel/gcc-config:     1.5.1
sys-devel/libtool:        2.4.2
sys-devel/make:           3.82-r3
sys-kernel/linux-headers: 3.2-r1 (virtual/os-headers)
sys-libs/glibc:           2.14.1-r2
Repositories: gentoo x-portage
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="* -@EULA AdobeFlash-10.3 AdobeFlash-10.1 PUEL dlj-1.1 skype-eula"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe -march=native"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5.3/ext-active/ /etc/php/apache2-php5.4/ext-active/ /etc/php/cgi-php5.3/ext-active/ /etc/php/cgi-php5.4/ext-active/ /etc/php/cli-php5.3/ext-active/ /etc/php/cli-php5.4/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-O2 -pipe -march=native"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests binpkg-logs distlocks ebuild-locks fixlafiles news parallel-fetch protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
FFLAGS=""
GENTOO_MIRRORS="http://mirror.isoc.org.il/pub/gentoo"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j5"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://mirror.hamakor.org.il/gentoo-portage"
USE="X aalib acl acpi alsa amd64 apache2 avahi banshee bash-completion berkdb bluetooth bzip2 cairo cdda cli consolekit cracklib crypt cups cxx dbus device-mapper directfb dri dv dvd dvdr emerald enca ffmpeg flac fontconfig fuse gdbm gif gnome gnome-keyring gnutls gpm gstreamer gtk gtk3 hal hardened iconv imagemagick jack jpeg justify kerberos libnotify lirc logrotate mmx modules mono mp3 mudflap multilib mysql nautilus ncurses netbeans networkmanager nls nptl nptlonly nsplugin ogg opengl openmp pam pax_kernel pcre perl php png pppd python python3 qt3support quicktime readline samba sasl sdl session simplexml slang spell sqlite sse sse2 ssl startup-notification subversion svg sysfs syslog tcpd threads tiff truetype udev unicode urandom v4l2 vala vorbis webkit x264 xcb xinerama xml xorg xv zlib" ALSA_CARDS="ice1724" 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 cgi cgid 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" APACHE2_MPMS="worker" CALLIGRA_FEATURES="kexi words flow plan stage tables krita karbon braindump" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" 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 ubx" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIRC_DEVICES="devinput" NETBEANS_MODULES="apisupport harness ide java nb websvccommon cnd dlight enterprise ergonomics groovy identity mobility php profiler" PHP_TARGETS="php5-3" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="nouveau" 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"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LINGUAS, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Richard Grenville 2012-03-11 01:42:34 UTC
> !!! Please attach the following file when seeking support:
> !!! /var/tmp/portage/media-tv/xbmc-11.0_rc1/work/xbmc-11.0-Eden_rc1/config.log
Comment 2 Kfir Ozer 2012-03-11 03:20:04 UTC
Created attachment 304887 [details]
config.log file for xbmc-11.0_rc1
Comment 3 Kfir Ozer 2012-03-11 03:38:01 UTC
i get the same error when created an build for _rc2 or when try to compile the svn version (-9999).


when I remove the following lines:

    for d in \
        . \
    lib/{libdvd/lib*/,cpluff,libapetag,libid3tag/libid3tag} \
        xbmc/screensavers/rsxs-* \
        xbmc/visualizations/Goom/goom2k4-0
    do
        [[ -e ${d}/configure ]] && continue
        pushd ${d} >/dev/null
        eautoreconf
        popd >/dev/null
    done


 from src_prepare() function from the ebuild, the configure passes this check and fails on the following:

configure: WARNING: cannot find library containing definition of pow
configure: error: Could not find a required library. Please see the README for your platform.


if I compile from sources I get that same error. maybe i should open another bug report for this error but just in case 
attaching config.log from new compile.
Comment 4 Kfir Ozer 2012-03-11 03:39:08 UTC
Created attachment 304891 [details]
config.log file for xbmc-11.0_rc1 with commented out code in prepare()
Comment 5 Richard Grenville 2012-03-11 04:35:29 UTC
Profiling conflicts with the -pie option in your hardened gcc profile. I guess either disabling the "profile" USE flag on xbmc or switching to vanilla/hardenednopie gcc profile would help.
Comment 6 Kfir Ozer 2012-03-11 17:11:12 UTC
thank you. it resolved the configuration issues :)
Comment 7 Jeroen Roovers (RETIRED) gentoo-dev 2012-03-13 16:14:04 UTC
That USE flag should be masked in the hardened profiles, I guess?
Comment 8 Magnus Granberg gentoo-dev 2012-03-13 23:23:44 UTC
(In reply to comment #7)
> That USE flag should be masked in the hardened profiles, I guess?
Masked in hardened profile
var/cvsroot/gentoo-x86/profiles/hardened/linux/use.mask,v  <--  hardened/linux/use.mask
new revision: 1.14; previous revision: 1.13
Comment 9 Kfir Ozer 2012-03-18 11:34:26 UTC
cool thanks!
Comment 10 Magnus Granberg gentoo-dev 2015-09-17 19:15:04 UTC
*** Bug 544454 has been marked as a duplicate of this bug. ***
Comment 11 Magnus Granberg gentoo-dev 2015-09-17 19:15:44 UTC
*** Bug 544468 has been marked as a duplicate of this bug. ***