Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 365867 - www-client/midori-0.3.5: Cant' emerge
Summary: www-client/midori-0.3.5: Cant' emerge
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: Normal normal (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-05-03 20:41 UTC by Igor
Modified: 2011-05-04 12:13 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Igor 2011-05-03 20:41:34 UTC
Midori can't find libm:

CCFLAGS="-march=core2 -O2 -pipe -mcx16 -msahf --param l1-cache-size=32 --param l1-cache-line-size=64 --param l2-cache-size=1024" LINKFLAGS="-Wl,-O1 -Wl,--as-
needed" "/var/tmp/portage/www-client/midori-0.3.5/work/midori-0.3.5/waf" --prefix=/usr --libdir=/usr/lib --disable-docs --enable-addons --disable-apidocs --e
nable-libidn --enable-libnotify --enable-nls --enable-unique --disable-vala configure
Checking for program gcc or cc           : /usr/lib/distcc/bin/gcc
Checking for program cpp                 : /usr/bin/cpp
Checking for program ar                  : /usr/bin/ar
Checking for program ranlib              : /usr/bin/ranlib
Checking for gcc                         : ok
Checking for program glib-genmarshal     : /usr/bin/glib-genmarshal 
Checking for program glib-mkenums        : /usr/bin/glib-mkenums 
Checking for program msgfmt              : /usr/bin/msgfmt 
Checking for program intltool-merge      : /usr/bin/intltool-merge 
Checking for header locale.h             : not found 
Checking for program rsvg-convert        : /usr/bin/rsvg-convert 
Checking for unique-1.0 >= 0.9           : yes 
Checking for libnotify >=                : yes 
Checking for library m                   : not found 
/var/tmp/portage/www-client/midori-0.3.5/work/midori-0.3.5/wscript:192: error: the configuration failed (see '/var/tmp/portage/www-client/midori-0.3.5/work/midori-0.3.5/_build_/config.log')


Reproducible: Always

Steps to Reproduce:
emerge =www-client/midori-0.3.5



emerge --info =www-client/midori-0.3.5:


Portage 2.1.9.42 (default/linux/x86/10.0/desktop, gcc-4.4.5, libc-0-r0, 2.6.38.2-zen i686)
=================================================================
                        System Settings
=================================================================
System uname: Linux-2.6.38.2-zen-i686-Intel-R-_Celeron-R-_CPU_540_@_1.86GHz-with-gentoo-2.0.2
Timestamp of tree: Tue, 03 May 2011 19:45:01 +0000
distcc 3.1 i686-pc-linux-gnu [enabled]
app-shells/bash:     4.1_p9
dev-java/java-config: 2.1.11-r3
dev-lang/python:     2.7.1-r1, 3.1.3-r1
dev-util/cmake:      2.8.4-r1
sys-apps/baselayout: 2.0.2
sys-apps/openrc:     0.8.2-r1
sys-apps/sandbox:    2.4
sys-devel/autoconf:  2.13, 2.65-r1
sys-devel/automake:  1.9.6-r3, 1.10.3, 1.11.1
sys-devel/binutils:  2.20.1-r1
sys-devel/gcc:       4.4.5
sys-devel/gcc-config: 1.4.1-r1
sys-devel/libtool:   2.2.10
sys-devel/make:      3.81-r2
sys-kernel/linux-headers: 2.6.36.1
sys-libs/glibc:      2.11.3
virtual/os-headers:  0
ACCEPT_KEYWORDS="x86"
ACCEPT_LICENSE="* -@EULA"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=core2 -O2 -pipe -mcx16 -msahf --param l1-cache-size=32 --param l1-cache-line-size=64 --param l2-cache-size=1024"
CHOST="i686-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/php/apache2-php5.3/ext-active/ /etc/php/cgi-php5.3/ext-active/ /etc/php/cli-php5.3/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-march=core2 -O2 -pipe -mcx16 -msahf --param l1-cache-size=32 --param l1-cache-line-size=64 --param l2-cache-size=1024"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests binpkg-logs distcc distlocks fixlafiles fixpackages news parallel-fetch protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
FFLAGS=""
GENTOO_MIRRORS="rsync://trumpetti.atm.tut.fi/gentoo/ http://mirrors.linuxant.fr/distfiles.gentoo.org/ http://mirror.opteamax.de/gentoo/"
LANG="ru_RU.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="en ru"
MAKEOPTS="-j3"
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="/var/lib/myoverlay /var/lib/layman/perl-experimental /var/lib/layman/bircoph"
SYNC="rsync://rsync.fi.gentoo.org/gentoo-portage"
USE="X a52 aac acl acpi alsa bash-completion berkdb bluetooth branding bzip2 cairo cdr cli consolekit cracklib crypt cups curl cxx dbus device-mapper djvu dri dts dvd dvdr emboss encode exif fam ffmpeg fftw firefox flac fontconfig fortran gdbm gdu gif gnome-keyring gpm gsl gtk iconv icu idn ipv6 jpeg kpathsea lapack laptop latex lcms libnotify mad mmx mng modules mp3 mp4 mpeg mplayer mudflap ncurses nls nptl nptlonly nsplugin ogg opengl openmp pam pango pcre pdf perl png policykit ppds pppd python qt3support qt4 readline sdl session spell sse sse2 ssl ssse3 startup-notification svg sysfs tcpd threads tiff truetype udev unicode usb vim-syntax vorbis x264 x86 xcb xft xml xorg xulrunner xv xvid zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 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 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" 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="mouse keyboard evdev synaptics wacom" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en ru" PHP_TARGETS="php5-3" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="intel" 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, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Igor 2011-05-03 20:42:27 UTC
cat /var/tmp/portage/www-client/midori-0.3.5/temp/build.log:


 * Package:    www-client/midori-0.3.5
 * Repository: gentoo
 * Maintainer: xfce@gentoo.org
 * USE:        elibc_glibc idn kernel_linux libnotify nls unique userland_GNU x86
 * FEATURES:   distcc sandbox
>>> Unpacking source...
>>> Unpacking midori-0.3.5.tar.bz2 to /var/tmp/portage/www-client/midori-0.3.5/work
>>> Source unpacked in /var/tmp/portage/www-client/midori-0.3.5/work
>>> Preparing source in /var/tmp/portage/www-client/midori-0.3.5/work/midori-0.3.5 ...
>>> Source prepared.
>>> Configuring source in /var/tmp/portage/www-client/midori-0.3.5/work/midori-0.3.5 ...
 * Sorry, but midori does not support the LINGUAS: en
CCFLAGS="-march=core2 -O2 -pipe -mcx16 -msahf --param l1-cache-size=32 --param l1-cache-line-size=64 --param l2-cache-size=1024" LINKFLAGS="-Wl,-O1 -Wl,--as-needed" "/var/tmp/portage/www-client/midori-0.3.5/work/midori-0.3.5/waf" --prefix=/usr --libdir=/usr/lib --disable-docs --enable-addons --disable-apidocs --enable-libidn --enable-libnotify --enable-nls --enable-unique --disable-vala configure
Checking for program gcc or cc           : /usr/lib/distcc/bin/gcc 
Checking for program cpp                 : /usr/bin/cpp 
Checking for program ar                  : /usr/bin/ar 
Checking for program ranlib              : /usr/bin/ranlib 
Checking for gcc                         : ok  
Checking for program glib-genmarshal     : /usr/bin/glib-genmarshal 
Checking for program glib-mkenums        : /usr/bin/glib-mkenums 
Checking for program msgfmt              : /usr/bin/msgfmt 
Checking for program intltool-merge      : /usr/bin/intltool-merge 
Checking for header locale.h             : not found 
Checking for program rsvg-convert        : /usr/bin/rsvg-convert 
Checking for unique-1.0 >= 0.9           : yes 
Checking for libnotify >=                : yes 
Checking for library m                   : not found 
/var/tmp/portage/www-client/midori-0.3.5/work/midori-0.3.5/wscript:192: error: the configuration failed (see '/var/tmp/portage/www-client/midori-0.3.5/work/midori-0.3.5/_build_/config.log')
 * ERROR: www-client/midori-0.3.5 failed (configure phase):
 *   configure failed
 * 
 * Call stack:
 *     ebuild.sh, line   56:  Called src_configure
 *   environment, line 4768:  Called waf-utils_src_configure '--disable-docs' '--enable-addons' '--disable-apidocs' '--enable-libidn' '--enable-libnotify' '--enable-nls' '--enable-unique' '--disable-vala'
 *   environment, line 5353:  Called die
 * The specific snippet of code:
 *       CCFLAGS="${CFLAGS}" LINKFLAGS="${LDFLAGS}" "${WAF_BINARY}" "--prefix=${EPREFIX}/usr" "--libdir=${EPREFIX}/usr/$(get_libdir)" "$@" configure || die "configure failed"
 * 
 * If you need support, post the output of 'emerge --info =www-client/midori-0.3.5',
 * the complete build log and the output of 'emerge -pqv =www-client/midori-0.3.5'.
 * The complete build log is located at '/var/tmp/portage/www-client/midori-0.3.5/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/www-client/midori-0.3.5/temp/environment'.
 * S: '/var/tmp/portage/www-client/midori-0.3.5/work/midori-0.3.5'
Comment 2 Rafał Mużyło 2011-05-04 02:02:55 UTC
So, what's in that file, the build log points you to ?

Though, given how many build systems hate certain CFLAGS, I'd suspect '--param l1-cache-size=32 --param l1-cache-line-size=64 --param l2-cache-size=1024' yet again breaks it.
Comment 3 Igor 2011-05-04 12:10:36 UTC
(In reply to comment #2)
> So, what's in that file, the build log points you to ?
> 
> Though, given how many build systems hate certain CFLAGS, I'd suspect '--param
> l1-cache-size=32 --param l1-cache-line-size=64 --param l2-cache-size=1024' yet
> again breaks it.

Damn it!

This is due to distcc. Some update broke links described here:
http://www.gentoo.org/doc/en/cross-compiling-distcc.xml


Here is tail of /var/tmp/portage/www-client/midori-0.3.5/work/midori-0.3.5/_build_/config.log:
==================================================
[1/2] cc: _build_/.conf_check_0/test.c -> _build_/.conf_check_0/testbuild/default/test_1.o
['/usr/lib/distcc/bin/gcc', '-march=core2', '-O2', '-pipe', '-mcx16', '-msahf', '--param', 'l1-cache-size=32', '--param', 'l1-cache-line-size=64', '--param', 'l2-cache-size=1024', '../test.c', '-c', '-o', 'default/test_1.o']
[2/2] cc_link: _build_/.conf_check_0/testbuild/default/test_1.o -> _build_/.conf_check_0/testbuild/default/testprog
/usr/lib/gcc/i686-pc-linux-gnu/4.4.5/../../../../i686-pc-linux-gnu/bin/ld: i386:x86-64 architecture of input file `default/test_1.o' is incompatible with i386 output
/usr/lib/gcc/i686-pc-linux-gnu/4.4.5/../../../../i686-pc-linux-gnu/bin/ld: final link failed: Invalid operation
Comment 4 Igor 2011-05-04 12:13:59 UTC
Yep. Solved by http://www.gentoo.org/doc/en/cross-compiling-distcc.xml