php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #70058 Build fails when building for i386
Submitted: 2015-07-13 03:02 UTC Modified: 2015-07-26 19:10 UTC
From: php-bugs-2015 at ryandesign dot com Assigned:
Status: Closed Package: opcache
PHP Version: 7.0.0beta1 OS: OS X 10.10.4
Private report: No CVE-ID:
 [2015-07-13 03:02 UTC] php-bugs-2015 at ryandesign dot com
Description:
------------
Hi, I'm the maintainer of PHP in the MacPorts package management system.

On a 64-bit Mac running OS X 10.10.4, with PHP 7.0.0beta1 compiled universal (for both x86_64 and i386), the opcache extension builds fine for x86_64 alone but not for i386 alone, nor universal (for x86_64 and i386 together). The error is:

php-7.0.0beta1/ext/opcache/zend_accelerator_util_funcs.c:160:36: error: too few arguments provided to function-like macro invocation
                ptr = accel_xlat_get(Z_REF_P(src));
                                                 ^

This is a regression as compared to PHP 5.6.11 and 5.5.27 where the opcache extension builds successfully for both x86_64 and i386 on the same system.

The compiler being used here is:

$ clang -v
Apple LLVM version 6.1.0 (clang-602.0.53) (based on LLVM 3.6.0svn)
Target: x86_64-apple-darwin14.4.0
Thread model: posix

In case it is relevant, we package each bundled PHP extension, including opcache, as a separately-installable unit. To do this, we build each extension separately, using phpize, configure, make and make install.


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2015-07-13 07:11 UTC] laruence@php.net
Automatic comment on behalf of laruence
Revision: http://git.php.net/?p=php-src.git;a=commit;h=b8eff44b0ea6ea31aa3916c09fb9c54f4922eaf4
Log: Fixed Bug #70058 Build fails when building for i386
 [2015-07-13 07:11 UTC] laruence@php.net
-Status: Open +Status: Closed
 [2015-07-21 14:21 UTC] ab@php.net
Automatic comment on behalf of laruence
Revision: http://git.php.net/?p=php-src.git;a=commit;h=b8eff44b0ea6ea31aa3916c09fb9c54f4922eaf4
Log: Fixed Bug #70058 Build fails when building for i386
 [2015-07-26 19:10 UTC] php-bugs-2015 at ryandesign dot com
Thank you, this is working now in 7.0.0beta2.
 [2016-07-20 11:37 UTC] davey@php.net
Automatic comment on behalf of laruence
Revision: http://git.php.net/?p=php-src.git;a=commit;h=b8eff44b0ea6ea31aa3916c09fb9c54f4922eaf4
Log: Fixed Bug #70058 Build fails when building for i386
 
PHP Copyright © 2001-2017 The PHP Group
All rights reserved.
Last updated: Tue Aug 29 15:01:52 2017 UTC