View Issue Details

IDProjectCategoryView StatusLast Update
0001981XdebugInstallationpublic2021-06-10 20:47
Reporterdwinterfeld Assigned Toderick  
PrioritynormalSeveritymajorReproducibilityalways
Status closedResolutionnot fixable 
PlatformMacOSMacOSOS VersionBig Sur
Product Version3.0.4 
Summary0001981: make fails
Description

I tried to follow step from this wizard: https://xdebug.org/wizard

make fails w/

AIP-DWINTERFELD-MAC:xdebug-3.0.4 dorianwinterfeld$ make
Makefile:228: warning: overriding commands for target test' Makefile:132: warning: ignoring old commands for targettest'
/bin/sh /Users/dorianwinterfeld/xdebug-3.0.4/xdebug-3.0.4/libtool --mode=compile cc -I. -I/Users/dorianwinterfeld/xdebug-3.0.4/xdebug-3.0.4 -DPHP_ATOM_INC -I/Users/dorianwinterfeld/xdebug-3.0.4/xdebug-3.0.4/include -I/Users/dorianwinterfeld/xdebug-3.0.4/xdebug-3.0.4/main -I/Users/dorianwinterfeld/xdebug-3.0.4/xdebug-3.0.4 -I/usr/local/Cellar/php@7.4/7.4.19_1/include/php -I/usr/local/Cellar/php@7.4/7.4.19_1/include/php/main -I/usr/local/Cellar/php@7.4/7.4.19_1/include/php/TSRM -I/usr/local/Cellar/php@7.4/7.4.19_1/include/php/Zend -I/usr/local/Cellar/php@7.4/7.4.19_1/include/php/ext -I/usr/local/Cellar/php@7.4/7.4.19_1/include/php/ext/date/lib -I/Users/dorianwinterfeld/xdebug-3.0.4/xdebug-3.0.4/src -DHAVE_CONFIG_H -g -O2 -c /Users/dorianwinterfeld/xdebug-3.0.4/xdebug-3.0.4/xdebug.c -o xdebug.lo
cc -I. -I/Users/dorianwinterfeld/xdebug-3.0.4/xdebug-3.0.4 -DPHP_ATOM_INC -I/Users/dorianwinterfeld/xdebug-3.0.4/xdebug-3.0.4/include -I/Users/dorianwinterfeld/xdebug-3.0.4/xdebug-3.0.4/main -I/Users/dorianwinterfeld/xdebug-3.0.4/xdebug-3.0.4 -I/usr/local/Cellar/php@7.4/7.4.19_1/include/php -I/usr/local/Cellar/php@7.4/7.4.19_1/include/php/main -I/usr/local/Cellar/php@7.4/7.4.19_1/include/php/TSRM -I/usr/local/Cellar/php@7.4/7.4.19_1/include/php/Zend -I/usr/local/Cellar/php@7.4/7.4.19_1/include/php/ext -I/usr/local/Cellar/php@7.4/7.4.19_1/include/php/ext/date/lib -I/Users/dorianwinterfeld/xdebug-3.0.4/xdebug-3.0.4/src -DHAVE_CONFIG_H -g -O2 -c /Users/dorianwinterfeld/xdebug-3.0.4/xdebug-3.0.4/xdebug.c -fno-common -DPIC -o .libs/xdebug.o
In file included from /Users/dorianwinterfeld/xdebug-3.0.4/xdebug-3.0.4/xdebug.c:25:
In file included from /usr/local/Cellar/php@7.4/7.4.19_1/include/php/main/php.h:33:
In file included from /usr/local/Cellar/php@7.4/7.4.19_1/include/php/Zend/zend.h:356:
/usr/local/Cellar/php@7.4/7.4.19_1/include/php/Zend/zend_operators.h:523:10: error:
'asm goto' constructs are not supported yet
asm goto(
^
/usr/local/Cellar/php@7.4/7.4.19_1/include/php/Zend/zend_operators.h:586:10: error:
'asm goto' constructs are not supported yet
asm goto(
^
/usr/local/Cellar/php@7.4/7.4.19_1/include/php/Zend/zend_operators.h:656:10: error:
'asm goto' constructs are not supported yet
asm goto(
^
/usr/local/Cellar/php@7.4/7.4.19_1/include/php/Zend/zend_operators.h:766:10: error:
'asm goto' constructs are not supported yet
asm goto(
^
/Users/dorianwinterfeld/xdebug-3.0.4/xdebug-3.0.4/xdebug.c:150:32: warning:
address of array 'new_value->val' will always evaluate to 'true'
[-Wpointer-bool-conversion]
if (!new_value || !new_value->val) {


/Users/dorianwinterfeld/xdebug-3.0.4/xdebug-3.0.4/xdebug.c:163:32: warning: 
      address of array 'new_value->val' will always evaluate to 'true'
      [-Wpointer-bool-conversion]
        if (!new_value || !new_value->val) {
                          ~~~~~~~~~~~~^~~
/Users/dorianwinterfeld/xdebug-3.0.4/xdebug-3.0.4/xdebug.c:176:32: warning: 
      address of array 'new_value->val' will always evaluate to 'true'
      [-Wpointer-bool-conversion]
        if (!new_value || !new_value->val) {
                          ~~~~~~~~~~~~^~~
/Users/dorianwinterfeld/xdebug-3.0.4/xdebug-3.0.4/xdebug.c:192:30: warning: 
      address of array 'new_value->val' will always evaluate to 'true'
      [-Wpointer-bool-conversion]
        if (new_value && new_value->val && strlen(new_value->val) > 0 &...
                      ~~ ~~~~~~~~~~~^~~
/Users/dorianwinterfeld/xdebug-3.0.4/xdebug-3.0.4/xdebug.c:207:30: warning: 
      address of array 'new_value->val' will always evaluate to 'true'
      [-Wpointer-bool-conversion]
        if (new_value && new_value->val && strlen(new_value->val) > 0 &...
                      ~~ ~~~~~~~~~~~^~~
5 warnings and 4 errors generated.
make: *** [xdebug.lo] Error 1
Steps To Reproduce

Download xdebug-3.0.4.tgz
Install the pre-requisites for compiling PHP extensions.
On your Mac, we only support installations with 'homebrew', and brew install php && brew install autoconf should pull in the right packages.
Unpack the downloaded file with tar -xvzf xdebug-3.0.4.tgz
Run: cd xdebug-3.0.4
Run: phpize (See the FAQ if you don't have phpize).

As part of its output it should show:

Configuring for:
...
Zend Module Api No: 20190902
Zend Extension Api No: 320190902
If it does not, you are using the wrong phpize. Please follow this FAQ entry and skip the next step.

Run: ./configure
Run: make
Run: cp modules/xdebug.so /usr/local/lib/php/pecl/20190902
Edit /usr/local/etc/php/7.4/php.ini and add the line
zend_extension = /usr/local/lib/php/pecl/20190902/xdebug.so
Make sure that zend_extension = /usr/local/lib/php/pecl/20190902/xdebug.so is below the line for OPcache.

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

Activities

derick

2021-06-10 20:47

administrator   ~0005899

This is a bug in PHP, and not something that I can fix: https://bugs.php.net/bug.php?id=81124

The workaround is to build xdebug (and other extensions) with the same compiler and tool set that PHP was compiled with, until this is fixed in PHP.

Issue History

Date Modified Username Field Change
2021-06-02 19:28 dwinterfeld New Issue
2021-06-10 20:47 derick Assigned To => derick
2021-06-10 20:47 derick Status new => closed
2021-06-10 20:47 derick Resolution open => not fixable
2021-06-10 20:47 derick Note Added: 0005899