emerge pdftk fails on ppc Reproducible: Always Steps to Reproduce: [ebuild U ] dev-db/mysql-5.0.83 [5.0.70-r1] USE="berkdb community%* perl ssl -big-tables -cluster -debug -embedded -extraengine -latin1 -max-idx-128 -minimal -profiling% (-selinux) -static -test" 0 kB Actual Results: libtool: compile: powerpc64-unknown-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I./include -I./../include -DDBUG_OFF -DDBUG_OFF -O2 -pipe -mcpu=power5 -mtune=native -DHAVE_ERRNO_AS_DEFINE=1 -fno-strict-aliasing -DDEBUG_OFF -DUNIV_LINUX -MT btr0sea.lo -MD -MP -MF .deps/btr0sea.Tpo -c btr/btr0sea.c -fPIC -DPIC -o .libs/btr0sea.o libtool: compile: powerpc64-unknown-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I./include -I./../include -DDBUG_OFF -DDBUG_OFF -O2 -pipe -mcpu=power5 -mtune=native -DHAVE_ERRNO_AS_DEFINE=1 -fno-strict-aliasing -DDEBUG_OFF -DUNIV_LINUX -MT btr0btr.lo -MD -MP -MF .deps/btr0btr.Tpo -c btr/btr0btr.c -o btr0btr.o >/dev/null 2>&1 libtool: compile: powerpc64-unknown-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I./include -I./../include -DDBUG_OFF -DDBUG_OFF -O2 -pipe -mcpu=power5 -mtune=native -DHAVE_ERRNO_AS_DEFINE=1 -fno-strict-aliasing -DDEBUG_OFF -DUNIV_LINUX -MT btr0cur.lo -MD -MP -MF .deps/btr0cur.Tpo -c btr/btr0cur.c -o btr0cur.o >/dev/null 2>&1 libtool: compile: powerpc64-unknown-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I./include -I./../include -DDBUG_OFF -DDBUG_OFF -O2 -pipe -mcpu=power5 -mtune=native -DHAVE_ERRNO_AS_DEFINE=1 -fno-strict-aliasing -DDEBUG_OFF -DUNIV_LINUX -MT btr0sea.lo -MD -MP -MF .deps/btr0sea.Tpo -c btr/btr0sea.c -o btr0sea.o >/dev/null 2>&1 mv -f .deps/btr0btr.Tpo .deps/btr0btr.Plo /bin/sh ./libtool --tag=CC --mode=compile powerpc64-unknown-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I./include -I./../include -DDBUG_OFF -DDBUG_OFF -O2 -pipe -mcpu=power5 -mtune=native -DHAVE_ERRNO_AS_DEFINE=1 -fno-strict-aliasing -DDEBUG_OFF -DUNIV_LINUX -MT buf0buf.lo -MD -MP -MF .deps/buf0buf.Tpo -c -o buf0buf.lo `test -f 'buf/buf0buf.c' || echo './'`buf/buf0buf.c libtool: compile: powerpc64-unknown-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I./include -I./../include -DDBUG_OFF -DDBUG_OFF -O2 -pipe -mcpu=power5 -mtune=native -DHAVE_ERRNO_AS_DEFINE=1 -fno-strict-aliasing -DDEBUG_OFF -DUNIV_LINUX -MT buf0buf.lo -MD -MP -MF .deps/buf0buf.Tpo -c buf/buf0buf.c -fPIC -DPIC -o .libs/buf0buf.o mv -f .deps/btr0cur.Tpo .deps/btr0cur.Plo /bin/sh ./libtool --tag=CC --mode=compile powerpc64-unknown-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I./include -I./../include -DDBUG_OFF -DDBUG_OFF -O2 -pipe -mcpu=power5 -mtune=native -DHAVE_ERRNO_AS_DEFINE=1 -fno-strict-aliasing -DDEBUG_OFF -DUNIV_LINUX -MT buf0flu.lo -MD -MP -MF .deps/buf0flu.Tpo -c -o buf0flu.lo `test -f 'buf/buf0flu.c' || echo './'`buf/buf0flu.c libtool: compile: powerpc64-unknown-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I./include -I./../include -DDBUG_OFF -DDBUG_OFF -O2 -pipe -mcpu=power5 -mtune=native -DHAVE_ERRNO_AS_DEFINE=1 -fno-strict-aliasing -DDEBUG_OFF -DUNIV_LINUX -MT buf0flu.lo -MD -MP -MF .deps/buf0flu.Tpo -c buf/buf0flu.c -fPIC -DPIC -o .libs/buf0flu.o mv -f .deps/btr0sea.Tpo .deps/btr0sea.Plo /bin/sh ./libtool --tag=CC --mode=compile powerpc64-unknown-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I./include -I./../include -DDBUG_OFF -DDBUG_OFF -O2 -pipe -mcpu=power5 -mtune=native -DHAVE_ERRNO_AS_DEFINE=1 -fno-strict-aliasing -DDEBUG_OFF -DUNIV_LINUX -MT buf0lru.lo -MD -MP -MF .deps/buf0lru.Tpo -c -o buf0lru.lo `test -f 'buf/buf0lru.c' || echo './'`buf/buf0lru.c libtool: compile: powerpc64-unknown-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I./include -I./../include -DDBUG_OFF -DDBUG_OFF -O2 -pipe -mcpu=power5 -mtune=native -DHAVE_ERRNO_AS_DEFINE=1 -fno-strict-aliasing -DDEBUG_OFF -DUNIV_LINUX -MT buf0lru.lo -MD -MP -MF .deps/buf0lru.Tpo -c buf/buf0lru.c -fPIC -DPIC -o .libs/buf0lru.o libtool: compile: powerpc64-unknown-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I./include -I./../include -DDBUG_OFF -DDBUG_OFF -O2 -pipe -mcpu=power5 -mtune=native -DHAVE_ERRNO_AS_DEFINE=1 -fno-strict-aliasing -DDEBUG_OFF -DUNIV_LINUX -MT buf0flu.lo -MD -MP -MF .deps/buf0flu.Tpo -c buf/buf0flu.c -o buf0flu.o >/dev/null 2>&1 buf/buf0buf.c: In function '_increment_page_get_statistics': buf/buf0buf.c:1134: warning: format '%lu' expects type 'long unsigned int', but argument 4 has type 'int' buf/buf0buf.c:1136: warning: format '%lu' expects type 'long unsigned int', but argument 4 has type 'int' buf/buf0buf.c: In function 'buf_page_get_gen': buf/buf0buf.c:1393: error: insn does not satisfy its constraints: (insn 1354 1353 1355 120 ./include/sync0rw.ic:440 (set (reg:DI 6 6) (plus:DI (reg:DI 0 0 [orig:157 D.23448 ] [157]) (const_int 1048576 [0x100000]))) 80 {*adddi3_internal1} (nil)) buf/buf0buf.c:1393: internal compiler error: in copyprop_hardreg_forward_1, at regrename.c:1601 Please submit a full bug report, with preprocessed source if appropriate. See <http://bugs.gentoo.org/> for instructions. make[3]: *** [buf0buf.lo] Error 1 make[3]: *** Waiting for unfinished jobs.... libtool: compile: powerpc64-unknown-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I./include -I./../include -DDBUG_OFF -DDBUG_OFF -O2 -pipe -mcpu=power5 -mtune=native -DHAVE_ERRNO_AS_DEFINE=1 -fno-strict-aliasing -DDEBUG_OFF -DUNIV_LINUX -MT buf0lru.lo -MD -MP -MF .deps/buf0lru.Tpo -c buf/buf0lru.c -o buf0lru.o >/dev/null 2>&1 mv -f .deps/buf0flu.Tpo .deps/buf0flu.Plo mv -f .deps/buf0lru.Tpo .deps/buf0lru.Plo make[3]: Leaving directory `/var/tmp/portage/dev-db/mysql-5.0.83/work/mysql/innobase' make[2]: *** [all] Error 2 make[2]: Leaving directory `/var/tmp/portage/dev-db/mysql-5.0.83/work/mysql/innobase' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/var/tmp/portage/dev-db/mysql-5.0.83/work/mysql' make: *** [all] Error 2 * ERROR: dev-db/mysql-5.0.83 failed: * emake failed * * Call stack: * ebuild.sh, line 54: Called src_compile * environment, line 4397: Called mysql_src_compile * environment, line 3857: Called die * The specific snippet of code: * emake || die "emake failed"; * * If you need support, post the output of 'emerge --info =dev-db/mysql-5.0.83', * the complete build log and the output of 'emerge -pqv =dev-db/mysql-5.0.83'. * The complete build log is located at '/var/tmp/portage/dev-db/mysql-5.0.83/temp/build.log'. * The ebuild environment file is located at '/var/tmp/portage/dev-db/mysql-5.0.83/temp/environment'. * S: '/var/tmp/portage/dev-db/mysql-5.0.83/work/mysql' >>> Failed to emerge dev-db/mysql-5.0.83, Log file: >>> '/var/tmp/portage/dev-db/mysql-5.0.83/temp/build.log' * Messages for package dev-db/mysql-5.0.83: * Berkeley DB support is deprecated and will be removed in future versions! * MySQL MY_DATADIR is /var/lib/mysql * MySQL datadir found in /var/lib/mysql * A new one will not be created. * Messages for package dev-db/mysql-5.0.83: * Berkeley DB support is deprecated and will be removed in future versions! * MySQL MY_DATADIR is /var/lib/mysql * MySQL datadir found in /var/lib/mysql * A new one will not be created. * Berkeley DB support was disabled due to build failures * on multiple arches, go to a version earlier than 5.0.60 * if you want it again. Gentoo bug #224067. * ERROR: dev-db/mysql-5.0.83 failed: * emake failed * * Call stack: * ebuild.sh, line 54: Called src_compile * environment, line 4397: Called mysql_src_compile * environment, line 3857: Called die * The specific snippet of code: * emake || die "emake failed"; * * If you need support, post the output of 'emerge --info =dev-db/mysql-5.0.83', * the complete build log and the output of 'emerge -pqv =dev-db/mysql-5.0.83'. * The complete build log is located at '/var/tmp/portage/dev-db/mysql-5.0.83/temp/build.log'. * The ebuild environment file is located at '/var/tmp/portage/dev-db/mysql-5.0.83/temp/environment'. * S: '/var/tmp/portage/dev-db/mysql-5.0.83/work/mysql' Portage 2.1.8.3 (default/linux/powerpc/ppc64/10.0/64bit-userland, gcc-4.3.4, glibc-2.10.1-r1, 2.6.32.8-vs2.3.0.36.29.1 ppc64) ================================================================= System uname: Linux-2.6.32.8-vs2.3.0.36.29.1-ppc64-POWER5_-gr-with-gentoo-2.0.1 Timestamp of tree: Fri, 30 Apr 2010 19:30:01 +0000 ccache version 2.4 [enabled] app-shells/bash: 4.0_p37 dev-lang/python: 2.6.4 dev-util/ccache: 2.4-r7 sys-apps/baselayout: 2.0.1 sys-apps/openrc: 0.6.0-r1 sys-apps/sandbox: 1.6-r2 sys-devel/autoconf: 2.63-r1 sys-devel/automake: 1.6.3, 1.9.6-r2, 1.10.3 sys-devel/binutils: 2.19.1-r1 sys-devel/gcc: 4.3.4 sys-devel/gcc-config: 1.4.1 sys-devel/libtool: 2.2.6b virtual/os-headers: 2.6.30-r1 ACCEPT_KEYWORDS="ppc64" ACCEPT_LICENSE="* -@EULA" CBUILD="powerpc64-unknown-linux-gnu" CFLAGS="-O2 -pipe -mcpu=power5 -mtune=native" CHOST="powerpc64-unknown-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/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" CXXFLAGS="-O2 -pipe -mcpu=power5 -mtune=native" DISTDIR="/usr/portage/distfiles" FEATURES="assume-digests buildpkg ccache distlocks fixpackages metadata-transfer news parallel-fetch protect-owned sandbox sfperms strict unmerge-logs unmerge-orphans userfetch userpriv usersandbox" GENTOO_MIRRORS="http://distfiles.gentoo.org" LANG="C" LC_ALL="" LDFLAGS="-Wl,-O1" LINGUAS="ru 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/layman/sunrise /usr/local/layman/vps /usr/local/layman/zugaina /usr/local/layman/xen /usr/local/layman/vmware /usr/local/layman/kvm /usr/local/layman/jokey /usr/local/layman/webapps-experimental /usr/local/layman/voip /usr/local/layman/powerpc /usr/local/layman/sabayon /usr/local/layman/hardened-development /usr/local/layman/jmbsvicetto /usr/local/layman/wschlich-testing /usr/local/portage" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="7zip acl admin agent aio altivec apache2 apm bash-completion bcmath berkdb bzip2 caps cgi charconv cli coverpage cracklib crypt ctype curl device-mapper dri exif exim exiscan exiscan-acl expat extras fastcgi filter fontconfig fortran ftp gd gdbm gif gnutls gpg gpgme gpm graphviz gs hash ibm iconv icu idn imagemagick imap ithreads jabber jpeg json libffi logrotate lvm lzma lzo metalink mime mimencode mod_muc mod_pubsub modperl modules mpi mudflap multipath mysql mysqli ncurses nls nptl nptlonly openct openmp pam pcntl pcre pcsc-lite perl php png pop pop3d posix ppc64 pppd pth python quota quotas readline reflection session sieve slang smtp sni sockets spl sqlite sqlite3 ssl suhosin svg sysfs tcpd threads threadsonly tiff tokenizer tools truetype unicode unzip vhosts vim vim-syntax virtual virtual-users web webinstall wmf xattr xft xml xorg xsl xslt xulrunner zip zlib" 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 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="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="ru en" RUBY_TARGETS="ruby18" USERLAND="GNU" 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, FFLAGS, INSTALL_MASK, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Your GCC looks broken, not a MySQL problem. buf/buf0buf.c:1393: error: insn does not satisfy its constraints: (insn 1354 1353 1355 120 ./include/sync0rw.ic:440 (set (reg:DI 6 6) (plus:DI (reg:DI 0 0 [orig:157 D.23448 ] [157]) (const_int 1048576 [0x100000]))) 80 {*adddi3_internal1} (nil)) buf/buf0buf.c:1393: internal compiler error: in copyprop_hardreg_forward_1, at regrename.c:1601 Please submit a full bug report, with preprocessed source if appropriate. See <http://bugs.gentoo.org/> for instructions. make[3]: *** [buf0buf.lo] Error 1 make[3]: *** Waiting for unfinished jobs....
like the output says, please post the preprocessed source as an attachment. go into the build dir, and run: powerpc64-unknown-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I./include -I./../include -DDBUG_OFF -DDBUG_OFF -O2 -pipe -mcpu=power5 -mtune=native -DHAVE_ERRNO_AS_DEFINE=1 -fno-strict-aliasing -DDEBUG_OFF -DUNIV_LINUX -c buf/buf0buf.c -fPIC -DPIC if that fails, replace the -c with -E and post the resulting output
Created attachment 230385 [details] source Cource code failed
Created attachment 230387 [details] build log resulting output
Created attachment 230389 [details] build log with -E option with -E and posted the resulting output cd /var/tmp/portage/dev-db/mysql-5.0.83/work/mysql/innobase LANG=C powerpc64-unknown-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I./include -I./../include -DDBUG_OFF -DDBUG_OFF -O2 -pipe -mcpu=power5 -mtune=native -DHAVE_ERRNO_AS_DEFINE=1 -fno-strict-aliasing -DDEBUG_OFF -DUNIV_LINUX -E buf/buf0buf.c -fPIC -DPIC > /root/build-E.log 2>&1
thanks, i can reproduce with that file and my ppc64 cross-compiler and gcc-4.4.3. seems you just need -O2 and no other flag.
reduced test case which we can push upstream if a PR isnt already open ... foo() { volatile long int lock; retry: if (__sync_fetch_and_add(&lock, 0x00100000)) goto retry; }
(In reply to comment #6) > thanks, i can reproduce with that file and my ppc64 cross-compiler and > gcc-4.4.3. seems you just need -O2 and no other flag. > This is now optimization?! I has left only -O2 and error former exists: libtool: compile: powerpc64-unknown-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I./include -I./../include -DDBUG_OFF -DDBUG_OFF -O2 -DHAVE_ERRNO_AS_DEFINE=1 -fno-strict-aliasing -DDEBUG_OFF -DUNIV_LINUX -MT btr0pcur.lo -MD -MP -MF .deps/btr0pcur.Tpo -c btr/btr0pcur.c -o btr0pcur.o >/dev/null 2>&1 buf/buf0buf.c: In function '_increment_page_get_statistics': buf/buf0buf.c:1134: warning: format '%lu' expects type 'long unsigned int', but argument 4 has type 'int' buf/buf0buf.c:1136: warning: format '%lu' expects type 'long unsigned int', but argument 4 has type 'int' buf/buf0buf.c: In function 'buf_page_get_gen': buf/buf0buf.c:1393: error: insn does not satisfy its constraints: (insn 1381 1380 1382 120 ./include/sync0rw.ic:440 (set (reg:DI 6 6) (plus:DI (reg:DI 0 0 [orig:157 D.23486 ] [157]) (const_int 1048576 [0x100000]))) 80 {*adddi3_internal1} (nil)) buf/buf0buf.c:1393: internal compiler error: in copyprop_hardreg_forward_1, at regrename.c:1601 Please submit a full bug report, with preprocessed source if appropriate. See <http://bugs.gentoo.org/> for instructions. make[3]: *** [buf0buf.lo] Error 1 make[3]: *** Waiting for unfinished jobs.... libtool: compile: powerpc64-unknown-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I./include -I./../include -DDBUG_OFF -DDBUG_OFF -O2 -DHAVE_ERRNO_AS_DEFINE=1 -fno-strict-aliasing -DDEBUG_OFF -DUNIV_LINUX -MT btr0sea.lo -MD -MP -MF .deps/btr0sea.Tpo -c btr/btr0sea.c -o btr0sea.o >/dev/null 2>&1 mv -f .deps/btr0pcur.Tpo .deps/btr0pcur.Plo libtool: compile: powerpc64-unknown-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I./include -I./../include -DDBUG_OFF -DDBUG_OFF -O2 -DHAVE_ERRNO_AS_DEFINE=1 -fno-strict-aliasing -DDEBUG_OFF -DUNIV_LINUX -MT btr0btr.lo -MD -MP -MF .deps/btr0btr.Tpo -c btr/btr0btr.c -o btr0btr.o >/dev/null 2>&1 libtool: compile: powerpc64-unknown-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I./include -I./../include -DDBUG_OFF -DDBUG_OFF -O2 -DHAVE_ERRNO_AS_DEFINE=1 -fno-strict-aliasing -DDEBUG_OFF -DUNIV_LINUX -MT btr0cur.lo -MD -MP -MF .deps/btr0cur.Tpo -c btr/btr0cur.c -o btr0cur.o >/dev/null 2>&1 mv -f .deps/btr0sea.Tpo .deps/btr0sea.Plo mv -f .deps/btr0btr.Tpo .deps/btr0btr.Plo mv -f .deps/btr0cur.Tpo .deps/btr0cur.Plo make[3]: Leaving directory `/var/tmp/portage/dev-db/mysql-5.0.83/work/mysql/innobase' make[2]: *** [all] Error 2 make[2]: Leaving directory `/var/tmp/portage/dev-db/mysql-5.0.83/work/mysql/innobase' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/var/tmp/portage/dev-db/mysql-5.0.83/work/mysql' make: *** [all] Error 2 * ERROR: dev-db/mysql-5.0.83 failed: * emake failed * * Call stack: * ebuild.sh, line 54: Called src_compile * environment, line 4398: Called mysql_src_compile * environment, line 3858: Called die * The specific snippet of code: * emake || die "emake failed"; * * If you need support, post the output of 'emerge --info =dev-db/mysql-5.0.83', * the complete build log and the output of 'emerge -pqv =dev-db/mysql-5.0.83'. * The complete build log is located at '/var/tmp/portage/dev-db/mysql-5.0.83/temp/build.log'. * The ebuild environment file is located at '/var/tmp/portage/dev-db/mysql-5.0.83/temp/environment'. * S: '/var/tmp/portage/dev-db/mysql-5.0.83/work/mysql' >>> Failed to emerge dev-db/mysql-5.0.83, Log file:
i have no idea what you're talking about. there's nothing left for you to do here.
there are a couple PR's that look related: http://gcc.gnu.org/PR39685 http://gcc.gnu.org/PR43267
This bug only for 5.0.83 version. I unmask =dev-db/mysql-5.0.90-r2 stable for other arch's and its compiles OK. Request stable dev-db/mysql-5.0.90-r2 for ppc64 or mask dev-db/mysql-5.0.83
*** Bug 319315 has been marked as a duplicate of this bug. ***
Since dev-db/mysql-5.0.91 is now stable on ppc64, do we need to keep this bug open?
(In reply to comment #13) > Since dev-db/mysql-5.0.91 is now stable on ppc64, do we need to keep this bug > open? No need.
The GCC bug is still present.
Is 4.5+ affected? If not then let's close this.
(In reply to Ryan Hill from comment #16) > Is 4.5+ affected? If not then let's close this. Let's assume 4.9 and later is not affected. If it is, please reopen with a corresponding log.