You have to downgrade libxml2 to version 11.5 if you want to build it. Current Arch Linux version of this package is incompatible with php74 code.
Switch to php 8.x or change OS if you have to use PHP 7.4, there be more problems like this in the future, PHP 7.4 has end-of-life status.
Pinned Comments
el_aur commented on 2022-01-27 12:06 (UTC) (edited on 2022-02-01 21:33 (UTC) by el_aur)
Read Carefully! Breaking changes in compare with native PHP package
Console version
/usr/bin/php74is installed withphp74-clisubpackage,php74doesn't include it anymore!!!PEAR and PECL are available as
php74-pearandphp74-peclsubpackagesAll shared modules are respresented as stand-alone subpackages and are not included with
php74package anymore.No more extensions in php.ini itself! Separate INI files for each extension are placed in
/etc/php74/conf.dThey are loaded in correct order according to priorityModules: mysqlnd, mysqli and pdo_mysql are moved to single package
php74-mysqlphp74-xslrequiresphp74-xmlandphp74-domto be installedphp74-enchantbuild with dependencies:libvoikko,hspell,hunspell,nuspell,aspell