https://bugs.winehq.org/show_bug.cgi?id=55720
--- Comment #2 from François Gouget fgouget@codeweavers.com --- 1. I don't think one can use anything but the builtin PE libs/xml2 library. Also the Linux libxml2 library is not installed in the build environment.
Note also that on can find the binaries that the GitLab CI uses to run the tests in the artifacts of the build-daily-linux jobs on Wine's pipeline page: https://gitlab.winehq.org/wine/wine/-/pipelines
artifacts.zip actually contains a zip of the /usr/local tree and there is no trace of linking to a native libxml2 library.
2. The GitLab CI uses gcc. See tools/gitlab/image.docker for the list of build tools it uses.