Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 410557 - mail-client/thunderbird, www-client/firefox, www-client/seamoneky fail to build with gcc-4.7 (crashreporter)
Summary: mail-client/thunderbird, www-client/firefox, www-client/seamoneky fail to bu...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Mozilla Gentoo Team
URL: https://hg.mozilla.org/mozilla-centra...
Whiteboard:
Keywords:
: 411543 417413 (view as bug list)
Depends on:
Blocks: gcc-4.7
  Show dependency tree
 
Reported: 2012-04-02 14:03 UTC by Francesco Riosa
Modified: 2012-05-29 22:03 UTC (History)
6 users (show)

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


Attachments
/etc/portage/patches/mail-client/thunderbird/bug-410557.patch (bug-410557.patch,807 bytes, patch)
2012-04-02 14:21 UTC, Francesco Riosa
Details | Diff
GCC 4.7 fixes (firefox-gcc-4.7.patch,1.27 KB, patch)
2012-04-15 20:59 UTC, Andrew John Hughes
Details | Diff
Linking crashreporter fix (firefox-crashreporter.patch,370 bytes, patch)
2012-04-15 21:00 UTC, Andrew John Hughes
Details | Diff
Fix thunderbird compilation with gcc-4.7 (thunderbird-literals.patch,12.42 KB, patch)
2012-05-26 01:19 UTC, Federico Cuello
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Francesco Riosa 2012-04-02 14:03:12 UTC
this seem strangely similar to _mozilla_ upstream bug:
https://bugzilla.mozilla.org/show_bug.cgi?id=706724
fixed with this change:
https://hg.mozilla.org/mozilla-central/rev/effb4811409b

indeed the file
/var/tmp/portage/mail-client/thunderbird-11.0.1/work/comm-release/mozilla/ipc/chromium/src/base/file_util.cc
in thunderbird don't include the patch.


final part of the build log below, if more information is needed please ask will be provided.


../../mozilla-config.h -MD -MF .deps/lazy_instance.pp /var/tmp/portage/mail-client/thunderbird-11.0.1/work/comm-release/mozilla/ipc/chromium/src/base/lazy_instance.cc
/var/tmp/portage/mail-client/thunderbird-11.0.1/work/comm-release/mozilla/ipc/chromium/src/base/file_util.cc: In function 'bool file_util::TruncateFile(FILE*)':
/var/tmp/portage/mail-client/thunderbird-11.0.1/work/comm-release/mozilla/ipc/chromium/src/base/file_util.cc:228:35: error: 'ftruncate' was not declared in this scope
make[6]: *** [file_util.o] Error 1
make[6]: *** Waiting for unfinished jobs....
make[6]: Leaving directory `/var/tmp/portage/mail-client/thunderbird-11.0.1/work/comm-release/tbird/mozilla/ipc/chromium'
make[5]: *** [libs] Error 2
make[5]: Leaving directory `/var/tmp/portage/mail-client/thunderbird-11.0.1/work/comm-release/tbird/mozilla/ipc'
make[4]: *** [libs_tier_platform] Error 2
make[4]: Leaving directory `/var/tmp/portage/mail-client/thunderbird-11.0.1/work/comm-release/tbird/mozilla'
make[3]: *** [tier_platform] Error 2
make[3]: Leaving directory `/var/tmp/portage/mail-client/thunderbird-11.0.1/work/comm-release/tbird/mozilla'
make[2]: *** [default] Error 2
make[2]: Leaving directory `/var/tmp/portage/mail-client/thunderbird-11.0.1/work/comm-release/tbird/mozilla'
make[1]: *** [default] Error 2
make[1]: Leaving directory `/var/tmp/portage/mail-client/thunderbird-11.0.1/work/comm-release/tbird'
make: *** [build] Error 2
emake failed
 * ERROR: mail-client/thunderbird-11.0.1 failed (compile phase):
 *   (no error message)
 * 
 * Call stack:
 *     ebuild.sh, line  85:  Called src_compile
 *   environment, line 6195:  Called die
 * The specific snippet of code:
 *       CC="$(tc-getCC)" CXX="$(tc-getCXX)" LD="$(tc-getLD)" MOZ_MAKE_FLAGS="${MAKEOPTS}" emake -f client.mk || die;
 * 
 * If you need support, post the output of 'emerge --info =mail-client/thunderbird-11.0.1',
 * the complete build log and the output of 'emerge -pqv =mail-client/thunderbird-11.0.1'.
 * The complete build log is located at '/var/log/portage/build/mail-client/thunderbird-11.0.1:20120402-133054.log.gz'.
 * The ebuild environment file is located at '/var/tmp/portage/mail-client/thunderbird-11.0.1/temp/environment'.
 * S: '/var/tmp/portage/mail-client/thunderbird-11.0.1/work/comm-release'
Comment 1 Francesco Riosa 2012-04-02 14:21:05 UTC
Created attachment 307493 [details, diff]
/etc/portage/patches/mail-client/thunderbird/bug-410557.patch

FYI this patch fix the mentioned problem the build still fail later in
/var/tmp/portage/mail-client/thunderbird-11.0.1/work/comm-release/mozilla/ipc/chromium/src/base/message_pump_libevent.cc:


x86_64-pc-linux-gnu-g++ -o process_posix.o -c -I../../dist/stl_wrappers -I../../dist/system_wrappers -include /var/tmp/portage/mail-client/thunderbird-11.0.1/work/comm-release/mozilla/config/gcc_hidden.h -DMOZILLA_INTERNAL_API -D_IMPL_NS_COM -DEXPORT_XPT_API -DEXPORT_XPTC_API -D_IMPL_NS_GFX -D_IMPL_NS_WIDGET -DIMPL_XREAPI -DIMPL_NS_NET -DIMPL_THEBES  -DSTATIC_EXPORTABLE_JS_API -DMOZ_THUNDERBIRD=1 -DOSTYPE=\"Linux3.3.0-vs2.3.3\" -DOSARCH=Linux -DEXCLUDE_SKIA_DEPENDENCIES  -DOS_LINUX=1 -DOS_POSIX=1  -I../../dist -I/var/tmp/portage/mail-client/thunderbird-11.0.1/work/comm-release/mozilla/ipc/chromium/src -I/var/tmp/portage/mail-client/thunderbird-11.0.1/work/comm-release/mozilla/ipc/glue -I../../ipc/ipdl/_ipdlheaders  -I/var/tmp/portage/mail-client/thunderbird-11.0.1/work/comm-release/mozilla/ipc/chromium -I. -I../../dist/include -I../../dist/include/nsprpub  -I/usr/include/nspr -I/usr/include/nss      -fPIC -fno-rtti -Wall -Wpointer-arith -Woverloaded-virtual -Wsynth -Wno-ctor-dtor-privacy -Wno-non-virtual-dtor -Wcast-align -Wno-invalid-offsetof -Wno-variadic-macros -Werror=return-type -march=core2 -pipe -mno-movbe -mno-aes -mno-pclmul -mno-popcnt -mno-abm -mno-lwp -mno-fma4 -mno-xop -mno-bmi -mno-tbm -mno-avx -mno-sse4.2 -mtune=core2 -ggdb -Wno-return-type -w -mno-avx -fno-exceptions -fno-strict-aliasing -std=gnu++0x -pthread -ffunction-sections -fdata-sections -pipe -DNDEBUG -DTRIMMED -g -pthread -DQT_SHARED -I/usr/include/gtk-2.0 -I/usr/lib64/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng15 -I/usr/include/qt4 -I/usr/include/qt4/QtGui -I/usr/include/libdrm -I/usr/include/qt4/QtCore -I/usr/include/gtk-unix-print-2.0   -O2 -fomit-frame-pointer   -DMOZILLA_CLIENT -include ../../mozilla-config.h -MD -MF .deps/process_posix.pp /var/tmp/portage/mail-client/thunderbird-11.0.1/work/comm-release/mozilla/ipc/chromium/src/base/process_posix.cc
/var/tmp/portage/mail-client/thunderbird-11.0.1/work/comm-release/mozilla/ipc/chromium/src/base/message_pump_libevent.cc: In static member function 'static void base::MessagePumpLibevent::OnWakeup(int, short int, void*)':
/var/tmp/portage/mail-client/thunderbird-11.0.1/work/comm-release/mozilla/ipc/chromium/src/base/message_pump_libevent.cc:91:45: error: 'read' was not declared in this scope
/var/tmp/portage/mail-client/thunderbird-11.0.1/work/comm-release/mozilla/ipc/chromium/src/base/message_pump_libevent.cc:91:64: error: invalid type in declaration before ';' token
/var/tmp/portage/mail-client/thunderbird-11.0.1/work/comm-release/mozilla/ipc/chromium/src/base/message_pump_libevent.cc: In member function 'bool base::MessagePumpLibevent::Init()':
/var/tmp/portage/mail-client/thunderbird-11.0.1/work/comm-release/mozilla/ipc/chromium/src/base/message_pump_libevent.cc:109:15: error: 'pipe' was not declared in this scope
/var/tmp/portage/mail-client/thunderbird-11.0.1/work/comm-release/mozilla/ipc/chromium/src/base/message_pump_libevent.cc: In destructor 'virtual base::MessagePumpLibevent::~MessagePumpLibevent()':
/var/tmp/portage/mail-client/thunderbird-11.0.1/work/comm-release/mozilla/ipc/chromium/src/base/message_pump_libevent.cc:140:26: error: 'close' was not declared in this scope
/var/tmp/portage/mail-client/thunderbird-11.0.1/work/comm-release/mozilla/ipc/chromium/src/base/message_pump_libevent.cc:142:27: error: 'close' was not declared in this scope
/var/tmp/portage/mail-client/thunderbird-11.0.1/work/comm-release/mozilla/ipc/chromium/src/base/message_pump_libevent.cc: In member function 'virtual void base::MessagePumpLibevent::ScheduleWork()':
/var/tmp/portage/mail-client/thunderbird-11.0.1/work/comm-release/mozilla/ipc/chromium/src/base/message_pump_libevent.cc:359:56: error: 'write' was not declared in this scope
/var/tmp/portage/mail-client/thunderbird-11.0.1/work/comm-release/mozilla/ipc/chromium/src/base/message_pump_libevent.cc:359:75: error: invalid type in declaration before ';' token

make[6]: *** [message_pump_libevent.o] Error 1
make[6]: *** Waiting for unfinished jobs....
make[6]: Leaving directory `/var/tmp/portage/mail-client/thunderbird-11.0.1/work/comm-release/tbird/mozilla/ipc/chromium'
make[5]: *** [libs] Error 2
make[5]: Leaving directory `/var/tmp/portage/mail-client/thunderbird-11.0.1/work/comm-release/tbird/mozilla/ipc'
make[4]: *** [libs_tier_platform] Error 2
make[4]: Leaving directory `/var/tmp/portage/mail-client/thunderbird-11.0.1/work/comm-release/tbird/mozilla'
make[3]: *** [tier_platform] Error 2
make[3]: Leaving directory `/var/tmp/portage/mail-client/thunderbird-11.0.1/work/comm-release/tbird/mozilla'
make[2]: *** [default] Error 2
make[2]: Leaving directory `/var/tmp/portage/mail-client/thunderbird-11.0.1/work/comm-release/tbird/mozilla'
make[1]: *** [default] Error 2
make[1]: Leaving directory `/var/tmp/portage/mail-client/thunderbird-11.0.1/work/comm-release/tbird'
make: *** [build] Error 2
emake failed
Comment 2 Jory A. Pratt gentoo-dev 2012-04-03 00:53:44 UTC
emerge --info is required on all bug reports. Please attach.
Comment 3 Francesco Riosa 2012-04-04 22:45:03 UTC
(In reply to comment #2)
> emerge --info is required on all bug reports. Please attach.

Portage 2.2.0_alpha99 (default/linux/amd64/10.0/developer, gcc-4.7.0-rc20120314, glibc-2.14.1-r2, 3.3.0-vs2.3.3.1 x86_64)
=================================================================
System uname: Linux-3.3.0-vs2.3.3.1-x86_64-Intel-R-_Core-TM-_i7-2600_CPU_@_3.40GHz-with-gentoo-2.1
Timestamp of tree: Wed, 04 Apr 2012 19:30:01 +0000
ccache version 3.1.7 [enabled]
app-shells/bash:          4.2_p24
dev-java/java-config:     2.1.11-r3
dev-lang/python:          2.7.2-r3, 3.2.2-r1
dev-util/ccache:          3.1.7
dev-util/cmake:           2.8.7-r5
dev-util/pkgconfig:       0.26
sys-apps/baselayout:      2.1
sys-apps/openrc:          0.9.9.3
sys-apps/sandbox:         2.5
sys-devel/autoconf:       2.13, 2.68
sys-devel/automake:       1.9.6-r3, 1.10.3, 1.11.4
sys-devel/binutils:       2.22-r1
sys-devel/gcc:            4.5.3-r2, 4.6.2, 4.7.0_rc20120314::vivovl
sys-devel/gcc-config:     1.6
sys-devel/libtool:        1.5.26-r1, 2.4.2
sys-devel/make:           3.82-r3
sys-kernel/linux-headers: 3.3 (virtual/os-headers)
sys-libs/glibc:           2.14.1-r2
Repositories: gentoo vivovl digikam kde x11 hardened-dev toolchain
Installed sets:
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="*"   
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -march=core2 -pipe -frecord-gcc-switches -mno-bmi2 -mno-avx2 -mno-lzcnt -mno-movbe -mno-aes -mno-pclmul -mno-popcnt -mno-abm -mno-lwp -mno-fma -mno-fma4 -mno-xop -mno-bmi -mno-tbm -mno-avx -mno-sse4.2 -msse4.1 --param l1-cache-size=32 --param=l1-cache-line-size=64 --param=l2-cache-size=2048 -mtune=core2 -fgcse-after-reload -fpredictive-commoning -ftree-vectorize -funswitch-loops -fgraphite-identity -floop-block -floop-interchange -floop-strip-mine -flto --param=inline-unit-growth=5 -fmerge-all-constants -ggdb -gdwarf-4 -fvar-tracking-assignments -grecord-gcc-switches"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt /usr/share/openvpn/easy-rsa /usr/share/themes/oxygen-gtk/gtk-2.0 /var/lib/hsqldb"

Repositories: gentoo vivovl digikam kde x11 hardened-dev toolchain
Installed sets:
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="*"   
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -march=core2 -pipe -frecord-gcc-switches -mno-bmi2 -mno-avx2 -mno-lzcnt -mno-movbe -mno-aes -mno-pclmul -mno-popcnt -mno-abm -mno-lwp -mno-fma -mno-fma4 -mno-xop -mno-bmi -mno-tbm -mno-avx -mno-sse4.2 -msse4.1 --param l1-cache-size=32 --param=l1-cache-line-size=64 --param=l2-cache-size=2048 -mtune=core2 -fgcse-after-reload -fpredictive-commoning -ftree-vectorize -funswitch-loops -fgraphite-identity -floop-block -floop-interchange -floop-strip-mine -flto --param=inline-unit-growth=5 -fmerge-all-constants -ggdb -gdwarf-4 -fvar-tracking-assignments -grecord-gcc-switches"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt /usr/share/openvpn/easy-rsa /usr/share/themes/oxygen-gtk/gtk-2.0 /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5.4/ext-active/ /etc/php/cgi-php5.4/ext-active/ /etc/php/cli-php5.4/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="-O2 -march=core2 -pipe -frecord-gcc-switches -mno-bmi2 -mno-avx2 -mno-lzcnt -mno-movbe -mno-aes -mno-pclmul -mno-popcnt -mno-abm -mno-lwp -mno-fma -mno-fma4 -mno-xop -mno-bmi -mno-tbm -mno-avx -mno-sse4.2 -msse4.1 --param l1-cache-size=32 --param=l1-cache-line-size=64 --param=l2-cache-size=2048 -mtune=core2 -fgcse-after-reload -fpredictive-commoning -ftree-vectorize -funswitch-loops -fgraphite-identity -floop-block -floop-interchange -floop-strip-mine -flto --param=inline-unit-growth=5 -fmerge-all-constants -ggdb -gdwarf-4 -fvar-tracking-assignments -grecord-gcc-switches -fvisibility-inlines-hidden" 
DISTDIR="/g/distfiles"
EMERGE_DEFAULT_OPTS="--ask-enter-invalid"
FEATURES="assume-digests binpkg-logs buildpkg ccache compress-build-logs compressdebug distlocks ebuild-locks fixlafiles installsources metadata-transfer multilib-strict news noinfo parallel-fetch sandbox sfperms sign split-elog split-log splitdebug strict test test-fail-continue unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox xattr"
FFLAGS=""
GENTOO_MIRRORS="http://mirror.netcologne.de/gentoo/ http://mirror.ovh.net/gentoo-distfiles/ http://mirror.switch.ch/ftp/mirror/gentoo/ http://gentoo.lagis.at/ http://mirror.qubenet.net/mirror/gentoo/"
INSTALL_MASK=" /usr/lib64/libogrove.la /usr/lib64/libospgrove.la /usr/lib64/libostyle.la /usr/lib64/vlc/plugins/codec/libdirac_plugin.la /usr/lib64/vlc/plugins/demux/libdirac_plugin.la /usr/lib64/mysql/plugin/*.la "
LDFLAGS="-Wl,--hash-style=gnu -Wl,-O1 -Wl,--as-needed -Wl,-O1 -Wl,--hash-style=gnu -Wl,--as-needed -Wl,--sort-common -Wl,--no-copy-dt-needed-entries -Wl,--build-id -Wl,-flto"
LINGUAS="it"
MAKEOPTS="-j4"
PKGDIR="/g/packages" 
PORTAGE_COMPRESS="lzma"

PKGDIR="/g/packages" 
PORTAGE_COMPRESS="lzma"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/g/portage" 
PORTDIR_OVERLAY="/g/ovl/tmp /g/ovl/digikam /g/ovl/kde /g/ovl/x11 /g/ovl/hardened-dev /g/ovl/toolchain"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="3dmouse X a52 aac acl acpi akonadi alsa amd64 amr apache2 apm asf attica automount avahi avi bash-completion berkdb bitmap-fonts bluetooth browserplugin bzip2 cairo caps captury cdda cddb cdr chm cli cmake compositor consolekit cpudetection cracklib crypt cups curl cxx cycles dbus decibel declarative dedicated device-mapper djvu dri dts dvd dvdr dvdread emboss encode engines erandom exif exiv2 extrafilters fam fame ffmpeg firefox flac foomaticdb fortran frei0r g3dvl gallium gdbm gdu geos gif gles2 glitz gpm gstreamer gtk gtk2 hal hdf hdf5 hpijs hpn htmlhandbook iconv idn imagemagick imlib iproute2 ipv6 ithreads jack java jemalloc jingle jpeg justify kde kdeenablefinal kdehiddenvisibility kdepim kipi kontact latex lcms ldap lensfun libg++ libnotify libwww lua lzma lzo mad messenger mikmod mjpeg mng modules motif mp3 mp4 mpeg mplayer mudflap multilib mysql ncurses nepomuk network-cron new-hpcups newxkb nls nptl nptlonly odbc ogdi ogg opencl openexr opengl openmp osmesa pam pam_chroot pango pcre pdf perl plasma plugins png policykit ppds pppd prison private-headers pulseaudio python qt qt3support qt4 quicktime radeon raster rdesktop readline realtime reiserfs samba sasl scanner schroedinger screen sdl semantic-desktop server session skey slang smp snmp social-desktop spell sqlite3 sse sse2 sse3 sse4_1 ssl ssse3 startup-notification static static-libs svg sysfs system-sqlite taglib tcltk tcpd telepathy theora threads tiff tls truetype truetype-fonts ucs2 udev unicode urandom usb userlocales utempter utils v4l v4l2 valgrind vdpau vnc vorbis wayland webkit x264 xattr xcb xcomposite xinerama xml xorg xulrunner xv xvid xvmc zeroconf zip 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 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 reqtimeout" APACHE2_MPMS="prefork" CALLIGRA_FEATURES="karbon krita flow sheets" CAMERAS="ptp2 directory canon" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" DRACUT_MODULES="bootchart btrfs crypt dmsquash-live mdraid syslog uswsusp biosdevname caps ssh-client" ELIBC="glibc" FFTOOLS="aviocat cws2fws ffeval ismindex pktdumper" 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" GRUB_PLATFORMS="pc" INPUT_DEVICES="keyboard mouse evdev wacom" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="it" PHP_TARGETS="php5-3 php5-4" QEMU_SOFTMMU_TARGETS="arm x86_64" QEMU_USER_TARGETS="arm x86_64" RUBY_TARGETS="ruby18 ruby19" SANE_BACKENDS="hp4200 net ricoh" USERLAND="GNU" VIDEO_CARDS="nouveau radeon r300 r600 r700 r800 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, LANG, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON
Comment 4 Jory A. Pratt gentoo-dev 2012-04-11 11:55:07 UTC
*** Bug 411543 has been marked as a duplicate of this bug. ***
Comment 5 Andrew John Hughes 2012-04-15 20:59:26 UTC
Created attachment 309087 [details, diff]
GCC 4.7 fixes
Comment 6 Andrew John Hughes 2012-04-15 21:00:56 UTC
Created attachment 309089 [details, diff]
Linking crashreporter fix
Comment 7 Andrew John Hughes 2012-04-15 21:02:24 UTC
I've added a couple of patches that got Firefox to build again for me.  The first fixes GCC 4.7 issues that come up in the C code, and, though I derived it myself, seems to be pretty much the same as others I've seen on the net for e.g. BLFS.

The crashreporter fix was necessary to fix a final linking error when building the crashereporter which meant it couldn't find moz_free.  Linking against the mozalloc library fixed this but not sure why it occurs in the first place.  Probably not GCC 4.7 related so I kept it separate.
Comment 8 Martin Väth 2012-05-11 12:29:14 UTC
(In reply to comment #7)
> I've added a couple of patches that got Firefox to build again for me.

It compiles fine here with gcc-4.7 (crashreporter not necessary), but there are runtime issues:

Copying into X buffer is not possible and if you try to login e.g. into gentoo forums with "tab" after your name, keys for the password are "eaten" and a strange password seems to be sent.

However, no such problems occur if compiled with gcc-4.6.3

I think the issue is related with time_posix.cc (it seems that configure already finds something wrong), but I am not sure and have no time to dig any further.
Comment 9 Martin Väth 2012-05-20 20:57:40 UTC
(In reply to comment #8)
> but there are runtime issues:

Finally found time to look into the issue:
It seems that only graphite on gcc-4.7 was the culprit.
No problems without graphite (or with graphite but gcc-4.6).
Sorry for the noise.
Comment 10 Dmitry Suloev 2012-05-24 08:28:59 UTC
Same probrem for me.
Removing crashreporter USE-flag help.

> Copying into X buffer is not possible and if you try to login e.g. into
> gentoo forums with "tab" after your name, keys for the password are "eaten"
> and a strange password seems to be sent.
In my case I don't have this problems.

gcc 4.7.0 with graphite.
firefox 12.0-r1
Comment 11 Jory A. Pratt gentoo-dev 2012-05-24 12:56:19 UTC
thunderbird/firefox-12 both contain patch for gcc-4.7 includes.
Comment 12 Jory A. Pratt gentoo-dev 2012-05-25 00:10:56 UTC
*** Bug 417413 has been marked as a duplicate of this bug. ***
Comment 13 Federico Cuello 2012-05-26 01:19:43 UTC
Created attachment 313063 [details, diff]
Fix thunderbird compilation with gcc-4.7

thunderbird-12.0.1-r1 also needs this patch to compile with gcc-4.7

(based on http://hg.mozilla.org/comm-central/rev/cfb784e58b9f )

See also https://bugzilla.mozilla.org/show_bug.cgi?id=733867
Comment 14 Jory A. Pratt gentoo-dev 2012-05-28 16:07:56 UTC
Firefox and thunderbird are completely fixed at this point thans for reporting. Seamonkey will be fixed as soon as possible.
Comment 15 Jory A. Pratt gentoo-dev 2012-05-29 22:03:19 UTC
Seamonkey was fixed earlier today. Thanks for reporting.