Closed yaner-here closed 1 year ago
Can you also share config-x64-windows-rel-config.log? Do have libxml2 installed / does the problem disappear if you remove libxml2 before installing gettext[tools]?
@dg0yt
I edited my issue to attach config-x64-windows-rel-config.log
. And I do have libxml2
installed.
(base) PS C:\Users\Yaner> vcpkg list | findstr "xml"
libarchive[libxml2]:x64-windows Libxml2 support
libxml2:x64-windows 2.10.3#1 Libxml2 is the XML C parser and toolkit develope...
libxml2[iconv]:x64-windows Add ICONV support
libxml2[lzma]:x64-windows Use LZMA
libxml2[zlib]:x64-windows Use ZLib
pugixml:x64-windows 1.13.0 Light-weight, simple and fast XML parser for C++...
Because of my packages' dependency contraints, I decided to backup my original vcpkg
folder and replace it with a blank one.
(base) PS C:\Users\Yaner> vcpkg remove libxml2:x64-windows
The following packages will be removed:
* libarchive:x64-windows
libxml2:x64-windows
* opencv:x64-windows
* opencv4:x64-windows
* tesseract:x64-windows
* vtk:x64-windows
(base) PS C:\Users\Yaner> vcpkg.exe list
No packages are installed. Did you mean `search`?
(base) PS C:\Users\Yaner> vcpkg.exe install gettext:x64-windows
......
-- Installing: C:/lib/vcpkg/packages/gettext_x64-windows/tools/gettext/bin/autopoint
-- Installing: C:/lib/vcpkg/packages/gettext_x64-windows/share/gettext/gettext/archive.dir.tar.gz
-- Performing post-build validation
Elapsed time to handle gettext:x64-windows: 12.97 min
Total install time: 13.03 min
......
It literally worked! But Why? It seems that they conflict with each other.
The build log showed that it is stumbling over linking lib xml2. But it shouldn't use the external lib.
I'm currently experimenting with the gettext port (build time! #30429) and caching it is configuration. I know that it could use external or internal libxml2. But in vcpkg, it shouldn't use external dependencies unless we can ensure that there are no boostrapping cycles. Maybe I can take a second look at the xml2 dependency. gettext has at least two types of components, with different bootstrapping requirements.
@dg0yt Thanks for your amazing work in maintaining vcpkg
! Look forward to the issue being fixed soon.
You can leave this open until it is actually fixed.
Waiting for #29067, then #30429.
Host Environment
To Reproduce
Steps to reproduce the behavior:
vcpkg.exe install gettext:x64-windows
Failure logs
Logs: config-x64-windows-rel-config.log build-x64-windows-rel-out.log build-x64-windows-rel-err.log