Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 485036 - sys-devel/gcc-4.7.3 x11-drivers/xf86-video-intel-2.99.901 MPFR assertion failed: (64 - 0) == ((64 - 0)/8) * 8 && sizeof(mp_limb_t) == ((64 - 0)/8)
Summary: sys-devel/gcc-4.7.3 x11-drivers/xf86-video-intel-2.99.901 MPFR assertion fail...
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Toolchain Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-09-15 19:51 UTC by Xavier Miller (RETIRED)
Modified: 2015-02-22 22:03 UTC (History)
1 user (show)

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


Attachments
build log (build.log,27.88 KB, text/x-log)
2013-09-15 19:52 UTC, Xavier Miller (RETIRED)
Details
app-text/poppler-0.24.1 build log (build.log,56.53 KB, text/x-log)
2013-09-17 17:10 UTC, Xavier Miller (RETIRED)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Xavier Miller (RETIRED) gentoo-dev 2013-09-15 19:51:51 UTC
libtool: compile:  i686-gentoo-linux-gnu-gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I/var/tmp/portage/x11-drivers/xf86-video-intel-2.99.901/work/xf86-video-intel-2.99.901/src/legacy/i810 -I../../.. -Wall -Wpointer-arith -Wmissing-declarations -Wformat=2 -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Wbad-function-cast -Wold-style-definition -Wdeclaration-after-statement -Wunused -Wuninitialized -Wshadow -Wcast-qual -Wmissing-noreturn -Wmissing-format-attribute -Wredundant-decls -Werror=implicit -Werror=nonnull -Werror=init-self -Werror=main -Werror=missing-braces -Werror=sequence-point -Werror=return-type -Werror=trigraphs -Werror=array-bounds -Werror=write-strings -Werror=address -Werror=int-to-pointer-cast -Werror=pointer-to-int-cast -fno-strict-aliasing -fvisibility=hidden -I/usr/include/xorg -I/usr/include/X11/dri -I/usr/include/libdrm -I/usr/include/pixman-1 -I/usr/include/libdrm -I/usr/include/X11/dri -I/var/tmp/portage/x11-drivers/xf86-video-intel-2.99.901/work/xf86-video-intel-2.99.901/src -I/var/tmp/portage/x11-drivers/xf86-video-intel-2.99.901/work/xf86-video-intel-2.99.901/src/legacy -O2 -pipe -fomit-frame-pointer -march=prescott -mtune=generic -c /var/tmp/portage/x11-drivers/xf86-video-intel-2.99.901/work/xf86-video-intel-2.99.901/src/legacy/i810/i810_driver.c  -fPIC -DPIC -o .libs/i810_driver.o
init2.c:37: MPFR assertion failed: (64 - 0) == ((64 - 0)/8) * 8 && sizeof(mp_limb_t) == ((64 - 0)/8)
/var/tmp/portage/x11-drivers/xf86-video-intel-2.99.901/work/xf86-video-intel-2.99.901/src/legacy/i810/i810_driver.c: In function 'I810CalcVCLK':
/var/tmp/portage/x11-drivers/xf86-video-intel-2.99.901/work/xf86-video-intel-2.99.901/src/legacy/i810/i810_driver.c:1120:4: internal compiler error: Aborted


Reproducible: Always




# emerge --info
Portage 2.2.6 (default/linux/x86/13.0/desktop, gcc-4.7.3, glibc-2.17, 3.11.0-gentoo i686)
=================================================================
System uname: Linux-3.11.0-gentoo-i686-Intel-R-_Atom-TM-_CPU_N270_@_1.60GHz-with-gentoo-2.2
KiB Mem:     1539840 total,    173512 free
KiB Swap:    1572860 total,   1535236 free
Timestamp of tree: Sun, 15 Sep 2013 18:00:01 +0000
ld GNU ld (GNU Binutils) 2.23.2
distcc 3.1 i686-gentoo-linux-gnu [enabled]
app-shells/bash:          4.2_p45
dev-java/java-config:     2.2.0
dev-lang/python:          2.7.5-r2
dev-util/cmake:           2.8.11.2
dev-util/pkgconfig:       0.28
sys-apps/baselayout:      2.2
sys-apps/openrc:          0.12
sys-apps/sandbox:         2.6-r1
sys-devel/autoconf:       2.13, 2.69
sys-devel/automake:       1.12.6, 1.14
sys-devel/binutils:       2.23.2
sys-devel/gcc:            4.7.3
sys-devel/gcc-config:     1.8
sys-devel/libtool:        2.4.2
sys-devel/make:           3.82-r4
sys-kernel/linux-headers: 3.11 (virtual/os-headers)
sys-libs/glibc:           2.17
Repositories: gentoo local pd-overlay proaudio
ACCEPT_KEYWORDS="x86 ~x86"
ACCEPT_LICENSE="@FREE freedist as-is"
CBUILD="i686-gentoo-linux-gnu"
CFLAGS="-O2 -pipe -fomit-frame-pointer -march=prescott -mtune=generic"
CHOST="i686-gentoo-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt"
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 /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-O2 -pipe -fomit-frame-pointer -march=prescott -mtune=generic"
DISTDIR="/var/portage/distfiles"
EMERGE_DEFAULT_OPTS="--with-bdeps y --buildpkg --quiet-build=n"
FCFLAGS="-O2 -march=i686 -pipe"
FEATURES="assume-digests binpkg-logs buildpkg candy config-protect-if-modified distcc distcc-pump distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync"
FFLAGS="-O2 -march=i686 -pipe"
GENTOO_MIRRORS="ftp://ftp.belnet.be/mirror/rsync.gentoo.org/gentoo/"
LANG="fr_BE.utf8"
LDFLAGS="-Wl,-O1 -Wl,--sort-common -Wl,--hash-style=gnu -Wl,--as-needed"
MAKEOPTS="-j7"
PKGDIR="/var/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage/overlay /var/lib/layman/pd-overlay /var/lib/layman/pro-audio"
USE="X a52 aac acpi alsa branding bzip2 cairo cli cracklib crypt cups cxx dbus dri dts emboss encode exif fam firefox flac gif gpm gtk iconv jack jpeg lcms libnotify libsamplerate mad mmx mng modules mp3 mp4 mpeg mudflap ncurses nls nptl ogg opengl openmp osc pam pango pcre pdf png ppds qt4 readline session sndfile spell sqlite sse sse2 ssl ssse3 startup-notification svg tcpd tiff truetype udev udisks unicode upower usb vorbis wmf wxwidgets x264 x86 xcb xinerama xml xv xvid zlib" ABI_X86="32" ALSA_CARDS="hda-intel usb-audio virmidi" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd 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 sheets stage tables krita karbon braindump author" 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 synaptics mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="fr fr_FR" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-5" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7" QEMU_SOFTMMU_TARGETS="arm i386" QEMU_USER_TARGETS="arm i386" RUBY_TARGETS="ruby19 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, SYNC, USE_PYTHON
Comment 1 Xavier Miller (RETIRED) gentoo-dev 2013-09-15 19:52:16 UTC
Created attachment 358736 [details]
build log
Comment 2 Xavier Miller (RETIRED) gentoo-dev 2013-09-15 19:53:30 UTC
It's a rebuild pushed by new version of xorg-server.

Meanwhile, MPFR whas upgraded.
Comment 3 Xavier Miller (RETIRED) gentoo-dev 2013-09-17 17:10:11 UTC
Same problem with poppler !

init2.c:37: MPFR assertion failed: (64 - 0) == ((64 - 0)/8) * 8 && sizeof(mp_limb_t) == ((64 - 0)/8)
/var/tmp/portage/app-text/poppler-0.24.1/work/poppler-0.24.1/poppler/Annot.cc: In member function ‘void Annot::drawCircleTopLeft(double, double, double)’:
Comment 4 Xavier Miller (RETIRED) gentoo-dev 2013-09-17 17:10:39 UTC
Created attachment 358880 [details]
app-text/poppler-0.24.1 build log
Comment 5 Xavier Miller (RETIRED) gentoo-dev 2013-09-17 17:11:31 UTC
do I need to recompile gcc after MPFR update?
Comment 6 Xavier Miller (RETIRED) gentoo-dev 2013-09-17 17:25:27 UTC
I will rebuild GCC, there are other packages that fail to build.
Comment 7 Xavier Miller (RETIRED) gentoo-dev 2013-09-17 21:06:42 UTC
I recompiled GCC.

I guess the problem is with MPFR-3.1.2-r1
Comment 8 Xavier Miller (RETIRED) gentoo-dev 2013-09-17 21:17:04 UTC
all packages that failed (xf86-video-intel, poppler, ...) compile fine with dev-libs/mpfr-3.1.1_p2

The problem is related with mpfr-3.2, as I stated in the original title...
Comment 9 Xavier Miller (RETIRED) gentoo-dev 2013-09-18 17:59:25 UTC
It's OK with mpfr 3.1.2-r1 on ~amd64, and also maybe on ~arm (raspberry pi).
But not on my ~x86 atom netbook.
Comment 10 Xavier Miller (RETIRED) gentoo-dev 2013-09-24 16:54:49 UTC
Hello,

My system was completely unstable: crashes, kernel freezes... I am rebuilding it without distcc and the problems are being to be resolved by a fresh emerge -e @world. At least emerge -e @system made my system more stable.

I don't remember the last emerge -e @world, more than 1 year.
Comment 11 Xavier Miller (RETIRED) gentoo-dev 2013-10-08 06:46:28 UTC
After arrival of GCC-4.8.1, I have rebuilt @system with distcc (all toolchains were with the same version), and some packages have again "MPFR assertion failed" messages, for example dev-libs/libxml2-2.9.1-r1 and app-text/ps2pkm-1.5_p20130530

It seems Distcc corrupts mpfr. 

Disabling distcc for dev-libs/mpfr remove the problem.
Comment 12 Xavier Miller (RETIRED) gentoo-dev 2013-10-08 07:18:54 UTC
Distcc is between ~amd64 (cross-i686-gentoo-linux-gnu) as server and ~x86 (i686-gentoo-linux-gnu) as client.

I have at least 2 packages that are corrupted by that setup
- mpfr
- qpdfview
Comment 13 Matt Turner gentoo-dev 2015-02-22 22:03:16 UTC
(In reply to Xavier Miller from comment #11)
> After arrival of GCC-4.8.1, I have rebuilt @system with distcc (all
> toolchains were with the same version), and some packages have again "MPFR
> assertion failed" messages, for example dev-libs/libxml2-2.9.1-r1 and
> app-text/ps2pkm-1.5_p20130530
> 
> It seems Distcc corrupts mpfr. 
> 
> Disabling distcc for dev-libs/mpfr remove the problem.

I'm not sure why you changed from RESOLVED/INVALID -> UNCONFIRMED for this comment. Sounds like RESOLVED/INVALID was right.