CXXFLAGS="-march=native -O2 -pipe" MAKEOPTS="" emerge -1 xulrunner fails with ar cr libxpcombase_s.a nsAllocator.o nsVersionComparatorImpl.o nsConsoleMessage.o nsConsoleService.o nsDebugImpl.o nsErrorService.o nsExceptionService.o nsMemoryImpl.o nsTraceRefcntImpl.o nsInterfaceRequestorAgg.o nsUUIDGenerator.o nsSystemInfo.o nsCycleCollector.o nsStackWalk.o nsMemoryReporterManager.o ranlib libxpcombase_s.a nsIConsoleListener.idl /var/tmp/portage/net-libs/xulrunner-1.9.2.12/work/mozilla-1.9.2/dist/bin/xpidl -m typelib -w -I. -I../../dist/idl -e _xpidlgen/nsIConsoleListener.xpt -d .deps/nsIConsoleListener.pp nsIConsoleListener.idl make[4]: *** [_xpidlgen/nsIConsoleListener.xpt] Illegal instruction make[4]: *** Deleting file `_xpidlgen/nsIConsoleListener.xpt' make[4]: Leaving directory `/var/tmp/portage/net-libs/xulrunner-1.9.2.12/work/mozilla-1.9.2/xpcom/base' make[3]: *** [libs] Error 2 dmesg says: xpidl[14859] trap invalid opcode ip:8058b87 sp:fffea930 error:0 in xpidl[8048000+15000] $ einfo xulrunner Portage 2.2.0_alpha5 (default/linux/x86/10.0, gcc-4.5.1-asneeded, glibc-2.12.1-r3, 2.6.35-gentoo-r12 i686) ================================================================= System Settings ================================================================= System uname: Linux-2.6.35-gentoo-r12-i686-Intel-R-_Atom-TM-_CPU_N270_@_1.60GHz-with-gentoo-2.0.1 Timestamp of tree: Thu, 25 Nov 2010 14:30:01 +0000 distcc 3.1 i686-pc-linux-gnu [disabled] ccache version 3.1.2 [enabled] app-shells/bash: 4.1_p7 dev-java/java-config: 2.1.11-r1 dev-lang/python: 2.6.5-r3, 3.1.2-r4 dev-util/ccache: 3.1.2 dev-util/cmake: 2.8.1-r2 sys-apps/baselayout: 2.0.1-r1 sys-apps/openrc: 0.6.5 sys-apps/sandbox: 2.4 sys-devel/autoconf: 2.13, 2.68 sys-devel/automake: 1.9.6-r3, 1.10.3, 1.11.1 sys-devel/binutils: 2.20.1-r1 sys-devel/gcc: 4.5.1-r1 sys-devel/gcc-config: 1.4.1 sys-devel/libtool: 2.2.10 sys-devel/make: 3.81-r2 virtual/os-headers: 2.6.36.1 (sys-kernel/linux-headers) Repositories: gentoo last-hope dummy ACCEPT_KEYWORDS="x86" ACCEPT_LICENSE="*" CBUILD="i686-pc-linux-gnu" CFLAGS="-O2 -march=atom -fomit-frame-pointer -frecord-gcc-switches -mmovbe " CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/share/X11/xkb /usr/share/nano /usr/share/openvpn/easy-rsa" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo" CXXFLAGS="-O2 -march=atom -fomit-frame-pointer -frecord-gcc-switches -mmovbe " DISTDIR="/usr/portage/distfiles" EMERGE_DEFAULT_OPTS="-t --jobs=4 --load-average=4 --keep-going" FEATURES="assume-digests binpkg-logs ccache distlocks fixlafiles fixpackages news noinfo parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync" FFLAGS="-O2 -march=atom -fomit-frame-pointer -frecord-gcc-switches -mmovbe " GENTOO_MIRRORS=" http://gentoo.j-schmitz.net/mirror/ ftp://ftp.gentoo.mesh-solutions.com/gentoo/ ftp://linux.rz.ruhr-uni-bochum.de/gentoo-mirror/ ftp://ftp.tu-clausthal.de/pub/linux/gentoo/ ftp://de-mirror.org/distro/gentoo/" LANG="en_GB.UTF-8" LDFLAGS="-Wl,-O1 -Wl,--as-needed -Wl,-O1,--hash-style=gnu,--sort-common" LINGUAS="en" MAKEOPTS="-j8 -l8" 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="/data/local/last-hope /data/local/dummy" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="X acl acpi alsa bash-completion berkdb branding bzip2 cleartype cli corefonts cracklib cups cxx dbus dri fortran gdbm glibc-omitfp gmp gnome gnome-keyring gpm graphite gtk iconv jpeg mmx modules mudflap ncurses network-cron nls nptl nptlonly opengl openmp pam pcre perl pmu png pppd python readline session slang sse sse2 sse3 ssl ssse3 sysfs system-sqlite tcpd truetype unicode x264 x86 xorg zlib" ALSA_CARDS="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" 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 synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en" PHP_TARGETS="php5-2" 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, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS ================================================================= Package Settings ================================================================= net-libs/xulrunner-1.9.2.12 was built with the following: USE="alsa custom-optimization dbus gnome libnotify wifi -debug -ipc -java -startup-notification -system-sqlite" CFLAGS="-march=prescott -mtune=core2 -pipe -Wno-return-type -w" CXXFLAGS="-march=prescott -mtune=core2 -pipe -Wno-return-type -w"
Created attachment 255461 [details] /tmp/netbook/net-libs/xulrunner-1.9.2.12/temp/build.log build.log
only fails with march=atom when emerge in a chroot.
Same for firefox and thunderbird What I did: export netbook root via nfs share chroot from i7 into nfs share emerge those packages.
I am experiencing the same problem when emerging firefox in a chroot. I also am running gcc 4.5.1 so that I can use the "-march=atom" flag. However, the "Illegal Instruction" seems to occur no matter what -march and -mtune flags i use. I wonder if this is a gcc 4.5.1 bug rather than a firefox bug.
As noone in the mozilla herd has an atom, can either of you duplicate this failure with 4.5.2?
(In reply to comment #5) > As noone in the mozilla herd has an atom, can either of you duplicate this > failure with 4.5.2? > I can test it the other day.
(In reply to comment #5) > As noone in the mozilla herd has an atom, can either of you duplicate this > failure with 4.5.2? > Confirmed same with gcc-4.5.2
Occurs in net-libs/xulrunner-1.9.2.13-r1 here on a Virtual Box VM on a Core2 Quad
(In reply to comment #8) > Occurs in net-libs/xulrunner-1.9.2.13-r1 here on a Virtual Box VM on a Core2 > Quad > To tell me it occurs with no emerge --info is rather useless information. Please add your emerge --info
(In reply to comment #9) > (In reply to comment #8) > > Occurs in net-libs/xulrunner-1.9.2.13-r1 here on a Virtual Box VM on a Core2 > > Quad > > > > To tell me it occurs with no emerge --info is rather useless information. > Please add your emerge --info > I'm not original bug reporter but I can post my emerge --info
Created attachment 261349 [details] emerge --info
Please supply the output of : echo "int main() { return 0; }" | gcc -march=native -v -E - 2>&1 | grep march Thank You.
So for me, being in a chroot on for an atom it is: # echo "int main() { return 0; }" | gcc -march=native -v -E - 2>&1 | grep march /usr/libexec/gcc/i686-pc-linux-gnu/4.5.2/cc1 -E -quiet -v - -D_FORTIFY_SOURCE=2 -march=core2 -mcx16 -msahf -mpopcnt -msse4.2 --param l1-cache-size=32 --param l1-cache-line-size=64 --param l2-cache-size=8192 -mtune=core2 So definetly not what I want.
This is still happening with net-libs/xulrunner-1.9.2.15 % echo "int main() { return 0; }" | gcc -march=native -v -E - 2>&1 | grep march /usr/libexec/gcc/x86_64-pc-linux-gnu/4.5.2/cc1 -E -quiet -v - -D_FORTIFY_SOURCE=2 -march=core2 -mcx16 -msahf --param l1-cache-size=32 --param l1-cache-line-size=64 --param l2-cache-size=4096 -mtune=core2 emerge --info from the chroot [chroot@yooden / 0]% emerge --info Portage 2.2.0_alpha26 (default/linux/amd64/10.0/desktop/kde, gcc-4.5.2, glibc-2.13-r1, 2.6.37-gentoo-1 x86_64) ================================================================= System uname: Linux-2.6.37-gentoo-1-x86_64-Intel-R-_Core-TM-2_CPU_6600_@_2.40GHz-with-gentoo-2.0.1 Timestamp of tree: Sun, 06 Mar 2011 07:15:01 +0000 app-shells/bash: 4.1_p10 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 sys-apps/baselayout: 2.0.1-r1 sys-apps/openrc: 0.7.0 sys-apps/sandbox: 2.5 sys-devel/autoconf: 2.13, 2.68 sys-devel/automake: 1.9.6-r3, 1.10.3, 1.11.1 sys-devel/binutils: 2.21 sys-devel/gcc: 4.5.2 sys-devel/gcc-config: 1.4.1 sys-devel/libtool: 2.4-r1 sys-devel/make: 3.82 virtual/os-headers: 2.6.36.1 (sys-kernel/linux-headers) Repositories: gentoo Mythtv-Ebuilds digimed Installed sets: @base, @kde4, @lxde, @temp ACCEPT_KEYWORDS="amd64 ~amd64" ACCEPT_LICENSE="* -@EULA" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-march=atom -O2 -pipe" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /etc/env.d /usr/share/config /usr/share/gnupg/qualified.txt /usr/share/openvpn/easy-rsa" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/init.d /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo" CXXFLAGS="-march=atom -O2 -pipe" DISTDIR="/mnt/portage/distfiles" EMERGE_DEFAULT_OPTS="--alphabetical --jobs 2" FEATURES="assume-digests binpkg-logs buildpkg distlocks fixlafiles fixpackages news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch" FFLAGS="" GENTOO_MIRRORS="ftp://gentoo.digimed.co.uk/ ftp://ftp.heanet.ie/pub/gentoo/ ftp://ftp.belnet.be/mirror/rsync.gentoo.org/gentoo/ ftp://ftp.uni-erlangen.de/pub/mirrors/gentoo/ ftp://ftp.easynet.nl/mirror/gentoo/" LDFLAGS="-Wl,-O1 -Wl,--as-needed" LINGUAS="en_GB" MAKEOPTS="-j3" PKGDIR="/mnt/portage/packages/yooden" 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="/var/portage" PORTDIR_OVERLAY="/mnt/portage/mythtv/Gentoo /mnt/portage/local" SYNC="rsync://desiato/gentoo" USE="X a52 aac aalib acpi alsa amd64 audiofile bluetooth branding bzip2 cairo cddb cdr cli consolekit cracklib crypt cups curl cxx dbus dri dts dvd dvdr ebook encode exif fam ffmpeg flac gdbm gdu gif gimp gnutls gpg gphoto2 gpm gtk iconv id3 imagemagick imap java jpeg jpeg2k kde laptop libnotify libwww lzma lzo mad mmx mmxext mng modules mp3 mp4 mpeg mplayer mudflap multilib musicbrainz ncurses network-cron nptl nptlonly nsplugin offensive ogg opengl openmp pcre pdf png policykit pppd python qt3support qt4 quicktime rdesktop readline scanner sdl semantic-desktop session spell sse sse2 sse3 ssl ssse3 startup-notification svg sysfs tcpd theora threads tiff truetype udev unicode usb v4l v4l2 vorbis webkit wicd wifi x264 xcb xcomposite xml xmp xorg xulrunner xv xvid zlib zsh-completion" ALSA_CARDS="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" 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" LINGUAS="en_GB" PHP_TARGETS="php5-3" RUBY_TARGETS="ruby18" SANE_BACKENDS="genesys" USERLAND="GNU" VIDEO_CARDS="vesa 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, INSTALL_MASK, LANG, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Hi, i think my bug is the same. net-libs/xulrunner-1.9.2.16 fails on ~ppc(32bits) with 'segmentation fault' instead of 'illegal instruction', but at the same point. I've tried to merge it several times and it always fail at this point. gcc (Gentoo 4.5.2 p1.1, pie-0.4.5) 4.5.2 CFLAGS="-mcpu=750 -O2 -pipe" -march=native does not exist with this gcc so i can't give the output of: echo "int main() { return 0; }" | gcc -march=native -v -E - 2>&1 | grep march -------------------------------------------------------- /tmp/portage/net-libs/xulrunner-1.9.2.16/work/mozilla-1.9.2/config/nsinstall -D ../../dist/idl /tmp/portage/net-libs/xulrunner-1.9.2.16/work/mozilla-1.9.2/config/nsinstall -D ../../dist/idl /tmp/portage/net-libs/xulrunner-1.9.2.16/work/mozilla-1.9.2/config/nsinstall -R -m 644 nsAgg.h nsAutoRef.h nsCom.h nsDebugImpl.h nsIAllocator.h nsIID.h nsISupportsObsolete.h nsStackWalk.h nsTraceRefcntImpl.h nsWeakPtr.h nsInterfaceRequestorAgg.h nsAutoPtr.h nsError.h nsISupportsBase.h nscore.h nsCycleCollector.h nsObjCExceptions.h ../../dist/include Creating _xpidlgen/.done nsIConsoleListener.idl /tmp/portage/net-libs/xulrunner-1.9.2.16/work/mozilla-1.9.2/dist/bin/xpidl -m header -w -I. -I../../dist/idl -o _xpidlgen/nsIConsoleListener nsIConsoleListener.idl make[4]: *** [_xpidlgen/nsIConsoleListener.h] Segmentation fault
Still on ~ppc, i have the same segfault with net-libs/xulrunner-1.9.2.17 and net-libs/xulrunner-2.0-r1... and now i dont know what to do :-/
(In reply to comment #16) > Still on ~ppc, i have the same segfault with net-libs/xulrunner-1.9.2.17 and > net-libs/xulrunner-2.0-r1... and now i dont know what to do :-/ Can anyone still reproduce this with firefox-7?
I can verify that firefox 7.0.1 is still broken
Ok firefox 8 (and I imagine thunderbird 8) gets MUCH further, but eventually meets the same Illegal instruction error. I'll attach a new build log (compressed this time, it's huge)
Created attachment 292789 [details] build.log of firefox 8
So should /var/tmp/portage/www-client/firefox-8.0/work/mozilla-release/obj-x86_64-unknown-linux-gnu/dist/bin/xpcshell be compiled with -march=generic instead of -march=atom?
(In reply to comment #21) > So should > /var/tmp/portage/www-client/firefox-8.0/work/mozilla-release/obj-x86_64-unknown-linux-gnu/dist/bin/xpcshell > be compiled with -march=generic instead of -march=atom? I would agree with this. I rebuilt with debugging turned on and got a core dump of the xpcshell crash, and after dumping the assembler, it turns out it uses the movbe instruction which is available on Atom cpus, but not on (in my case) the host Xeon. Big thanks for Roland McGrath for showing me how to diagnose this in #394683 (go there if you run into problems building chromium 16 in a chroot for Atom). As a short term workaround, I have created the file /etc/portage/env/www-client/firefox with the contents: CFLAGS="-O2 -march=core2 -pipe" CXXFLAGS="${CFLAGS}" Since on my machine both the host and the target have at least core2 in common. YMMV
Removing net-libs/xulrunner from $summary because it's about to be lastrited wrt bug 403415.
If you feel I have closed your bug and it is still a current issue, please reopen and update it completely. We will not work bugs that have no ebuild in tree any longer or can not be reproduced with a current system. Thank You for your support and understanding The Mozilla Team