Welcome to Centmin Mod Community
Become a Member

PHP-FPM PHP Make Failure for 7.4.33

Discussion in 'Nginx, PHP-FPM & MariaDB MySQL' started by redbot, Apr 27, 2023.

  1. redbot

    redbot Dreaming of Debmin Mod

    51
    10
    8
    Mar 30, 2020
    Ratings:
    +25
    Local Time:
    4:40 AM
    EDIT: Help no longer needed. I got frustrated and reinstalled the OS, it's just my little dev server so not a big deal. Feel free to delete


    Please fill in any relevant information that applies to you:
    • CentOS Version: CentOS 7 64bit
    • Centmin Mod Version Installed: 124 stable
    • Nginx Version Installed: 1.19.4
    • PHP Version Installed: 7.4.8
    • MariaDB MySQL Version Installed: 10.3.38
    • When was last time updated Centmin Mod code base ? : today
    • Persistent Config: Do you have any persistent config file options set in /etc/centminmod/custom_config.inc ? You can check via this command:
      Code (Text):
      LETSENCRYPT_DETECT='y'
      NGXDYNAMIC_NGXPAGESPEED='y'
      NGINX_PAGESPEED='y'
      AUDITD_ENABLE='y'
      AUDIT_MARIADB=n
      PHP_ARGON='y'
      NGINX_LIBBROTLI='y'
      NGXDYNAMIC_BROTLI='y'
      PHP_PGO='y'
      PHPFINFO='y'
      MARIADB_INSTALLTENTHREE='y'
      



      ____ _ _ ____ _ _ _ - Pastebin.com
     
    Last edited: Apr 27, 2023
  2. eva2000

    eva2000 Administrator Staff Member

    52,787
    12,080
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,607
    Local Time:
    7:40 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    1. is this initial install PHP-FPM issue or upgrading/downgrading PHP-FPM via centmin.sh menu option 4?
    2. How old is the actual Centmin Mod installation?
    3. So PHP 7.4 compiled fine previously on this server? Or from the get go after Centmin Mod initial install you had these PHP 7.4 compile issues? Downgrading to PHP 7.3 ok compile wise?
    4. Did reinstalling OS allow Centmin Mod to compile PHP 7.4?
    From your pastebin logs the issue with compiling PHP 7.4.33 on your system, specifically with the zend_accelerator_util_funcs.c file. The error message mentions an unknown register name %ymm1 and %ymm0, which suggests that there may be an issue with the CPU's supported flags, specifically with AVX. Meaning your server's bios or motherboard settings have AVX support disabled or web host's virtual host config disabled AVX support despite the CPU supporting AVX support needed for PHP 7.4+ (specifically needed for PHP 7.4's Zend Opcache).

    From the information provided about your CPU, it appears to be an Intel Core Processor (Haswell, no TSX), and the -march=native flag indicates that the compiler is trying to use the CPU's native architecture, which should include support for AVX. However, the output from the gcc -c -Q -march=native --help=target command shows that -msse2avx is disabled, which may be the cause of the compilation error. Usually, reinstalling OS won't fix this as AVX support could be disabled at your server's motherboard bios level or at virtual host's configuration level which configures which CPU flags/features that guest virtual machine servers support i.e. AVX.

    If the system is your local machine where you have control over motherboard bios settings, then the names for the AVX option within BIOS settings can vary depending on the manufacturer and model of the motherboard. However, some common names for the AVX option include:
    • Advanced Vector Extensions
    • Vector Processing Unit
    • Intel AVX Technology
    • SIMD Extensions
    • Floating Point Unit
    • Processor Extensions
    You may need to consult your motherboard's manual or contact the manufacturer's support to locate the option to enable AVX.

    PHP without AVX support is a lot slower anyway, so you'd want to be using a server or system configured with AVX CPU flag support.

    PHP-FPM make failure excerpt from your pastebin log
    Code (Text):
    /svr-setup/php-7.4.33/Zend/zend_execute.c: In function ‘zend_verify_ref_assignable_zval’:
    /svr-setup/php-7.4.33/Zend/zend_execute.c:3231:42: warning: ‘seen_type’ may be used uninitialized in this function [-Wmaybe-uninitialized]
       } else if (needs_coercion && seen_type != ZEND_TYPE_CODE(prop->type)) {
                                             ^
    /svr-setup/php-7.4.33/ext/opcache/zend_accelerator_util_funcs.c: In function ‘zend_accel_load_script’:
    /svr-setup/php-7.4.33/ext/opcache/zend_accelerator_util_funcs.c:613:2: error: unknown register name ‘%ymm1’ in ‘asm’
      __asm__ volatile (
      ^
    /svr-setup/php-7.4.33/ext/opcache/zend_accelerator_util_funcs.c:613:2: error: unknown register name ‘%ymm0’ in ‘asm’
    make: *** [ext/opcache/zend_accelerator_util_funcs.lo] Error 1
    
    real    3m13.611s
    user    1m46.018s
    sys    1m23.133s
    
    Wed Apr 26 21:40:43 UTC 2023
    Error: 2, PHP make failed (124.00stable.s74)
    
                 total        used        free      shared  buff/cache   available
    Mem:           1789         496         181          47        1111        1019
    Swap:          1023          32         991
    
    report errors on the forums at community.centminmod.com/forums/8/
    with info asked at community.centminmod.com/threads/17857/
    
                 total        used        free      shared  buff/cache   available
    Mem:           1789         496         181          47        1111        1019
    Swap:          1023          32         991
    
    Filesystem     Type      Size  Used Avail Use% Mounted on
    devtmpfs       devtmpfs  885M     0  885M   0% /dev
    tmpfs          tmpfs     895M     0  895M   0% /dev/shm
    tmpfs          tmpfs     895M  524K  895M   1% /run
    tmpfs          tmpfs     895M     0  895M   0% /sys/fs/cgroup
    /dev/sda1      ext4       40G   18G   21G  46% /
    /dev/loop0     ext4      5.8G   26M  5.5G   1% /tmp
    tmpfs          tmpfs     179M     0  179M   0% /run/user/0
    
    CPU: Intel Core Processor (Haswell, no TSX) (1)
    
    version increment history
    124.00stable.s74 #Wed Apr 26 18:30:25 UTC 2023
    124.00stable.s74 #Wed Apr 26 18:31:59 UTC 2023
    124.00stable.s74 #Wed Apr 26 18:45:47 UTC 2023
    124.00stable.s74 #Wed Apr 26 18:54:10 UTC 2023
    124.00stable.s74 #Wed Apr 26 21:32:24 UTC 2023
    
    last Centmin Mod local git commit entry
    /usr/local/src/centminmod /svr-setup/php-7.4.33/fpm-build /usr/local/nginx/conf
    
    07152ec George Liu (eva2000) Fri, 14 Apr 2023 06:55:52 +1000
    set TS_INSTALL='n' in 124.00stable
    
    2    2    centmin-cli.sh
    2    2    centmin.sh
     2 files changed, 4 insertions(+), 4 deletions(-)
    /svr-setup/php-7.4.33/fpm-build /usr/local/nginx/conf
    


    Though your pastebin log also shows GCC 10 failed to install so could be you're using older native CentOS 7 4.8.5 GCC version which won't work with PHP 7.4 due to AVX requirements. So reinstalling OS and redoing Centmin Mod initial install could of allowed GCC 10 to properly install and thus allowed PHP 7.4 to compile this time.
    Code (Text):
    PHP configure stage
    
    NEWLIBICU=y
    NEWLIBICU=y
    installing devtoolset-10 for GCC 10...
    inc/brotli.inc: line 203: /opt/rh/devtoolset-10/root/usr/bin/gcc: No such file or directory
    inc/brotli.inc: line 204: /opt/rh/devtoolset-10/root/usr/bin/g++: No such file or directory
    installing devtoolset-10 for GCC 10...
    inc/brotli.inc: line 203: /opt/rh/devtoolset-10/root/usr/bin/gcc: No such file or directory
    inc/brotli.inc: line 204: /opt/rh/devtoolset-10/root/usr/bin/g++: No such file or directory
    installing devtoolset-10 for GCC 10...
    inc/brotli.inc: line 203: /opt/rh/devtoolset-10/root/usr/bin/gcc: No such file or directory
    inc/brotli.inc: line 204: /opt/rh/devtoolset-10/root/usr/bin/g++: No such file or directory
    installing devtoolset-10 for GCC 10...
    inc/brotli.inc: line 203: /opt/rh/devtoolset-10/root/usr/bin/gcc: No such file or directory
    inc/brotli.inc: line 204: /opt/rh/devtoolset-10/root/usr/bin/g++: No such file or directory
    installing devtoolset-10 for GCC 10...
    inc/brotli.inc: line 203: /opt/rh/devtoolset-10/root/usr/bin/gcc: No such file or directory
    inc/brotli.inc: line 204: /opt/rh/devtoolset-10/root/usr/bin/g++: No such file or directory