Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 322303 - dev-lang/php-5.2.13 fails with dev-libs/gmp-5*
Summary: dev-lang/php-5.2.13 fails with dev-libs/gmp-5*
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: PHP Bugs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-05-31 21:07 UTC by Matt
Modified: 2010-07-04 22:40 UTC (History)
2 users (show)

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


Attachments
build-log of dev-lang/php-5.2.13 (dev-lang:php-5.2.13:20100608-123522.log,423.78 KB, text/plain)
2010-06-08 12:42 UTC, Matt
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Matt 2010-05-31 21:07:57 UTC
gcc is 4.5.0-r3 from hardened-dev overlay but it also fails with regular gcc 4.5:
gcc -v
Using built-in specs.
COLLECT_GCC=/usr/x86_64-pc-linux-gnu/gcc-bin/4.5.0/gcc
COLLECT_LTO_WRAPPER=/usr/libexec/gcc/x86_64-pc-linux-gnu/4.5.0/lto-wrapper
Target: x86_64-pc-linux-gnu
Configured with: /var/tmp/portage/sys-devel/gcc-4.5.0-r3/work/gcc-4.5.0/configure --prefix=/usr --bindir=/usr/x86_64-pc-linux-gnu/gcc-bin/4.5.0 --includedir=/usr/lib/gcc/x86_64-pc-linux-gnu/4.5.0/include --datadir=/usr/share/gcc-data/x86_64-pc-linux-gnu/4.5.0 --mandir=/usr/share/gcc-data/x86_64-pc-linux-gnu/4.5.0/man --infodir=/usr/share/gcc-data/x86_64-pc-linux-gnu/4.5.0/info --with-gxx-include-dir=/usr/lib/gcc/x86_64-pc-linux-gnu/4.5.0/include/g++-v4 --host=x86_64-pc-linux-gnu --build=x86_64-pc-linux-gnu --disable-altivec --disable-fixed-point --with-ppl --with-cloog --enable-lto --enable-nls --without-included-gettext --with-system-zlib --disable-checking --disable-werror --enable-secureplt --enable-multilib --enable-libmudflap --disable-libssp --enable-esp --enable-libgomp --enable-cld --with-python-dir=/share/gcc-data/x86_64-pc-linux-gnu/4.5.0/python --enable-java-awt=gtk --enable-objc-gc --enable-languages=c,c++,java,objc,obj-c++,fortran --enable-shared --enable-threads=posix --enable-__cxa_atexit --enable-clocale=gnu --with-bugurl=http://bugs.gentoo.org/ --with-pkgversion='Gentoo Hardened 4.5.0-r3 p1.1, pie-0.4.4'
Thread model: posix
gcc version 4.5.0 (Gentoo Hardened 4.5.0-r3 p1.1, pie-0.4.4)


CFLAGS="-O2 -march=core2 -mtune=core2 -mcx16 -msahf -pipe --param l1-cache-size=32 --param l1-cache-line-size=64 --param l2-cache-size=256 -msse -msse2 -msse3 -mssse3 -msse4 -msse4.1 -msse4.2 -mpopcnt -fno-ident -fno-strict-overflow -mno-push-args -maccumulate-outgoing-args -mno-align-stringops -minline-stringops-dynamically" CXXFLAGS="${CFLAGS}" emerge -1 dev-lang/php

in essence it's CFLAGS="-O2 -pipe -march=native -fno-ident -fno-strict-overflow -mno-push-args -maccumulate-outgoing-args -mno-align-stringops -minline-stringops-dynamically" CXXFLAGS="${CFLAGS}" emerge -1 dev-lang/php


another occurrence of this type of error can be found at the bugtracker of php:

http://bugs.php.net/bug.php?id=50990&edit=1
Comment 1 Matt 2010-05-31 21:09:10 UTC
/bin/sh /var/tmp/portage/dev-lang/php-5.2.13/work/php-5.2.13/libtool --silent --preserve-dup-deps --mode=compile /var/tmp/portage/dev-lang/php-5.2.13/work/php-5.2.13/meta_ccld  -DNOT_RUBY -DHAVE_CONFIG_H -Iext/mbstring/ -I/var/tmp/portage/dev-lang/php-5.2.13/work/php-5.2.13/ext/mbstring/ -DPHP_ATOM_INC -I/var/tmp/portage/dev-lang/php-5.2.13/work/php-5.2.13/include -I/var/tmp/portage/dev-lang/php-5.2.13/work/php-5.2.13/main -I/var/tmp/portage/dev-lang/php-5.2.13/work/php-5.2.13 -I/var/tmp/portage/dev-lang/php-5.2.13/work/php-5.2.13/ext/date/lib -I/usr/include/libxml2 -I/usr/include/freetype2 -I/var/tmp/portage/dev-lang/php-5.2.13/work/php-5.2.13/ext/mbstring/oniguruma -I/var/tmp/portage/dev-lang/php-5.2.13/work/php-5.2.13/ext/mbstring/libmbfl -I/var/tmp/portage/dev-lang/php-5.2.13/work/php-5.2.13/ext/mbstring/libmbfl/mbfl -I/usr/include/mysql -I/usr/include/postgresql/libpq-4 -I/usr/include/pspell -I/var/tmp/portage/dev-lang/php-5.2.13/work/php-5.2.13/TSRM -I/var/tmp/portage/dev-lang/php-5.2.13/work/php-5.2.13/Zend  -D_REENTRANT  -I/usr/include -O2 -march=core2 -mtune=core2 -mcx16 -msahf -pipe --param l1-cache-size=32 --param l1-cache-line-size=64 --param l2-cache-size=256 -msse -msse2 -msse3 -mssse3 -msse4 -msse4.1 -msse4.2 -mpopcnt -fno-ident -fno-strict-overflow -mno-push-args -maccumulate-outgoing-args -mno-align-stringops -minline-stringops-dynamically -D_GNU_SOURCE -pthread -DZTS  -prefer-pic -c /var/tmp/portage/dev-lang/php-5.2.13/work/php-5.2.13/ext/mbstring/oniguruma/regcomp.c -o ext/mbstring/oniguruma/regcomp.lo 
/bin/sh /var/tmp/portage/dev-lang/php-5.2.13/work/php-5.2.13/libtool --silent --preserve-dup-deps --mode=compile /var/tmp/portage/dev-lang/php-5.2.13/work/php-5.2.13/meta_ccld  -DNOT_RUBY -DHAVE_CONFIG_H -Iext/mbstring/ -I/var/tmp/portage/dev-lang/php-5.2.13/work/php-5.2.13/ext/mbstring/ -DPHP_ATOM_INC -I/var/tmp/portage/dev-lang/php-5.2.13/work/php-5.2.13/include -I/var/tmp/portage/dev-lang/php-5.2.13/work/php-5.2.13/main -I/var/tmp/portage/dev-lang/php-5.2.13/work/php-5.2.13 -I/var/tmp/portage/dev-lang/php-5.2.13/work/php-5.2.13/ext/date/lib -I/usr/include/libxml2 -I/usr/include/freetype2 -I/var/tmp/portage/dev-lang/php-5.2.13/work/php-5.2.13/ext/mbstring/oniguruma -I/var/tmp/portage/dev-lang/php-5.2.13/work/php-5.2.13/ext/mbstring/libmbfl -I/var/tmp/portage/dev-lang/php-5.2.13/work/php-5.2.13/ext/mbstring/libmbfl/mbfl -I/usr/include/mysql -I/usr/include/postgresql/libpq-4 -I/usr/include/pspell -I/var/tmp/portage/dev-lang/php-5.2.13/work/php-5.2.13/TSRM -I/var/tmp/portage/dev-lang/php-5.2.13/work/php-5.2.13/Zend  -D_REENTRANT  -I/usr/include -O2 -march=core2 -mtune=core2 -mcx16 -msahf -pipe --param l1-cache-size=32 --param l1-cache-line-size=64 --param l2-cache-size=256 -msse -msse2 -msse3 -mssse3 -msse4 -msse4.1 -msse4.2 -mpopcnt -fno-ident -fno-strict-overflow -mno-push-args -maccumulate-outgoing-args -mno-align-stringops -minline-stringops-dynamically -D_GNU_SOURCE -pthread -DZTS  -prefer-pic -c /var/tmp/portage/dev-lang/php-5.2.13/work/php-5.2.13/ext/mbstring/oniguruma/regerror.c -o ext/mbstring/oniguruma/regerror.lo 
/var/tmp/portage/dev-lang/php-5.2.13/work/php-5.2.13/ext/gmp/gmp.c: In function 'zif_gmp_random':
/var/tmp/portage/dev-lang/php-5.2.13/work/php-5.2.13/ext/gmp/gmp.c:1399:69: error: '__GMP_BITS_PER_MP_LIMB' undeclared (first use in this function)
/var/tmp/portage/dev-lang/php-5.2.13/work/php-5.2.13/ext/gmp/gmp.c:1399:69: note: each undeclared identifier is reported only once for each function it appears in
make: *** [ext/gmp/gmp.lo] Error 1
make: *** Waiting for unfinished jobs....
 [31;01m*[0m ERROR: dev-lang/php-5.2.13 failed:
 [31;01m*[0m   make failed
 [31;01m*[0m 
 [31;01m*[0m Call stack:
 [31;01m*[0m     ebuild.sh, line   48:  Called src_compile
 [31;01m*[0m   environment, line 4988:  Called src_compile_fastbuild
 [31;01m*[0m   environment, line 5040:  Called php5_2-sapi_src_compile
 [31;01m*[0m   environment, line 4006:  Called die
 [31;01m*[0m The specific snippet of code:
 [31;01m*[0m       emake || die "make failed"
 [31;01m*[0m 
 [31;01m*[0m If you need support, post the output of 'emerge --info =dev-lang/php-5.2.13',
 [31;01m*[0m the complete build log and the output of 'emerge -pqv =dev-lang/php-5.2.13'.
 [31;01m*[0m The complete build log is located at '/var/log/portage/dev-lang:php-5.2.13:20100531-205548.log'.
 [31;01m*[0m The ebuild environment file is located at '/var/tmp/portage/dev-lang/php-5.2.13/temp/environment'.
 [31;01m*[0m S: '/var/tmp/portage/dev-lang/php-5.2.13/work/php-5.2.13'
Comment 2 Michael Weber (RETIRED) gentoo-dev 2010-06-07 11:58:10 UTC
hi Mat, 

can you please attach one set of build.log and environement file and comment one `emerge --info` for the maintainers to get the complete view?

Thanks, Michael
Comment 3 Matt 2010-06-08 12:40:52 UTC
Portage 2.2_rc67 (default/linux/amd64/10.0/desktop, gcc-4.5.0, glibc-2.11.1-r0, 2.6.34-zen0_gcc45_esp x86_64)
=================================================================
System uname: Linux-2.6.34-zen0_gcc45_esp-x86_64-Intel-R-_Core-TM-_i7_CPU_860_@_2.80GHz-with-gentoo-2.0.1
Timestamp of tree: Sat, 05 Jun 2010 16:15:01 +0000
app-shells/bash:     4.1_p7
dev-java/java-config: 2.1.11
dev-lang/python:     2.6.5-r2, 3.1.2-r3
dev-python/pycrypto: 2.1.0
dev-util/cmake:      2.8.1-r2
sys-apps/baselayout: 2.0.1
sys-apps/openrc:     0.6.1-r1
sys-apps/sandbox:    2.2
sys-devel/autoconf:  2.13, 2.65
sys-devel/automake:  1.4_p6-r1, 1.5-r1, 1.6.3-r1, 1.7.9-r2, 1.8.5-r4, 1.9.6-r3, 1.10.3, 1.11.1
sys-devel/binutils:  2.18-r3, 2.20.1, 2.20.51.0.8, 2.20.51.0.9
sys-devel/gcc:       4.3.4, 4.4.3-r3, 4.4.4-r2, 4.5.0-r3
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.7b
virtual/os-headers:  2.6.33
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="* -@EULA skype-eula PUEL dlj-1.1 sun-bcla-java-vm googleearth"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -march=core2 -mtune=core2 -mcx16 -msahf -pipe --param l1-cache-size=32 --param l1-cache-line-size=64 --param l2-cache-size=256 -msse -msse2 -msse3 -mssse3 -msse4 -msse4.1 -msse4.2 -mpopcnt -fno-ident -fno-strict-overflow -mno-push-args -maccumulate-outgoing-args -mno-align-stringops -minline-stringops-dynamically"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/X11/xkb /usr/share/config /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/X11/xorg.conf /etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /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 /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c /usr/X11R6/bin/startx"
CXXFLAGS="-O2 -march=core2 -mtune=core2 -mcx16 -msahf -pipe --param l1-cache-size=32 --param l1-cache-line-size=64 --param l2-cache-size=256 -msse -msse2 -msse3 -mssse3 -msse4 -msse4.1 -msse4.2 -mpopcnt -fno-ident -fno-strict-overflow -mno-push-args -maccumulate-outgoing-args -mno-align-stringops -minline-stringops-dynamically"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--keep-going"
FEATURES="assume-digests distlocks fixpackages metadata-transfer news parallel-fetch preserve-libs protect-owned sandbox sfperms spinner strict unmerge-logs unmerge-orphans userfetch usersandbox"
GENTOO_MIRRORS="ftp://ftp.uni-erlangen.de/pub/mirrors/gentoo  ftp://ftp.join.uni-muenster.de/pub/linux/distributions/gentoo ftp://ftp.join.uni-muenster.de/pub/linux/distributions/gentoo"
LANG="en_US.utf8"
LDFLAGS="-Wl,-O1 -Wl,--hash-style=both -Wl,--sort-common -Wl,--enable-new-dtags -Wl,--relax -Wl,-z,now -Wl,-z,relro -Wl,-z,combreloc -Wl,--as-needed -Wl,-z,common-page-size=16384"
LINGUAS="de en"
MAKEOPTS="-j9"
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/portage/layman/openoffice-geki /usr/local/portage/layman/kist-overlay /usr/local/portage/layman/piczu /usr/local/portage/layman/jasiu /usr/local/portage/layman/gentoo-quebec /usr/gentoo/overlays /usr/gentoo/overlays/kde-testing /usr/gentoo/overlays/kde-sunset /usr/gentoo/overlays/qting-edge /usr/gentoo/overlays/desktop-effects /usr/gentoo/overlays/java /usr/gentoo/overlays/java-experimental /usr/gentoo/overlays/gnome /usr/gentoo/overlays/sunrise /usr/gentoo/overlays/voip /usr/gentoo/overlays/jokey /usr/gentoo/overlays/virtualbox /usr/gentoo/overlays/vmware /usr/gentoo/overlays/suka /usr/gentoo/overlays/hardened-dev"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="X a52 aac aalib acl acpi akonadi alsa amd64 aspell audio avahi berkdb bluetooth branding bsf bzip2 cairo cdda cddb cdr cjk cleartype cli consolekit contrast cracklib crypt cups curl cxx dbus device-mapper djvu dmraid dri dts dvd dvdr dvi ebook eds emboss encode exif extensions extras faac faad fam fat fax fbcon ffmpeg fftw firefox flac fontconfig fortran fuse gd gdbm gdu gif gimp glade gmp gnome gnome-vfs gnutls gpm gsf gstreamer gtk guile hal handbook hardened hashstyle hfs html iconv id3tag idn imagemagick imlib inotify ipv6 ithreads java javascript jfs jpeg jpeg2k kde kdehiddenvisibility kipi lame latex lcms ldap libnotify lm_sensors logrotate lzma lzo mad mdadm mikmod mjpeg mmap mmx mng mode-paranoid modplug modules mp3 mp4 mpeg mudflap multilib multislot musepack musicbrainz mysql mysqli ncurses network networking networkmanager nis nls nptl nptlonly nss ntfs ogg openexr opengl openmp pam pango pcre pdf perl pg-intdatetime phonon pic pie pkcs11 plasma pmu png policykit postproc postscript ppds pppd python qimageblitz qscintilla qt3support qt4 quicktime qwt raster readline reflection reiser4 reiserfs resolvconf samba sasl scanner sdl semantic-desktop session shout slang smp sndfile sound soup spell spl sqlite sse sse2 sse3 sse4 ssl ssse3 startup-notification svg sysfs t1lib tcl tcpd theora threads thumbnail tiff tk toolbar truetype twolame unicode urandom usb utils v4l v4l2 vcd video vorbis wav wavpack webkit wmf x264 xcb xcomposite xfs xft xinerama xml xmp xorg xulrunner xv xvid xvmc zip 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="alias autoindex auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_default authz_groupfile authz_host authz_owner authz_user authz_dbm cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info mime mime_magic negotiation setenvif speling status unique_id vhost_alias" APACHE2_MPMS="worker" CAMERAS="canon casio kodak konica minolta mustek panasonic polaroid ricoh samsung sonix sonydscf1 sonydscf55 soundvision toshiba" ELIBC="glibc" INPUT_DEVICES="keyboard mouse linuxinput ps2mouse serialmouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="de en" LIRC_DEVICES="asusdh" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="ati vesa vga radeon" 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, FFLAGS, INSTALL_MASK, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 4 Matt 2010-06-08 12:42:42 UTC
Created attachment 234523 [details]
build-log of dev-lang/php-5.2.13

I didn't find any build.log but I'm sure the log-file you're asking for is the one located in /var/log/portage
Comment 5 Matti Bickel (RETIRED) gentoo-dev 2010-06-22 21:56:54 UTC
Thanks for reporting this bug. Can you please try with somewhat less aggressive flags to help determine where the error actually occurs? Suggestion: start with "-O2 -mtune=native" and add flags until it breaks. That way it'll far be easier to reproduce here.
Comment 6 SpanKY gentoo-dev 2010-07-01 16:49:47 UTC
the ricer settings are a red herring.  php fails with gmp-5 irregardless.  the fix is trivial (just google for php and the missing define).
Comment 7 Matt 2010-07-01 17:05:41 UTC
(In reply to comment #6)
> the ricer settings are a red herring.  php fails with gmp-5 irregardless.  the
> fix is trivial (just google for php and the missing define).
> 

what's wrong with those ricer accusations, please ? 

when you issue:

gcc -Q --help=target  -march=native 

you'll see that most (if not all) of those are activated anyways by march=native
 
;)

the reason I set those explicitly was that gcc 4.5 in the beginning (before patchset 1.2) falsely set march to march=atom when using march=native

not it (march=native setting to march=core2 and other implicit flags) works - and yes it (php) is also failing for me when 

CFLAGS="-O2 -mtune=native -pipe" CXXFLAGS="${CFLAGS}"

is set - 

due to this gmp / ppl and cloog-ppl dependency I can't even use gcc-versions lower than 4.5 anymore (I tried 4.4) - which IMO sadly takes away Gentoo's advantage of multi-slot toolchain functionality to a certain degree
Comment 8 Matti Bickel (RETIRED) gentoo-dev 2010-07-04 12:26:39 UTC
Thanks for the hints. Our patchset now includes 011_all_gmp_bits_per_mp_limb.patch, which removes the #ifdef, as the php upstream bug states all installations support the used constant.

That said, I don't have any experience with gmp, so feel free to reopen and suggest alternatives.
Comment 9 Harald van Dijk (RETIRED) gentoo-dev 2010-07-04 21:19:46 UTC
Please don't re-use tarball names. All the mirrors carry the old one, and it will not be possible to download the new one for some time.
Comment 10 Harald van Dijk (RETIRED) gentoo-dev 2010-07-04 21:46:35 UTC
Actually, I checked the file in /space/distfiles-local/ and it's the old version; this won't be fixed automatically by waiting... so re-opening.
Comment 11 Matti Bickel (RETIRED) gentoo-dev 2010-07-04 22:40:53 UTC
I was doing this as long as php-5.3.2 was masked, but I did fail on the copy job.
Thanks for catching this. The ebuild is now using php-patchset-5.3.2-r1.tar.bz2, which I just uploaded to the distfiles-local.