Bug #75951 [Com]: The 'asm goto' constructs are not supported by LLVM

From: Date: Mon, 12 Feb 2018 11:52:36 +0000
Subject: Bug #75951 [Com]: The 'asm goto' constructs are not supported by LLVM
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-213929@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=75951&edit=1

 ID:                 75951
 Comment by:         serghei at phalconphp dot com
 Reported by:        serghei at phalconphp dot com
 Summary:            The 'asm goto' constructs are not supported by LLVM
 Status:             Feedback
 Type:               Bug
 Package:            *General Issues
 Operating System:   Linux
 PHP Version:        master-Git-2018-02-11 (Git)
 Block user comment: N
 Private report:     N

 New Comment:

Hi nikic@,

Unfortunately configure.log does not exists. Current configure output is: 

============================== cut ==============================

checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for a sed that does not truncate output... /bin/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-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking target system type... x86_64-unknown-linux-gnu
checking for PHP prefix... /home/travis/.phpenv/versions/master
checking for PHP includes... -I/home/travis/.phpenv/versions/master/include/php
-I/home/travis/.phpenv/versions/master/include/php/main
-I/home/travis/.phpenv/versions/master/include/php/TSRM
-I/home/travis/.phpenv/versions/master/include/php/Zend
-I/home/travis/.phpenv/versions/master/include/php/ext
-I/home/travis/.phpenv/versions/master/include/php/ext/date/lib
checking for PHP extension directory...
/home/travis/.phpenv/versions/master/lib/php/extensions/no-debug-zts-20170718
checking for PHP installed headers prefix... /home/travis/.phpenv/versions/master/include/php
checking if debug is enabled... no
checking if zts is enabled... yes
checking for re2c... re2c
checking for re2c version... 0.13.6 (ok)
checking for gawk... gawk
checking whether to enable Zephir Parser... yes, shared
checking for ld used by clang... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for /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 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... 1572864
checking command to parse /usr/bin/nm -B output from clang object... ok
checking for objdir... .libs
checking for ar... ar
checking for ranlib... ranlib
checking for strip... strip
checking if clang supports -fno-rtti -fno-exceptions... yes
checking for clang option to produce PIC... -fPIC
checking if clang PIC flag -fPIC works... yes
checking if clang static flag -static works... yes
checking if clang supports -c -o file.o... yes
checking whether the clang linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes
checking whether -lc should be explicitly linked in... no
checking dynamic linker characteristics... GNU/Linux ld.so
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

============================== cut ==============================

Compile output:

============================== cut ==============================

In file included from /home/travis/build/phalcon/php-zephir-parser/parser/parser.c:1:
In file included from /home/travis/.phpenv/versions/master/include/php/main/php.h:35:
In file included from /home/travis/.phpenv/versions/master/include/php/Zend/zend.h:333:
/home/travis/.phpenv/versions/master/include/php/Zend/zend_operators.h:482:10: error: 'asm
goto' constructs are not supported yet
        __asm__ goto(
                ^
/home/travis/.phpenv/versions/master/include/php/Zend/zend_operators.h:532:10: error: 'asm
goto' constructs are not supported yet
        __asm__ goto(
                ^
/home/travis/.phpenv/versions/master/include/php/Zend/zend_operators.h:589:10: error: 'asm
goto' constructs are not supported yet
        __asm__ goto(
                ^
In file included from /home/travis/build/phalcon/php-zephir-parser/parser/scanner.c:15:
In file included from /home/travis/.phpenv/versions/master/include/php/main/php.h:35:
In file included from /home/travis/.phpenv/versions/master/include/php/Zend/zend.h:333:
/home/travis/.phpenv/versions/master/include/php/Zend/zend_operators.h:482:10: error: 'asm
goto' constructs are not supported yet
        __asm__ goto(
                ^
/home/travis/.phpenv/versions/master/include/php/Zend/zend_operators.h:532:10: error: 'asm
goto' constructs are not supported yet
        __asm__ goto(
                ^
/home/travis/.phpenv/versions/master/include/php/Zend/zend_operators.h:589:10: error: 'asm
goto' constructs are not supported yet
        __asm__ goto(
                ^
/home/travis/.phpenv/versions/master/include/php/Zend/zend_operators.h:679:10: error: 'asm
goto' constructs are not supported yet
        __asm__ goto(
                ^
/home/travis/.phpenv/versions/master/include/php/Zend/zend_operators.h:679:10: error: 'asm
goto' constructs are not supported yet
        __asm__ goto(
                ^
In file included from /home/travis/build/phalcon/php-zephir-parser/zephir_parser.c:19:
In file included from /home/travis/.phpenv/versions/master/include/php/main/php.h:35:
In file included from /home/travis/.phpenv/versions/master/include/php/Zend/zend.h:333:
/home/travis/.phpenv/versions/master/include/php/Zend/zend_operators.h:482:10: error: 'asm
goto' constructs are not supported yet
        __asm__ goto(
                ^
/home/travis/.phpenv/versions/master/include/php/Zend/zend_operators.h:532:10: error: 'asm
goto' constructs are not supported yet
        __asm__ goto(
                ^
/home/travis/.phpenv/versions/master/include/php/Zend/zend_operators.h:589:10: error: 'asm
goto' constructs are not supported yet
        __asm__ goto(
                ^
/home/travis/.phpenv/versions/master/include/php/Zend/zend_operators.h:679:10: error: 'asm
goto' constructs are not supported yet
        __asm__ goto(
                ^

============================== cut ==============================

Should I provide something else?

Best wishes,


Previous Comments:
------------------------------------------------------------------------
[2018-02-11 17:38:49] nikic@php.net

As others have already set, this issue should not exist since https://github.com/php/php-src/commit/4e0b3c0c4c27cddcff6013a2c408597bbe87d2d5.

Can you please provide your configure.log?

------------------------------------------------------------------------
[2018-02-11 17:30:35] serghei at phalconphp dot com

Please note 'asm goto' is a PHP contributor's bug, not LLVM. The 'asm goto'
is not implemented everywhere. Right now I can't build latest PHP using LLVM.

------------------------------------------------------------------------
[2018-02-11 17:26:52] serghei at phalconphp dot com

c

------------------------------------------------------------------------
[2018-02-11 17:20:29] spam2 at rhsoft dot net

yes, it's your bugreport but at the wrong bugtracker
https://bugs.llvm.org/

------------------------------------------------------------------------
[2018-02-11 17:16:52] serghei at phalconphp dot com

Hello danack@

I hope that you are going good.

Please stop decide what exactly I want. It is just my bug report, not my wants. I faced with it on
Travis CI by testing on it on latest GCC/LLVM.

Thank you
Have a nice day

------------------------------------------------------------------------


The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at

    https://bugs.php.net/bug.php?id=75951


--
Edit this bug report at https://bugs.php.net/bug.php?id=75951&edit=1


Thread (20 messages)

« previous php.bugs (#213929) next »