php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #78899 gcc6.5 can't compile base64.c
Submitted: 2019-12-02 13:03 UTC Modified: 2020-05-11 10:55 UTC
From: 269952181 at qq dot com Assigned:
Status: Open Package: Compile Failure
PHP Version: 7.4.0 OS: centos6.9
Private report: No CVE-ID: None
Have you experienced this issue?
Rate the importance of this bug to you:

 [2019-12-02 13:03 UTC] 269952181 at qq dot com
Description:
------------
ll -Wno-strict-aliasing -DZEND_SIGNALS   -c /base/pub/source/php-7.4.0/ext/standard/php_crypt_r.c -o ext/standard/php_crypt_r.lo
/bin/sh /base/pub/source/php-7.4.0/libtool --silent --preserve-dup-deps --mode=compile cc -DZEND_ENABLE_STATIC_TSRMLS_CACHE=1 -Iext/standard/ -I/base/pub/source/php-7.4.0/ext/standard/ -DPHP_ATOM_INC -I/base/pub/source/php-7.4.0/include -I/base/pub/source/php-7.4.0/main -I/base/pub/source/php-7.4.0 -I/base/pub/source/php-7.4.0/ext/date/lib -I/usr/include/libxml2 -I/usr/local/sqlite/include -I/base/pub/source/php-7.4.0/TSRM -I/base/pub/source/php-7.4.0/Zend    -I/usr/include -g -O2 -fvisibility=hidden -Wall -Wno-strict-aliasing -DZEND_SIGNALS   -c /base/pub/source/php-7.4.0/ext/standard/array.c -o ext/standard/array.lo
/bin/sh /base/pub/source/php-7.4.0/libtool --silent --preserve-dup-deps --mode=compile cc -DZEND_ENABLE_STATIC_TSRMLS_CACHE=1 -Iext/standard/ -I/base/pub/source/php-7.4.0/ext/standard/ -DPHP_ATOM_INC -I/base/pub/source/php-7.4.0/include -I/base/pub/source/php-7.4.0/main -I/base/pub/source/php-7.4.0 -I/base/pub/source/php-7.4.0/ext/date/lib -I/usr/include/libxml2 -I/usr/local/sqlite/include -I/base/pub/source/php-7.4.0/TSRM -I/base/pub/source/php-7.4.0/Zend    -I/usr/include -g -O2 -fvisibility=hidden -Wall -Wno-strict-aliasing -DZEND_SIGNALS   -c /base/pub/source/php-7.4.0/ext/standard/base64.c -o ext/standard/base64.lo
/tmp/ccxEFnVX.s: Assembler messages:
/tmp/ccxEFnVX.s:526: Error: no such instruction: `vpermd (%rbx),%ymm1,%ymm1'
/tmp/ccxEFnVX.s:557: Error: suffix or operands invalid for `vpshufb'
/tmp/ccxEFnVX.s:576: Error: suffix or operands invalid for `vpand'
/tmp/ccxEFnVX.s:582: Error: suffix or operands invalid for `vpmulhuw'
/tmp/ccxEFnVX.s:588: Error: suffix or operands invalid for `vpand'
/tmp/ccxEFnVX.s:594: Error: suffix or operands invalid for `vpmullw'
/tmp/ccxEFnVX.s:600: Error: suffix or operands invalid for `vpor'
/tmp/ccxEFnVX.s:610: Error: suffix or operands invalid for `vpcmpgtb'
/tmp/ccxEFnVX.s:616: Error: suffix or operands invalid for `vpsubusb'
/tmp/ccxEFnVX.s:622: Error: suffix or operands invalid for `vpsubb'
/tmp/ccxEFnVX.s:628: Error: suffix or operands invalid for `vpshufb'
/tmp/ccxEFnVX.s:634: Error: suffix or operands invalid for `vpaddb'
/tmp/ccxEFnVX.s:1190: Error: suffix or operands invalid for `vpcmpeqb'
/tmp/ccxEFnVX.s:1210: Error: suffix or operands invalid for `vpaddb'
/tmp/ccxEFnVX.s:1216: Error: suffix or operands invalid for `vpshufb'
/tmp/ccxEFnVX.s:1223: Error: suffix or operands invalid for `vpaddb'
/tmp/ccxEFnVX.s:1232: Error: suffix or operands invalid for `vpmaddubsw'
/tmp/ccxEFnVX.s:1239: Error: suffix or operands invalid for `vpmaddwd'
/tmp/ccxEFnVX.s:1245: Error: suffix or operands invalid for `vpshufb'
/tmp/ccxEFnVX.s:1251: Error: no such instruction: `vpermd %ymm0,%ymm7,%ymm0'
/tmp/ccxEFnVX.s:1282: Error: suffix or operands invalid for `vpsrld'
/tmp/ccxEFnVX.s:1289: Error: suffix or operands invalid for `vpand'
/tmp/ccxEFnVX.s:1294: Error: suffix or operands invalid for `vpand'
/tmp/ccxEFnVX.s:1300: Error: suffix or operands invalid for `vpshufb'
/tmp/ccxEFnVX.s:1305: Error: suffix or operands invalid for `vpshufb'
make: *** [ext/standard/base64.lo] Error 1


Test script:
---------------
ll -Wno-strict-aliasing -DZEND_SIGNALS   -c /base/pub/source/php-7.4.0/ext/standard/php_crypt_r.c -o ext/standard/php_crypt_r.lo
/bin/sh /base/pub/source/php-7.4.0/libtool --silent --preserve-dup-deps --mode=compile cc -DZEND_ENABLE_STATIC_TSRMLS_CACHE=1 -Iext/standard/ -I/base/pub/source/php-7.4.0/ext/standard/ -DPHP_ATOM_INC -I/base/pub/source/php-7.4.0/include -I/base/pub/source/php-7.4.0/main -I/base/pub/source/php-7.4.0 -I/base/pub/source/php-7.4.0/ext/date/lib -I/usr/include/libxml2 -I/usr/local/sqlite/include -I/base/pub/source/php-7.4.0/TSRM -I/base/pub/source/php-7.4.0/Zend    -I/usr/include -g -O2 -fvisibility=hidden -Wall -Wno-strict-aliasing -DZEND_SIGNALS   -c /base/pub/source/php-7.4.0/ext/standard/array.c -o ext/standard/array.lo
/bin/sh /base/pub/source/php-7.4.0/libtool --silent --preserve-dup-deps --mode=compile cc -DZEND_ENABLE_STATIC_TSRMLS_CACHE=1 -Iext/standard/ -I/base/pub/source/php-7.4.0/ext/standard/ -DPHP_ATOM_INC -I/base/pub/source/php-7.4.0/include -I/base/pub/source/php-7.4.0/main -I/base/pub/source/php-7.4.0 -I/base/pub/source/php-7.4.0/ext/date/lib -I/usr/include/libxml2 -I/usr/local/sqlite/include -I/base/pub/source/php-7.4.0/TSRM -I/base/pub/source/php-7.4.0/Zend    -I/usr/include -g -O2 -fvisibility=hidden -Wall -Wno-strict-aliasing -DZEND_SIGNALS   -c /base/pub/source/php-7.4.0/ext/standard/base64.c -o ext/standard/base64.lo
/tmp/ccxEFnVX.s: Assembler messages:
/tmp/ccxEFnVX.s:526: Error: no such instruction: `vpermd (%rbx),%ymm1,%ymm1'
/tmp/ccxEFnVX.s:557: Error: suffix or operands invalid for `vpshufb'
/tmp/ccxEFnVX.s:576: Error: suffix or operands invalid for `vpand'
/tmp/ccxEFnVX.s:582: Error: suffix or operands invalid for `vpmulhuw'
/tmp/ccxEFnVX.s:588: Error: suffix or operands invalid for `vpand'
/tmp/ccxEFnVX.s:594: Error: suffix or operands invalid for `vpmullw'
/tmp/ccxEFnVX.s:600: Error: suffix or operands invalid for `vpor'
/tmp/ccxEFnVX.s:610: Error: suffix or operands invalid for `vpcmpgtb'
/tmp/ccxEFnVX.s:616: Error: suffix or operands invalid for `vpsubusb'
/tmp/ccxEFnVX.s:622: Error: suffix or operands invalid for `vpsubb'
/tmp/ccxEFnVX.s:628: Error: suffix or operands invalid for `vpshufb'
/tmp/ccxEFnVX.s:634: Error: suffix or operands invalid for `vpaddb'
/tmp/ccxEFnVX.s:1190: Error: suffix or operands invalid for `vpcmpeqb'
/tmp/ccxEFnVX.s:1210: Error: suffix or operands invalid for `vpaddb'
/tmp/ccxEFnVX.s:1216: Error: suffix or operands invalid for `vpshufb'
/tmp/ccxEFnVX.s:1223: Error: suffix or operands invalid for `vpaddb'
/tmp/ccxEFnVX.s:1232: Error: suffix or operands invalid for `vpmaddubsw'
/tmp/ccxEFnVX.s:1239: Error: suffix or operands invalid for `vpmaddwd'
/tmp/ccxEFnVX.s:1245: Error: suffix or operands invalid for `vpshufb'
/tmp/ccxEFnVX.s:1251: Error: no such instruction: `vpermd %ymm0,%ymm7,%ymm0'
/tmp/ccxEFnVX.s:1282: Error: suffix or operands invalid for `vpsrld'
/tmp/ccxEFnVX.s:1289: Error: suffix or operands invalid for `vpand'
/tmp/ccxEFnVX.s:1294: Error: suffix or operands invalid for `vpand'
/tmp/ccxEFnVX.s:1300: Error: suffix or operands invalid for `vpshufb'
/tmp/ccxEFnVX.s:1305: Error: suffix or operands invalid for `vpshufb'
make: *** [ext/standard/base64.lo] Error 1


Expected result:
----------------
ll -Wno-strict-aliasing -DZEND_SIGNALS   -c /base/pub/source/php-7.4.0/ext/standard/php_crypt_r.c -o ext/standard/php_crypt_r.lo
/bin/sh /base/pub/source/php-7.4.0/libtool --silent --preserve-dup-deps --mode=compile cc -DZEND_ENABLE_STATIC_TSRMLS_CACHE=1 -Iext/standard/ -I/base/pub/source/php-7.4.0/ext/standard/ -DPHP_ATOM_INC -I/base/pub/source/php-7.4.0/include -I/base/pub/source/php-7.4.0/main -I/base/pub/source/php-7.4.0 -I/base/pub/source/php-7.4.0/ext/date/lib -I/usr/include/libxml2 -I/usr/local/sqlite/include -I/base/pub/source/php-7.4.0/TSRM -I/base/pub/source/php-7.4.0/Zend    -I/usr/include -g -O2 -fvisibility=hidden -Wall -Wno-strict-aliasing -DZEND_SIGNALS   -c /base/pub/source/php-7.4.0/ext/standard/array.c -o ext/standard/array.lo
/bin/sh /base/pub/source/php-7.4.0/libtool --silent --preserve-dup-deps --mode=compile cc -DZEND_ENABLE_STATIC_TSRMLS_CACHE=1 -Iext/standard/ -I/base/pub/source/php-7.4.0/ext/standard/ -DPHP_ATOM_INC -I/base/pub/source/php-7.4.0/include -I/base/pub/source/php-7.4.0/main -I/base/pub/source/php-7.4.0 -I/base/pub/source/php-7.4.0/ext/date/lib -I/usr/include/libxml2 -I/usr/local/sqlite/include -I/base/pub/source/php-7.4.0/TSRM -I/base/pub/source/php-7.4.0/Zend    -I/usr/include -g -O2 -fvisibility=hidden -Wall -Wno-strict-aliasing -DZEND_SIGNALS   -c /base/pub/source/php-7.4.0/ext/standard/base64.c -o ext/standard/base64.lo
/tmp/ccxEFnVX.s: Assembler messages:
/tmp/ccxEFnVX.s:526: Error: no such instruction: `vpermd (%rbx),%ymm1,%ymm1'
/tmp/ccxEFnVX.s:557: Error: suffix or operands invalid for `vpshufb'
/tmp/ccxEFnVX.s:576: Error: suffix or operands invalid for `vpand'
/tmp/ccxEFnVX.s:582: Error: suffix or operands invalid for `vpmulhuw'
/tmp/ccxEFnVX.s:588: Error: suffix or operands invalid for `vpand'
/tmp/ccxEFnVX.s:594: Error: suffix or operands invalid for `vpmullw'
/tmp/ccxEFnVX.s:600: Error: suffix or operands invalid for `vpor'
/tmp/ccxEFnVX.s:610: Error: suffix or operands invalid for `vpcmpgtb'
/tmp/ccxEFnVX.s:616: Error: suffix or operands invalid for `vpsubusb'
/tmp/ccxEFnVX.s:622: Error: suffix or operands invalid for `vpsubb'
/tmp/ccxEFnVX.s:628: Error: suffix or operands invalid for `vpshufb'
/tmp/ccxEFnVX.s:634: Error: suffix or operands invalid for `vpaddb'
/tmp/ccxEFnVX.s:1190: Error: suffix or operands invalid for `vpcmpeqb'
/tmp/ccxEFnVX.s:1210: Error: suffix or operands invalid for `vpaddb'
/tmp/ccxEFnVX.s:1216: Error: suffix or operands invalid for `vpshufb'
/tmp/ccxEFnVX.s:1223: Error: suffix or operands invalid for `vpaddb'
/tmp/ccxEFnVX.s:1232: Error: suffix or operands invalid for `vpmaddubsw'
/tmp/ccxEFnVX.s:1239: Error: suffix or operands invalid for `vpmaddwd'
/tmp/ccxEFnVX.s:1245: Error: suffix or operands invalid for `vpshufb'
/tmp/ccxEFnVX.s:1251: Error: no such instruction: `vpermd %ymm0,%ymm7,%ymm0'
/tmp/ccxEFnVX.s:1282: Error: suffix or operands invalid for `vpsrld'
/tmp/ccxEFnVX.s:1289: Error: suffix or operands invalid for `vpand'
/tmp/ccxEFnVX.s:1294: Error: suffix or operands invalid for `vpand'
/tmp/ccxEFnVX.s:1300: Error: suffix or operands invalid for `vpshufb'
/tmp/ccxEFnVX.s:1305: Error: suffix or operands invalid for `vpshufb'
make: *** [ext/standard/base64.lo] Error 1


Actual result:
--------------
ll -Wno-strict-aliasing -DZEND_SIGNALS   -c /base/pub/source/php-7.4.0/ext/standard/php_crypt_r.c -o ext/standard/php_crypt_r.lo
/bin/sh /base/pub/source/php-7.4.0/libtool --silent --preserve-dup-deps --mode=compile cc -DZEND_ENABLE_STATIC_TSRMLS_CACHE=1 -Iext/standard/ -I/base/pub/source/php-7.4.0/ext/standard/ -DPHP_ATOM_INC -I/base/pub/source/php-7.4.0/include -I/base/pub/source/php-7.4.0/main -I/base/pub/source/php-7.4.0 -I/base/pub/source/php-7.4.0/ext/date/lib -I/usr/include/libxml2 -I/usr/local/sqlite/include -I/base/pub/source/php-7.4.0/TSRM -I/base/pub/source/php-7.4.0/Zend    -I/usr/include -g -O2 -fvisibility=hidden -Wall -Wno-strict-aliasing -DZEND_SIGNALS   -c /base/pub/source/php-7.4.0/ext/standard/array.c -o ext/standard/array.lo
/bin/sh /base/pub/source/php-7.4.0/libtool --silent --preserve-dup-deps --mode=compile cc -DZEND_ENABLE_STATIC_TSRMLS_CACHE=1 -Iext/standard/ -I/base/pub/source/php-7.4.0/ext/standard/ -DPHP_ATOM_INC -I/base/pub/source/php-7.4.0/include -I/base/pub/source/php-7.4.0/main -I/base/pub/source/php-7.4.0 -I/base/pub/source/php-7.4.0/ext/date/lib -I/usr/include/libxml2 -I/usr/local/sqlite/include -I/base/pub/source/php-7.4.0/TSRM -I/base/pub/source/php-7.4.0/Zend    -I/usr/include -g -O2 -fvisibility=hidden -Wall -Wno-strict-aliasing -DZEND_SIGNALS   -c /base/pub/source/php-7.4.0/ext/standard/base64.c -o ext/standard/base64.lo
/tmp/ccxEFnVX.s: Assembler messages:
/tmp/ccxEFnVX.s:526: Error: no such instruction: `vpermd (%rbx),%ymm1,%ymm1'
/tmp/ccxEFnVX.s:557: Error: suffix or operands invalid for `vpshufb'
/tmp/ccxEFnVX.s:576: Error: suffix or operands invalid for `vpand'
/tmp/ccxEFnVX.s:582: Error: suffix or operands invalid for `vpmulhuw'
/tmp/ccxEFnVX.s:588: Error: suffix or operands invalid for `vpand'
/tmp/ccxEFnVX.s:594: Error: suffix or operands invalid for `vpmullw'
/tmp/ccxEFnVX.s:600: Error: suffix or operands invalid for `vpor'
/tmp/ccxEFnVX.s:610: Error: suffix or operands invalid for `vpcmpgtb'
/tmp/ccxEFnVX.s:616: Error: suffix or operands invalid for `vpsubusb'
/tmp/ccxEFnVX.s:622: Error: suffix or operands invalid for `vpsubb'
/tmp/ccxEFnVX.s:628: Error: suffix or operands invalid for `vpshufb'
/tmp/ccxEFnVX.s:634: Error: suffix or operands invalid for `vpaddb'
/tmp/ccxEFnVX.s:1190: Error: suffix or operands invalid for `vpcmpeqb'
/tmp/ccxEFnVX.s:1210: Error: suffix or operands invalid for `vpaddb'
/tmp/ccxEFnVX.s:1216: Error: suffix or operands invalid for `vpshufb'
/tmp/ccxEFnVX.s:1223: Error: suffix or operands invalid for `vpaddb'
/tmp/ccxEFnVX.s:1232: Error: suffix or operands invalid for `vpmaddubsw'
/tmp/ccxEFnVX.s:1239: Error: suffix or operands invalid for `vpmaddwd'
/tmp/ccxEFnVX.s:1245: Error: suffix or operands invalid for `vpshufb'
/tmp/ccxEFnVX.s:1251: Error: no such instruction: `vpermd %ymm0,%ymm7,%ymm0'
/tmp/ccxEFnVX.s:1282: Error: suffix or operands invalid for `vpsrld'
/tmp/ccxEFnVX.s:1289: Error: suffix or operands invalid for `vpand'
/tmp/ccxEFnVX.s:1294: Error: suffix or operands invalid for `vpand'
/tmp/ccxEFnVX.s:1300: Error: suffix or operands invalid for `vpshufb'
/tmp/ccxEFnVX.s:1305: Error: suffix or operands invalid for `vpshufb'
make: *** [ext/standard/base64.lo] Error 1


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2019-12-02 14:46 UTC] cmb@php.net
-Summary: gcc6.5 +Summary: gcc6.5 can't compile base64.c -Type: Feature/Change Request +Type: Bug
 [2020-05-11 10:55 UTC] nikic@php.net
This looks more like a broken assembler than an issue with GCC.
 
PHP Copyright © 2001-2020 The PHP Group
All rights reserved.
Last updated: Tue Oct 20 15:01:25 2020 UTC