Skip to content

Instantly share code, notes, and snippets.

@lifepillar
Created April 13, 2014 20:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lifepillar/10601324 to your computer and use it in GitHub Desktop.
Save lifepillar/10601324 to your computer and use it in GitHub Desktop.
php56-opcache fails to build
==> PHP_AUTOCONF="/usr/local/opt/autoconf/bin/autoconf" PHP_AUTOHEADER="/usr/local/opt/autoconf/bin/autoheader" /usr/local/Cellar/php56/5.6.0-beta.1/bin/phpize
Configuring for:
PHP Api Version: 20131106
Zend Module Api No: 20131226
Zend Extension Api No: 220131226
==> ./configure --prefix=/usr/local/Cellar/php56-opcache/7.0.3 --with-php-config=/usr/local/Cellar/php56/5.6.0-beta.1/bin/php-config
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking for a sed that does not truncate output... /usr/local/Library/ENV/4.3/sed
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether clang accepts -g... yes
checking for clang option to accept ISO C89... none needed
checking how to run the C preprocessor... clang -E
checking for icc... no
checking for suncc... no
checking whether clang and cc understand -c and -o together... yes
checking for system library directory... lib
checking if compiler supports -R... no
checking if compiler supports -Wl,-rpath,... yes
checking build system type... x86_64-apple-darwin13.1.0
checking host system type... x86_64-apple-darwin13.1.0
checking target system type... x86_64-apple-darwin13.1.0
checking for PHP prefix... /usr/local/Cellar/php56/5.6.0-beta.1
checking for PHP includes... -I/usr/local/Cellar/php56/5.6.0-beta.1/include/php -I/usr/local/Cellar/php56/5.6.0-beta.1/include/php/main -I/usr/local/Cellar/php56/5.6.0-beta.1/include/php/TSRM -I/usr/local/Cellar/php56/5.6.0-beta.1/include/php/Zend -I/usr/local/Cellar/php56/5.6.0-beta.1/include/php/ext -I/usr/local/Cellar/php56/5.6.0-beta.1/include/php/ext/date/lib
checking for PHP extension directory... /usr/local/Cellar/php56/5.6.0-beta.1/lib/php/extensions/no-debug-zts-20131226
checking for PHP installed headers prefix... /usr/local/Cellar/php56/5.6.0-beta.1/include/php
checking if debug is enabled... no
checking if zts is enabled... no
checking for re2c... no
configure: WARNING: You will need re2c 0.13.4 or later if you want to regenerate PHP parsers.
checking for gawk... no
checking for nawk... no
checking for awk... awk
checking if awk is broken... no
checking whether to enable Zend OPcache support... yes, shared
checking for mprotect... yes
checking for sysvipc shared memory support... yes
checking for mmap() using MAP_ANON shared memory support... yes
checking for mmap() using /dev/zero shared memory support... no
checking for mmap() using shm_open() shared memory support... yes
checking for mmap() using regular file shared memory support... yes
checking "whether flock struct is linux ordered"... "no"
checking "whether flock struct is BSD ordered"... "yes"
checking for ld used by clang... /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld
checking if the linker (/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld) is GNU ld... no
checking for /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld option to reload object files... -r
checking for BSD-compatible nm... /usr/bin/nm
checking whether ln -s works... yes
checking how to recognize dependent libraries... pass_all
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking dlfcn.h usability... yes
checking dlfcn.h presence... yes
checking for dlfcn.h... yes
checking the maximum length of command line arguments... 196608
checking command to parse /usr/bin/nm output from clang object... ok
checking for objdir... .libs
checking for ar... ar
checking for ranlib... ranlib
checking for strip... strip
checking for dsymutil... dsymutil
checking for nmedit... nmedit
checking for -single_module linker flag... yes
checking for -exported_symbols_list linker flag... yes
checking if clang supports -fno-rtti -fno-exceptions... yes
checking for clang option to produce PIC... -fno-common
checking if clang PIC flag -fno-common works... yes
checking if clang static flag -static works... no
checking if clang supports -c -o file.o... yes
checking whether the clang linker (/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld) supports shared libraries... yes
checking dynamic linker characteristics... darwin13.1.0 dyld
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... no
creating libtool
appending configuration tag "CXX" to libtool
checking whether the clang++ linker (/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld) supports shared libraries... no
checking for clang++ option to produce PIC...
checking if clang++ static flag works... yes
checking if clang++ supports -c -o file.o... yes
checking whether the clang++ linker (/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld) supports shared libraries... no
checking dynamic linker characteristics... darwin13.1.0 dyld
(cached) (cached) checking how to hardcode library paths into programs... immediate
configure: creating ./config.status
config.status: creating config.h
==> make
/bin/sh /private/tmp/php56-opcache-F8gU/ZendOptimizerPlus-7.0.3/libtool --mode=compile clang -I. -I/private/tmp/php56-opcache-F8gU/ZendOptimizerPlus-7.0.3 -DPHP_ATOM_INC -I/private/tmp/php56-opcache-F8gU/ZendOptimizerPlus-7.0.3/include -I/private/tmp/php56-opcache-F8gU/ZendOptimizerPlus-7.0.3/main -I/private/tmp/php56-opcache-F8gU/ZendOptimizerPlus-7.0.3 -I/usr/local/Cellar/php56/5.6.0-beta.1/include/php -I/usr/local/Cellar/php56/5.6.0-beta.1/include/php/main -I/usr/local/Cellar/php56/5.6.0-beta.1/include/php/TSRM -I/usr/local/Cellar/php56/5.6.0-beta.1/include/php/Zend -I/usr/local/Cellar/php56/5.6.0-beta.1/include/php/ext -I/usr/local/Cellar/php56/5.6.0-beta.1/include/php/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c /private/tmp/php56-opcache-F8gU/ZendOptimizerPlus-7.0.3/ZendAccelerator.c -o ZendAccelerator.lo
/bin/sh /private/tmp/php56-opcache-F8gU/ZendOptimizerPlus-7.0.3/libtool --mode=compile clang -I. -I/private/tmp/php56-opcache-F8gU/ZendOptimizerPlus-7.0.3 -DPHP_ATOM_INC -I/private/tmp/php56-opcache-F8gU/ZendOptimizerPlus-7.0.3/include -I/private/tmp/php56-opcache-F8gU/ZendOptimizerPlus-7.0.3/main -I/private/tmp/php56-opcache-F8gU/ZendOptimizerPlus-7.0.3 -I/usr/local/Cellar/php56/5.6.0-beta.1/include/php -I/usr/local/Cellar/php56/5.6.0-beta.1/include/php/main -I/usr/local/Cellar/php56/5.6.0-beta.1/include/php/TSRM -I/usr/local/Cellar/php56/5.6.0-beta.1/include/php/Zend -I/usr/local/Cellar/php56/5.6.0-beta.1/include/php/ext -I/usr/local/Cellar/php56/5.6.0-beta.1/include/php/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c /private/tmp/php56-opcache-F8gU/ZendOptimizerPlus-7.0.3/zend_accelerator_blacklist.c -o zend_accelerator_blacklist.lo
/bin/sh /private/tmp/php56-opcache-F8gU/ZendOptimizerPlus-7.0.3/libtool --mode=compile clang -I. -I/private/tmp/php56-opcache-F8gU/ZendOptimizerPlus-7.0.3 -DPHP_ATOM_INC -I/private/tmp/php56-opcache-F8gU/ZendOptimizerPlus-7.0.3/include -I/private/tmp/php56-opcache-F8gU/ZendOptimizerPlus-7.0.3/main -I/private/tmp/php56-opcache-F8gU/ZendOptimizerPlus-7.0.3 -I/usr/local/Cellar/php56/5.6.0-beta.1/include/php -I/usr/local/Cellar/php56/5.6.0-beta.1/include/php/main -I/usr/local/Cellar/php56/5.6.0-beta.1/include/php/TSRM -I/usr/local/Cellar/php56/5.6.0-beta.1/include/php/Zend -I/usr/local/Cellar/php56/5.6.0-beta.1/include/php/ext -I/usr/local/Cellar/php56/5.6.0-beta.1/include/php/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c /private/tmp/php56-opcache-F8gU/ZendOptimizerPlus-7.0.3/zend_accelerator_debug.c -o zend_accelerator_debug.lo
/bin/sh /private/tmp/php56-opcache-F8gU/ZendOptimizerPlus-7.0.3/libtool --mode=compile clang -I. -I/private/tmp/php56-opcache-F8gU/ZendOptimizerPlus-7.0.3 -DPHP_ATOM_INC -I/private/tmp/php56-opcache-F8gU/ZendOptimizerPlus-7.0.3/include -I/private/tmp/php56-opcache-F8gU/ZendOptimizerPlus-7.0.3/main -I/private/tmp/php56-opcache-F8gU/ZendOptimizerPlus-7.0.3 -I/usr/local/Cellar/php56/5.6.0-beta.1/include/php -I/usr/local/Cellar/php56/5.6.0-beta.1/include/php/main -I/usr/local/Cellar/php56/5.6.0-beta.1/include/php/TSRM -I/usr/local/Cellar/php56/5.6.0-beta.1/include/php/Zend -I/usr/local/Cellar/php56/5.6.0-beta.1/include/php/ext -I/usr/local/Cellar/php56/5.6.0-beta.1/include/php/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c /private/tmp/php56-opcache-F8gU/ZendOptimizerPlus-7.0.3/zend_accelerator_hash.c -o zend_accelerator_hash.lo
mkdir .libs
clang -I. -I/private/tmp/php56-opcache-F8gU/ZendOptimizerPlus-7.0.3 -DPHP_ATOM_INC -I/private/tmp/php56-opcache-F8gU/ZendOptimizerPlus-7.0.3/include -I/private/tmp/php56-opcache-F8gU/ZendOptimizerPlus-7.0.3/main -I/private/tmp/php56-opcache-F8gU/ZendOptimizerPlus-7.0.3 -I/usr/local/Cellar/php56/5.6.0-beta.1/include/php -I/usr/local/Cellar/php56/5.6.0-beta.1/include/php/main -I/usr/local/Cellar/php56/5.6.0-beta.1/include/php/TSRM -I/usr/local/Cellar/php56/5.6.0-beta.1/include/php/Zend -I/usr/local/Cellar/php56/5.6.0-beta.1/include/php/ext -I/usr/local/Cellar/php56/5.6.0-beta.1/include/php/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c /private/tmp/php56-opcache-F8gU/ZendOptimizerPlus-7.0.3/ZendAccelerator.c -fno-common -DPIC -o .libs/ZendAccelerator.o
clang -I. -I/private/tmp/php56-opcache-F8gU/ZendOptimizerPlus-7.0.3 -DPHP_ATOM_INC -I/private/tmp/php56-opcache-F8gU/ZendOptimizerPlus-7.0.3/include -I/private/tmp/php56-opcache-F8gU/ZendOptimizerPlus-7.0.3/main -I/private/tmp/php56-opcache-F8gU/ZendOptimizerPlus-7.0.3 -I/usr/local/Cellar/php56/5.6.0-beta.1/include/php -I/usr/local/Cellar/php56/5.6.0-beta.1/include/php/main -I/usr/local/Cellar/php56/5.6.0-beta.1/include/php/TSRM -I/usr/local/Cellar/php56/5.6.0-beta.1/include/php/Zend -I/usr/local/Cellar/php56/5.6.0-beta.1/include/php/ext -I/usr/local/Cellar/php56/5.6.0-beta.1/include/php/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c /private/tmp/php56-opcache-F8gU/ZendOptimizerPlus-7.0.3/zend_accelerator_blacklist.c -fno-common -DPIC -o .libs/zend_accelerator_blacklist.o
clang -I. -I/private/tmp/php56-opcache-F8gU/ZendOptimizerPlus-7.0.3 -DPHP_ATOM_INC -I/private/tmp/php56-opcache-F8gU/ZendOptimizerPlus-7.0.3/include -I/private/tmp/php56-opcache-F8gU/ZendOptimizerPlus-7.0.3/main -I/private/tmp/php56-opcache-F8gU/ZendOptimizerPlus-7.0.3 -I/usr/local/Cellar/php56/5.6.0-beta.1/include/php -I/usr/local/Cellar/php56/5.6.0-beta.1/include/php/main -I/usr/local/Cellar/php56/5.6.0-beta.1/include/php/TSRM -I/usr/local/Cellar/php56/5.6.0-beta.1/include/php/Zend -I/usr/local/Cellar/php56/5.6.0-beta.1/include/php/ext -I/usr/local/Cellar/php56/5.6.0-beta.1/include/php/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c /private/tmp/php56-opcache-F8gU/ZendOptimizerPlus-7.0.3/zend_accelerator_debug.c -fno-common -DPIC -o .libs/zend_accelerator_debug.o
clang -I. -I/private/tmp/php56-opcache-F8gU/ZendOptimizerPlus-7.0.3 -DPHP_ATOM_INC -I/private/tmp/php56-opcache-F8gU/ZendOptimizerPlus-7.0.3/include -I/private/tmp/php56-opcache-F8gU/ZendOptimizerPlus-7.0.3/main -I/private/tmp/php56-opcache-F8gU/ZendOptimizerPlus-7.0.3 -I/usr/local/Cellar/php56/5.6.0-beta.1/include/php -I/usr/local/Cellar/php56/5.6.0-beta.1/include/php/main -I/usr/local/Cellar/php56/5.6.0-beta.1/include/php/TSRM -I/usr/local/Cellar/php56/5.6.0-beta.1/include/php/Zend -I/usr/local/Cellar/php56/5.6.0-beta.1/include/php/ext -I/usr/local/Cellar/php56/5.6.0-beta.1/include/php/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c /private/tmp/php56-opcache-F8gU/ZendOptimizerPlus-7.0.3/zend_accelerator_hash.c -fno-common -DPIC -o .libs/zend_accelerator_hash.o
/bin/sh /private/tmp/php56-opcache-F8gU/ZendOptimizerPlus-7.0.3/libtool --mode=compile clang -I. -I/private/tmp/php56-opcache-F8gU/ZendOptimizerPlus-7.0.3 -DPHP_ATOM_INC -I/private/tmp/php56-opcache-F8gU/ZendOptimizerPlus-7.0.3/include -I/private/tmp/php56-opcache-F8gU/ZendOptimizerPlus-7.0.3/main -I/private/tmp/php56-opcache-F8gU/ZendOptimizerPlus-7.0.3 -I/usr/local/Cellar/php56/5.6.0-beta.1/include/php -I/usr/local/Cellar/php56/5.6.0-beta.1/include/php/main -I/usr/local/Cellar/php56/5.6.0-beta.1/include/php/TSRM -I/usr/local/Cellar/php56/5.6.0-beta.1/include/php/Zend -I/usr/local/Cellar/php56/5.6.0-beta.1/include/php/ext -I/usr/local/Cellar/php56/5.6.0-beta.1/include/php/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c /private/tmp/php56-opcache-F8gU/ZendOptimizerPlus-7.0.3/zend_accelerator_module.c -o zend_accelerator_module.lo
/private/tmp/php56-opcache-F8gU/ZendOptimizerPlus-7.0.3/ZendAccelerator.c:39:10: fatal error: 'TSRM/tsrm_virtual_cwd.h' file not found
#include "TSRM/tsrm_virtual_cwd.h"
^
/bin/sh /private/tmp/php56-opcache-F8gU/ZendOptimizerPlus-7.0.3/libtool --mode=compile clang -I. -I/private/tmp/php56-opcache-F8gU/ZendOptimizerPlus-7.0.3 -DPHP_ATOM_INC -I/private/tmp/php56-opcache-F8gU/ZendOptimizerPlus-7.0.3/include -I/private/tmp/php56-opcache-F8gU/ZendOptimizerPlus-7.0.3/main -I/private/tmp/php56-opcache-F8gU/ZendOptimizerPlus-7.0.3 -I/usr/local/Cellar/php56/5.6.0-beta.1/include/php -I/usr/local/Cellar/php56/5.6.0-beta.1/include/php/main -I/usr/local/Cellar/php56/5.6.0-beta.1/include/php/TSRM -I/usr/local/Cellar/php56/5.6.0-beta.1/include/php/Zend -I/usr/local/Cellar/php56/5.6.0-beta.1/include/php/ext -I/usr/local/Cellar/php56/5.6.0-beta.1/include/php/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c /private/tmp/php56-opcache-F8gU/ZendOptimizerPlus-7.0.3/zend_persist.c -o zend_persist.lo
1 error generated.
make: *** [ZendAccelerator.lo] Error 1
make: *** Waiting for unfinished jobs....
clang -I. -I/private/tmp/php56-opcache-F8gU/ZendOptimizerPlus-7.0.3 -DPHP_ATOM_INC -I/private/tmp/php56-opcache-F8gU/ZendOptimizerPlus-7.0.3/include -I/private/tmp/php56-opcache-F8gU/ZendOptimizerPlus-7.0.3/main -I/private/tmp/php56-opcache-F8gU/ZendOptimizerPlus-7.0.3 -I/usr/local/Cellar/php56/5.6.0-beta.1/include/php -I/usr/local/Cellar/php56/5.6.0-beta.1/include/php/main -I/usr/local/Cellar/php56/5.6.0-beta.1/include/php/TSRM -I/usr/local/Cellar/php56/5.6.0-beta.1/include/php/Zend -I/usr/local/Cellar/php56/5.6.0-beta.1/include/php/ext -I/usr/local/Cellar/php56/5.6.0-beta.1/include/php/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c /private/tmp/php56-opcache-F8gU/ZendOptimizerPlus-7.0.3/zend_accelerator_module.c -fno-common -DPIC -o .libs/zend_accelerator_module.o
clang -I. -I/private/tmp/php56-opcache-F8gU/ZendOptimizerPlus-7.0.3 -DPHP_ATOM_INC -I/private/tmp/php56-opcache-F8gU/ZendOptimizerPlus-7.0.3/include -I/private/tmp/php56-opcache-F8gU/ZendOptimizerPlus-7.0.3/main -I/private/tmp/php56-opcache-F8gU/ZendOptimizerPlus-7.0.3 -I/usr/local/Cellar/php56/5.6.0-beta.1/include/php -I/usr/local/Cellar/php56/5.6.0-beta.1/include/php/main -I/usr/local/Cellar/php56/5.6.0-beta.1/include/php/TSRM -I/usr/local/Cellar/php56/5.6.0-beta.1/include/php/Zend -I/usr/local/Cellar/php56/5.6.0-beta.1/include/php/ext -I/usr/local/Cellar/php56/5.6.0-beta.1/include/php/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c /private/tmp/php56-opcache-F8gU/ZendOptimizerPlus-7.0.3/zend_persist.c -fno-common -DPIC -o .libs/zend_persist.o
/private/tmp/php56-opcache-F8gU/ZendOptimizerPlus-7.0.3/zend_accelerator_module.c:31:10: fatal error: 'TSRM/tsrm_virtual_cwd.h' file not found
#include "TSRM/tsrm_virtual_cwd.h"
^
1 error generated.
make: *** [zend_accelerator_module.lo] Error 1
==> Formula
Tap: homebrew/php
Path: /usr/local/Library/Taps/homebrew-php/Formula/php56-opcache.rb
==> Configuration
HOMEBREW_VERSION: 0.9.5
HEAD: 080db80323e3c509a2e4abb12118be7548009e62
CPU: quad-core 64-bit sandybridge
OS X: 10.9.2-x86_64
Xcode: 5.1.1
CLT: 5.1.0.0.1.1396320587
X11: 2.7.5 => /opt/X11
==> ENV
HOMEBREW_CC: clang
HOMEBREW_CXX: clang++
MAKEFLAGS: -j4
CMAKE_PREFIX_PATH: /usr/local/opt/gettext:/usr/local/opt/zlib:/usr/local
CMAKE_INCLUDE_PATH: /usr/include/libxml2:/System/Library/Frameworks/OpenGL.framework/Versions/Current/Headers
CMAKE_LIBRARY_PATH: /System/Library/Frameworks/OpenGL.framework/Versions/Current/Libraries
PKG_CONFIG_PATH: /usr/local/opt/libpng/lib/pkgconfig:/usr/local/opt/freetype/lib/pkgconfig:/usr/local/opt/zlib/lib/pkgconfig:/usr/local/opt/pcre/lib/pkgconfig
PKG_CONFIG_LIBDIR: /usr/lib/pkgconfig:/usr/local/Library/ENV/pkgconfig/10.9
ACLOCAL_PATH: /usr/local/opt/gettext/share/aclocal:/usr/local/share/aclocal
PATH: /usr/local/Library/ENV/4.3:/usr/local/opt/autoconf/bin:/usr/local/opt/libpng/bin:/usr/local/opt/freetype/bin:/usr/local/opt/gettext/bin:/usr/local/opt/jpeg/bin:/usr/local/opt/unixodbc/bin:/usr/local/opt/php56/bin:/usr/local/opt/pcre/bin:/usr/bin:/bin:/usr/sbin:/sbin
Error: php56-opcache 7.0.3 did not build
Copy link

ghost commented Nov 9, 2014

Did you ever figure it out ?

@Teddy-Zhu
Copy link

the same as i, mine php 5.6.5

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment