[gentoo-user] Can't emerge php-5.3.6
I'm trying to do an emerge -u world and I'm down to php and one other package that needs it. I've done emerge --sync several times. However, the php emerge fails: Generating phar.php /bin/sh: line 1: 11383 Segmentation fault ` if test -x /var/tmp/portage/dev-lang/php-5.3.6/work/sapis-build/cli/sapi/cli/php; then /var/tmp/portage/dev-lang/php-5.3.6/work/sapis-build/cli/build/shtool echo -n -- /var/tmp/portage/dev- lang/php-5.3.6/work/sapis-build/cli/sapi/cli/php -n; if test x != x; then /var/tmp/portage/dev-lang/php-5.3.6/work/sapis-build/cli/build/shtool echo -n -- -d extension_dir=/var/tmp/portage/dev-lang/php-5.3.6/work/sapis-build/cli/modules; for i in bz2 zlib phar; do if test -f /var/tmp/portage/dev-lang/php-5.3.6/work/sapis-build/cli/modules/$i.la; then . /var/tmp/portage/dev-lang/php-5.3.6/work/sapis-build/cli/modules/$i.la; /var/tmp/portage/dev-lang/php-5.3.6/work/sapis- build/cli/build/shtool echo -n -- -d extension=$dlname; fi; done; fi; else /var/tmp/portage/dev-lang/php-5.3.6/work/sapis-build/cli/build/shtool echo -n -- /var/tmp/portage/dev-lang/php-5.3.6/work/sapis-build/cli/sapi/cli/php; fi;` -d 'open_basedir=' -d 'output_buffering=0' -d 'memory_limit=-1' -d phar.readonly=0 -d 'safe_mode=0' /var/tmp/portage/dev-lang/php-5.3.6/work/sapis-build/cli/ext/phar/build_precommand.php ext/phar/phar.php make: *** [ext/phar/phar.php] Error 139 emake failed * ERROR: dev-lang/php-5.3.6 failed: * emake failed * * Call stack: * ebuild.sh, line 56: Called src_compile *environment, line 4620: Called eblit-run 'src_compile' 'v1' *environment, line 1797: Called eblit-php-src_compile * src_compile-v1.eblit, line 14: Called php_sapi_build 'cli' * src_compile-v1.eblit, line 23: Called die * The specific snippet of code: * emake || die emake failed Here is the result of emerge --info =dev-lang/php-5.3.6 Portage 2.1.9.25 (default/linux/x86/10.0, gcc-4.4.5, libc-0-r0, 2.6.32-gentoo-r7 i686) = System Settings = System uname: Linux-2.6.32-gentoo-r7-i686-Intel-R-_Xeon-TM-_CPU_2.40GHz-with-gentoo-2.0.2 Timestamp of tree: Thu, 26 May 2011 04:30:01 + app-shells/bash: 4.1_p9 dev-lang/python: 2.6.4-r1, 3.1.2-r3 dev-util/cmake: 2.8.1-r2 sys-apps/baselayout: 2.0.2 sys-apps/openrc: 0.8.2-r1 sys-apps/sandbox:1.6-r2 sys-devel/autoconf: 2.65-r1 sys-devel/automake: 1.11.1 sys-devel/binutils: 2.20.1-r1 sys-devel/gcc: 4.4.5 sys-devel/gcc-config: 1.4.1 sys-devel/libtool: 2.2.10 sys-devel/make: 3.81-r2 sys-kernel/linux-headers: 2.6.36.1 sys-libs/glibc: 2.10.1-r1 virtual/os-headers: 0 ACCEPT_KEYWORDS=x86 ACCEPT_LICENSE=* -@EULA CBUILD=i686-pc-linux-gnu CFLAGS=-O2 -march=i686 -pipe CHOST=i686-pc-linux-gnu CONFIG_PROTECT=/etc /usr/lib/fax /var/spool/fax/etc CONFIG_PROTECT_MASK=/etc/ca-certificates.conf /etc/env.d /etc/eselect/postgresql /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo CXXFLAGS=-O2 -march=i686 -pipe DISTDIR=/usr/portage/distfiles FEATURES=assume-digests binpkg-logs distlocks fixlafiles fixpackages news parallel-fetch protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch GENTOO_MIRRORS=http://distfiles.gentoo.org; LDFLAGS=-Wl,-O1 -Wl,--as-needed MAKEOPTS=-j5 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 SYNC=rsync://rsync.gentoo.org/gentoo-portage USE=acl apache2 berkdb bzip2 cgi cli cracklib crypt cups cxx dbi dri fam ffmpeg fortran gd gdbm gif gpm gsm iconv imap iodbc ipv6 jabber jpeg libwww mad maildir managesieve mbox modules mp3 mp4 mpeg mudflap mysql ncurses nls nptl nptlonly odbc ogg openmp pam pcre perl png postgres pppd python readline session sieve snmp sox speex sqlite3 sse sse2 ssl sysfs syslog tcpd unicode x86 xml xorg zlib ALSA_CARDS=ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 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 authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile
Re: [gentoo-user] Can't emerge php-5.3.6
* Mike Diehl mdi...@diehlnet.com [110526 13:15]: I'm trying to do an emerge -u world and I'm down to php and one other package that needs it. I've done emerge --sync several times. However, the php emerge fails: Generating phar.php /bin/sh: line 1: 11383 Segmentation fault ` if test -x /var/tmp/portage/dev-lang/php-5.3.6/work/sapis-build/cli/sapi/cli/php; then /var/tmp/portage/dev-lang/php-5.3.6/work/sapis-build/cli/build/shtool echo -n -- /var/tmp/portage/dev- [..] What's your sh linked to? (ls -l /bin/sh) What's the version of the package that provides it? Todd
Re: [gentoo-user] Can't emerge php-5.3.6
On Thursday 26 May 2011 11:25:55 am Todd Goodman wrote: * Mike Diehl mdi...@diehlnet.com [110526 13:15]: I'm trying to do an emerge -u world and I'm down to php and one other package that needs it. I've done emerge --sync several times. However, the php emerge fails: Generating phar.php /bin/sh: line 1: 11383 Segmentation fault ` if test -x /var/tmp/portage/dev-lang/php-5.3.6/work/sapis-build/cli/sapi/cli/php; then /var/tmp/portage/dev-lang/php-5.3.6/work/sapis-build/cli/build/shtool echo -n -- /var/tmp/portage/dev- [..] What's your sh linked to? (ls -l /bin/sh) lrwxrwxrwx 1 root root 4 May 25 08:24 /bin/sh - bash What's the version of the package that provides it? # emerge -s bash * app-shells/bash Latest version available: 4.1_p9 Latest version installed: 4.1_p9 Size of files: 6,457 kB Homepage: http://tiswww.case.edu/php/chet/bash/bashtop.html Description: The standard GNU Bourne again shell License: GPL-3 Todd -- Take care and have fun, Mike Diehl.
Re: [gentoo-user] Can't emerge php-5.3.6
On Thursday 26 May 2011 19:07:20 Mike Diehl wrote: On Thursday 26 May 2011 11:25:55 am Todd Goodman wrote: * Mike Diehl mdi...@diehlnet.com [110526 13:15]: I'm trying to do an emerge -u world and I'm down to php and one other package that needs it. I've done emerge --sync several times. However, the php emerge fails: === = Generating phar.php /bin/sh: line 1: 11383 Segmentation fault ` if test -x /var/tmp/portage/dev-lang/php-5.3.6/work/sapis-build/cli/sapi/cli/php ; then /var/tmp/portage/dev-lang/php-5.3.6/work/sapis-build/cli/build/shtool echo -n -- /var/tmp/portage/dev- [..] What's your sh linked to? (ls -l /bin/sh) lrwxrwxrwx 1 root root 4 May 25 08:24 /bin/sh - bash What's the version of the package that provides it? # emerge -s bash * app-shells/bash Latest version available: 4.1_p9 Latest version installed: 4.1_p9 Size of files: 6,457 kB Homepage: http://tiswww.case.edu/php/chet/bash/bashtop.html Description: The standard GNU Bourne again shell License: GPL-3 Not sure if this is your problem, but since my eye caught some .la files in your log I would first run: /usr/bin/lafilefixer --justfixit and then: revdep-rebuild -v -- --ask for good measure before trying again to emerge this package. -- Regards, Mick signature.asc Description: This is a digitally signed message part.
Re: [gentoo-user] Can't emerge php-5.3.6
Mick writes: On Thursday 26 May 2011 19:07:20 Mike Diehl wrote: On Thursday 26 May 2011 11:25:55 am Todd Goodman wrote: * Mike Diehl mdi...@diehlnet.com [110526 13:15]: = Generating phar.php /bin/sh: line 1: 11383 Segmentation fault ` if test -x /var/tmp/portage/dev-lang/php-5.3.6/work/sapis-build/cli/sapi/cli/php ; then /var/tmp/portage/dev-lang/php-5.3.6/work/sapis-build/cli/build/shtool echo -n -- /var/tmp/portage/dev- [...] Not sure if this is your problem, but since my eye caught some .la files in your log I would first run: /usr/bin/lafilefixer --justfixit and then: revdep-rebuild -v -- --ask for good measure before trying again to emerge this package. Those .la files are inside the build directory, so this will not help. The are sourced (. blabla.la), this defines some variables that are being echoed later, and all that goes into the file ext/phar/phar.php. I would change into the build directory and paste the whole 'if test -x /var/tmp/portage/...' stuff to the shell. Does the same error happen? If so, try to find the exact command that triggers it. Any errors when sourcing the .la file? Wonko
Re: [gentoo-user] Can't emerge php-5.3.6
* Mike Diehl mdi...@diehlnet.com [110526 13:40]: On Thursday 26 May 2011 11:25:55 am Todd Goodman wrote: * Mike Diehl mdi...@diehlnet.com [110526 13:15]: I'm trying to do an emerge -u world and I'm down to php and one other package that needs it. I've done emerge --sync several times. However, the php emerge fails: Generating phar.php /bin/sh: line 1: 11383 Segmentation fault ` if test -x /var/tmp/portage/dev-lang/php-5.3.6/work/sapis-build/cli/sapi/cli/php; then /var/tmp/portage/dev-lang/php-5.3.6/work/sapis-build/cli/build/shtool echo -n -- /var/tmp/portage/dev- [..] What's your sh linked to? (ls -l /bin/sh) lrwxrwxrwx 1 root root 4 May 25 08:24 /bin/sh - bash What's the version of the package that provides it? # emerge -s bash * app-shells/bash Latest version available: 4.1_p9 Latest version installed: 4.1_p9 Size of files: 6,457 kB Homepage: http://tiswww.case.edu/php/chet/bash/bashtop.html Description: The standard GNU Bourne again shell License: GPL-3 Todd -- Take care and have fun, Mike Diehl. Wow, that is one seriously ugly line. I'm able to build it OK (I'm running with php-5.3.6-r1 but built 5.3.6 with ebuild /usr/portage/dev-lang/php/php-5.3.6.ebuild compile) But I have bash-4.1_p10 and maybe our USE flags are different too. Something is crashing while trying to do that mega-line run of shtool. You could do the ebuild above so that you can then go into /var/tmp/portage/dev-lang/php-5.3.6/work/sapis-build/cli/build and see if you can run shtool with that huge line and see what crashes. Sorry, Todd