Join the community today
Become a Member

Bug Installation issue with PHP_PGO='y'

Discussion in 'AlmaLinux 8 & Rocky Linux 8 Beta Testing' started by pjrobertson, Oct 19, 2023.

  1. pjrobertson

    pjrobertson New Member

    20
    4
    3
    Feb 7, 2021
    Ratings:
    +8
    Local Time:
    6:45 PM
    I tried to install using the PHP_PGO='y' flag in /etc/centminmod/custom_config.inc and the following install script:

    Code:
    sudo curl -4sL https://centminmod.com/installer-el8x-mariadb10.4.sh -o installer-el8x-mariadb10.4.sh; sudo bash installer-el8x-mariadb10.4.sh
    I've pasted what I think is the relevant section of the install lug below. After removing the PHP_PGO='y' flag, everything works fine.

    Install log:

    Code:
    Building with optimizations for native
    rm -f 'argon2' 'bench' 'genkat'
    rm -f 'libargon2.so.1' 'libargon2.a' kat-argon2* 'libargon2.pc'
    rm -f testcase
    rm -rf *.dSYM
    cd src/ && rm -f *.o
    cd src/blake2/ && rm -f *.o
    cd kats/ &&  rm -f kat-* diff* run_* make_*
    Building with optimizations for native
    ccache /opt/rh/gcc-toolset-11/root/usr/bin/gcc -O3 -m64 -march=x86-64 -pipe -gsplit-dwarf -Wno-deprecated-declarations -Wimplicit-fallthrough=0 -Wno-implicit-function-declaration -Wno-int-conversion -Wno-error=unused-result -Wno-unused-result -fcode-hoisting -Wno-cast-function-type -Wno-error=cast-align -Wno-implicit-function-declaration -Wno-builtin-declaration-mismatch -std=c89 -O3 -Wall -g -Iinclude -Isrc -pthread -march=native  src/argon2.c src/core.c src/blake2/blake2b.c src/thread.c src/encoding.c src/opt.c src/run.c -o argon2
    ccache /opt/rh/gcc-toolset-11/root/usr/bin/gcc -O3 -m64 -march=x86-64 -pipe -gsplit-dwarf -Wno-deprecated-declarations -Wimplicit-fallthrough=0 -Wno-implicit-function-declaration -Wno-int-conversion -Wno-error=unused-result -Wno-unused-result -fcode-hoisting -Wno-cast-function-type -Wno-error=cast-align -Wno-implicit-function-declaration -Wno-builtin-declaration-mismatch -std=c89 -O3 -Wall -g -Iinclude -Isrc -pthread -march=native -shared -fPIC -fvisibility=hidden -DA2_VISCTL=1  -Wl,-soname,libargon2.so.1 src/argon2.c src/core.c src/blake2/blake2b.c src/thread.c src/encoding.c src/opt.c -o libargon2.so.1
    ccache /opt/rh/gcc-toolset-11/root/usr/bin/gcc -O3 -m64 -march=x86-64 -pipe -gsplit-dwarf -Wno-deprecated-declarations -Wimplicit-fallthrough=0 -Wno-implicit-function-declaration -Wno-int-conversion -Wno-error=unused-result -Wno-unused-result -fcode-hoisting -Wno-cast-function-type -Wno-error=cast-align -Wno-implicit-function-declaration -Wno-builtin-declaration-mismatch -std=c89 -O3 -Wall -g -Iinclude -Isrc -pthread -march=native   -c -o src/argon2.o src/argon2.c
    ccache /opt/rh/gcc-toolset-11/root/usr/bin/gcc -O3 -m64 -march=x86-64 -pipe -gsplit-dwarf -Wno-deprecated-declarations -Wimplicit-fallthrough=0 -Wno-implicit-function-declaration -Wno-int-conversion -Wno-error=unused-result -Wno-unused-result -fcode-hoisting -Wno-cast-function-type -Wno-error=cast-align -Wno-implicit-function-declaration -Wno-builtin-declaration-mismatch -std=c89 -O3 -Wall -g -Iinclude -Isrc -pthread -march=native   -c -o src/core.o src/core.c
    ccache /opt/rh/gcc-toolset-11/root/usr/bin/gcc -O3 -m64 -march=x86-64 -pipe -gsplit-dwarf -Wno-deprecated-declarations -Wimplicit-fallthrough=0 -Wno-implicit-function-declaration -Wno-int-conversion -Wno-error=unused-result -Wno-unused-result -fcode-hoisting -Wno-cast-function-type -Wno-error=cast-align -Wno-implicit-function-declaration -Wno-builtin-declaration-mismatch -std=c89 -O3 -Wall -g -Iinclude -Isrc -pthread -march=native   -c -o src/blake2/blake2b.o src/blake2/blake2b.c
    ccache /opt/rh/gcc-toolset-11/root/usr/bin/gcc -O3 -m64 -march=x86-64 -pipe -gsplit-dwarf -Wno-deprecated-declarations -Wimplicit-fallthrough=0 -Wno-implicit-function-declaration -Wno-int-conversion -Wno-error=unused-result -Wno-unused-result -fcode-hoisting -Wno-cast-function-type -Wno-error=cast-align -Wno-implicit-function-declaration -Wno-builtin-declaration-mismatch -std=c89 -O3 -Wall -g -Iinclude -Isrc -pthread -march=native   -c -o src/thread.o src/thread.c
    ccache /opt/rh/gcc-toolset-11/root/usr/bin/gcc -O3 -m64 -march=x86-64 -pipe -gsplit-dwarf -Wno-deprecated-declarations -Wimplicit-fallthrough=0 -Wno-implicit-function-declaration -Wno-int-conversion -Wno-error=unused-result -Wno-unused-result -fcode-hoisting -Wno-cast-function-type -Wno-error=cast-align -Wno-implicit-function-declaration -Wno-builtin-declaration-mismatch -std=c89 -O3 -Wall -g -Iinclude -Isrc -pthread -march=native   -c -o src/encoding.o src/encoding.c
    ccache /opt/rh/gcc-toolset-11/root/usr/bin/gcc -O3 -m64 -march=x86-64 -pipe -gsplit-dwarf -Wno-deprecated-declarations -Wimplicit-fallthrough=0 -Wno-implicit-function-declaration -Wno-int-conversion -Wno-error=unused-result -Wno-unused-result -fcode-hoisting -Wno-cast-function-type -Wno-error=cast-align -Wno-implicit-function-declaration -Wno-builtin-declaration-mismatch -std=c89 -O3 -Wall -g -Iinclude -Isrc -pthread -march=native   -c -o src/opt.o src/opt.c
    sed '/^##.*$/d; s#@PREFIX@#/usr#g; s#@EXTRA_LIBS@#-lrt -ldl#g; s#@UPSTREAM_VER@#ZERO#g; s#@HOST_MULTIARCH@#lib/x86_64-linux-gnu#g; s#@INCLUDE@#include#g;' < 'libargon2.pc.in' > 'libargon2.pc'
    ar rcs libargon2.a src/argon2.o src/core.o src/blake2/blake2b.o src/thread.o src/encoding.o src/opt.o
    Building with optimizations for native
    install -d /usr/local/include
    install -m 0644 include/argon2.h /usr/local/include
    install -d /usr/local/lib64
    install -m 0644 libargon2.so.1 libargon2.a /usr/local/lib64
    cd /usr/local/lib64 && ln -s libargon2.so.1 libargon2.so
    install -d /usr/local/bin
    install argon2 /usr/local/bin
    install -d /usr/local/lib64/pkgconfig
    install -m 0644 libargon2.pc /usr/local/lib64/pkgconfig
    /svr-setup/php-8.0.30/fpm-build
    ---------------------------
    PGO binary labelling
    ---------------------------
    append PGO label to php-cgi binary version
    append PGO label to php cli binary version
    append PGO label to php-fpm binary version
    
    
    Using GCC 11
    
    2
    LD_LIBRARY_PATH=/usr/local/lib64 PKG_CONFIG_PATH="/usr/local/lib64/pkgconfig" ../configure --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 --enable-shmop --with-pear --enable-mbstring --with-openssl --with-mysql=mysqlnd --with-libdir=lib64 --with-mysqli=mysqlnd --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-password-argon2 --with-sodium=/usr/local --with-config-file-scan-dir=/etc/centminmod/php.d --with-fpm-systemd --with-ffi --with-xsl
    configure: WARNING: unrecognized options: --with-mcrypt, --with-libzip, --with-mysql, --with-xmlrpc, --enable-gd-native-ttf, --with-png-dir, --with-t1lib, --with-mysql, --enable-inline-optimization
    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 build system type... x86_64-pc-linux-gnu
    checking host system type... x86_64-pc-linux-gnu
    checking target system type... x86_64-pc-linux-gnu
    checking for pkg-config... /bin/pkg-config
    checking pkg-config is at least version 0.9.0... yes
    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 the compiler supports GNU C... yes
    checking whether ccache /opt/rh/gcc-toolset-11/root/usr/bin/gcc accepts -g... yes
    checking for ccache /opt/rh/gcc-toolset-11/root/usr/bin/gcc option to enable C11 features... none needed
    checking how to run the C preprocessor... ccache /opt/rh/gcc-toolset-11/root/usr/bin/gcc -E
    checking for icc... no
    checking for suncc... no
    checking how to run the C preprocessor... ccache /opt/rh/gcc-toolset-11/root/usr/bin/gcc -E
    checking for stdio.h... yes
    checking for stdlib.h... yes
    checking for string.h... yes
    checking for inttypes.h... yes
    checking for stdint.h... yes
    checking for strings.h... yes
    checking for sys/stat.h... yes
    checking for sys/types.h... yes
    checking for unistd.h... yes
    checking for wchar.h... yes
    checking for minix/config.h... no
    checking whether it is safe to define __EXTENSIONS__... yes
    checking whether _XOPEN_SOURCE should be defined... no
    checking whether ln -s works... yes
    checking for system library directory... lib64
    checking whether to enable runpaths... yes
    checking if compiler supports -Wl,-rpath,... yes
    checking for gawk... gawk
    checking for bison... bison
    checking for bison version... 3.0.4 (ok)
    checking for re2c... re2c
    checking for re2c version... 0.14.3 (ok)
    checking whether to enable computed goto gcc extension with re2c... no
    checking whether C compiler accepts -fvisibility=hidden... yes
    checking whether to force non-PIC code in shared modules... no
    checking whether we are using musl libc... no
    checking whether /dev/urandom exists... yes
    checking for global register variables support... yes
    checking whether __cpuid_count is available... yes
    checking for pthreads_cflags... -pthread
    checking for pthreads_lib... pthread
    
    Configuring SAPI modules
    checking for Apache 2 handler module support via DSO through APXS... no
    checking for setproctitle... no
    checking for sys/pstat.h... no
    checking for PS_STRINGS... no
    checking for CLI build... yes
    checking for embedded SAPI library support... shared
    checking for FPM build... yes
    checking for clearenv... yes
    checking for setproctitle... (cached) no
    checking for setproctitle_fast... no
    checking for library containing socket... none required
    checking for library containing inet_addr... none required
    checking for prctl... yes
    checking for clock_gettime... yes
    checking for ptrace... yes
    checking whether ptrace works... yes
    checking for proc mem file... mem
    checking if gcc supports __sync_bool_compare_and_swap... yes
    checking for TCP_INFO... yes
    checking for sysconf... yes
    checking for times... yes
    checking for kqueue... no
    checking for port framework... no
    checking for /dev/poll... no
    checking for epoll... yes
    checking for select... yes
    checking for libsystemd >= 209... yes
    checking for systemd/sd-daemon.h... yes
    checking for clang fuzzer SAPI... no
    checking for LiteSpeed support... no
    checking for phpdbg support... yes
    checking for phpdbg web SAPI support... no
    checking for phpdbg debug build... no
    checking for phpdbg readline support... no
    checking whether termios.h defines TIOCGWINSZ... no
    checking whether sys/ioctl.h defines TIOCGWINSZ... yes
    checking for phpdbg and readline integration... disabled
    checking for CGI build... yes
    checking for sun_len in sys/un.h... no
    checking whether cross-process locking is required by accept()... no
    checking for chosen SAPI module... embed
    checking for executable SAPI binaries...  cli fpm phpdbg cgi
    
    Running system checks
    checking for sendmail... /sbin/sendmail
    checking whether system uses EBCDIC... no
    checking whether byte ordering is bigendian... no
    checking whether writing to stdout works... This is the test message -- yes
    checking for socket... yes
    checking for socketpair... yes
    checking for htonl... yes
    checking for gethostname... yes
    checking for gethostbyaddr... yes
    checking for dlopen... no
    checking for __dlopen... no
    checking for dlopen in -ldl... yes
    checking for dlsym... yes
    checking for sin in -lm... yes
    checking for inet_aton... yes
    checking for stdint.h... (cached) yes
    checking for dirent.h... yes
    checking for sys/param.h... yes
    checking for sys/types.h... (cached) yes
    checking for sys/time.h... yes
    checking for netinet/in.h... yes
    checking for alloca.h... yes
    checking for arpa/inet.h... yes
    checking for arpa/nameser.h... yes
    checking for crypt.h... yes
    checking for dns.h... no
    checking for fcntl.h... yes
    checking for grp.h... yes
    checking for ieeefp.h... no
    checking for langinfo.h... yes
    checking for malloc.h... yes
    checking for poll.h... yes
    checking for pty.h... yes
    checking for pwd.h... yes
    checking for resolv.h... yes
    checking for strings.h... (cached) yes
    checking for syslog.h... yes
    checking for sysexits.h... yes
    checking for sys/ioctl.h... yes
    checking for sys/file.h... yes
    checking for sys/mman.h... yes
    checking for sys/mount.h... yes
    checking for sys/poll.h... yes
    checking for sys/resource.h... yes
    checking for sys/select.h... yes
    checking for sys/socket.h... yes
    checking for sys/stat.h... (cached) yes
    checking for sys/statfs.h... yes
    checking for sys/statvfs.h... yes
    checking for sys/vfs.h... yes
    checking for sys/sysexits.h... no
    checking for sys/uio.h... yes
    checking for sys/wait.h... yes
    checking for sys/loadavg.h... no
    checking for unistd.h... (cached) yes
    checking for unix.h... no
    checking for utime.h... yes
    checking for sys/utsname.h... yes
    checking for sys/ipc.h... yes
    checking for dlfcn.h... yes
    checking for tmmintrin.h... yes
    checking for nmmintrin.h... yes
    checking for wmmintrin.h... yes
    checking for immintrin.h... yes
    checking for fopencookie... yes
    checking for broken getcwd... no
    checking for broken gcc optimize-strlen... no
    checking whether struct tm is in sys/time.h or time.h... time.h
    checking for ccache /opt/rh/gcc-toolset-11/root/usr/bin/gcc options needed to detect all undeclared functions... none needed
    checking for struct tm.tm_zone... yes
    checking for missing declarations of reentrant functions... done
    checking for fclose declaration... ok
    checking for struct flock... yes
    checking for socklen_t... yes
    checking size of intmax_t... 8
    checking size of ssize_t... 8
    checking size of ptrdiff_t... 8
    checking size of short... 2
    checking size of int... 4
    checking size of long... 8
    checking size of long long... 8
    checking size of size_t... 8
    checking size of off_t... 8
    checking for int8_t... yes
    checking for int16_t... yes
    checking for int32_t... yes
    checking for int64_t... yes
    checking for uint8_t... yes
    checking for uint16_t... yes
    checking for uint32_t... yes
    checking for uint64_t... yes
    checking for __builtin_expect... yes
    checking for __builtin_clz... yes
    checking for __builtin_clzl... yes
    checking for __builtin_clzll... yes
    checking for __builtin_ctzl... yes
    checking for __builtin_ctzll... yes
    checking for __builtin_smull_overflow... yes
    checking for __builtin_smulll_overflow... yes
    checking for __builtin_saddl_overflow... yes
    checking for __builtin_saddll_overflow... yes
    checking for __builtin_ssubl_overflow... yes
    checking for __builtin_ssubll_overflow... yes
    checking for __builtin_cpu_init... yes
    checking for __builtin_cpu_supports... yes
    checking whether the compiler supports __alignof__... yes
    checking for struct tm.tm_gmtoff... yes
    checking for struct stat.st_blksize... yes
    checking for struct stat.st_rdev... yes
    checking for struct stat.st_blocks... yes
    checking for size_t... yes
    checking for uid_t in sys/types.h... yes
    checking for struct sockaddr_storage... yes
    checking for field sa_len in struct sockaddr... no
    checking for __attribute__((ifunc))... yes
    checking for __attribute__((target))... yes
    checking for IPv6 support... yes
    checking for alphasort... yes
    checking for asctime_r... yes
    checking for chroot... yes
    checking for ctime_r... yes
    checking for explicit_memset... no
    checking for flock... yes
    checking for ftok... yes
    checking for funopen... no
    checking for gai_strerror... yes
    checking for getcwd... yes
    checking for getloadavg... yes
    checking for getlogin... yes
    checking for getprotobyname... yes
    checking for getprotobynumber... yes
    checking for getservbyname... yes
    checking for getservbyport... yes
    checking for getrusage... yes
    checking for gettimeofday... yes
    checking for gmtime_r... yes
    checking for getpwnam_r... yes
    checking for getgrnam_r... yes
    checking for getpwuid_r... yes
    checking for getwd... yes
    checking for glob... yes
    checking for inet_ntoa... yes
    checking for inet_ntop... yes
    checking for inet_pton... yes
    checking for localtime_r... yes
    checking for lchown... yes
    checking for memmove... yes
    checking for mkstemp... yes
    checking for mmap... yes
    checking for nice... yes
    checking for nl_langinfo... yes
    checking for poll... yes
    checking for putenv... yes
    checking for scandir... yes
    checking for setitimer... yes
    checking for setenv... yes
    checking for shutdown... yes
    checking for sigprocmask... yes
    checking for statfs... yes
    checking for statvfs... yes
    checking for std_syslog... no
    checking for strcasecmp... yes
    checking for strnlen... yes
    checking for strptime... yes
    checking for strtok_r... yes
    checking for symlink... yes
    checking for tzset... yes
    checking for unsetenv... yes
    checking for usleep... yes
    checking for utime... yes
    checking for vasprintf... yes
    checking for asprintf... yes
    checking for nanosleep... yes
    checking for memmem... yes
    checking how many arguments gethostbyname_r() takes... six
    checking for nanosleep in -lrt... yes
    checking for setsockopt in -lnetwork... no
    checking for __setsockopt in -lnetwork... no
    checking for getaddrinfo... yes
    checking for strlcat... no
    checking for strlcpy... no
    checking for explicit_bzero... yes
    checking for getopt... yes
    checking for working alloca.h... yes
    checking for alloca... yes
    checking for type of reentrant time-related functions... POSIX
    checking for in_addr_t... yes
    checking for aarch64 CRC32 API... no
    checking for asm goto... yes
    checking whether to enable valgrind support... yes
    checking for valgrind... no
    checking for openpty... no
    checking for __openpty... no
    checking for openpty in -lutil... yes
    
    General settings
    checking whether to include gcov symbols... no
    checking whether to include debugging symbols... no
    checking whether to enable debug assertions in release mode... no
    checking whether to dlopen extensions with RTLD_NOW instead of RTLD_LAZY... no
    checking layout of installed files... PHP
    checking path to configuration file... DEFAULT
    checking where to scan for configuration files... /etc/centminmod/php.d
    checking whether to enable PHP's own SIGCHLD handler... no
    checking whether to explicitly link against libgcc... no
    checking whether to enable short tags by default... yes
    checking whether to enable dmalloc... no
    checking whether to enable IPv6 support... yes
    checking whether to enable DTrace support... no
    checking how big to make fd sets... using system default
    
    Configuring extensions
    checking for io.h... no
    checking for strtoll... yes
    checking for atoll... yes
    checking whether to build with LIBXML support... yes
    checking for libxml-2.0 >= 2.9.0... yes
    checking for OpenSSL support... yes
    checking for Kerberos support... yes
    checking whether to use system default cipher list instead of hardcoded value... no
    checking for krb5-gssapi krb5... yes
    checking for openssl >= 1.0.1... yes
    checking for RAND_egd... no
    checking for PCRE library to use... bundled
    checking whether to enable PCRE JIT functionality... yes
    checking whether Intel CET is enabled... no
    checking whether to enable the SQLite3 extension... yes
    checking for sqlite3 > 3.7.4... yes
    checking for sqlite3_errstr in -lsqlite3... yes
    checking for sqlite3_expanded_sql in -lsqlite3... yes
    checking for sqlite3_load_extension in -lsqlite3... yes
    checking for ZLIB support... yes
    checking for zlib >= 1.2.0.4... yes
    checking whether to enable bc style precision math functions... yes
    checking for BZip2 support... yes
    checking for BZip2 in default path... found in /usr
    checking for BZ2_bzerror in -lbz2... yes
    checking whether to enable calendar conversion support... yes
    checking whether to enable ctype functions... yes
    checking for cURL support... yes
    checking for libcurl >= 7.29.0... yes
    checking for SSL support in libcurl... yes
    checking for libcurl linked against old openssl... no
    checking for curl_easy_perform in -lcurl... yes
    checking for QDBM support... no
    checking for GDBM support... no
    checking for NDBM support... no
    checking for TCADB support... no
    checking for LMDB support... no
    checking for Berkeley DB4 support... no
    checking for Berkeley DB3 support... no
    checking for Berkeley DB2 support... no
    checking for DB1 support... no
    checking for DBM support... no
    checking for CDB support... no
    checking for INI File support... no
    checking for FlatFile support... no
    checking whether to enable DBA interface... no
    checking whether to enable DOM support... yes
    checking for libxml-2.0 >= 2.9.0... yes
    checking whether to build with Enchant support... yes
    checking for enchant-2... no
    configure: WARNING: libenchant-2 not found trying with old libenchant
    checking for enchant >= 1.4.2... yes
    checking for enchant_get_version in -lenchant... yes
    checking for enchant_broker_set_param in -lenchant... yes
    checking whether to enable EXIF (metadata from images) support... yes
    checking for FFI support... yes
    checking for libffi >= 3.0.11... yes
    checking for long double... yes
    checking for fastcall calling convention... yes
    checking for thiscall calling convention... yes
    checking for stdcall calling convention... yes
    checking for pascal calling convention... no
    checking for register calling convention... no
    checking for ms_cdecl calling convention... no
    checking for sysv calling convention... yes
    checking for fileinfo support... yes
    checking for strcasestr... yes
    checking for utimes... yes
    checking for strndup... yes
    checking whether to enable input filter support... yes
    checking whether to enable FTP support... yes
    checking whether to explicitly enable FTP SSL support... no
    checking for openssl >= 1.0.1... yes
    checking for GD support... yes
    checking for external libgd... no
    checking for libwebp... yes
    checking for libjpeg... yes
    checking for libXpm... yes
    checking for FreeType 2... yes
    checking whether to enable JIS-mapped Japanese font support in GD... no
    checking for fabsf... yes
    checking for floorf... yes
    checking for zlib... yes
    checking for libpng... no
    configure: error: Package requirements (libpng) were not met:
    
    Package 'libpng', required by 'virtual:world', not found
    
    Consider adjusting the PKG_CONFIG_PATH environment variable if you
    installed software in a non-standard prefix.
    
    Alternatively, you may set the environment variables PNG_CFLAGS
    and PNG_LIBS to avoid the need to call pkg-config.
    See the pkg-config man page for more details.
    
    php_configure.inc make -j5
    PHP_PGO = y
    make -j5 prof-gen
    make: *** No rule to make target 'prof-gen'.  Stop.
    
    real   0m0.003s
    user   0m0.001s
    sys   0m0.002s
    /svr-setup /svr-setup/php-8.0.30/fpm-build
    Cloning into 'php_pgo_training_scripts'...
    
    real   0m0.753s
    user   0m0.104s
    sys   0m0.016s
    /svr-setup/php-8.0.30/fpm-build
    ls -lah /svr-setup/php_pgo_training_scripts
    total 132K
    drwxr-xr-x  3 root root 4.0K Oct 19 03:25 .
    drwxr-xr-x 49 root root  12K Oct 19 03:25 ..
    -rw-r--r--  1 root root 7.0K Oct 19 03:25 class.php
    -rw-r--r--  1 root root 1.2K Oct 19 03:25 constants.php
    -rw-r--r--  1 root root  17K Oct 19 03:25 db.php
    -rw-r--r--  1 root root 4.2K Oct 19 03:25 dictionary.php
    -rw-r--r--  1 root root 4.6K Oct 19 03:25 generic.txt
    drwxr-xr-x  8 root root 4.0K Oct 19 03:25 .git
    -rw-r--r--  1 root root 2.4K Oct 19 03:25 index.php
    -rw-r--r--  1 root root 5.0K Oct 19 03:25 init.php
    -rw-r--r--  1 root root  16K Oct 19 03:25 LICENSE
    -rw-r--r--  1 root root 5.7K Oct 19 03:25 README
    -rw-r--r--  1 root root 7.5K Oct 19 03:25 standard_calls.php
    -rw-r--r--  1 root root  14K Oct 19 03:25 string.php
    -rw-r--r--  1 root root 2.8K Oct 19 03:25 time.php
    /usr/local/src/centminmod/inc/php_configure.inc: line 2745: ./sapi/cli/php: No such file or directory
    time ./sapi/cgi/php-cgi -T10 ../Zend/bench.php
    /usr/local/src/centminmod/inc/php_configure.inc: line 2755: ./sapi/cgi/php-cgi: No such file or directory
    
    real   0m0.001s
    user   0m0.001s
    sys   0m0.001s
    time ./sapi/cgi/php-cgi -T10 ../Zend/micro_bench.php
    /usr/local/src/centminmod/inc/php_configure.inc: line 2757: ./sapi/cgi/php-cgi: No such file or directory
    
    real   0m0.001s
    user   0m0.000s
    sys   0m0.001s
    ./sapi/cgi/php-cgi -T10 /svr-setup/php_pgo_training_scripts/index.php
    /usr/local/src/centminmod/inc/php_configure.inc: line 2759: ./sapi/cgi/php-cgi: No such file or directory
    
    real   0m0.001s
    user   0m0.000s
    sys   0m0.001s
    pgophpbench
    
    PGO phpbench setup start
    --2023-10-19 03:25:45--  https://github.com/centminmod/centminmod-php71/raw/master/scripts/phpbench-0.8.1.zip
    Resolving github.com... 140.82.113.3
    Connecting to github.com|140.82.113.3|:443... connected.
    HTTP request sent, awaiting response... 302 Found
    Location: https://raw.githubusercontent.com/centminmod/centminmod-php71/master/scripts/phpbench-0.8.1.zip [following]
    --2023-10-19 03:25:46--  https://raw.githubusercontent.com/centminmod/centminmod-php71/master/scripts/phpbench-0.8.1.zip
    Resolving raw.githubusercontent.com... 185.199.108.133, 185.199.111.133, 185.199.110.133, ...
    Connecting to raw.githubusercontent.com|185.199.108.133|:443... connected.
    HTTP request sent, awaiting response... 200 OK
    Length: 26874 (26K) [application/zip]
    Saving to: ‘/svr-setup/phpbench/phpbench-0.8.1.zip’
    
         0K .......... .......... ......                          100%  114M=0s
    
    2023-10-19 03:25:46 (114 MB/s) - ‘/svr-setup/phpbench/phpbench-0.8.1.zip’ saved [26874/26874]
    
    --2023-10-19 03:25:46--  https://github.com/centminmod/centminmod-php71/raw/master/scripts/detailed_benchmark.php
    Resolving github.com... 140.82.113.3
    Connecting to github.com|140.82.113.3|:443... connected.
    HTTP request sent, awaiting response... 302 Found
    Location: https://raw.githubusercontent.com/centminmod/centminmod-php71/master/scripts/detailed_benchmark.php [following]
    --2023-10-19 03:25:46--  https://raw.githubusercontent.com/centminmod/centminmod-php71/master/scripts/detailed_benchmark.php
    Resolving raw.githubusercontent.com... 185.199.108.133, 185.199.109.133, 185.199.110.133, ...
    Connecting to raw.githubusercontent.com|185.199.108.133|:443... connected.
    HTTP request sent, awaiting response... 200 OK
    Length: 7303 (7.1K) [text/plain]
    Saving to: ‘/opt/phpbench/detailed_benchmark.php’
    
         0K .......                                               100% 90.2M=0s
    
    2023-10-19 03:25:46 (90.2 MB/s) - ‘/opt/phpbench/detailed_benchmark.php’ saved [7303/7303]
    
    /svr-setup/phpbench /svr-setup/php-8.0.30/fpm-build
    Archive:  phpbench-0.8.1.zip
     extracting: AUTHORS                
      inflating: ChangeLog              
      inflating: LICENSE                
      inflating: phpbench.php          
      inflating: README                
       creating: tests/
      inflating: tests/test_arithmetic.php 
      inflating: tests/test_array_operators.php 
      inflating: tests/test_bitwise.php 
      inflating: tests/test_casting.php 
      inflating: tests/test_chr_fixed.php 
      inflating: tests/test_chr_hardcoded.php 
      inflating: tests/test_chr_var.php 
      inflating: tests/test_comment_loop.php 
      inflating: tests/test_compare.php 
      inflating: tests/test_compare_false.php 
      inflating: tests/test_compare_invert.php 
      inflating: tests/test_compare_strict.php 
      inflating: tests/test_compare_unstrict.php 
      inflating: tests/test_constants.php 
      inflating: tests/test_crc32.php  
      inflating: tests/test_do_while.php 
      inflating: tests/test_do_while_break.php 
      inflating: tests/test_empty.php  
      inflating: tests/test_empty_loop.php 
      inflating: tests/test_ereg.php    
      inflating: tests/test_foreach.php 
      inflating: tests/test_get_class.php 
      inflating: tests/test_global_scalar_assign.php 
      inflating: tests/test_global_string_assign.php 
      inflating: tests/test_if_constant.php 
      inflating: tests/test_increment.php 
      inflating: tests/test_isset.php  
      inflating: tests/test_is_array.php 
      inflating: tests/test_is_object.php 
      inflating: tests/test_is_type.php 
      inflating: tests/test_line.php    
      inflating: tests/test_local_array_assign.php 
      inflating: tests/test_local_boolean_assign.php 
      inflating: tests/test_local_float_assign.php 
      inflating: tests/test_local_hash_assign.php 
      inflating: tests/test_local_integer_assign.php 
      inflating: tests/test_local_object_assign.php 
      inflating: tests/test_local_scalar_assign.php 
      inflating: tests/test_local_string_assign.php 
      inflating: tests/test_md5.php    
      inflating: tests/test_microtime.php 
      inflating: tests/test_mt_rand.php 
      inflating: tests/test_ord.php    
      inflating: tests/test_ordered_functions.php 
      inflating: tests/test_ordered_functions_references.php 
      inflating: tests/test_preg_match.php 
      inflating: tests/test_rand.php    
      inflating: tests/test_references.php 
      inflating: tests/test_sha1.php    
      inflating: tests/test_string_append.php 
      inflating: tests/test_strlen.php  
      inflating: tests/test_switch.php  
      inflating: tests/test_time.php    
      inflating: tests/test_unordered_functions.php 
      inflating: tests/test_variable_variables.php 
      inflating: tests/test_while.php  
    /svr-setup/php-8.0.30/fpm-build
    PGO phpbench setup end
    
    ./sapi/cgi/php-cgi -T10 /svr-setup/phpbench/phpbench.php
    /usr/local/src/centminmod/inc/php_configure.inc: line 2788: ./sapi/cgi/php-cgi: No such file or directory
    
    real   0m0.001s
    user   0m0.001s
    sys   0m0.001s
    ./sapi/cgi/php-cgi -T10 /opt/phpbench/detailed_benchmark.php
    /usr/local/src/centminmod/inc/php_configure.inc: line 2796: ./sapi/cgi/php-cgi: No such file or directory
    
    real   0m0.001s
    user   0m0.001s
    sys   0m0.001s
    make prof-clean
    make: *** No rule to make target 'prof-clean'.  Stop.
    
    real   0m0.003s
    user   0m0.002s
    sys   0m0.001s
    make -j5 prof-use
    make: *** No rule to make target 'prof-use'.  Stop.
    
    real   0m0.003s
    user   0m0.000s
    sys   0m0.003s
    
    php_configure.inc make install
    make: *** No rule to make target 'install'.  Stop.
    
    real   0m0.003s
    user   0m0.001s
    sys   0m0.002s
    
    strip PHP binary...
    ls: cannot access '/usr/local/bin/php': No such file or directory
    ls: cannot access '/usr/local/bin/php-cgi': No such file or directory
    ls: cannot access '/usr/local/sbin/php-fpm': No such file or directory
    
    backup before strip PHP binary...
    cp: cannot stat '/usr/local/bin/php': No such file or directory
    cp: cannot stat '/usr/local/bin/php-cgi': No such file or directory
    cp: cannot stat '/usr/local/sbin/php-fpm': No such file or directory
    strip: '/usr/local/bin/php': No such file
    strip: '/usr/local/bin/php-cgi': No such file
    strip: '/usr/local/sbin/php-fpm': No such file
    
    after strip PHP binary...
    ls: cannot access '/usr/local/bin/php': No such file or directory
    ls: cannot access '/usr/local/bin/php-cgi': No such file or directory
    ls: cannot access '/usr/local/sbin/php-fpm': No such file or directory
    
    ----------------------------------------------------------------------------------
    PHP was not installed properly
    ----------------------------------------------------------------------------------
    
    
    
    Copying php-fpm.conf /usr/local/etc/php-fpm.conf
    
    Starting php-fpm /etc/init.d/php-fpm: line 69: /usr/local/sbin/php-fpm: No such file or directory
     failed
    
    1. Your web host and VPS/dedicated server plan?

    GreenCloud VPS - 10GB RAM, 5 Cores (shared). Server info (after successfully installing without PGO):

    Code:
    AlmaLinux 8.8 Sapphire Caracal  4.18.0-240.15.1.el8_3.x86_64
    5 AMD EPYC 7742 64-Core Processor
    5 2245.780
    PHP VERSION: 8.0.30
    ---------------------------------------------------------------------------
    Centmin Mod Version: 130.00beta01.b410
    
    2. Centmin Mod installed version info via command below:

    Code:
    Installed:
      tree-1.7.0-15.el8.x86_64                                                                                                                                                      
    Installed:
      smem-1.5-6.el8.noarch                                                                                                  130.00beta01.b410 #Thu Oct 19 03:31:00 EDT 2023
    
    3. Provide CPU, memory and disk info via these 3 commands below:

    Code:
    lscpu
    Architecture:        x86_64
    CPU op-mode(s):      32-bit, 64-bit
    Byte Order:          Little Endian
    CPU(s):              5
    On-line CPU(s) list: 0-4
    Thread(s) per core:  1
    Core(s) per socket:  1
    Socket(s):           5
    NUMA node(s):        1
    Vendor ID:           AuthenticAMD
    BIOS Vendor ID:      Red Hat
    CPU family:          23
    Model:               49
    Model name:          AMD EPYC 7742 64-Core Processor
    BIOS Model name:     RHEL 7.6.0 PC (i440FX + PIIX, 1996)
    Stepping:            0
    CPU MHz:             2245.780
    BogoMIPS:            4491.56
    Virtualization:      AMD-V
    Hypervisor vendor:   KVM
    Virtualization type: full
    L1d cache:           64K
    L1i cache:           64K
    L2 cache:            512K
    L3 cache:            16384K
    NUMA node0 CPU(s):   0-4
    Flags:               fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 syscall nx mmxext fxsr_opt pdpe1gb rdtscp lm rep_good nopl cpuid extd_apicid tsc_known_freq pni pclmulqdq ssse3 fma cx16 sse4_1 sse4_2 x2apic movbe popcnt tsc_deadline_timer aes xsave avx f16c rdrand hypervisor lahf_lm cmp_legacy svm cr8_legacy abm sse4a misalignsse 3dnowprefetch osvw perfctr_core ssbd ibrs ibpb stibp vmmcall fsgsbase tsc_adjust bmi1 avx2 smep bmi2 rdseed adx smap clflushopt clwb sha_ni xsaveopt xsavec xgetbv1 xsaves clzero xsaveerptr wbnoinvd arat npt lbrv nrip_save tsc_scale vmcb_clean v_vmsave_vmload umip rdpid arch_capabilities
    [03:37][root@xxx.com ~]# free -mlt
                  total        used        free      shared  buff/cache   available
    Mem:           9785         568        6546          25        2670        8893
    Low:           9785        3239        6546
    High:             0           0           0
    Swap:          1023           0        1023
    Total:        10809         568        7570
    [03:37][root@xxx.com ~]# df -hT
    Filesystem     Type      Size  Used Avail Use% Mounted on
    devtmpfs       devtmpfs  4.8G     0  4.8G   0% /dev
    tmpfs          tmpfs     4.8G     0  4.8G   0% /dev/shm
    tmpfs          tmpfs     4.8G   25M  4.8G   1% /run
    tmpfs          tmpfs     4.8G     0  4.8G   0% /sys/fs/cgroup
    /dev/vda1      ext4       98G  7.2G   86G   8% /
    tmpfs          tmpfs     979M     0  979M   0% /run/user/0
    tmpfs          tmpfs     4.8G   20K  4.8G   1% /tmp
    


     
  2. eva2000

    eva2000 Administrator Staff Member

    54,647
    12,230
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,799
    Local Time:
    6:45 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    Is this same bugged install reported at https://community.centminmod.com/th...a01-el8-install-times.23265/page-4#post-97369 ?

    what does contents of failed compile server's persistent config file at /etc/centminmod/custom_config.inc ?

    output for this command
    Code (Text):
    cat /etc/centminmod/custom_config.inc


    Issue is PHP failed to compile due to missing libpng package requirements which is strange - could be momentarily YUM repo issue. If you try again with PHP_PGO='y' set in persistent config file /etc/centminmod/custom_config.inc, and do a fresh install again, does it work this time?
    Code (Text):
    checking for libpng... no
    configure: error: Package requirements (libpng) were not met:
    
    Package 'libpng', required by 'virtual:world', not found
    
    Consider adjusting the PKG_CONFIG_PATH environment variable if you
    installed software in a non-standard prefix.
    
    Alternatively, you may set the environment variables PNG_CFLAGS
    and PNG_LIBS to avoid the need to call pkg-config.
    See the pkg-config man page for more details.
    

    verify if libpng and libpng-devel were installed
    Code (Text):
    yum list libpng{-devel,} -q
    
    Installed Packages
    libpng.x86_64                                2:1.6.34-5.el8                          @anaconda
    libpng-devel.x86_64                          2:1.6.34-5.el8                          @baseos
    
     
  3. pjrobertson

    pjrobertson New Member

    20
    4
    3
    Feb 7, 2021
    Ratings:
    +8
    Local Time:
    6:45 PM
    This is the install *after* I changed PHP_PGO='n', but yes - looks bugged.

    Code:
    $ cat /etc/centminmod/custom_config.inc
    MARCH_TARGETNATIVE='n'
    NGINX_PAGESPEED='n'
    LETSENCRYPT_DETECT='y'
    PHP_PGO='n'
    NGXDYNAMIC_NGXPAGESPEED='y'
    PHPGEOIP_ALWAYS='n'
    PUREFTPD_DISABLED='y'
    MM_LICENSE_KEY='***'
    PHPFINFO='y'
    NGINX_DEVTOOLSETGCC='y'
    NGXDYNAMIC_BROTLI='y'
    NGINX_LIBBROTLI='y'
    CLOUDFLARE_ZLIBPHP='y'
    CENTOS_ALPHATEST='y'
    NGINX_VERSION='1.25.2'
    NGINX_ONETWOTHREE_COMPAT='y'
    DEVTOOLSETTEN='n'
    DEVTOOLSETELEVEN='y'
    SELFSIGNEDSSL_ECDSA='y'
    PHPFINFO='y'
    PHP_OVERWRITECONF='n'
    PYTHON_INSTALL_ALTERNATIVES='y'
    NGINX_VERSION='1.25.2'
    NGINX_ONETWOTHREE_COMPAT='y'
    DEVTOOLSETTEN='n'
    DEVTOOLSETELEVEN='y'
    SELFSIGNEDSSL_ECDSA='y'
    PHPFINFO='y'
    PHP_OVERWRITECONF='n'
    PYTHON_INSTALL_ALTERNATIVES='y'
    
    Yes, libpng were installed.

    Code:
    # yum list libpng{-devel,} -q
    Installed Packages
    libpng.x86_64                                                                        2:1.6.34-5.el8                                                                  @baseos
    libpng-devel.x86_64
    
     
    Last edited by a moderator: Oct 19, 2023