Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 335167 - xulrunner-2.0_beta5_pre-r2: emake failed
Summary: xulrunner-2.0_beta5_pre-r2: emake failed
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Jory A. Pratt
URL: https://bugzilla.mozilla.org/show_bug...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-08-30 01:12 UTC by fkhp
Modified: 2010-09-04 04:20 UTC (History)
1 user (show)

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


Attachments
paludis output log (1283130341-install-net-libs_xulrunner-2.0_beta5_pre-r2:1.9::mozilla.out,443.79 KB, text/plain)
2010-08-30 01:14 UTC, fkhp
Details
workaround problem (bug-gentoo-2.0_beta5.patch,734 bytes, patch)
2010-08-31 13:19 UTC, Jory A. Pratt
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description fkhp 2010-08-30 01:12:56 UTC
make[4]: Leaving directory `/var/tmp/paludis/net-libs-xulrunner-2.0_beta5_pre-r2/work/mozilla-central/modules/libpr0n/encoders'
make[4]: Entering directory `/var/tmp/paludis/net-libs-xulrunner-2.0_beta5_pre-r2/work/mozilla-central/modules/libpr0n/build'
{ \
	 echo "#define IMG_BUILD_ENCODER_png" ;   echo "#define IMG_BUILD_ENCODER_jpeg" ; } > nsImgBumgBuildDefines.tmp
Creating /var/tmp/paludis/net-libs-xulrunner-2.0_beta5_pre-r2/work/mozilla-central/modules/libpr0n/build/.deps
make[4]: Leaving directory `/var/tmp/paludis/net-libs-xulrunner-2.0_beta5_pre-r2/work/mozilla-central/modules/libpr0n/build'
make[3]: Leaving directory `/var/tmp/paludis/net-libs-xulrunner-2.0_beta5_pre-r2/work/mozilla-central/modules/libpr0n'
make[2]: Leaving directory `/var/tmp/paludis/net-libs-xulrunner-2.0_beta5_pre-r2/work/mozilla-central'
make[1]: Leaving directory `/var/tmp/paludis/net-libs-xulrunner-2.0_beta5_pre-r2/work/mozilla-central'
mv: cannot stat `nsImgBuildDefines.tmp': No such file or directory
make[4]: *** [export] Error 1
make[3]: *** [export] Error 2
make[2]: *** [export_tier_platform] Error 2
make[1]: *** [tier_platform] Error 2
make: *** [default] Error 2
/usr/libexec/paludis/utils/emake: emake returned error 2

!!! ERROR in net-libs/xulrunner-2.0_beta5_pre-r2::mozilla:
!!! In default_src_compile at line 27
!!! emake failed


Reproducible: Always




# emerge --info xulrunner
Portage 2.1.8.3 (default/linux/amd64/10.0, gcc-4.5.1, glibc-2.12.1-r1, 2.6.35-ccs-r4 x86_64)
=================================================================
                        System Settings
=================================================================
System uname: Linux-2.6.35-ccs-r4-x86_64-Intel-R-_Core-TM-2_Duo_CPU_T9300_@_2.50GHz-with-gentoo-2.0.1
Timestamp of tree: Sun, 29 Aug 2010 22:00:01 +0000
ccache version 2.4 [disabled]
app-shells/bash:     4.1_p7
dev-java/java-config: 2.1.11
dev-lang/python:     2.6.5-r3, 3.1.2-r4
dev-util/ccache:     2.4-r8
dev-util/cmake:      2.8.1-r2
sys-apps/baselayout: 2.0.1
sys-apps/openrc:     0.6.2
sys-apps/sandbox:    2.3-r1
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.4-r1, 4.5.1
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.10
sys-devel/make:      3.81-r2
virtual/os-headers:  2.6.35
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-mtune=core2 -march=core2 -O2 -msse4.1 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/X11/xkb /var/lib/hsqldb"
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/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"
CXXFLAGS="-mtune=core2 -march=core2 -O2 -msse4.1 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests collision-protect distlocks fixpackages news parallel-fetch protect-owned sandbox sfperms strict unmerge-logs unmerge-orphans userfetch"
GENTOO_MIRRORS="http://gentoo.netnitco.net/ "
LANG="zh_CN.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="zh_CN en_US zh en"
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="/usr/local/portage /var/lib/layman/x11 /var/lib/layman/vmware /var/lib/layman/gentoo-china /var/lib/layman/gentoo-taiwan /var/lib/layman/sunrise /var/lib/layman/gnome /var/lib/layman/mozilla /var/lib/layman/init6"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X a52 aac accessibility acl acpi alsa amd64 ao apache2 avahi bash-completion berkdb branding bzip2 cairo caps cdr cjk cli consolekit cracklib crypt cups cxx dbus dga djvu dri dts dvd dvdr eds emboss encode evo examples exif fam ffmpeg firefox flac fortran gdbm gdu gif gimp gnome gnome-keyring gphoto2 gpm gstreamer gtk guile i18n iconv icu introspection ipv6 jadetex java jpeg jpeg2k latex lcms ldap libnotify mad midi mikmod mmap mmx mng modules mp3 mp4 mpeg mudflap multilib mysql nas nautilus ncurses networkmanager nfs nls nntp nptl nptlonly nsplugin nvidia ogg opengl openmp pam pango pch pcre pda pdf perl php png policykit ppds pppd pulseaudio python qt3support qt4 readline reflection samba scsi sdl session smp snmp spell spl sqlite sse sse2 sse3 ssl ssse3 startup-notification suid svg sysfs tcpd threads tiff tk truetype unicode usb v4l2 vim-syntax vorbis x264 xattr xcb xml xmp xorg xulrunner xv xvid xvmc zlib" ALSA_CARDS="ens1370 hda-intel" 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" ELIBC="glibc" INPUT_DEVICES="evdev synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="zh_CN en_US zh en" QEMU_SOFTMMU_TARGETS="x86_64" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="vmwgfx vmwlegacy nouveau nvidia nv vmware vesa svga" XTABLES_ADDONS="cui gfw zhang ipset" 
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS

=================================================================
                        Package Settings
=================================================================

net-libs/xulrunner-2.0_beta5_pre was built with the following:
USE="alsa cups custom-optimization dbus gnome ipc libnotify startup-notification system-sqlite webm wifi -debug" ALSA_CARDS="ens1370 hda-intel" 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" INPUT_DEVICES="evdev synaptics" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en en_US zh zh_CN" QEMU_SOFTMMU_TARGETS="x86_64" RUBY_TARGETS="ruby18" VIDEO_CARDS="nouveau nv nvidia (svga) vesa vmware vmwgfx vmwlegacy" XTABLES_ADDONS="account chaos condition delude dhcpmac fuzzy geoip iface ipmark ipp2p ipset ipv4options length2 logmark lscan pknock psd quota2 rawnat steal sysrq tarpit tee" 
CFLAGS="-mtune=core2 -march=core2 -pipe -fPIC -Wno-return-type -w"
CXXFLAGS="-mtune=core2 -march=core2 -pipe -fPIC -Wno-return-type -w"
LDFLAGS="-Wl,-O1"
Comment 1 fkhp 2010-08-30 01:14:16 UTC
Created attachment 245291 [details]
paludis output log
Comment 2 fkhp 2010-08-30 02:33:30 UTC
# pwd
/var/tmp/paludis/net-libs-xulrunner-2.0_beta5_pre-r2/work/mozilla-central/modules/libpr0n/build
gentoo build # make -n
{ \
	 echo "#define IMG_BUILD_ENCODER_png" ;   echo "#define IMG_BUILD_ENCODER_jpeg" ; } > nsImgBumgBuildDefines.tmp
if `cmp -s nsImgBuildDefines.h nsImgBuildDefines.tmp`; then \
		rm -f nsImgBuildDefines.tmp; \
	else \
		rm -f nsImgBuildDefines.h; \
		mv nsImgBuildDefines.tmp nsImgBuildDefines.h; \
	fi
gentoo build # 
Comment 3 fkhp 2010-08-30 02:34:53 UTC
gentoo build # ls /var/tmp/paludis/net-libs-xulrunner-2.0_beta5_pre-r2/work/mozilla-central/modules/libpr0n/build
Makefile  Makefile.in  nsImageModule.cpp  nsImgBumgBuildDefines.tmp
Comment 4 fkhp 2010-08-30 02:35:42 UTC
# cat Makefile
#
# ***** BEGIN LICENSE BLOCK *****
# Version: MPL 1.1/GPL 2.0/LGPL 2.1
#
# The contents of this file are subject to the Mozilla Public License Version
# 1.1 (the "License"); you may not use this file except in compliance with
# the License. You may obtain a copy of the License at
# http://www.mozilla.org/MPL/
#
# Software distributed under the License is distributed on an "AS IS" basis,
# WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
# for the specific language governing rights and limitations under the
# License.
#
# The Original Code is mozilla.org code.
#
# The Initial Developer of the Original Code is
# Netscape Communications Corporation.
# Portions created by the Initial Developer are Copyright (C) 2001
# the Initial Developer. All Rights Reserved.
#
# Contributor(s):
#
# Alternatively, the contents of this file may be used under the terms of
# either the GNU General Public License Version 2 or later (the "GPL"), or
# the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
# in which case the provisions of the GPL or the LGPL are applicable instead
# of those above. If you wish to allow use of your version of this file only
# under the terms of either the GPL or the LGPL, and not to allow others to
# use your version of this file under the terms of the MPL, indicate your
# decision by deleting the provisions above and replace them with the notice
# and other provisions required by the GPL or the LGPL. If you do not delete
# the provisions above, a recipient may use your version of this file under
# the terms of any one of the MPL, the GPL or the LGPL.
#
# ***** END LICENSE BLOCK *****

DEPTH		= ../../..
topsrcdir	= ../../..
srcdir		= .
VPATH		= .

include $(DEPTH)/config/autoconf.mk

MODULE		= imglib2
LIBRARY_NAME	= imglib2
EXPORT_LIBRARY = 1
IS_COMPONENT	= 1
MODULE_NAME	= nsImageLib2Module
GRE_MODULE	= 1
LIBXUL_LIBRARY = 1

CPPSRCS = \
		nsImageModule.cpp \
		$(NULL)

LOCAL_INCLUDES	= \
		-I. \
		-I$(srcdir)/../src \
		$(foreach d,$(MOZ_IMG_ENCODERS), \
			-I$(srcdir)/../encoders/${d}) \
		$(NULL)

SHARED_LIBRARY_LIBS = \
		../src/$(LIB_PREFIX)imglib2_s.$(LIB_SUFFIX) \
		../decoders/$(LIB_PREFIX)imgdecoders_s.$(LIB_SUFFIX) \
		$(foreach d,$(MOZ_IMG_ENCODERS), \
			../encoders/${d}/$(LIB_PREFIX)img${d}e_s.$(LIB_SUFFIX))\
		$(NULL)

EXTRA_DSO_LIBS	= \
		gkgfx \
		thebes \
		$(NULL)

EXTRA_DSO_LDOPTS = \
		$(LIBS_DIR) \
		$(JPEG_LIBS) \
		$(PNG_LIBS) $(ZLIB_LIBS) \
		$(QCMS_LIBS) \
		$(EXTRA_DSO_LIBS) \
		$(MOZ_COMPONENT_LIBS) \
		$(NULL)

# Force a rebuild of nsImageModule when either of MOZ_IMG_{DE,EN}CODERS changes

GARBAGE += _img_list nsImgBuildDefines.h

export::
	{ \
	$(foreach d,$(MOZ_IMG_ENCODERS), \
		echo "#define IMG_BUILD_ENCODER_${d}" ; ) \
	} > nsImgBuildDefines.tmp
	@if `cmp -s nsImgBuildDefines.h nsImgBuildDefines.tmp`; then \
		rm -f nsImgBuildDefines.tmp; \
	else \
		rm -f nsImgBuildDefines.h; \
		mv nsImgBuildDefines.tmp nsImgBuildDefines.h; \
	fi

include $(topsrcdir)/config/rules.mk
Comment 5 fkhp 2010-08-30 02:37:09 UTC
in Makefile the target of export want produce file nsImgBuildDefines.tmp
but make produced nsImgBumgBuildDefines.tmp
Comment 6 fkhp 2010-08-30 02:59:33 UTC
(In reply to comment #5)
> in Makefile the target of export want produce file nsImgBuildDefines.tmp
> but make produced nsImgBumgBuildDefines.tmp
> 

it might be a bug in make-3.81-r2
Comment 7 fkhp 2010-08-30 04:07:57 UTC
after unmask and install make-3.82, xulrunner installed successfully.
Comment 8 Cyprien Nicolas (fulax) 2010-08-30 09:40:06 UTC
(In reply to comment #6)
> (In reply to comment #5)
> > in Makefile the target of export want produce file nsImgBuildDefines.tmp
> > but make produced nsImgBumgBuildDefines.tmp
> > 
> 
> it might be a bug in make-3.81-r2
> 

How bizarre? It built fine for me, using make-3.81-r2. (overlay synced today at 8:30 GMT)
Comment 9 Jory A. Pratt gentoo-dev 2010-08-31 13:19:25 UTC
Created attachment 245478 [details, diff]
workaround problem

There is no need for any more comment on this bug, I am aware of the problem, there is no need to unmask make-3.82 just to work around it.
Comment 10 Jory A. Pratt gentoo-dev 2010-09-04 04:20:58 UTC
We are getting my work landed upstream, we are removing all the hacks and ensuring all encoders are avaliable as it should be. There is a hack in place for the current overlay, I hope to have this drop'd by next snapshot roll, if I do not I will update the ebuild to make use of same fix we are using upstream.