Welcome to Centmin Mod Community
Become a Member

PHP 8.0.26 with PGO dropped some errors on PGO routine on compilation

Discussion in 'Nginx, PHP-FPM & MariaDB MySQL' started by happyhacking, Jan 3, 2023.

  1. happyhacking

    happyhacking Premium Member Premium Member

    93
    15
    8
    Apr 23, 2021
    Ratings:
    +51
    Local Time:
    4:26 PM
    1.22.0
    MariadDB 10.4.25
    After upgrading PHP from 7 to 8.0.26 i see the following errors when PGO routine was called, but everything compiled just fine, im writing this only to know if everything is ok with PGO optimizations:
    • CentOS Version:CentOS 7 64bit
    • Centmin Mod Version Installed: 124.00stable
    • Nginx Version Installed: 1.23.3
    • PHP Version Installed: 8.0.26
    • MariaDB MySQL Version Installed: 10.4.xx
    • Code (Text):
      ./sapi/cgi/php-cgi -T20 /opt/phpbench/detailed_benchmark.php
      PHP Warning:  Failed loading Zend extension 'opcache.so' (tried: /usr/local/lib/php/extensions/no-debug-non-zts-20200930/opcache.so (/usr/local/lib/php/extensions/no-debug-non-zts-20200930/opcache.so: cannot open shared object file: No such file or directory), /usr/local/lib/php/extensions/no-debug-non-zts-20200930/opcache.so.so (/usr/local/lib/php/extensions/no-debug-non-zts-20200930/opcache.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0
      PHP Warning:  PHP Startup: Unable to load dynamic library 'brotli.so' (tried: /usr/local/lib/php/extensions/no-debug-non-zts-20200930/brotli.so (/usr/local/lib/php/extensions/no-debug-non-zts-20200930/brotli.so: cannot open shared object file: No such file or directory), /usr/local/lib/php/extensions/no-debug-non-zts-20200930/brotli.so.so (/usr/local/lib/php/extensions/no-debug-non-zts-20200930/brotli.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0
      PHP Warning:  PHP Startup: Unable to load dynamic library 'geoip.so' (tried: /usr/local/lib/php/extensions/no-debug-non-zts-20200930/geoip.so (/usr/local/lib/php/extensions/no-debug-non-zts-20200930/geoip.so: cannot open shared object file: No such file or directory), /usr/local/lib/php/extensions/no-debug-non-zts-20200930/geoip.so.so (/usr/local/lib/php/extensions/no-debug-non-zts-20200930/geoip.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0
      PHP Warning:  PHP Startup: Unable to load dynamic library 'lz4.so' (tried: /usr/local/lib/php/extensions/no-debug-non-zts-20200930/lz4.so (/usr/local/lib/php/extensions/no-debug-non-zts-20200930/lz4.so: cannot open shared object file: No such file or directory), /usr/local/lib/php/extensions/no-debug-non-zts-20200930/lz4.so.so (/usr/local/lib/php/extensions/no-debug-non-zts-20200930/lz4.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0
      PHP Warning:  PHP Startup: Unable to load dynamic library 'lzf.so' (tried: /usr/local/lib/php/extensions/no-debug-non-zts-20200930/lzf.so (/usr/local/lib/php/extensions/no-debug-non-zts-20200930/lzf.so: cannot open shared object file: No such file or directory), /usr/local/lib/php/extensions/no-debug-non-zts-20200930/lzf.so.so (/usr/local/lib/php/extensions/no-debug-non-zts-20200930/lzf.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0
      PHP Warning:  PHP Startup: Unable to load dynamic library 'mailparse.so' (tried: /usr/local/lib/php/extensions/no-debug-non-zts-20200930/mailparse.so (/usr/local/lib/php/extensions/no-debug-non-zts-20200930/mailparse.so: cannot open shared object file: No such file or directory), /usr/local/lib/php/extensions/no-debug-non-zts-20200930/mailparse.so.so (/usr/local/lib/php/extensions/no-debug-non-zts-20200930/mailparse.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0
      PHP Warning:  PHP Startup: Unable to load dynamic library 'mcrypt.so' (tried: /usr/local/lib/php/extensions/no-debug-non-zts-20200930/mcrypt.so (/usr/local/lib/php/extensions/no-debug-non-zts-20200930/mcrypt.so: cannot open shared object file: No such file or directory), /usr/local/lib/php/extensions/no-debug-non-zts-20200930/mcrypt.so.so (/usr/local/lib/php/extensions/no-debug-non-zts-20200930/mcrypt.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0
      PHP Warning:  PHP Startup: Unable to load dynamic library 'redis.so' (tried: /usr/local/lib/php/extensions/no-debug-non-zts-20200930/redis.so (/usr/local/lib/php/extensions/no-debug-non-zts-20200930/redis.so: cannot open shared object file: No such file or directory), /usr/local/lib/php/extensions/no-debug-non-zts-20200930/redis.so.so (/usr/local/lib/php/extensions/no-debug-non-zts-20200930/redis.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0
      PHP Warning:  PHP Startup: Unable to load dynamic library 'timezonedb.so' (tried: /usr/local/lib/php/extensions/no-debug-non-zts-20200930/timezonedb.so (/usr/local/lib/php/extensions/no-debug-non-zts-20200930/timezonedb.so: cannot open shared object file: No such file or directory), /usr/local/lib/php/extensions/no-debug-non-zts-20200930/timezonedb.so.so (/usr/local/lib/php/extensions/no-debug-non-zts-20200930/timezonedb.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0
      PHP Warning:  PHP Startup: Unable to load dynamic library 'zstd.so' (tried: /usr/local/lib/php/extensions/no-debug-non-zts-20200930/zstd.so (/usr/local/lib/php/extensions/no-debug-non-zts-20200930/zstd.so: cannot open shared object file: No such file or directory), /usr/local/lib/php/extensions/no-debug-non-zts-20200930/zstd.so.so (/usr/local/lib/php/extensions/no-debug-non-zts-20200930/zstd.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0
      Content-type: text/html; charset=UTF-8
      

      Code (Text):
      [*]***************************************************
      Usage: /usr/local/bin/php-config [OPTION]
      Options:
        --prefix            [/usr/local]
        --includes          [-I/usr/local/include/php -I/usr/local/include/php/main -I/usr/local/include/php/TSRM -I/usr/local/include/php/Zend -I/usr/local/include/php/ext -I/usr/local/include/php/ext/date/lib]
        --ldflags           [ -L/usr/local/lib64]
        --libs              [-lcrypt  -lc-client  -ltidy -largon2 -lresolv -lncurses -laspell -lpspell -lrt -lldap -llber -lstdc++ -lcrypt -lpam -lgmp -lbz2 -lutil -lrt -lm -ldl  -lsystemd -lxml2 -lgssapi_krb5 -lkrb5 -lk5crypto -lcom_err -lssl -lcrypto -lsqlite3 -lz -lcurl -lxml2 -lenchant -lgmodule-2.0 -lglib-2.0 -lffi -lssl -lcrypto -lz -lpng15 -lwebp -ljpeg -lXpm -lX11 -lfreetype -lgssapi_krb5 -lkrb5 -lk5crypto -lcom_err -lssl -lcrypto -licuio -licui18n -licuuc -licudata -lonig -lsqlite3 -ledit -ltinfo -lxml2 -lnetsnmp -lssl -lssl -lcrypto -lm -lxml2 -lsodium -largon2 -lxml2 -lxml2 -lxml2 -lxslt -lz -ldl -lm -lxml2 -lexslt -lxslt -lz -lm -lgcrypt -ldl -lgpg-error -lxml2 -lzip -lz -lssl -lcrypto -lcrypt ]
        --extension-dir     [/usr/local/lib/php/extensions/no-debug-non-zts-20200930]
        --include-dir       [/usr/local/include/php]
        --man-dir           [/usr/local/php/man]
        --php-binary        [/usr/local/bin/php]
        --php-sapis         [ cli embed fpm phpdbg cgi]
        --ini-path          [/usr/local/lib]
        --ini-dir           [/etc/centminmod/php.d]
        --configure-options [--enable-fpm --enable-opcache --enable-intl --enable-pcntl --with-mcrypt --with-snmp --enable-embed=shared --with-mhash --with-zlib --with-gettext --enable-exif --with-zip --with-libzip --with-bz2 --enable-soap --enable-sockets --enable-sysvmsg --enable-sysvsem --enable-sysvshm --with-mysql-sock=/var/lib/mysql/mysql.sock --with-curl --enable-gd --with-xmlrpc --enable-bcmath --enable-calendar --enable-ftp --enable-gd-native-ttf --with-freetype --with-jpeg --with-png-dir=/usr --with-xpm --with-webp --with-t1lib=/usr --enable-shmop --with-pear --enable-mbstring --with-openssl --with-mysql=mysqlnd --with-libdir=lib64 --with-mysqli=mysqlnd --enable-pdo --with-pdo-sqlite --with-pdo-mysql=mysqlnd --enable-inline-optimization --with-imap --with-imap-ssl --with-kerberos --with-readline --with-libedit --with-gmp --with-pspell --with-tidy --with-enchant --with-fpm-user=nginx --with-fpm-group=nginx --with-ldap --with-ldap-sasl --with-password-argon2 --with-sodium=/usr/local --with-config-file-scan-dir=/etc/centminmod/php.d --with-fpm-systemd --with-ffi --with-xsl PKG_CONFIG_PATH=/opt/rh/devtoolset-11/root/usr/lib64/pkgconfig:/opt/rh/devtoolset-11/root/usr/lib64/pkgconfig ICU_CFLAGS=-I/usr/include ICU_LIBS=-L/usr/lib64 -licuio -licui18n -licuuc -licudata LIBSODIUM_CFLAGS=-I/usr/local/include LIBSODIUM_LIBS=-L/usr/local/lib64 -lsodium LIBZIP_CFLAGS=-I/usr/local/include LIBZIP_LIBS=-L/usr/local/lib64 -lzip]
        --version           [8.0.26]
        --vernum            [80026]
      ***************************************************
      PHP 8.0.26 (cli) (built: Jan  2 2023 23:19:08) PGO ( NTS )
      Copyright (c) The PHP Group
      Zend Engine v4.0.26, Copyright (c) Zend Technologies
          with Zend OPcache v8.0.26, Copyright (c), by Zend Technologies
      ***************************************************
      * PHP compiled with CPU_MARCH=znver2
      * PHP upgraded and auto reinstalled PHP extensions
      * PHP_PGO='y' detected. PHP compiled with Profile Guided Optimizations
      * https://software.intel.com/en-us/blogs/2015/10/09/pgo-let-it-go-php
      ***************************************************
      



     
  2. eva2000

    eva2000 Administrator Staff Member

    49,762
    11,447
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +17,789
    Local Time:
    8:26 AM
    Nginx 1.21.x
    MariaDB 10.x
    It would be fine if you're upgrading from a major PHP version like PHP 7.4 to 8.0 or 8.1 or adding/enabling those optional PHP extensions for the first time as PHP PGO training occurs BEFORE those optional PHP extensions get compiled. You can verify if those PHP extensions exist via command
    Code (Text):
    php -m
     
  3. adamus007p

    adamus007p Member

    357
    18
    18
    Feb 8, 2019
    Ratings:
    +35
    Local Time:
    11:26 PM