View Issue Details

IDProjectCategoryView StatusLast Update
0001876XdebugInstallationpublic2021-03-17 08:37
Reporterdlr Assigned Toderick  
PrioritynormalSeveritycrashReproducibilityalways
Status resolvedResolutionno change required 
Product Version2.9.8 
Summary0001876: ZEND_LONG_FMT error while installing xdebug on macos
Description

When trying to install xdebug for php 7.4 on my mac : pecl install xdebug I get this error during make:

cc -I. -I/private/tmp/pear/temp/xdebug -DPHP_ATOM_INC -I/private/tmp/pear/temp/pear-build-dlrJPgTEe/xdebug-2.9.8/include -I/private/tmp/pear/temp/pear-build-dlrJPgTEe/xdebug-2.9.8/main -I/private/tmp/pear/temp/xdebug -I/usr/local/Cellar/php/7.4.11/include/php -I/usr/local/Cellar/php/7.4.11/include/php/main -I/usr/local/Cellar/php/7.4.11/include/php/TSRM -I/usr/local/Cellar/php/7.4.11/include/php/Zend -I/usr/local/Cellar/php/7.4.11/include/php/ext -I/usr/local/Cellar/php/7.4.11/include/php/ext/date/lib -I/private/tmp/pear/temp/xdebug/src -I/private/tmp/pear/temp/pear-build-dlrJPgTEe/xdebug-2.9.8/src -DHAVE_CONFIG_H -g -O2 -c /private/tmp/pear/temp/xdebug/src/base/base.c -fno-common -DPIC -o src/base/.libs/base.o/private/tmp/pear/temp/xdebug/src/base/base.c:325:83: error: expected ')'
zend_throw_exception_ex(zend_ce_error, 0, "Maximum function nesting level of '" ZEND_LONG_FMT "' reached, aborting!", XINI_BASE(max_nesting_level));
^
/usr/local/Cellar/php/7.4.11/include/php/Zend/zend_long.h:57:28: note: expanded from macro 'ZEND_LONG_FMT'

define ZEND_LONG_FMT "%" PRId64

Additional Information

PHP 7.4.11 (cli) (built: Oct 1 2020 23:30:54) ( NTS )
System Version: macOS 10.15.7 (19H2)
Kernel Version: Darwin 19.6.0

TagsNo tags attached.
Attached Files
Operating System
PHP Version7.4.0-7.4.4

Activities

derick

2020-11-03 16:47

administrator   ~0005493

I can't reproduce this, and my CI that I run on OSX also does not see this problem.

Please add the full output (as a file, don't paste it) of the following commands:

<pre>
cd /tmp
pecl download xdebug-2.9.8
tar -xvzf xdebug-2.9.8.tgz
cd xdebug-2.9.8
phpize
./configure
make
make install
</pre>

dlr

2020-11-03 17:48

reporter   ~0005498

Hello derick,
please find here attached the output.

Let me know if you need more informations/test/outputs.
Regards

output.txt (6,534 bytes)   
make
/bin/sh /tmp/xdebug-2.9.8/libtool --mode=compile cc   -I. -I/tmp/xdebug-2.9.8 -DPHP_ATOM_INC -I/tmp/xdebug-2.9.8/include -I/tmp/xdebug-2.9.8/main -I/tmp/xdebug-2.9.8 -I/usr/local/Cellar/php/7.4.12/include/php -I/usr/local/Cellar/php/7.4.12/include/php/main -I/usr/local/Cellar/php/7.4.12/include/php/TSRM -I/usr/local/Cellar/php/7.4.12/include/php/Zend -I/usr/local/Cellar/php/7.4.12/include/php/ext -I/usr/local/Cellar/php/7.4.12/include/php/ext/date/lib -I/tmp/xdebug-2.9.8/src  -DHAVE_CONFIG_H  -g -O2   -c /tmp/xdebug-2.9.8/xdebug.c -o xdebug.lo 
mkdir .libs
 cc -I. -I/tmp/xdebug-2.9.8 -DPHP_ATOM_INC -I/tmp/xdebug-2.9.8/include -I/tmp/xdebug-2.9.8/main -I/tmp/xdebug-2.9.8 -I/usr/local/Cellar/php/7.4.12/include/php -I/usr/local/Cellar/php/7.4.12/include/php/main -I/usr/local/Cellar/php/7.4.12/include/php/TSRM -I/usr/local/Cellar/php/7.4.12/include/php/Zend -I/usr/local/Cellar/php/7.4.12/include/php/ext -I/usr/local/Cellar/php/7.4.12/include/php/ext/date/lib -I/tmp/xdebug-2.9.8/src -DHAVE_CONFIG_H -g -O2 -c /tmp/xdebug-2.9.8/xdebug.c  -fno-common -DPIC -o .libs/xdebug.o
/bin/sh /tmp/xdebug-2.9.8/libtool --mode=compile cc   -I. -I/tmp/xdebug-2.9.8 -DPHP_ATOM_INC -I/tmp/xdebug-2.9.8/include -I/tmp/xdebug-2.9.8/main -I/tmp/xdebug-2.9.8 -I/usr/local/Cellar/php/7.4.12/include/php -I/usr/local/Cellar/php/7.4.12/include/php/main -I/usr/local/Cellar/php/7.4.12/include/php/TSRM -I/usr/local/Cellar/php/7.4.12/include/php/Zend -I/usr/local/Cellar/php/7.4.12/include/php/ext -I/usr/local/Cellar/php/7.4.12/include/php/ext/date/lib -I/tmp/xdebug-2.9.8/src  -DHAVE_CONFIG_H  -g -O2   -c /tmp/xdebug-2.9.8/src/base/base.c -o src/base/base.lo 
mkdir src/base/.libs
 cc -I. -I/tmp/xdebug-2.9.8 -DPHP_ATOM_INC -I/tmp/xdebug-2.9.8/include -I/tmp/xdebug-2.9.8/main -I/tmp/xdebug-2.9.8 -I/usr/local/Cellar/php/7.4.12/include/php -I/usr/local/Cellar/php/7.4.12/include/php/main -I/usr/local/Cellar/php/7.4.12/include/php/TSRM -I/usr/local/Cellar/php/7.4.12/include/php/Zend -I/usr/local/Cellar/php/7.4.12/include/php/ext -I/usr/local/Cellar/php/7.4.12/include/php/ext/date/lib -I/tmp/xdebug-2.9.8/src -DHAVE_CONFIG_H -g -O2 -c /tmp/xdebug-2.9.8/src/base/base.c  -fno-common -DPIC -o src/base/.libs/base.o
/tmp/xdebug-2.9.8/src/base/base.c:325:83: error: expected ')'
                zend_throw_exception_ex(zend_ce_error, 0, "Maximum function nesting level of '" ZEND_LONG_FMT "' reached, aborting!", XINI_BASE(max_nesting_level));
                                                                                                ^
/usr/local/Cellar/php/7.4.12/include/php/Zend/zend_long.h:57:28: note: expanded from macro 'ZEND_LONG_FMT'
# define ZEND_LONG_FMT "%" PRId64
                           ^
/tmp/xdebug-2.9.8/src/base/base.c:325:26: note: to match this '('
                zend_throw_exception_ex(zend_ce_error, 0, "Maximum function nesting level of '" ZEND_LONG_FMT "' reached, aborting!", XINI_BASE(max_nesting_level));
                                       ^
/tmp/xdebug-2.9.8/src/base/base.c:441:83: error: expected ')'
                zend_throw_exception_ex(zend_ce_error, 0, "Maximum function nesting level of '" ZEND_LONG_FMT "' reached, aborting!", XINI_BASE(max_nesting_level));
                                                                                                ^
/usr/local/Cellar/php/7.4.12/include/php/Zend/zend_long.h:57:28: note: expanded from macro 'ZEND_LONG_FMT'
# define ZEND_LONG_FMT "%" PRId64
                           ^
/tmp/xdebug-2.9.8/src/base/base.c:441:26: note: to match this '('
                zend_throw_exception_ex(zend_ce_error, 0, "Maximum function nesting level of '" ZEND_LONG_FMT "' reached, aborting!", XINI_BASE(max_nesting_level));
                                       ^
2 errors generated.
make: *** [src/base/base.lo] Error 1
iMac-de-dlr-2:xdebug-2.9.8 dlr$ make install
/bin/sh /tmp/xdebug-2.9.8/libtool --mode=compile cc   -I. -I/tmp/xdebug-2.9.8 -DPHP_ATOM_INC -I/tmp/xdebug-2.9.8/include -I/tmp/xdebug-2.9.8/main -I/tmp/xdebug-2.9.8 -I/usr/local/Cellar/php/7.4.12/include/php -I/usr/local/Cellar/php/7.4.12/include/php/main -I/usr/local/Cellar/php/7.4.12/include/php/TSRM -I/usr/local/Cellar/php/7.4.12/include/php/Zend -I/usr/local/Cellar/php/7.4.12/include/php/ext -I/usr/local/Cellar/php/7.4.12/include/php/ext/date/lib -I/tmp/xdebug-2.9.8/src  -DHAVE_CONFIG_H  -g -O2   -c /tmp/xdebug-2.9.8/src/base/base.c -o src/base/base.lo 
 cc -I. -I/tmp/xdebug-2.9.8 -DPHP_ATOM_INC -I/tmp/xdebug-2.9.8/include -I/tmp/xdebug-2.9.8/main -I/tmp/xdebug-2.9.8 -I/usr/local/Cellar/php/7.4.12/include/php -I/usr/local/Cellar/php/7.4.12/include/php/main -I/usr/local/Cellar/php/7.4.12/include/php/TSRM -I/usr/local/Cellar/php/7.4.12/include/php/Zend -I/usr/local/Cellar/php/7.4.12/include/php/ext -I/usr/local/Cellar/php/7.4.12/include/php/ext/date/lib -I/tmp/xdebug-2.9.8/src -DHAVE_CONFIG_H -g -O2 -c /tmp/xdebug-2.9.8/src/base/base.c  -fno-common -DPIC -o src/base/.libs/base.o
/tmp/xdebug-2.9.8/src/base/base.c:325:83: error: expected ')'
                zend_throw_exception_ex(zend_ce_error, 0, "Maximum function nesting level of '" ZEND_LONG_FMT "' reached, aborting!", XINI_BASE(max_nesting_level));
                                                                                                ^
/usr/local/Cellar/php/7.4.12/include/php/Zend/zend_long.h:57:28: note: expanded from macro 'ZEND_LONG_FMT'
# define ZEND_LONG_FMT "%" PRId64
                           ^
/tmp/xdebug-2.9.8/src/base/base.c:325:26: note: to match this '('
                zend_throw_exception_ex(zend_ce_error, 0, "Maximum function nesting level of '" ZEND_LONG_FMT "' reached, aborting!", XINI_BASE(max_nesting_level));
                                       ^
/tmp/xdebug-2.9.8/src/base/base.c:441:83: error: expected ')'
                zend_throw_exception_ex(zend_ce_error, 0, "Maximum function nesting level of '" ZEND_LONG_FMT "' reached, aborting!", XINI_BASE(max_nesting_level));
                                                                                                ^
/usr/local/Cellar/php/7.4.12/include/php/Zend/zend_long.h:57:28: note: expanded from macro 'ZEND_LONG_FMT'
# define ZEND_LONG_FMT "%" PRId64
                           ^
/tmp/xdebug-2.9.8/src/base/base.c:441:26: note: to match this '('
                zend_throw_exception_ex(zend_ce_error, 0, "Maximum function nesting level of '" ZEND_LONG_FMT "' reached, aborting!", XINI_BASE(max_nesting_level));
                                       ^
2 errors generated.
make: *** [src/base/base.lo] Error 1
output.txt (6,534 bytes)   

derick

2020-11-04 08:52

administrator   ~0005499

That's only the output from "make", not all the commands, which is what I asked for.

dlr

2020-11-04 09:09

reporter   ~0005500

Hello derick,
i'm sorry please find full file here attached.

Regards

output-2.txt (15,434 bytes)   
cd /tmp
iMac-de-dlr-2:tmp dlr$ pecl download xdebug-2.9.8
WARNING: channel "pecl.php.net" has updated its protocols, use "pecl channel-update pecl.php.net" to update
downloading xdebug-2.9.8.tgz ...
Starting to download xdebug-2.9.8.tgz (245,293 bytes)
...................................................done: 245,293 bytes
File /private/tmp/xdebug-2.9.8.tgz downloaded
iMac-de-dlr-2:tmp dlr$ tar -xvzf xdebug-2.9.8.tgz
x package.xml
x xdebug-2.9.8/contrib/tracefile-analyser.php
x xdebug-2.9.8/contrib/xt.vim
x xdebug-2.9.8/debugclient/buildconf
x xdebug-2.9.8/debugclient/config.guess
x xdebug-2.9.8/debugclient/config.h.in
x xdebug-2.9.8/debugclient/config.sub
x xdebug-2.9.8/debugclient/configure
x xdebug-2.9.8/debugclient/configure.ac
x xdebug-2.9.8/debugclient/debugclient.dsp
x xdebug-2.9.8/debugclient/INSTALL
x xdebug-2.9.8/debugclient/install-sh
x xdebug-2.9.8/debugclient/LICENSE
x xdebug-2.9.8/debugclient/main.c
x xdebug-2.9.8/debugclient/Makefile.in
x xdebug-2.9.8/debugclient/README
x xdebug-2.9.8/debugclient/usefulstuff.c
x xdebug-2.9.8/debugclient/usefulstuff.h
x xdebug-2.9.8/src/base/base.c
x xdebug-2.9.8/src/base/base.h
x xdebug-2.9.8/src/base/filter.c
x xdebug-2.9.8/src/base/filter.h
x xdebug-2.9.8/src/base/monitor.c
x xdebug-2.9.8/src/base/monitor.h
x xdebug-2.9.8/src/base/stack.c
x xdebug-2.9.8/src/base/stack.h
x xdebug-2.9.8/src/base/superglobals.c
x xdebug-2.9.8/src/base/superglobals.h
x xdebug-2.9.8/src/lib/usefulstuff.c
x xdebug-2.9.8/src/lib/usefulstuff.h
x xdebug-2.9.8/src/lib/compat.c
x xdebug-2.9.8/src/lib/compat.h
x xdebug-2.9.8/src/lib/crc32.c
x xdebug-2.9.8/src/lib/crc32.h
x xdebug-2.9.8/src/lib/hash.c
x xdebug-2.9.8/src/lib/hash.h
x xdebug-2.9.8/src/lib/lib.c
x xdebug-2.9.8/src/lib/lib.h
x xdebug-2.9.8/src/lib/lib_private.h
x xdebug-2.9.8/src/lib/llist.c
x xdebug-2.9.8/src/lib/llist.h
x xdebug-2.9.8/src/lib/mm.h
x xdebug-2.9.8/src/lib/set.c
x xdebug-2.9.8/src/lib/set.h
x xdebug-2.9.8/src/lib/str.c
x xdebug-2.9.8/src/lib/str.h
x xdebug-2.9.8/src/lib/var.c
x xdebug-2.9.8/src/lib/var.h
x xdebug-2.9.8/src/lib/var_export_html.c
x xdebug-2.9.8/src/lib/var_export_html.h
x xdebug-2.9.8/src/lib/var_export_line.c
x xdebug-2.9.8/src/lib/var_export_line.h
x xdebug-2.9.8/src/lib/var_export_serialized.c
x xdebug-2.9.8/src/lib/var_export_serialized.h
x xdebug-2.9.8/src/lib/var_export_text.c
x xdebug-2.9.8/src/lib/var_export_text.h
x xdebug-2.9.8/src/lib/var_export_xml.c
x xdebug-2.9.8/src/lib/var_export_xml.h
x xdebug-2.9.8/src/lib/xml.c
x xdebug-2.9.8/src/lib/xml.h
x xdebug-2.9.8/src/coverage/branch_info.c
x xdebug-2.9.8/src/coverage/branch_info.h
x xdebug-2.9.8/src/coverage/code_coverage.c
x xdebug-2.9.8/src/coverage/code_coverage.h
x xdebug-2.9.8/src/coverage/code_coverage_private.h
x xdebug-2.9.8/src/debugger/com.c
x xdebug-2.9.8/src/debugger/com.h
x xdebug-2.9.8/src/debugger/debugger.c
x xdebug-2.9.8/src/debugger/debugger.h
x xdebug-2.9.8/src/debugger/debugger_private.h
x xdebug-2.9.8/src/debugger/handlers.c
x xdebug-2.9.8/src/debugger/handlers.h
x xdebug-2.9.8/src/debugger/handler_dbgp.c
x xdebug-2.9.8/src/debugger/handler_dbgp.h
x xdebug-2.9.8/src/gcstats/gc_stats.c
x xdebug-2.9.8/src/gcstats/gc_stats.h
x xdebug-2.9.8/src/gcstats/gc_stats_private.h
x xdebug-2.9.8/src/profiler/profiler.c
x xdebug-2.9.8/src/profiler/profiler.h
x xdebug-2.9.8/src/profiler/profiler_private.h
x xdebug-2.9.8/src/tracing/tracing.c
x xdebug-2.9.8/src/tracing/tracing.h
x xdebug-2.9.8/src/tracing/tracing_private.h
x xdebug-2.9.8/src/tracing/trace_textual.c
x xdebug-2.9.8/src/tracing/trace_textual.h
x xdebug-2.9.8/src/tracing/trace_computerized.c
x xdebug-2.9.8/src/tracing/trace_computerized.h
x xdebug-2.9.8/src/tracing/trace_html.c
x xdebug-2.9.8/src/tracing/trace_html.h
x xdebug-2.9.8/config.m4
x xdebug-2.9.8/config.w32
x xdebug-2.9.8/CREDITS
x xdebug-2.9.8/LICENSE
x xdebug-2.9.8/xdebug.ini
x xdebug-2.9.8/Makefile.frag
x xdebug-2.9.8/README.rst
x xdebug-2.9.8/xdebug.c
x xdebug-2.9.8/php_xdebug.h
iMac-de-dlr-2:tmp dlr$ cd xdebug-2.9.8
iMac-de-dlr-2:xdebug-2.9.8 dlr$ phpize
Configuring for:
PHP Api Version:         20190902
Zend Module Api No:      20190902
Zend Extension Api No:   320190902
iMac-de-dlr-2:xdebug-2.9.8 dlr$ ./configure
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... /opt/local/bin/gsed
checking for pkg-config... /usr/local/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for cc... cc
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 cc accepts -g... yes
checking for cc option to accept ISO C89... none needed
checking how to run the C preprocessor... cc -E
checking for icc... no
checking for suncc... no
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-darwin19.6.0
checking host system type... x86_64-apple-darwin19.6.0
checking target system type... x86_64-apple-darwin19.6.0
checking for PHP prefix... /usr/local/Cellar/php/7.4.12
checking for PHP includes... -I/usr/local/Cellar/php/7.4.12/include/php -I/usr/local/Cellar/php/7.4.12/include/php/main -I/usr/local/Cellar/php/7.4.12/include/php/TSRM -I/usr/local/Cellar/php/7.4.12/include/php/Zend -I/usr/local/Cellar/php/7.4.12/include/php/ext -I/usr/local/Cellar/php/7.4.12/include/php/ext/date/lib
checking for PHP extension directory... /usr/local/Cellar/php/7.4.12/pecl/20190902
checking for PHP installed headers prefix... /usr/local/Cellar/php/7.4.12/include/php
checking if debug is enabled... no
checking if zts is enabled... no
checking for gawk... no
checking for nawk... no
checking for awk... awk
checking if awk is broken... no
checking whether to enable Xdebug support... yes, shared
checking whether to enable Xdebug developer build flags... no
checking Check for supported PHP versions... supported (7.4.12)
checking for gettimeofday... yes
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 netinet/in.h usability... yes
checking netinet/in.h presence... yes
checking for netinet/in.h... yes
checking poll.h usability... yes
checking poll.h presence... yes
checking for poll.h... yes
checking sys/poll.h usability... yes
checking sys/poll.h presence... yes
checking for sys/poll.h... yes
checking for cos in -lm... yes
checking for a sed that does not truncate output... /opt/local/bin/gsed
checking for ld used by cc... /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 -B
checking whether ln -s works... yes
checking how to recognize dependent libraries... pass_all
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 -B output from cc 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 cc supports -fno-rtti -fno-exceptions... yes
checking for cc option to produce PIC... -fno-common
checking if cc PIC flag -fno-common works... yes
checking if cc static flag -static works... no
checking if cc supports -c -o file.o... yes
checking whether the cc linker (/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld) supports shared libraries... yes
checking dynamic linker characteristics... darwin19.6.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
configure: patching config.h.in
configure: creating ./config.status
config.status: creating config.h
iMac-de-dlr-2:xdebug-2.9.8 dlr$ make
/bin/sh /tmp/xdebug-2.9.8/libtool --mode=compile cc   -I. -I/tmp/xdebug-2.9.8 -DPHP_ATOM_INC -I/tmp/xdebug-2.9.8/include -I/tmp/xdebug-2.9.8/main -I/tmp/xdebug-2.9.8 -I/usr/local/Cellar/php/7.4.12/include/php -I/usr/local/Cellar/php/7.4.12/include/php/main -I/usr/local/Cellar/php/7.4.12/include/php/TSRM -I/usr/local/Cellar/php/7.4.12/include/php/Zend -I/usr/local/Cellar/php/7.4.12/include/php/ext -I/usr/local/Cellar/php/7.4.12/include/php/ext/date/lib -I/tmp/xdebug-2.9.8/src  -DHAVE_CONFIG_H  -g -O2   -c /tmp/xdebug-2.9.8/xdebug.c -o xdebug.lo 
mkdir .libs
 cc -I. -I/tmp/xdebug-2.9.8 -DPHP_ATOM_INC -I/tmp/xdebug-2.9.8/include -I/tmp/xdebug-2.9.8/main -I/tmp/xdebug-2.9.8 -I/usr/local/Cellar/php/7.4.12/include/php -I/usr/local/Cellar/php/7.4.12/include/php/main -I/usr/local/Cellar/php/7.4.12/include/php/TSRM -I/usr/local/Cellar/php/7.4.12/include/php/Zend -I/usr/local/Cellar/php/7.4.12/include/php/ext -I/usr/local/Cellar/php/7.4.12/include/php/ext/date/lib -I/tmp/xdebug-2.9.8/src -DHAVE_CONFIG_H -g -O2 -c /tmp/xdebug-2.9.8/xdebug.c  -fno-common -DPIC -o .libs/xdebug.o
/bin/sh /tmp/xdebug-2.9.8/libtool --mode=compile cc   -I. -I/tmp/xdebug-2.9.8 -DPHP_ATOM_INC -I/tmp/xdebug-2.9.8/include -I/tmp/xdebug-2.9.8/main -I/tmp/xdebug-2.9.8 -I/usr/local/Cellar/php/7.4.12/include/php -I/usr/local/Cellar/php/7.4.12/include/php/main -I/usr/local/Cellar/php/7.4.12/include/php/TSRM -I/usr/local/Cellar/php/7.4.12/include/php/Zend -I/usr/local/Cellar/php/7.4.12/include/php/ext -I/usr/local/Cellar/php/7.4.12/include/php/ext/date/lib -I/tmp/xdebug-2.9.8/src  -DHAVE_CONFIG_H  -g -O2   -c /tmp/xdebug-2.9.8/src/base/base.c -o src/base/base.lo 
mkdir src/base/.libs
 cc -I. -I/tmp/xdebug-2.9.8 -DPHP_ATOM_INC -I/tmp/xdebug-2.9.8/include -I/tmp/xdebug-2.9.8/main -I/tmp/xdebug-2.9.8 -I/usr/local/Cellar/php/7.4.12/include/php -I/usr/local/Cellar/php/7.4.12/include/php/main -I/usr/local/Cellar/php/7.4.12/include/php/TSRM -I/usr/local/Cellar/php/7.4.12/include/php/Zend -I/usr/local/Cellar/php/7.4.12/include/php/ext -I/usr/local/Cellar/php/7.4.12/include/php/ext/date/lib -I/tmp/xdebug-2.9.8/src -DHAVE_CONFIG_H -g -O2 -c /tmp/xdebug-2.9.8/src/base/base.c  -fno-common -DPIC -o src/base/.libs/base.o
/tmp/xdebug-2.9.8/src/base/base.c:325:83: error: expected ')'
                zend_throw_exception_ex(zend_ce_error, 0, "Maximum function nesting level of '" ZEND_LONG_FMT "' reached, aborting!", XINI_BASE(max_nesting_level));
                                                                                                ^
/usr/local/Cellar/php/7.4.12/include/php/Zend/zend_long.h:57:28: note: expanded from macro 'ZEND_LONG_FMT'
# define ZEND_LONG_FMT "%" PRId64
                           ^
/tmp/xdebug-2.9.8/src/base/base.c:325:26: note: to match this '('
                zend_throw_exception_ex(zend_ce_error, 0, "Maximum function nesting level of '" ZEND_LONG_FMT "' reached, aborting!", XINI_BASE(max_nesting_level));
                                       ^
/tmp/xdebug-2.9.8/src/base/base.c:441:83: error: expected ')'
                zend_throw_exception_ex(zend_ce_error, 0, "Maximum function nesting level of '" ZEND_LONG_FMT "' reached, aborting!", XINI_BASE(max_nesting_level));
                                                                                                ^
/usr/local/Cellar/php/7.4.12/include/php/Zend/zend_long.h:57:28: note: expanded from macro 'ZEND_LONG_FMT'
# define ZEND_LONG_FMT "%" PRId64
                           ^
/tmp/xdebug-2.9.8/src/base/base.c:441:26: note: to match this '('
                zend_throw_exception_ex(zend_ce_error, 0, "Maximum function nesting level of '" ZEND_LONG_FMT "' reached, aborting!", XINI_BASE(max_nesting_level));
                                       ^
2 errors generated.
make: *** [src/base/base.lo] Error 1
iMac-de-dlr-2:xdebug-2.9.8 dlr$ make install
/bin/sh /tmp/xdebug-2.9.8/libtool --mode=compile cc   -I. -I/tmp/xdebug-2.9.8 -DPHP_ATOM_INC -I/tmp/xdebug-2.9.8/include -I/tmp/xdebug-2.9.8/main -I/tmp/xdebug-2.9.8 -I/usr/local/Cellar/php/7.4.12/include/php -I/usr/local/Cellar/php/7.4.12/include/php/main -I/usr/local/Cellar/php/7.4.12/include/php/TSRM -I/usr/local/Cellar/php/7.4.12/include/php/Zend -I/usr/local/Cellar/php/7.4.12/include/php/ext -I/usr/local/Cellar/php/7.4.12/include/php/ext/date/lib -I/tmp/xdebug-2.9.8/src  -DHAVE_CONFIG_H  -g -O2   -c /tmp/xdebug-2.9.8/src/base/base.c -o src/base/base.lo 
 cc -I. -I/tmp/xdebug-2.9.8 -DPHP_ATOM_INC -I/tmp/xdebug-2.9.8/include -I/tmp/xdebug-2.9.8/main -I/tmp/xdebug-2.9.8 -I/usr/local/Cellar/php/7.4.12/include/php -I/usr/local/Cellar/php/7.4.12/include/php/main -I/usr/local/Cellar/php/7.4.12/include/php/TSRM -I/usr/local/Cellar/php/7.4.12/include/php/Zend -I/usr/local/Cellar/php/7.4.12/include/php/ext -I/usr/local/Cellar/php/7.4.12/include/php/ext/date/lib -I/tmp/xdebug-2.9.8/src -DHAVE_CONFIG_H -g -O2 -c /tmp/xdebug-2.9.8/src/base/base.c  -fno-common -DPIC -o src/base/.libs/base.o
/tmp/xdebug-2.9.8/src/base/base.c:325:83: error: expected ')'
                zend_throw_exception_ex(zend_ce_error, 0, "Maximum function nesting level of '" ZEND_LONG_FMT "' reached, aborting!", XINI_BASE(max_nesting_level));
                                                                                                ^
/usr/local/Cellar/php/7.4.12/include/php/Zend/zend_long.h:57:28: note: expanded from macro 'ZEND_LONG_FMT'
# define ZEND_LONG_FMT "%" PRId64
                           ^
/tmp/xdebug-2.9.8/src/base/base.c:325:26: note: to match this '('
                zend_throw_exception_ex(zend_ce_error, 0, "Maximum function nesting level of '" ZEND_LONG_FMT "' reached, aborting!", XINI_BASE(max_nesting_level));
                                       ^
/tmp/xdebug-2.9.8/src/base/base.c:441:83: error: expected ')'
                zend_throw_exception_ex(zend_ce_error, 0, "Maximum function nesting level of '" ZEND_LONG_FMT "' reached, aborting!", XINI_BASE(max_nesting_level));
                                                                                                ^
/usr/local/Cellar/php/7.4.12/include/php/Zend/zend_long.h:57:28: note: expanded from macro 'ZEND_LONG_FMT'
# define ZEND_LONG_FMT "%" PRId64
                           ^
/tmp/xdebug-2.9.8/src/base/base.c:441:26: note: to match this '('
                zend_throw_exception_ex(zend_ce_error, 0, "Maximum function nesting level of '" ZEND_LONG_FMT "' reached, aborting!", XINI_BASE(max_nesting_level));
                                       ^
2 errors generated.
make: *** [src/base/base.lo] Error 1
output-2.txt (15,434 bytes)   

derick

2020-11-11 12:48

administrator   ~0005517

In the /tmp/xdebug-2.9.8 directory, can you run the following:

<pre>
cc -E -I. -I/tmp/xdebug-2.9.8 -DPHP_ATOM_INC -I/tmp/xdebug-2.9.8/include -I/tmp/xdebug-2.9.8/main -I/tmp/xdebug-2.9.8 -I/usr/local/Cellar/php/7.4.12/include/php -I/usr/local/Cellar/php/7.4.12/include/php/main -I/usr/local/Cellar/php/7.4.12/include/php/TSRM -I/usr/local/Cellar/php/7.4.12/include/php/Zend -I/usr/local/Cellar/php/7.4.12/include/php/ext -I/usr/local/Cellar/php/7.4.12/include/php/ext/date/lib -I/tmp/xdebug-2.9.8/src -DHAVE_CONFIG_H -g -O2 -c /tmp/xdebug-2.9.8/src/base/base.c -fno-common -DPIC -o /tmp/output.c.txt
</pre>

And then attach the output of /tmp/output.c.txt ?

dlr

2020-11-11 16:53

reporter   ~0005518

Hello derick,
here is the requested file.

Regards
David

output.c.txt (745,392 bytes)

derick

2020-11-12 15:59

administrator   ~0005521

Last edited: 2020-11-12 15:59

FWIW, there is an Xdebug ticket for this too: https://bugs.xdebug.org/view.php?id=1876, but so far, I am puzzled on why this happens. The ZEND_LONG_FMT macro uses the PRId64 macro which your OS should define, through the inttypes.h header file.

In my case (on Linux) it is in /usr/include/inttypes.h, as:
<pre>

define __PRI64_PREFIX "ll"

...

define PRId64 __PRI64_PREFIX "d"

</pre>

I can see from a debugging file that you have provided that it includes the file /usr/local/include/inttypes.h. As I don't have a mac, I can't check that file.

However, somebody else has stated that the /usr/local/include/inttypes.h file does not even exist on their OSX, and that instead that it should be
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/inttypes.h instead.

Could /usr/local/include/inttypes.h have come from a weird source and messes things up? Can you attach both the /usr/local/include/inttypes.h file, and the one that you can find (perhaps) under /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/?

In any case, I don't think this is a bug in either Xdebug (or PHP), but rather a broken header somewhere on OSX.

dlr

2020-11-13 16:19

reporter   ~0005525

Yes, thats make it !
Many thanks and sorry to have bother you

derick

2020-11-14 09:48

administrator   ~0005527

That's alright. Let me know how you solved it please though? So that others that ran into this can refer back to your solution too.

derick

2021-03-17 08:37

administrator   ~0005720

Just closing this out as there was no bug in Xdebug.

Issue History

Date Modified Username Field Change
2020-11-02 10:53 dlr New Issue
2020-11-03 16:47 derick Assigned To => derick
2020-11-03 16:47 derick Status new => feedback
2020-11-03 16:47 derick Note Added: 0005493
2020-11-03 17:48 dlr File Added: output.txt
2020-11-03 17:48 dlr Note Added: 0005498
2020-11-03 17:48 dlr Status feedback => assigned
2020-11-04 08:52 derick Status assigned => feedback
2020-11-04 08:52 derick Note Added: 0005499
2020-11-04 09:09 dlr File Added: output-2.txt
2020-11-04 09:09 dlr Note Added: 0005500
2020-11-04 09:09 dlr Status feedback => assigned
2020-11-11 12:48 derick Status assigned => feedback
2020-11-11 12:48 derick Note Added: 0005517
2020-11-11 16:53 dlr File Added: output.c.txt
2020-11-11 16:53 dlr Note Added: 0005518
2020-11-11 16:53 dlr Status feedback => assigned
2020-11-12 15:59 derick Status assigned => feedback
2020-11-12 15:59 derick Note Added: 0005521
2020-11-12 15:59 derick Note Edited: 0005521
2020-11-12 15:59 derick Note Edited: 0005521
2020-11-13 16:19 dlr Note Added: 0005525
2020-11-13 16:19 dlr Status feedback => assigned
2020-11-14 09:48 derick Status assigned => closed
2020-11-14 09:48 derick Resolution open => no change required
2020-11-14 09:48 derick Note Added: 0005527
2020-11-14 09:49 derick Status closed => assigned
2021-03-17 08:37 derick Status assigned => resolved
2021-03-17 08:37 derick Note Added: 0005720