[PATCH] D131699: add arcanist patch

Uday Bondhugula via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sun May 28 20:18:05 PDT 2023


bondhugula added a comment.

In D131699#4378582 <https://reviews.llvm.org/D131699#4378582>, @bondhugula wrote:

> More precisely, this is what I see:
>
>   arc diff
>   PHP Deprecated:  Function libxml_disable_entity_loader() is deprecated in /usr/share/arcanist/support/init/init-script.php on line 92
>   
>   Deprecated: Function libxml_disable_entity_loader() is deprecated in /usr/share/arcanist/support/init/init-script.php on line 92
>   PHP Fatal error:  Uncaught Exception: Error while loading file "/usr/share/arcanist/src/object/Phobject.php": Return type of Phobject::rewind() should either be compatible with Iterator::rewind(): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /usr/share/arcanist/src/init/lib/PhutilBootloader.php:275
>   Stack trace:
>   #0 /usr/share/arcanist/src/init/lib/PhutilBootloader.php(207): PhutilBootloader->executeInclude()
>   #1 /usr/share/arcanist/src/symbols/PhutilSymbolLoader.php(422): PhutilBootloader->loadLibrarySource()
>   #2 /usr/share/arcanist/src/symbols/PhutilSymbolLoader.php(277): PhutilSymbolLoader->loadSymbol()
>   #3 /usr/share/arcanist/src/init/init-library.php(23): PhutilSymbolLoader->selectAndLoadSymbols()
>   #4 /usr/share/arcanist/src/filesystem/Filesystem.php(18): __phutil_autoload()
>   #5 /usr/share/arcanist/src/init/lib/PhutilBootloader.php(247): include_once('...')
>   #6 /usr/share/arcanist/src/init/lib/PhutilBootloader.php(207): PhutilBootloader->executeInclude()
>   #7 /usr/share/arcanist/src/symbols/PhutilSymbolLoader.php(422): PhutilBootloader->loadLibrarySource()
>   #8 /usr/share/arcanist/src/symbols/PhutilSymbolLoader.php(277): PhutilSymbolLoader->loadSymbol()
>   #9 /usr/share/arcanist/src/init/init-library.php(23): PhutilSymbolLoader->selectAndLoadSymbols()
>   #10 /usr/share/arcanist/src/init/lib/PhutilBootloader.php(97): __phutil_autoload()
>   #11 /usr/share/arcanist/src/init/lib/PhutilBootloader.php(21): PhutilBootloader->registerLibrary()
>   #12 /usr/share/arcanist/src/init/init-library.php(70): PhutilBootloader::newLibrary()
>   #13 /usr/share/arcanist/support/init/init-script.php(96): require_once('...')
>   #14 /usr/share/arcanist/support/init/init-script.php(115): __arcanist_init_script__()
>   #15 /usr/share/arcanist/support/init/init-arcanist.php(3): require_once('...')
>   #16 /usr/share/arcanist/bin/arc(10): require_once('...')
>   #17 {main}
>     thrown in /usr/share/arcanist/src/init/lib/PhutilBootloader.php on line 275
>   
>   Fatal error: Uncaught Exception: Error while loading file "/usr/share/arcanist/src/object/Phobject.php": Return type of Phobject::rewind() should either be compatible with Iterator::rewind(): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /usr/share/arcanist/src/init/lib/PhutilBootloader.php:275
>   Stack trace:
>   #0 /usr/share/arcanist/src/init/lib/PhutilBootloader.php(207): PhutilBootloader->executeInclude()
>   #1 /usr/share/arcanist/src/symbols/PhutilSymbolLoader.php(422): PhutilBootloader->loadLibrarySource()
>   #2 /usr/share/arcanist/src/symbols/PhutilSymbolLoader.php(277): PhutilSymbolLoader->loadSymbol()
>   #3 /usr/share/arcanist/src/init/init-library.php(23): PhutilSymbolLoader->selectAndLoadSymbols()
>   #4 /usr/share/arcanist/src/filesystem/Filesystem.php(18): __phutil_autoload()
>   #5 /usr/share/arcanist/src/init/lib/PhutilBootloader.php(247): include_once('...')
>   #6 /usr/share/arcanist/src/init/lib/PhutilBootloader.php(207): PhutilBootloader->executeInclude()
>   #7 /usr/share/arcanist/src/symbols/PhutilSymbolLoader.php(422): PhutilBootloader->loadLibrarySource()
>   #8 /usr/share/arcanist/src/symbols/PhutilSymbolLoader.php(277): PhutilSymbolLoader->loadSymbol()
>   #9 /usr/share/arcanist/src/init/init-library.php(23): PhutilSymbolLoader->selectAndLoadSymbols()
>   #10 /usr/share/arcanist/src/init/lib/PhutilBootloader.php(97): __phutil_autoload()
>   #11 /usr/share/arcanist/src/init/lib/PhutilBootloader.php(21): PhutilBootloader->registerLibrary()
>   #12 /usr/share/arcanist/src/init/init-library.php(70): PhutilBootloader::newLibrary()
>   #13 /usr/share/arcanist/support/init/init-script.php(96): require_once('...')
>   #14 /usr/share/arcanist/support/init/init-script.php(115): __arcanist_init_script__()
>   #15 /usr/share/arcanist/support/init/init-arcanist.php(3): require_once('...')
>   #16 /usr/share/arcanist/bin/arc(10): require_once('...')
>   #17 {main}
>     thrown in /usr/share/arcanist/src/init/lib/PhutilBootloader.php on line 275

Sorry, it turns out that it was using the `arc` installed on the system from the Ubuntu repos (0~git20200925-1) instead of the git version at 0fc22183e796fb8ac2e3a0a3f3f37aa964c6d7fa patched by `Fix PHP 8.1 incompatibility with `arc patch D<12345>``. The latter works fine.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D131699/new/

https://reviews.llvm.org/D131699



More information about the llvm-commits mailing list