jaydul
October 16, 2024, 3:36am
1
[root@server bin]# cpcmd misc_cp_version
revision: 1a4f68eb443cba2dba72a59e556e10efadc5fa5d
timestamp: 1729009304
ver_maj: 3
ver_min: 2
ver_patch: 0
ver_pre: 1a4f68eb4
dirty: false
debug: true
[root@server bin]# cat /etc/redhat-release
Rocky Linux release 8.10 (Green Obsidian)
[root@server bin]# cpcmd scope:set cp.bootstrapper php_multiphp ‘[7.3]’
1
[root@server bin]# upcp -sb php/multiphp
PLAY [localhost] ********************************************************************************************************************************************included: /usr/local/apnscp/resources/playbooks/roles/php/multiphp/tasks/build-multi.yml for localhost
included: /usr/local/apnscp/resources/playbooks/roles/php/build-from-source/tasks/build-php.yml for localhost
TASK [php/build-from-source : Configure PHP 7.3.33] *********************************************************************************************************changed: [localhost]
TASK [php/build-from-source : Compile PHP 7.3.33 (10+ minute wait)]
PLAY RECAP **************************************************************************************************************************************************localhost : ok=22 changed=1 unreachable=0 failed=1 skipped=16 rescued=0 ignored=0
Run that again as upcp -sbv php/multiphp
to increase verbosity. I don’t see the failure; did you interrupt with CTRL + C or was it killed by the kernel? Check dmesg
.
jaydul
October 16, 2024, 4:27am
3
msaladna:
upcp -sbv php/multiphp
TASK [php/build-from-source : Compile PHP 7.3.33 (10+ minute wait)] *****************************************************************************************fatal: [localhost]: FAILED! => {“changed”: false, “cmd”: “/usr/bin/gmake --jobs=8”, “msg”: “libtool: link: ext/date/lib/parse_date.lo' is not a valid libtool object\nlibtool: link:
ext/date/lib/parse_date.lo’ is not a valid libtool object\ngmake: *** [Makefile:348: sapi/phpdbg/phpdbg] Error 1\ngmake: *** Waiting for unfinished jobs…\ngmake: *** [Makefile:303: sapi/cli/php] Error 1\nlibtool: link: ext/date/lib/parse_date.lo' is not a valid libtool object\ngmake: *** [Makefile:384: sapi/cgi/php-cgi] Error 1\nlibtool: link:
ext/date/lib/parse_date.lo’ is not a valid libtool object\ngmake: *** [Makefile:315: sapi/fpm/php-fpm] Error 1”, “rc”: 2, “stderr”: “libtool: link: ext/date/lib/parse_date.lo' is not a valid libtool object\nlibtool: link:
ext/date/lib/parse_date.lo’ is not a valid libtool object\ngmake: *** [Makefile:348: sapi/phpdbg/phpdbg] Error 1\ngmake: *** Waiting for unfinished jobs…\ngmake: *** [Makefile:303: sapi/cli/php] Error 1\nlibtool: link: ext/date/lib/parse_date.lo' is not a valid libtool object\ngmake: *** [Makefile:384: sapi/cgi/php-cgi] Error 1\nlibtool: link:
ext/date/lib/parse_date.lo’ is not a valid libtool object\ngmake: *** [Makefile:315: sapi/fpm/php-fpm] Error 1\n”, “stderr_lines”: [“libtool: link: ext/date/lib/parse_date.lo' is not a valid libtool object", "libtool: link:
ext/date/lib/parse_date.lo’ is not a valid libtool object”, “gmake: *** [Makefile:348: sapi/phpdbg/phpdbg] Error 1”, “gmake: *** Waiting for unfinished jobs…”, “gmake: *** [Makefile:303: sapi/cli/php] Error 1”, “libtool: link: ext/date/lib/parse_date.lo' is not a valid libtool object", "gmake: *** [Makefile:384: sapi/cgi/php-cgi] Error 1", "libtool: link:
ext/date/lib/parse_date.lo’ is not a valid libtool object”, “gmake: *** [Makefile:315: sapi/fpm/php-fpm] Error 1”], “stdout”: "/bin/sh /var/cache/httpd/php-7.3.33/libtool --silent --preserve-dup-deps --mode=compile cc -DZEND_ENABLE_STATIC_TSRMLS_CACHE=1 -Iext/standard/ -I/var/cache/httpd/php-7.3.33/ext/standard/ -DPHP_ATOM_INC -I/var/cache/httpd/php-7.3.33/include -I/var/cache/httpd/php-7.3.33/main -I/var/cache/httpd/php-7.3.33 -I/var/cache/httpd/php-7.3.33/ext/date/lib -I/usr/include/libxml2 -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/imap -I/var/cache/httpd/php-7.3.33/ext/mbstring/oniguruma -I/var/cache/httpd/php-7.3.33/ext/mbstring/libmbfl -I/var/cache/httpd/php-7.3.33/ext/mbstring/libmbfl/mbfl -I/usr/pgsql-17/include -I/var/cache/httpd/php-7.3.33/ext/sqlite3/libsqlite -I/usr/include/pspell -I/var/cache/httpd/php-7.3.33/TSRM -I/var/cache/httpd/php-7.3.33/Zend -DFD_SETSIZE=1024 -I/usr/include -pipe -O2 -g -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector -m64 -fvisibility=hidden -DZEND_SIGNALS -c /var/cache/httpd/php-7.3.33/ext/standard/info.c -o ext/standard/info.lo \n/bin/sh /var/cache/httpd/php-7.3.33/libtool --silent --preserve-dup-deps --mode=compile cc -DZEND_ENABLE_STATIC_TSRMLS_CACHE=1 -Imain/ -I/var/cache/httpd/php-7.3.33/main/ -DPHP_ATOM_INC -I/var/cache/httpd/php-7.3.33/include -I/var/cache/httpd/php-7.3.33/main -I/var/cache/httpd/php-7.3.33 -I/var/cache/httpd/php-7.3.33/ext/date/lib -I/usr/include/libxml2 -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/imap -I/var/cache/httpd/php-7.3.33/ext/mbstring/oniguruma -I/var/cache/httpd/php-7.3.33/ext/mbstring/libmbfl -I/var/cache/httpd/php-7.3.33/ext/mbstring/libmbfl/mbfl -I/usr/pgsql-17/include -I/var/cache/httpd/php-7.3.33/ext/sqlite3/libsqlite -I/usr/include/pspell -I/var/cache/httpd/php-7.3.33/TSRM -I/var/cache/httpd/php-7.3.33/Zend -DFD_SETSIZE=1024 -I/usr/include -pipe -O2 -g -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector -m64 -fvisibility=hidden -DZEND_SIGNALS -c main/internal_functions_cli.c -o main/internal_functions_cli.lo \n/bin/sh /var/cache/httpd/php-7.3.33/libtool --silent --preserve-dup-deps --mode=link cc -export-dynamic -I/usr/include -pipe -O2 -g -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector -m64 -fvisibility=hidden -DZEND_SIGNALS -L/usr/pgsql-17/lib -R /usr/pgsql-17/lib ext/date/php_date.lo ext/date/lib/astro.lo ext/date/lib/dow.lo ext/date/lib/parse_date.lo ext/date/lib/parse_tz.lo ext/date/lib/timelib.lo ext/date/lib/tm2unixtime.lo ext/date/lib/unixtime2tm.lo ext/date/lib/parse_iso_intervals.lo ext/date/lib/interval.lo ext/libxml/libxml.lo ext/openssl/openssl.lo ext/openssl/xp_ssl.lo ext/pcre/pcre2lib/pcre2_auto_possess.lo ext/pcre/pcre2lib/pcre2_chartables.lo ext/pcre/pcre2lib/pcre2_compile.lo ext/pcre/pcre2lib/pcre2_config.lo ext/pcre/pcre2lib/pcre2_context.lo ext/pcre/pcre2lib/pcre2_dfa_match.lo ext/pcre/pcre2lib/pcre2_error.lo ext/pcre/pcre2lib/pcre2_jit_compile.lo ext/pcre/pcre2lib/pcre2_maketables.lo ext/pcre/pcre2lib/pcre2_match.lo ext/pcre/pcre2lib/pcre2_match_data.lo ext/pcre/pcre2lib/pcre2_newline.lo ext/pcre/pcre2lib/pcre2_ord2utf.lo ext/pcre/pcre2lib/pcre2_pattern_info.lo ext/pcre/pcre2lib/pcre2_serialize.lo ext/pcre/pcre2lib/pcre2_string_utils.lo ext/pcre/pcre2lib/pcre2_study.lo ext/pcre/pcre2lib/pcre2_substitute.lo ext/pcre/pcre2lib/pcre2_substring.lo ext/pcre/pcre2lib/pcre2_tables.lo ext/pcre/pcre2lib/pcre2_ucd.lo ext/pcre/pcre2lib/pcre2_valid_utf.lo ext/pcre/pcre2lib/pcre2_xclass.lo ext/pcre/pcre2lib/pcre2_find_bracket.lo ext/pcre/pcre2lib/pcre2_convert.lo ext/pcre/pcre2lib/pcre2_extuni.lo ext/pcre/php_pcre.lo ext/sqlite3/sqlite3.lo ext/sqlite3/libsqlite/sqlite3.lo ext/zlib/zlib.lo ext/zlib/zlib_fopen_wrapper.lo ext/zlib/zlib_filter.lo ext/bcmath/bcmath.lo ext/bcmath/libbcmath/src/add.lo ext/bcmath/libbcmath/src/div.lo ext/bcmath/libbcmath/src/init.lo ext/bcmath/libbcmath/src/neg.lo ext/bcmath/libbcmath/src/outofmem.lo ext/bcmath/libbcmath/src/raisemod.lo ext/bcmath/libbcmath/src/sub.lo ext/bcmath/libbcmath/src/compare.lo ext/bcmath/libbcmath/src/divmod.lo ext/bcmath/libbcmath/src/int2num.lo ext/bcmath/libbcmath/src/num2long.lo ext/bcmath/libbcmath/src/output.lo ext/bcmath/libbcmath/src/recmul.lo ext/bcmath/libbcmath/src/sqrt.lo ext/bcmath/libbcmath/src/zero.lo ext/bcmath/libbcmath/src/debug.lo ext/bcmath/libbcmath/src/doaddsub.lo ext/bcmath/libbcmath/src/nearzero.lo ext/bcmath/libbcmath/src/num2str.lo ext/bcmath/libbcmath/src/raise.lo ext/bcmath/libbcmath/src/rmzero.lo ext/bcmath/libbcmath/src/str2num.lo ext/bz2/bz2.lo ext/bz2/bz2_filter.lo ext/calendar/calendar.lo ext/calendar/dow.lo ext/calendar/french.lo ext/calendar/gregor.lo ext/calendar/jewish.lo ext/calendar/julian.lo ext/calendar/easter.lo ext/calendar/cal_unix.lo ext/ctype/ctype.lo ext/curl/interface.lo ext/curl/multi.lo ext/curl/share.lo ext/curl/curl_file.lo ext/dba/dba.lo ext/dba/dba_cdb.lo ext/dba/dba_dbm.lo ext/dba/dba_gdbm.lo ext/dba/dba_ndbm.lo ext/dba/dba_db1.lo ext/dba/dba_db2.lo ext/dba/dba_db3.lo ext/dba/dba_db4.lo ext/dba/dba_flatfile.lo ext/dba/dba_inifile.lo ext/dba/dba_qdbm.lo ext/dba/dba_tcadb.lo ext/dba/dba_lmdb.lo ext/dba/libcdb/cdb.lo ext/dba/libcdb/cdb_make.lo ext/dba/libcdb/uint32.lo ext/dba/libflatfile/flatfile.lo ext/dba/libinifile/inifile.lo ext/dom/php_dom.lo ext/dom/attr.lo ext/dom/document.lo ext/dom/domerrorhandler.lo ext/dom/domstringlist.lo ext/dom/domexception.lo ext/dom/namelist.lo ext/dom/processinginstruction.lo ext/dom/cdatasection.lo ext/dom/documentfragment.lo ext/dom/domimplementation.lo ext/dom/element.lo ext/dom/node.lo ext/dom/string_extend.lo ext/dom/characterdata.lo ext/dom/documenttype.lo ext/dom/domimplementationlist.lo ext/dom/entity.lo ext/dom/nodelist.lo ext/dom/text.lo ext/dom/comment.lo ext/dom/domconfiguration.lo ext/dom/domimplementationsource.lo ext/dom/entityreference.lo ext/dom/notation.lo ext/dom/xpath.lo ext
Still Error
Build did not complete, either because you ran out of storage or hit an OOM kill.
What’s reported with df
and free -m
? Jobs are determined by core availability, which caps at 8 if you have more than 8 cores available (nproc
reports this value). To limit the number of concurrent jobs to 2, for example: cpcmd scope:set cp.bootstraper compile_max_jobs 2
rm -rf /var/cache/httpd/php-7.3.33
upcp -sbv php/multiphp
jaydul
October 16, 2024, 12:27pm
5
[root@server playbooks]# rm -rf /var/cache/httpd/php-7.3.33
[root@server playbooks]# df
Filesystem 1K-blocks Used Available Use% Mounted on
devtmpfs 65899832 0 65899832 0% /dev
tmpfs 65955448 1048 65954400 1% /dev/shm
tmpfs 65955448 772 65954676 1% /run
/dev/md2 978087024 14016112 914313152 2% /
tmpfs 4194304 4112 4190192 1% /tmp
/dev/md1 1012428 499500 460604 53% /boot
tmpfs 13191088 0 13191088 0% /run/user/0
[root@server playbooks]# free -m
total used free shared buff/cache available
Mem: 128819 3005 122317 228 3496 124393
Swap: 4090 0 4090
jaydul
October 16, 2024, 1:31pm
6
rm -rf /var/cache/httpd/php-7.3.33
upcp -sbv php/multiphp
It works thanks.