Edit report at https://bugs.php.net/bug.php?id=61257&edit=1
ID: 61257 Comment by: schnorte at gmail dot com Reported by: jensrasmus at gmail dot com Summary: '--enable-fpm' makes gmake fail building in FreeBSD on a Sheevaplug Status: Open Type: Bug Package: Compile Failure Operating System: FreeBSD 8.2-STABLE armeb PHP Version: 5.4.0 Block user comment: N Private report: N New Comment: hej jensrasmus, i figured out a working patch with help of some really nice guys in a freebsd/arm chatroom. see if it works for you! Previous Comments: ------------------------------------------------------------------------ [2012-03-12 00:14:06] schnorte at gmail dot com i can confirm this for sheevaplug with freebsd 9.0 and PHP 5.3.10_1 it seems that the generic solution in sapi/fpm/fpm/fpm_atomic.h for __ARM__: #define atomic_cmp_set(a,b,c) __sync_bool_compare_and_swap(a,b,c) is not working in freebsd? can anyone provide instead of some atomic operations assembler code for the arm(v5) architecture? ------------------------------------------------------------------------ [2012-03-02 23:57:38] jensrasmus at gmail dot com Description: ------------ I configured the php 5.4.0 source like this: ./configure --enable-fpm --enable-cgi --enable-fastcgi --prefix=/usr/local/php and then tried to compile with the gmake command. I expected it to complete compiling successfully so I could do a `gmake install'. What actually happened was a compile failure with this output at the end: ---ERROR MSG START--- In file included from /home/rasmus/php/php- 5.4.0/sapi/fpm/fpm/fpm_scoreboard.h:15, from /home/rasmus/php/php-5.4.0/sapi/fpm/fpm/fpm.c:21: /home/rasmus/php/php-5.4.0/sapi/fpm/fpm/fpm_atomic.h:142:2: error: #error Unsupported processor. Please open a bug report (bugs.php.net). In file included from /home/rasmus/php/php- 5.4.0/sapi/fpm/fpm/fpm_scoreboard.h:15, from /home/rasmus/php/php-5.4.0/sapi/fpm/fpm/fpm.c:21: /home/rasmus/php/php-5.4.0/sapi/fpm/fpm/fpm_atomic.h:146: error: expected ')' before '*' token In file included from /home/rasmus/php/php-5.4.0/sapi/fpm/fpm/fpm.c:21: /home/rasmus/php/php-5.4.0/sapi/fpm/fpm/fpm_scoreboard.h:22: error: expected specifier-qualifier-list before 'atomic_t' /home/rasmus/php/php-5.4.0/sapi/fpm/fpm/fpm_scoreboard.h:51: error: expected specifier-qualifier-list before 'atomic_t' gmake: *** [sapi/fpm/fpm/fpm.lo] Error 1 ---ERROR MSG END--- Also, this happened on FreeBSD/arm on a Marvell Sheevaplug. If I remove `-- enable-fpm' from the configure command, make completes successfully; so this may be a FPM related problem. This is my complete `uname -a': FreeBSD frodo 8.2-STABLE FreeBSD 8.2-STABLE #7: Fri Feb 17 01:37:05 CET 2012 root@frodo:/usr/obj/usr/src/sys/FRODO arm ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=61257&edit=1