Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 297437 - media-libs/ming-0.4.0_rc2 fails to build
Summary: media-libs/ming-0.4.0_rc2 fails to build
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Library (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: PHP Bugs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-12-18 15:40 UTC by Peter Fox
Modified: 2010-04-20 22:58 UTC (History)
2 users (show)

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


Attachments
build.log (build.log,143.82 KB, text/plain)
2009-12-18 17:00 UTC, Peter Fox
Details
emerge --info for a another machine showing the build problem (emily-emerge-info.txt,4.26 KB, text/plain)
2010-01-03 16:56 UTC, Peter Fox
Details
emerge --info for a machine that builds ming without any problems (daniel-emerge-info.txt,4.16 KB, text/plain)
2010-01-03 16:58 UTC, Peter Fox
Details
emerge --info for a machine that builds ming without any problems (newpeter-emerge-info.txt,4.12 KB, text/plain)
2010-01-03 16:58 UTC, Peter Fox
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Peter Fox 2009-12-18 15:40:41 UTC
I'm trying to build new ming and autotrace to work around bug 284974, as suggested in bug 283534 comment 7, without much joy...

ming emerge fails for no apparent reason:

libtool: compile:  i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I../src -I../src -O3 -march=k8 -fomit-frame-pointer -mfpmath=sse -fpeel-loops -msse3 -pipe -ggdb -Wall -DSWF_LITTLE_ENDIAN -MT decompile.lo -MD -MP -MF .deps/decompile.Tpo -c decompile.c -o decompile.o >/dev/null 2>&1
make[1]: *** [decompile.lo] Error 1
make[1]: Leaving directory `/var/tmp/portage/media-libs/ming-0.4.0_rc2/work/ming-0.4.2/util'
make: *** [all-recursive] Error 1
 * 
 * ERROR: media-libs/ming-0.4.0_rc2 failed.
 * Call stack:
 *               ebuild.sh, line   49:  Called src_compile
 *             environment, line 5079:  Called die
 * The specific snippet of code:
 *       emake -j1 DESTDIR="${D}" || die "emake failed";
 *  The die message:
 *   emake failed

The following commands reveal a bit more:
cd /var/tmp/portage/media-libs/ming-0.4.0_rc2/work/ming-0.4.2/util
i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I../src -I../src -O3 -march=k8 -fomit-frame-pointer -mfpmath=sse -fpeel-loops -msse3 -pipe -ggdb -Wall -DSWF_LITTLE_ENDIAN -MT decompile.lo -MD -MP -MF .deps/decompile.Tpo -c decompile.c -o decompile.o
decompile.c: In function 'dcprintf':
decompile.c:53: sorry, unimplemented: inlining failed in call to 'vasprintf': redefined extern inline functions are not considered for inlining
decompile.c:165: sorry, unimplemented: called from here

emerge --info:

WARNING: One or more repositories have missing repo_name entries:

	/usr/portage/local/layman/openchrome/profiles/repo_name

NOTE: Each repo_name entry should be a plain text file containing a
unique name for the repository on the first line.
Portage 2.2_rc33 (default/linux/x86/10.0, gcc-4.3.4, glibc-2.9_p20081201-r2, 2.6.30-gentoo-r6 i686)
=================================================================
System uname: Linux-2.6.30-gentoo-r6-i686-AMD_Athlon-tm-_64_Processor_3500+-with-gentoo-1.12.13
Timestamp of tree: Fri, 18 Dec 2009 04:30:23 +0000
distcc 3.1 i686-pc-linux-gnu [disabled]
app-shells/bash:     4.0_p35
dev-java/java-config: 1.3.7-r1, 2.1.9-r2
dev-lang/python:     2.5.4-r3, 2.6.4
dev-python/pycrypto: 2.0.1-r8
dev-util/cmake:      2.6.4-r3
sys-apps/baselayout: 1.12.13
sys-apps/sandbox:    1.6-r2
sys-devel/autoconf:  2.13, 2.63-r1
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.2
sys-devel/binutils:  2.18-r3
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.6b
virtual/os-headers:  2.6.28-r1
ACCEPT_KEYWORDS="x86"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O3 -march=k8 -fomit-frame-pointer -mfpmath=sse -fpeel-loops -msse3 -pipe -ggdb"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/X11/xkb /usr/share/config /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/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 /etc/udev/rules.d"
CXXFLAGS="-O3 -march=k8 -fomit-frame-pointer -mfpmath=sse -fpeel-loops -msse3 -pipe -ggdb"
DISTDIR="/home/gentoo/gentoo/distfiles"FEATURES="distlocks fixpackages parallel-fetch protect-owned sandbox sfperms splitdebug strict unmerge-orphans userfetch"
GENTOO_MIRRORS="ftp://ftp.peter.fox/ http://distfiles.gentoo.org"
LANG="en_GB"
LDFLAGS="-Wl,-O1"
LINGUAS="en en_GB fr es de"
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/portage/local/layman/openchrome /usr/portage/local/layman/armagetron /usr/portage/local/layman/pro-audio /usr/portage/local/layman/sunrise /usr/portage/local/layman/x11 /usr/portage/local/layman/kde-testing /usr/portage/local/layman/science /home/gentoo/portage"
SYNC="rsync://rsync.peter.fox/gentoo-portage"
USE="3dnow 3dnowext X aalib acl acpi aiglx alsa apache2 audiofile berkdb bzip2 cairo cdr cli cracklib crypt cups curl cxx dbus doc dri dvb dvdr eds encode exif ffmpeg firefox flac fortran gd gdbm gif gimp gimpprint gnome gphoto2 gpm gstreamer gtk gtk2 gtkhtml hal iconv icu imagemagick imlib jack java jbig jpeg jpeg2k lcms lirc lucene lynxkeymap mad midi mikmod mmx mng modules mono mozilla mp3 mpeg mudflap ncurses nls nptl nptlonly nvidia ogg oggvorbis opengl openmp pam pcre pdf perl png pppd python qemu-fast qt3support quicktime readline reflection samba sdl session softmmu speex spell spl sqlite sse sse2 sse3 ssl svg sysfs tcpd tetex theora tiff truetype unicode usb v4l vorbis win32codecs wmf x86 xml xorg xulrunner xv xvid xvmc 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 auth_digest authn_anon authn_dbd 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 dbd deflate dir disk_cache env expires ext_filter file_cache filter headers ident imagemap include info log_config logio mem_cache mime mime_magic negotiation proxy proxy_ajp proxy_balancer proxy_connect proxy_http rewrite setenvif so speling status unique_id userdir usertrack vhost_alias" CAMERAS="digigr8 spca50x barbie directory sq905" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en en_GB fr es de" LIRC_DEVICES="devinput" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="nvidia vesa"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Jeroen Roovers (RETIRED) gentoo-dev 2009-12-18 15:44:51 UTC
Please attach the entire build log to this bug report.
Comment 2 Peter Fox 2009-12-18 17:00:04 UTC
Created attachment 213401 [details]
build.log

The build.log.
As somilation redirects stdout and stderr to /dev/null, not a lot to see.
Comment 3 Peter Fox 2010-01-03 16:55:53 UTC
I have 4 machines I've tried building this ming version on. 2 build fine, 2 exhibit this problem. I shall attach the emerge --info for each of the other three machines.
Comment 4 Peter Fox 2010-01-03 16:56:52 UTC
Created attachment 215042 [details]
emerge --info for a another machine showing the build problem
Comment 5 Peter Fox 2010-01-03 16:58:00 UTC
Created attachment 215045 [details]
emerge --info for a machine that builds ming without any problems
Comment 6 Peter Fox 2010-01-03 16:58:48 UTC
Created attachment 215047 [details]
emerge --info for a machine that builds ming without any problems
Comment 7 Peter Fox 2010-01-03 17:01:58 UTC
Could it be significant that the failing machines have CFLAGS=-march=k8 while the ones that build ok are -march=athlon-xp ?
Comment 8 Erik Wallin 2010-01-05 07:43:18 UTC
It's the -O3 flag that causes it to fail. I had the same issue on my machine. Changing -O3 to -O2 resolved the problem.

That makes sense since the error message was about inlining functions.
Comment 9 Peter Fox 2010-01-05 21:56:12 UTC
I can confirm that changing -O3 to -O2 in my CFLAGS in make.conf has allowed ming-0.4.0_rc2 to build successfully. Perhaps the ebuild should be changed to filter CFLAGS?
Comment 10 Kristian Niemi 2010-01-14 14:37:36 UTC
(In reply to comment #9)
> I can confirm that changing -O3 to -O2 in my CFLAGS in make.conf has allowed
> ming-0.4.0_rc2 to build successfully. Perhaps the ebuild should be changed to
> filter CFLAGS?
> 

Confirming changing -O3 to -O2 in CFLAGS enable ming-0.4.0_rc2 to build successfully. (Oh how this package has frustrated me the past days! Thanks for the fix.) 

Do let me know if you want any specifics of my system in order to discern why it fails with -O3, in case that's not generally so.
Comment 11 Matti Bickel (RETIRED) gentoo-dev 2010-04-18 21:07:02 UTC
See, we generally advise everyone NOT to run with -O3. That said, I'll probably filter > -O2 in the ebuild. Leaving the bug open until this is in CVS.
Comment 12 Matti Bickel (RETIRED) gentoo-dev 2010-04-20 22:58:43 UTC
I've committed ming-0.4.3 to the tree which specifically filters -O3 and replaces it with -O2 for you. Ming uses assembler in some places which is known to interact badly with over-optimization. I don't know enough of the package to be sure of it though.