Bug #51214 [NEW]: PHP-FPM build/make error - Unsupported Processor (NGINX PPC PS3 PHP-5.3.1)

From: Date: Fri, 05 Mar 2010 09:56:06 +0000
Subject: Bug #51214 [NEW]: PHP-FPM build/make error - Unsupported Processor (NGINX PPC PS3 PHP-5.3.1)
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-148299@lists.php.net to get a copy of this message
From:             
Operating system: CENTOS 6
PHP version:      5.3.1
Package:          Other web server
Bug Type:         Bug
Bug description:PHP-FPM build/make error - Unsupported Processor (NGINX PPC PS3 PHP-5.3.1)

Description:
------------
Dear friends, I have been trying to implement my own pet algorithm on
a PS3 and so far, no major hitch, thank God. But now tis like I've hit
a snag and can't get around... well I haven't got the time but am sure
if I spend a few more hours/days on it... who knows. I've been thru
the same, where no clear help comes even from the web... I just can't
afford the delay this time round! Please help me. Tis a PHP-FPM
problem...

# Here's the scenario:

Downloaded and installed at least libevent version 1.4.12

Downloaded latest PHP-5.3.1 (http://php.net/download/) and PHP-FPM
(http://php-fpm.org/downloads/0.6/php-fpm-0.6~5.3.1.tar.gz)

# The configs and build process:
tar -xzf php-fpm-0.6~5.3.1.tar.gz
php-fpm-0.6-5.3.1/generate-fpm-patch
bzip2 -cd php-5.3.1.tar.bz2 | tar xf -
patch -d php-5.3.1 -p1 <fpm.patch
cd php-5.3.1
./buildconf --force
./configure --build=powerpc-redhat-linux-gnu --host=powerpc-redhat-
linux-gnu --target=ppc-yellowdog-linux-gnu ... --enable-fastcgi --with-
fpm --with-libevent=/usr/local/lib --enable-inline-optimization ...
&& make all install

# Config output is error-free!
.....
config.status: creating php5.spec
config.status: creating main/build-defs.h
config.status: creating scripts/phpize
config.status: creating scripts/man1/phpize.1
config.status: creating scripts/php-config
config.status: creating scripts/man1/php-config.1
config.status: creating sapi/cli/php.1
config.status: creating sapi/fpm/php_fpm.conf
config.status: creating sapi/fpm/init.d.php_fpm
config.status: creating sapi/fpm/nginx-site-conf.sample
config.status: creating sapi/fpm/php-fpm.1
config.status: creating main/php_config.h
config.status: main/php_config.h is unchanged
config.status: executing default commands
.....
# But make crashes!!!
.....
In file included from /root/src_archive/php-5.3.1/sapi/fpm/fpm/
fpm_shm_slots.c:7:
/root/src_archive/php-5.3.1/sapi/fpm/fpm/fpm_atomic.h:124:2: error:
#error unsupported processor. please write a patch and send it to me
In file included from /root/src_archive/php-5.3.1/sapi/fpm/fpm/
fpm_shm_slots.c:7:
/root/src_archive/php-5.3.1/sapi/fpm/fpm/fpm_atomic.h:128: error:
expected ')' before '*' token
In file included from /root/src_archive/php-5.3.1/sapi/fpm/fpm/
fpm_shm_slots.c:11:
/root/src_archive/php-5.3.1/sapi/fpm/fpm/fpm_shm_slots.h:16: error:
expected specifier-qualifier-list before 'atomic_t'
/root/src_archive/php-5.3.1/sapi/fpm/fpm/fpm_shm_slots.c: In function
'fpm_shm_slots_acquire':
/root/src_archive/php-5.3.1/sapi/fpm/fpm/fpm_shm_slots.c:116: error:
'struct fpm_shm_slot_s' has no member named 'lock'
/root/src_archive/php-5.3.1/sapi/fpm/fpm/fpm_shm_slots.c: In function
'fpm_shm_slots_release':
/root/src_archive/php-5.3.1/sapi/fpm/fpm/fpm_shm_slots.c:125: error:
'struct fpm_shm_slot_s' has no member named 'lock'
make: *** [sapi/fpm/fpm/fpm_shm_slots.lo] Error 1

# Tried the suggestion at http://forum.nginx.org/read.php?3,34486,36127
but the error persists!

# My requirements are Latest Nginx/PHP-5.3.1/PFM on the PPC (esp. the
PS3, because my algorithm runs on SPU intrinsics)

Kindly assist...

Ed.


-- 
Edit bug report at http://bugs.php.net/bug.php?id=51214&edit=1
-- 
Try a snapshot (PHP 5.2):            http://bugs.php.net/fix.php?id=51214&r=trysnapshot52
Try a snapshot (PHP 5.3):            http://bugs.php.net/fix.php?id=51214&r=trysnapshot53
Try a snapshot (PHP 6.0):            http://bugs.php.net/fix.php?id=51214&r=trysnapshot60
Fixed in SVN:                        http://bugs.php.net/fix.php?id=51214&r=fixed
Fixed in SVN and need be documented: http://bugs.php.net/fix.php?id=51214&r=needdocs
Fixed in release:                    http://bugs.php.net/fix.php?id=51214&r=alreadyfixed
Need backtrace:                      http://bugs.php.net/fix.php?id=51214&r=needtrace
Need Reproduce Script:               http://bugs.php.net/fix.php?id=51214&r=needscript
Try newer version:                   http://bugs.php.net/fix.php?id=51214&r=oldversion
Not developer issue:                 http://bugs.php.net/fix.php?id=51214&r=support
Expected behavior:                   http://bugs.php.net/fix.php?id=51214&r=notwrong
Not enough info:                     http://bugs.php.net/fix.php?id=51214&r=notenoughinfo
Submitted twice:                     http://bugs.php.net/fix.php?id=51214&r=submittedtwice
register_globals:                    http://bugs.php.net/fix.php?id=51214&r=globals
PHP 4 support discontinued:          http://bugs.php.net/fix.php?id=51214&r=php4
Daylight Savings:                    http://bugs.php.net/fix.php?id=51214&r=dst
IIS Stability:                       http://bugs.php.net/fix.php?id=51214&r=isapi
Install GNU Sed:                     http://bugs.php.net/fix.php?id=51214&r=gnused
Floating point limitations:          http://bugs.php.net/fix.php?id=51214&r=float
No Zend Extensions:                  http://bugs.php.net/fix.php?id=51214&r=nozend
MySQL Configuration Error:           http://bugs.php.net/fix.php?id=51214&r=mysqlcfg



Thread (3 messages)

« previous php.bugs (#148299) next »