PHP on PPC little-endian? Conflicts w/ ncurses big-endian
Hi!
I'm building for PPC405 (using a new machine .conf that I'll upload when the board is released).
So far, everything has built and run successfully, but I just tried adding in PHP.
Every time it conflicts with libncurses:
Quoted 18 lines
NOTE: package php-5.2.6-r2: task
do_configure: started
ERROR: functiondo_configurefailed
ERROR: log data follows (/tmp/OE_temp-new/work/ppc405-linux/php-5.2.6-r2/temp/log.do_configure.26285) | automake (GNU automake) 1.9.3
<snip>| AUTOV is 1.9 | NOTE: Executing autoreconf --verbose --install --force --exclude=autopoint -I/tmp/OE_temp-new/staging/powerpc-linux/usr/share/aclocal-1.9 -I /tmp/OE_temp-new/staging/powerpc-linux/usr/share/aclocal | sh: error while loading shared libraries: /tmp/OE_temp-new/staging/powerpc-linux/usr/lib/libncurses.so.5: ELF file data encoding not little-endian | autoreconf: Entering directory `.' | autoreconf: configure.in: not using Gettext | autoreconf: running: aclocal -I /tmp/OE_temp-new/staging/powerpc-linux/usr/share/aclocal-1.9 -I /tmp/OE_temp-new/staging/powerpc-linux/usr/share/aclocal --force | acinclude.m4:1089: warning: underquoted definition of PHP_CHECK_SIZEOF | run info '(automake)Extending aclocal' | or see http://sources.redhat.com/automake/automake.html#Extending-aclocal | sh: error while loading shared libraries: /tmp/OE_temp-new/staging/powerpc-linux/usr/lib/libncurses.so.5: ELF file data encoding not little-endian | aclocal: autom4te failed with exit status: 127 | autoreconf: aclocal failed with exit status: 127 | FATAL: autoreconf execution failed.
Quoted 8 lines
NOTE: Task failed:
/tmp/OE_temp-new/work/ppc405-linux/php-5.2.6-r2/temp/log.do_configure.26285
NOTE: package php-5.2.6-r2: taskdo_configure: failed
ERROR: TaskFailed event exception, aborting
NOTE: package php-5.2.6: failed
ERROR: Build of/home/eliyahu/stuff/org.openembedded.dev/packages/php/php_5.2.6.bbdo_configurefailed
ERROR: Task 4 (/home/eliyahu/stuff/org.openembedded.dev/packages/php/php_5.2.6.bb,do_configure) failed
NOTE: Tasks Summary: Attempted 253 tasks of which 253 didn't need to be rerun and 1 failed.
ERROR: '/home/eliyahu/stuff/org.openembedded.dev/packages/php/php_5.2.6.bb' failed
At first I thought it was a problem with ncurses, and I tried rebuilding using older recipes and version of ncurses, but no luck. (And why does PHP need ncurses, anyway?)
But suddenly it hit me - this is the target version for ppc405, and libncurses.so.5 is CORRECTLY big-endian. The problem is that PHP (or at least autoreconf for PHP) wants little-endian.
Has no one built PHP recently for a big-endian platform? Besides the php-5.2.6-r2 in .dev, I also tried php-5.2.0-r1 from .stable and got the same thing.
TIA,
- Eliyahu
--
Eliyahu Skoczylas +972 (54) 214-1505
While <[email protected]> is temporarily down, please use <[email protected]>, instead.
FWIW, php-5.1.4-r2 from .stable does NOT have this problem. So it seems like something might have broken w/ big-endian PHP in transition from 5.1.4 to 5.2.0.
HTH,
- Eliyahu
--
Eliyahu Skoczylas +972 (54) 214-1505
While <[email protected]> is temporarily down, please use <[email protected]>, instead.
----- Original message -----
From: "Eliyahu Skoczylas" <[email protected]>
To: "Developers at OE.net" <[email protected]>
Date: Tue, 07 Oct 2008 12:16:19 +0200
Subject: [oe] PHP on PPC little-endian? Conflicts w/ ncurses big-endian
Hi!
I'm building for PPC405 (using a new machine .conf that I'll upload when the board is released).
So far, everything has built and run successfully, but I just tried adding in PHP.
Every time it conflicts with libncurses:
Quoted 18 lines
NOTE: package php-5.2.6-r2: task
do_configure: started
ERROR: functiondo_configurefailed
ERROR: log data follows (/tmp/OE_temp-new/work/ppc405-linux/php-5.2.6-r2/temp/log.do_configure.26285) | automake (GNU automake) 1.9.3
<snip>| AUTOV is 1.9 | NOTE: Executing autoreconf --verbose --install --force --exclude=autopoint -I/tmp/OE_temp-new/staging/powerpc-linux/usr/share/aclocal-1.9 -I /tmp/OE_temp-new/staging/powerpc-linux/usr/share/aclocal | sh: error while loading shared libraries: /tmp/OE_temp-new/staging/powerpc-linux/usr/lib/libncurses.so.5: ELF file data encoding not little-endian | autoreconf: Entering directory `.' | autoreconf: configure.in: not using Gettext | autoreconf: running: aclocal -I /tmp/OE_temp-new/staging/powerpc-linux/usr/share/aclocal-1.9 -I /tmp/OE_temp-new/staging/powerpc-linux/usr/share/aclocal --force | acinclude.m4:1089: warning: underquoted definition of PHP_CHECK_SIZEOF | run info '(automake)Extending aclocal' | or see http://sources.redhat.com/automake/automake.html#Extending-aclocal | sh: error while loading shared libraries: /tmp/OE_temp-new/staging/powerpc-linux/usr/lib/libncurses.so.5: ELF file data encoding not little-endian | aclocal: autom4te failed with exit status: 127 | autoreconf: aclocal failed with exit status: 127 | FATAL: autoreconf execution failed.
Quoted 8 lines
NOTE: Task failed:
/tmp/OE_temp-new/work/ppc405-linux/php-5.2.6-r2/temp/log.do_configure.26285
NOTE: package php-5.2.6-r2: taskdo_configure: failed
ERROR: TaskFailed event exception, aborting
NOTE: package php-5.2.6: failed
ERROR: Build of/home/eliyahu/stuff/org.openembedded.dev/packages/php/php_5.2.6.bbdo_configurefailed
ERROR: Task 4 (/home/eliyahu/stuff/org.openembedded.dev/packages/php/php_5.2.6.bb,do_configure) failed
NOTE: Tasks Summary: Attempted 253 tasks of which 253 didn't need to be rerun and 1 failed.
ERROR: '/home/eliyahu/stuff/org.openembedded.dev/packages/php/php_5.2.6.bb' failed
At first I thought it was a problem with ncurses, and I tried rebuilding using older recipes and version of ncurses, but no luck. (And why does PHP need ncurses, anyway?)
But suddenly it hit me - this is the target version for ppc405, and libncurses.so.5 is CORRECTLY big-endian. The problem is that PHP (or at least autoreconf for PHP) wants little-endian.
Has no one built PHP recently for a big-endian platform? Besides the php-5.2.6-r2 in .dev, I also tried php-5.2.0-r1 from .stable and got the same thing.
TIA,
- Eliyahu
--
Eliyahu Skoczylas +972 (54) 214-1505
While <[email protected]> is temporarily down, please use <[email protected]>, instead.
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel
Quoted 24 lines · Eliyahu Skoczylas
Hi!
I'm building for PPC405 (using a new machine .conf that I'll upload when the board is released).
So far, everything has built and run successfully, but I just tried adding in PHP.
Every time it conflicts with libncurses:
Quoted 15 lines
NOTE: package php-5.2.6-r2: task
do_configure: started
ERROR: functiondo_configurefailed
ERROR: log data follows (/tmp/OE_temp-new/work/ppc405-linux/php-5.2.6-r2/temp/log.do_configure.26285) | automake (GNU automake) 1.9.3
<snip>| AUTOV is 1.9 | NOTE: Executing autoreconf --verbose --install --force --exclude=autopoint -I/tmp/OE_temp-new/staging/powerpc-linux/usr/share/aclocal-1.9 -I /tmp/OE_temp-new/staging/powerpc-linux/usr/share/aclocal | sh: error while loading shared libraries: /tmp/OE_temp-new/staging/powerpc-linux/usr/lib/libncurses.so.5: ELF file data encoding not little-endian | autoreconf: Entering directory `.' | autoreconf: configure.in: not using Gettext | autoreconf: running: aclocal -I /tmp/OE_temp-new/staging/powerpc-linux/usr/share/aclocal-1.9 -I /tmp/OE_temp-new/staging/powerpc-linux/usr/share/aclocal --force | acinclude.m4:1089: warning: underquoted definition of PHP_CHECK_SIZEOF | run info '(automake)Extending aclocal' | or see http://sources.redhat.com/automake/automake.html#Extending-aclocal | sh: error while loading shared libraries: /tmp/OE_temp-new/staging/powerpc-linux/usr/lib/libncurses.so.5: ELF file data encoding not little-endian
Your host autoreconf (most likely i386) is trying to link with target libncurses (ppc405). I'm not sure how you expect that to work when changing that to LE ppc binaries.
regards,
Koen
Quoted 30 lines
Quoted 11 lines
| aclocal: autom4te failed with exit status: 127 | autoreconf: aclocal failed with exit status: 127 | FATAL: autoreconf execution failed.NOTE: Task failed:
/tmp/OE_temp-new/work/ppc405-linux/php-5.2.6-r2/temp/log.do_configure.26285
NOTE: package php-5.2.6-r2: taskdo_configure: failed
ERROR: TaskFailed event exception, aborting
NOTE: package php-5.2.6: failed
ERROR: Build of/home/eliyahu/stuff/org.openembedded.dev/packages/php/php_5.2.6.bbdo_configurefailed
ERROR: Task 4 (/home/eliyahu/stuff/org.openembedded.dev/packages/php/php_5.2.6.bb,do_configure) failed
NOTE: Tasks Summary: Attempted 253 tasks of which 253 didn't need to be rerun and 1 failed.
ERROR: '/home/eliyahu/stuff/org.openembedded.dev/packages/php/php_5.2.6.bb' failedAt first I thought it was a problem with ncurses, and I tried rebuilding using older recipes and version of ncurses, but no luck. (And why does PHP need ncurses, anyway?)
But suddenly it hit me - this is the target version for ppc405, and libncurses.so.5 is CORRECTLY big-endian. The problem is that PHP (or at least autoreconf for PHP) wants little-endian.Has no one built PHP recently for a big-endian platform? Besides the php-5.2.6-r2 in .dev, I also tried php-5.2.0-r1 from .stable and got the same thing.
TIA,
- Eliyahu
--
Eliyahu Skoczylas +972 (54) 214-1505
While<[email protected]> is temporarily down, please use<[email protected]>, instead.
Quoted 7 lines · Koen Kooi
Your host autoreconf (most likely i386) is trying to link with target libncurses (ppc405). I'm not sure how you expect that to work when changing that to LE ppc binaries.
regards,
Koen
Yes, I saw that.
Quoted 2 lines
Quoted 2 lines
... The problem is that PHP (or at
least autoreconf for PHP) wants little-endian.
Note the place that the log data is coming from:
Quoted 1 line
Quoted 1 line
Quoted 1 line
... (
/tmp/OE_temp-new/work/ppc405-linux/php-5.2.6-r2/temp/log.do_configure.26285)
This is in the target stage (ppc405-linux) instead of the host stage (i686-linux).
My question is better stated as:
+++ Why is php-5.2.6-r2 (and php-5.2.0-r1 before it) using a HOST autoreconf when building (and linking to) a TARGET binary?
Thanks for helping me to clarify that.
- Eliyahu
Quoted 69 lines · Eliyahu Skoczylas
Quoted 24 lines
Hi!
I'm building for PPC405 (using a new machine .conf that I'll upload when the board is released).
So far, everything has built and run successfully, but I just tried adding in PHP.
Every time it conflicts with libncurses:
Quoted 15 lines
NOTE: package php-5.2.6-r2: task
do_configure: started
ERROR: functiondo_configurefailed
ERROR: log data follows (/tmp/OE_temp-new/work/ppc405-linux/php-5.2.6-r2/temp/log.do_configure.26285) | automake (GNU automake) 1.9.3
<snip>| AUTOV is 1.9 | NOTE: Executing autoreconf --verbose --install --force --exclude=autopoint -I/tmp/OE_temp-new/staging/powerpc-linux/usr/share/aclocal-1.9 -I /tmp/OE_temp-new/staging/powerpc-linux/usr/share/aclocal | sh: error while loading shared libraries: /tmp/OE_temp-new/staging/powerpc-linux/usr/lib/libncurses.so.5: ELF file data encoding not little-endian | autoreconf: Entering directory `.' | autoreconf: configure.in: not using Gettext | autoreconf: running: aclocal -I /tmp/OE_temp-new/staging/powerpc-linux/usr/share/aclocal-1.9 -I /tmp/OE_temp-new/staging/powerpc-linux/usr/share/aclocal --force | acinclude.m4:1089: warning: underquoted definition of PHP_CHECK_SIZEOF | run info '(automake)Extending aclocal' | or see http://sources.redhat.com/automake/automake.html#Extending-aclocal | sh: error while loading shared libraries: /tmp/OE_temp-new/staging/powerpc-linux/usr/lib/libncurses.so.5: ELF file data encoding not little-endianYour host autoreconf (most likely i386) is trying to link with target libncurses (ppc405). I'm not sure how you expect that to work when changing that to LE ppc binaries.
regards,
Koen
Quoted 24 lines
Quoted 11 lines
| aclocal: autom4te failed with exit status: 127 | autoreconf: aclocal failed with exit status: 127 | FATAL: autoreconf execution failed.NOTE: Task failed:
/tmp/OE_temp-new/work/ppc405-linux/php-5.2.6-r2/temp/log.do_configure.26285
NOTE: package php-5.2.6-r2: taskdo_configure: failed
ERROR: TaskFailed event exception, aborting
NOTE: package php-5.2.6: failed
ERROR: Build of/home/eliyahu/stuff/org.openembedded.dev/packages/php/php_5.2.6.bbdo_configurefailed
ERROR: Task 4 (/home/eliyahu/stuff/org.openembedded.dev/packages/php/php_5.2.6.bb,do_configure) failed
NOTE: Tasks Summary: Attempted 253 tasks of which 253 didn't need to be rerun and 1 failed.
ERROR: '/home/eliyahu/stuff/org.openembedded.dev/packages/php/php_5.2.6.bb' failedAt first I thought it was a problem with ncurses, and I tried rebuilding using older recipes and version of ncurses, but no luck. (And why does PHP need ncurses, anyway?)
But suddenly it hit me - this is the target version for ppc405, and libncurses.so.5 is CORRECTLY big-endian. The problem is that PHP (or at least autoreconf for PHP) wants little-endian.Has no one built PHP recently for a big-endian platform? Besides the php-5.2.6-r2 in .dev, I also tried php-5.2.0-r1 from .stable and got the same thing.
Quoted 6 lines
TIA,
- Eliyahu
--
Eliyahu Skoczylas +972 (54) 214-1505
While<[email protected]> is temporarily down, please use<[email protected]>, instead.
Quoted 4 lines
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel
--
Eliyahu Skoczylas +972 (54) 214-1505
While <[email protected]> is temporarily down, please use <[email protected]>, instead.
Quoted 17 lines · Eliyahu Skoczylas
Quoted 7 lines · Koen Kooi
Your host autoreconf (most likely i386) is trying to link with target libncurses (ppc405). I'm not sure how you expect that to work when changing that to LE ppc binaries.
regards,
Koen
Yes, I saw that.
Quoted 2 lines
Quoted 2 lines
... The problem is that PHP (or at
least autoreconf for PHP) wants little-endian.Note the place that the log data is coming from:
Quoted 1 line
Quoted 1 line
Quoted 1 line
... (
/tmp/OE_temp-new/work/ppc405-linux/php-5.2.6-r2/temp/log.do_configure.26285)
Quoted 7 lines
This is in the target stage (ppc405-linux) instead of the host stage (i686-linux).
My question is better stated as:
+++ Why is php-5.2.6-r2 (and php-5.2.0-r1 before it) using a HOST autoreconf when building (and linking to) a TARGET binary?
because your host can't run target binaries
Quoted 78 lines
Thanks for helping me to clarify that.
- Eliyahu
Quoted 66 lines · Eliyahu Skoczylas
Quoted 24 lines
Hi!
I'm building for PPC405 (using a new machine .conf that I'll upload when the board is released).
So far, everything has built and run successfully, but I just tried adding in PHP.
Every time it conflicts with libncurses:
Quoted 15 lines
NOTE: package php-5.2.6-r2: task
do_configure: started
ERROR: functiondo_configurefailed
ERROR: log data follows (/tmp/OE_temp-new/work/ppc405-linux/php-5.2.6-r2/temp/log.do_configure.26285) | automake (GNU automake) 1.9.3<snip> | AUTOV is 1.9 | NOTE: Executing autoreconf --verbose --install --force --exclude=autopoint -I/tmp/OE_temp-new/staging/powerpc-linux/usr/share/aclocal-1.9 -I /tmp/OE_temp-new/staging/powerpc-linux/usr/share/aclocal | sh: error while loading shared libraries: /tmp/OE_temp-new/staging/powerpc-linux/usr/lib/libncurses.so.5: ELF file data encoding not little-endian | autoreconf: Entering directory `.' | autoreconf: configure.in: not using Gettext | autoreconf: running: aclocal -I /tmp/OE_temp-new/staging/powerpc-linux/usr/share/aclocal-1.9 -I /tmp/OE_temp-new/staging/powerpc-linux/usr/share/aclocal --force | acinclude.m4:1089: warning: underquoted definition of PHP_CHECK_SIZEOF | run info '(automake)Extending aclocal' | or see http://sources.redhat.com/automake/automake.html#Extending-aclocal | sh: error while loading shared libraries: /tmp/OE_temp-new/staging/powerpc-linux/usr/lib/libncurses.so.5: ELF file data encoding not little-endianYour host autoreconf (most likely i386) is trying to link with target libncurses (ppc405). I'm not sure how you expect that to work when changing that to LE ppc binaries.
regards,
Koen
Quoted 23 lines
Quoted 11 lines
| aclocal: autom4te failed with exit status: 127 | autoreconf: aclocal failed with exit status: 127 | FATAL: autoreconf execution failed.NOTE: Task failed:
/tmp/OE_temp-new/work/ppc405-linux/php-5.2.6-r2/temp/log.do_configure.26285
NOTE: package php-5.2.6-r2: taskdo_configure: failed
ERROR: TaskFailed event exception, aborting
NOTE: package php-5.2.6: failed
ERROR: Build of/home/eliyahu/stuff/org.openembedded.dev/packages/php/php_5.2.6.bbdo_configurefailed
ERROR: Task 4 (/home/eliyahu/stuff/org.openembedded.dev/packages/php/php_5.2.6.bb,do_configure) failed
NOTE: Tasks Summary: Attempted 253 tasks of which 253 didn't need to be rerun and 1 failed.
ERROR: '/home/eliyahu/stuff/org.openembedded.dev/packages/php/php_5.2.6.bb' failedAt first I thought it was a problem with ncurses, and I tried rebuilding using older recipes and version of ncurses, but no luck. (And why does PHP need ncurses, anyway?)
But suddenly it hit me - this is the target version for ppc405, and libncurses.so.5 is CORRECTLY big-endian. The problem is that PHP (or at least autoreconf for PHP) wants little-endian.Has no one built PHP recently for a big-endian platform? Besides the php-5.2.6-r2 in .dev, I also tried php-5.2.0-r1 from .stable and got the same thing.
Quoted 6 lines
TIA,
- Eliyahu
--
Eliyahu Skoczylas +972 (54) 214-1505
While<[email protected]> is temporarily down, please use<[email protected]>, instead.Quoted 4 lines
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel--
Eliyahu Skoczylas +972 (54) 214-1505
While<[email protected]> is temporarily down, please use<[email protected]>, instead.
Quoted 5 lines · Koen Kooi
Quoted 2 lines · Eliyahu Skoczylas
+++ Why is php-5.2.6-r2 (and php-5.2.0-r1 before it) using a HOST autoreconf when building (and linking to) a TARGET binary?
because your host can't run target binaries
Thank you. I know that.
I'm asking why several versions of PHP are trying to do what we all agree can NOT be done when all other builds in this environment, with the same site.conf, local.conf, minimal.conf, and MACHINE.conf did NOT do that and worked correctly.
Also note that php-5.1.4-r2 does NOT do that. (I just rebuilt the system with PHP 5.1.4 and am testing it.)
This behavior started with php-5.2.0.-r1, AFAICT.
- Eliyahu
--
Eliyahu Skoczylas +972 (54) 214-1505
While <[email protected]> is temporarily down, please use <[email protected]>, instead.