* Mike Diehl <mdiehl@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
05-26-2011, 05:42 PM
Mike Diehl
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
On Thursday 26 May 2011 11:25:55 am Todd Goodman wrote:
> * Mike Diehl <mdiehl@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?
# 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.
05-26-2011, 07:40 PM
Todd Goodman
Can't emerge php-5.3.6
* Mike Diehl <mdiehl@diehlnet.com> [110526 13:40]:
> On Thursday 26 May 2011 11:25:55 am Todd Goodman wrote:
> > * Mike Diehl <mdiehl@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
05-26-2011, 07:40 PM
Mick
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 <mdiehl@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
05-26-2011, 08:02 PM
Alex Schuster
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 <mdiehl@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?