Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 391665

Summary: dev-lang/spidermonkey-1.7.0-r2 - x86_64-pc-linux-gnu-gcc: error: unrecognized option '--as-needed'
Product: Gentoo Linux Reporter: Dmitry Suloev <SuloevDmitry>
Component: New packagesAssignee: Dirkjan Ochtman (RETIRED) <djc>
Status: RESOLVED DUPLICATE    
Severity: normal CC: anarchy, mozilla
Priority: Normal    
Version: unspecified   
Hardware: AMD64   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: build.log
environment
build.log

Description Dmitry Suloev 2011-11-23 08:00:42 UTC
dev-lang/spidermonkey-1.7.0-r2 filed to build

Reproducible: Always

Steps to Reproduce:
1. emerge =dev-lang/spidermonkey-1.7.0-r2
Actual Results:  
js.c: В функции «my_ErrorReporter»:
js.c:2560:15: предупреждение: ignoring return value of «fwrite», declared with attribute warn_unused_result [-Wunused-result]
x86_64-pc-linux-gnu-gcc -Wl,-O1 -Wl,--as-needed -o Linux_All_OPT.OBJ/js -O2 -pipe -march=native -DJS_C_STRINGS_ARE_UTF8 -Wall -Wno-format -O -DXP_UNIX -DSVR4 -DSYSV -D_BSD_SOURCE -DPOSIX_SOURCE -DHAVE_LOCALTIME_R -DHAVE_VA_COPY -DVA_COPY=va_copy  -UDEBUG -DNDEBUG -UDEBUG_ -DJS_THREADSAFE -DEDITLINE -ILinux_All_OPT.OBJ -I/usr/include/nspr  -Wall -Wno-format -O -DXP_UNIX -DSVR4 -DSYSV -D_BSD_SOURCE -DPOSIX_SOURCE -DHAVE_LOCALTIME_R -DHAVE_VA_COPY -DVA_COPY=va_copy  -UDEBUG -DNDEBUG -UDEBUG_ -DJS_THREADSAFE -DEDITLINE -ILinux_All_OPT.OBJ -I/usr/include/nspr  Linux_All_OPT.OBJ/js.o Linux_All_OPT.OBJ/libjs.a -O1 --as-needed -lm -L/usr/lib64/nspr -lnspr4 \
    -lreadline
x86_64-pc-linux-gnu-gcc: ошибка: unrecognized option «--as-needed»
make[1]: *** [Linux_All_OPT.OBJ/js] Ошибка 1
make[1]: Выход из каталога `/var/tmp/portage/dev-lang/spidermonkey-1.7.0-r2/work/js/src'
make: *** [all] Ошибка 2
emake failed
 * ERROR: dev-lang/spidermonkey-1.7.0-r2 failed (compile phase):
 *   emake with threadsafe enabled failed
 * 
 * Call stack:
 *     ebuild.sh, line  84:  Called src_compile
 *   environment, line 2443:  Called die
 * The specific snippet of code:
 *           emake -j1 -f Makefile.ref LIBDIR="$(get_libdir)" JS_THREADSAFE=1 XLDFLAGS="$(raw-ldflags)" HOST_LDFLAGS="${LDFLAGS}" || die "emake with threadsafe enabled failed";
 * 
 * If you need support, post the output of 'emerge --info =dev-lang/spidermonkey-1.7.0-r2',
 * the complete build log and the output of 'emerge -pqv =dev-lang/spidermonkey-1.7.0-r2'.
 * The complete build log is located at '/var/tmp/portage/dev-lang/spidermonkey-1.7.0-r2/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/dev-lang/spidermonkey-1.7.0-r2/temp/environment'.
 * S: '/var/tmp/portage/dev-lang/spidermonkey-1.7.0-r2/work/js/src'

 * Messages for package dev-lang/spidermonkey-1.7.0-r2:

 * ERROR: dev-lang/spidermonkey-1.7.0-r2 failed (compile phase):
 *   emake with threadsafe enabled failed
 * 
 * Call stack:
 *     ebuild.sh, line  84:  Called src_compile
 *   environment, line 2443:  Called die
 * The specific snippet of code:
 *           emake -j1 -f Makefile.ref LIBDIR="$(get_libdir)" JS_THREADSAFE=1 XLDFLAGS="$(raw-ldflags)" HOST_LDFLAGS="${LDFLAGS}" || die "emake with threadsafe enabled failed";
 * 
 * If you need support, post the output of 'emerge --info =dev-lang/spidermonkey-1.7.0-r2',
 * the complete build log and the output of 'emerge -pqv =dev-lang/spidermonkey-1.7.0-r2'.
 * The complete build log is located at '/var/tmp/portage/dev-lang/spidermonkey-1.7.0-r2/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/dev-lang/spidermonkey-1.7.0-r2/temp/environment'.
 * S: '/var/tmp/portage/dev-lang/spidermonkey-1.7.0-r2/work/js/src'

Expected Results:  
Successfull emerge

gcc -v
Используются внутренние спецификации.
COLLECT_GCC=/usr/x86_64-pc-linux-gnu/gcc-bin/4.6.2/gcc
COLLECT_LTO_WRAPPER=/usr/libexec/gcc/x86_64-pc-linux-gnu/4.6.2/lto-wrapper
Целевая архитектура: x86_64-pc-linux-gnu
Параметры конфигурации: /var/tmp/portage/sys-devel/gcc-4.6.2/work/gcc-4.6.2/configure --prefix=/usr --bindir=/usr/x86_64-pc-linux-gnu/gcc-bin/4.6.2 --includedir=/usr/lib/gcc/x86_64-pc-linux-gnu/4.6.2/include --datadir=/usr/share/gcc-data/x86_64-pc-linux-gnu/4.6.2 --mandir=/usr/share/gcc-data/x86_64-pc-linux-gnu/4.6.2/man --infodir=/usr/share/gcc-data/x86_64-pc-linux-gnu/4.6.2/info --with-gxx-include-dir=/usr/lib/gcc/x86_64-pc-linux-gnu/4.6.2/include/g++-v4 --host=x86_64-pc-linux-gnu --build=x86_64-pc-linux-gnu --disable-altivec --disable-fixed-point --with-ppl --with-cloog --disable-ppl-version-check --with-cloog-include=/usr/include/cloog-ppl --enable-lto --enable-nls --without-included-gettext --with-system-zlib --disable-werror --enable-secureplt --enable-multilib --enable-libmudflap --disable-libssp --enable-libgomp --with-python-dir=/share/gcc-data/x86_64-pc-linux-gnu/4.6.2/python --enable-checking=release --disable-libgcj --disable-libquadmath --enable-languages=c,c++ --enable-shared --enable-threads=posix --enable-__cxa_atexit --enable-clocale=gnu --with-bugurl=http://bugs.gentoo.org/ --with-pkgversion='Gentoo 4.6.2 p1.0, pie-0.4.5'
Модель многопоточности: posix
gcc версия 4.6.2 (Gentoo 4.6.2 p1.0, pie-0.4.5)
Comment 1 Dmitry Suloev 2011-11-23 08:02:17 UTC
emerge --info =dev-lang/spidermonkey-1.7.0-r2
Portage 2.1.10.37 (default/linux/amd64/10.0, gcc-4.6.2, glibc-2.14.1-r0, 3.1.1-gentoo x86_64)
=================================================================
                        System Settings
=================================================================
System uname: Linux-3.1.1-gentoo-x86_64-AMD_Phenom-tm-_II_X4_965_Processor-with-gentoo-2.1
Timestamp of tree: Tue, 22 Nov 2011 22:30:01 +0000
app-shells/bash:          4.2_p10
dev-lang/python:          2.7.2-r3
dev-util/cmake:           2.8.6-r3
dev-util/pkgconfig:       0.26
sys-apps/baselayout:      2.1
sys-apps/openrc:          0.9.4
sys-apps/sandbox:         2.5
sys-devel/autoconf:       2.13, 2.68
sys-devel/automake:       1.9.6-r3, 1.11.1-r1
sys-devel/binutils:       2.22
sys-devel/gcc:            4.6.2
sys-devel/gcc-config:     1.5-r2
sys-devel/libtool:        2.4.2
sys-devel/make:           3.82-r3
sys-kernel/linux-headers: 2.6.39 (virtual/os-headers)
sys-libs/glibc:           2.14.1
Repositories: gentoo betagarden stuff
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="* -@EULA skype-eula PUEL"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe -march=native"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /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://distfiles.gentoo.org"
LANG="ru_RU.UTF-8"
LC_ALL=""
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="ru en"
MAKEOPTS="-j5"
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/layman/betagarden /var/lib/layman/stuff"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="3dnow 3dnowext X acl acpi alsa amd64 apng auto-hinter berkdb bzip2 cairo cli consolekit cracklib cxx dbus device-mapper dga djvu dri enca encode exif extras fuse gdbm git graphite gtk gtk3 gtkstyle hal hotkeys iconv icu idle jpeg jpeg2k lastfm libnotify libsamplerate lxde mad mmx mmxext modules mp3 mpg123 mudflap multilib ncurses nls nptl nptlonly nsplugin ogg opengl openmp pam pcre png policykit pppd qt3support radio rar readline savedconfig secure-delete session smp sqlite srv sse sse2 sse3 ssl ssse3 startup-notification svg sysfs tcpd threads tiff truetype udev unicode usb utp v4l v4l2 v8 vdpau vorbis xcb xorg xvmc zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci 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" 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" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="ru en" PHP_TARGETS="php5-3" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="nvidia" 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, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 2 Dmitry Suloev 2011-11-23 08:02:56 UTC
emerge -pqv =dev-lang/spidermonkey-1.7.0-r2
[ebuild  N    ] dev-lang/spidermonkey-1.7.0-r2  USE="unicode -threadsafe"
Comment 3 Dmitry Suloev 2011-11-23 08:03:07 UTC
Created attachment 293477 [details]
build.log
Comment 4 Dmitry Suloev 2011-11-23 08:03:18 UTC
Created attachment 293479 [details]
environment
Comment 5 Jeroen Roovers (RETIRED) gentoo-dev 2011-11-23 16:03:19 UTC
Comment on attachment 293477 [details]
build.log

Please attach build logs created with LC_ALL=C.
Comment 6 Dmitry Suloev 2011-11-23 17:59:34 UTC
Created attachment 293545 [details]
build.log
Comment 7 Dmitry Suloev 2011-11-23 17:59:53 UTC
Done.
Comment 8 Ian Stakenvicius (RETIRED) gentoo-dev 2011-11-24 21:48:32 UTC
..right, bug 391079 i guess wasn't completely fixed.  I think i got it now, though.

*** This bug has been marked as a duplicate of bug 391079 ***