Cannot install gettext with vcpkg

Do you need help? Ask here!

Bug reporting belongs here: http://developer.wz2100.net/newticket
Post Reply
Forgon
Code contributor
Code contributor
Posts: 298
Joined: 07 Dec 2016, 22:23

Cannot install gettext with vcpkg

Post by Forgon »

Using a Windows 10 VM provided by Microsoft, I failed to successfully execute the powershell script `get-dependencies.ps1` inside the source code directory because the vcpkg package "gettext" could not be installed.

Command output of `vcpkg install gettext` inside 'vcpkg' subdirectory:

Code: Select all

The following packages will be built and installed:
    gettext[core]:x86-windows
Starting package 1/1: gettext:x86-windows
Building package gettext[core]:x86-windows... 
-- CURRENT_INSTALLED_DIR=C:/warzone2100/vcpkg/installed/x86-windows
-- DOWNLOADS=C:/warzone2100/vcpkg/downloads
-- CURRENT_PACKAGES_DIR=C:/warzone2100/vcpkg/packages/gettext_x86-windows
-- CURRENT_BUILDTREES_DIR=C:/warzone2100/vcpkg/buildtrees/gettext
-- CURRENT_PORT_DIR=C:/warzone2100/vcpkg/ports/gettext/.
-- Using cached C:/warzone2100/vcpkg/downloads/gettext-0.19.tar.gz
-- Testing integrity of cached file...
-- Testing integrity of cached file... OK
-- Extracting done
-- Applying patch C:/warzone2100/vcpkg/ports/gettext/0001-Fix-macro-definitions.patch
-- Applying patch failed. This is expected if this patch was previously applied.
-- Applying patch C:/warzone2100/vcpkg/ports/gettext/0001-Fix-macro-definitions.patch done
-- Applying patch C:/warzone2100/vcpkg/ports/gettext/0002-Fix-uwp-build.patch
-- Applying patch C:/warzone2100/vcpkg/ports/gettext/0002-Fix-uwp-build.patch done
-- Configuring x86-windows
-- Configuring x86-windows done
-- Build x86-windows-dbg
CMake Error at C:/warzone2100/vcpkg/scripts/cmake/vcpkg_build_cmake.cmake:129 (message):
    Command failed: C:/Program Files/CMake/bin/cmake.exe;--build;.;--config;Debug;--target;install;--;-v;-j1
    Working Directory: C:/warzone2100/vcpkg/buildtrees/gettext/x86-windows-dbg
    See logs for more information:
      C:\warzone2100\vcpkg\buildtrees\gettext\install-x86-windows-dbg-out.log

Call Stack (most recent call first):
  C:/warzone2100/vcpkg/scripts/cmake/vcpkg_install_cmake.cmake:24 (vcpkg_build_cmake)
  C:/warzone2100/vcpkg/ports/gettext/portfile.cmake:35 (vcpkg_install_cmake)
  C:/warzone2100/vcpkg/scripts/ports.cmake:72 (include)

Error: Building package gettext:x86-windows failed with: BUILD_FAILED
Please ensure you're using the latest portfiles with `.\vcpkg update`, then
submit an issue at https://github.com/Microsoft/vcpkg/issues including:
  Package: gettext:x86-windows
  Vcpkg version: 0.0.105-2018-03-03-d739a2aa7f4f2a05d923f8122d9c8736474af35a

Additionally, attach any relevant sections from the log files above.
Contents of logfile 'C:\warzone2100\vcpkg\buildtrees\gettext\install-x86-windows-dbg-out.log':

Code: Select all

[1/28] C:\PROGRA~2\MICROS~1\2017\COMMUN~1\VC\Tools\MSVC\1412~1.258\bin\Hostx64\x86\cl.exe   -DBUILDING_DLL -DINSTALLDIR=\"c:/gettext\" -DLIBDIR=\"c:/gettext\" -DLOCALEDIR=\"c:/gettext\" -DLOCALE_ALIAS_PATH=\"c:/gettext\" -Dlibintl_EXPORTS -I. -IC:\warzone2100\vcpkg\buildtrees\gettext\src\gettext-0.19\gettext-runtime\. -IC:\warzone2100\vcpkg\installed\x86-windows\include /DWIN32 /D_WINDOWS /W3 /utf-8 /MP /D_DEBUG /MDd /Z7 /Ob0 /Od /RTC1   -DBUILDING_LIBINTL -DIN_LIBINTL -DENABLE_RELOCATABLE=1 -DIN_LIBRARY -DNO_XMALLOC -Dset_relocation_prefix=libintl_set_relocation_prefix -Drelocate=libintl_relocate -DDEPENDS_ON_LIBICONV=1 -DHAVE_CONFIG_H -D_CRT_SECURE_NO_WARNINGS /showIncludes /FoCMakeFiles\libintl.dir\intl\dcgettext.c.obj /FdCMakeFiles\libintl.dir\ /FS -c C:\warzone2100\vcpkg\buildtrees\gettext\src\gettext-0.19\gettext-runtime\intl\dcgettext.c
Microsoft (R) C/C++ Optimizing Compiler Version 19.12.25835 for x86
Copyright (C) Microsoft Corporation.  All rights reserved.

[2/28] C:\PROGRA~2\MICROS~1\2017\COMMUN~1\VC\Tools\MSVC\1412~1.258\bin\Hostx64\x86\cl.exe   -DBUILDING_DLL -DINSTALLDIR=\"c:/gettext\" -DLIBDIR=\"c:/gettext\" -DLOCALEDIR=\"c:/gettext\" -DLOCALE_ALIAS_PATH=\"c:/gettext\" -Dlibintl_EXPORTS -I. -IC:\warzone2100\vcpkg\buildtrees\gettext\src\gettext-0.19\gettext-runtime\. -IC:\warzone2100\vcpkg\installed\x86-windows\include /DWIN32 /D_WINDOWS /W3 /utf-8 /MP /D_DEBUG /MDd /Z7 /Ob0 /Od /RTC1   -DBUILDING_LIBINTL -DIN_LIBINTL -DENABLE_RELOCATABLE=1 -DIN_LIBRARY -DNO_XMALLOC -Dset_relocation_prefix=libintl_set_relocation_prefix -Drelocate=libintl_relocate -DDEPENDS_ON_LIBICONV=1 -DHAVE_CONFIG_H -D_CRT_SECURE_NO_WARNINGS /showIncludes /FoCMakeFiles\libintl.dir\intl\bindtextdom.c.obj /FdCMakeFiles\libintl.dir\ /FS -c C:\warzone2100\vcpkg\buildtrees\gettext\src\gettext-0.19\gettext-runtime\intl\bindtextdom.c
Microsoft (R) C/C++ Optimizing Compiler Version 19.12.25835 for x86
Copyright (C) Microsoft Corporation.  All rights reserved.

[3/28] C:\PROGRA~2\MICROS~1\2017\COMMUN~1\VC\Tools\MSVC\1412~1.258\bin\Hostx64\x86\cl.exe   -DBUILDING_DLL -DINSTALLDIR=\"c:/gettext\" -DLIBDIR=\"c:/gettext\" -DLOCALEDIR=\"c:/gettext\" -DLOCALE_ALIAS_PATH=\"c:/gettext\" -Dlibintl_EXPORTS -I. -IC:\warzone2100\vcpkg\buildtrees\gettext\src\gettext-0.19\gettext-runtime\. -IC:\warzone2100\vcpkg\installed\x86-windows\include /DWIN32 /D_WINDOWS /W3 /utf-8 /MP /D_DEBUG /MDd /Z7 /Ob0 /Od /RTC1   -DBUILDING_LIBINTL -DIN_LIBINTL -DENABLE_RELOCATABLE=1 -DIN_LIBRARY -DNO_XMALLOC -Dset_relocation_prefix=libintl_set_relocation_prefix -Drelocate=libintl_relocate -DDEPENDS_ON_LIBICONV=1 -DHAVE_CONFIG_H -D_CRT_SECURE_NO_WARNINGS /showIncludes /FoCMakeFiles\libintl.dir\intl\dgettext.c.obj /FdCMakeFiles\libintl.dir\ /FS -c C:\warzone2100\vcpkg\buildtrees\gettext\src\gettext-0.19\gettext-runtime\intl\dgettext.c
Microsoft (R) C/C++ Optimizing Compiler Version 19.12.25835 for x86
Copyright (C) Microsoft Corporation.  All rights reserved.

[4/28] C:\PROGRA~2\MICROS~1\2017\COMMUN~1\VC\Tools\MSVC\1412~1.258\bin\Hostx64\x86\cl.exe   -DBUILDING_DLL -DINSTALLDIR=\"c:/gettext\" -DLIBDIR=\"c:/gettext\" -DLOCALEDIR=\"c:/gettext\" -DLOCALE_ALIAS_PATH=\"c:/gettext\" -Dlibintl_EXPORTS -I. -IC:\warzone2100\vcpkg\buildtrees\gettext\src\gettext-0.19\gettext-runtime\. -IC:\warzone2100\vcpkg\installed\x86-windows\include /DWIN32 /D_WINDOWS /W3 /utf-8 /MP /D_DEBUG /MDd /Z7 /Ob0 /Od /RTC1   -DBUILDING_LIBINTL -DIN_LIBINTL -DENABLE_RELOCATABLE=1 -DIN_LIBRARY -DNO_XMALLOC -Dset_relocation_prefix=libintl_set_relocation_prefix -Drelocate=libintl_relocate -DDEPENDS_ON_LIBICONV=1 -DHAVE_CONFIG_H -D_CRT_SECURE_NO_WARNINGS /showIncludes /FoCMakeFiles\libintl.dir\intl\dcngettext.c.obj /FdCMakeFiles\libintl.dir\ /FS -c C:\warzone2100\vcpkg\buildtrees\gettext\src\gettext-0.19\gettext-runtime\intl\dcngettext.c
Microsoft (R) C/C++ Optimizing Compiler Version 19.12.25835 for x86
Copyright (C) Microsoft Corporation.  All rights reserved.

[5/28] C:\PROGRA~2\MICROS~1\2017\COMMUN~1\VC\Tools\MSVC\1412~1.258\bin\Hostx64\x86\cl.exe   -DBUILDING_DLL -DINSTALLDIR=\"c:/gettext\" -DLIBDIR=\"c:/gettext\" -DLOCALEDIR=\"c:/gettext\" -DLOCALE_ALIAS_PATH=\"c:/gettext\" -Dlibintl_EXPORTS -I. -IC:\warzone2100\vcpkg\buildtrees\gettext\src\gettext-0.19\gettext-runtime\. -IC:\warzone2100\vcpkg\installed\x86-windows\include /DWIN32 /D_WINDOWS /W3 /utf-8 /MP /D_DEBUG /MDd /Z7 /Ob0 /Od /RTC1   -DBUILDING_LIBINTL -DIN_LIBINTL -DENABLE_RELOCATABLE=1 -DIN_LIBRARY -DNO_XMALLOC -Dset_relocation_prefix=libintl_set_relocation_prefix -Drelocate=libintl_relocate -DDEPENDS_ON_LIBICONV=1 -DHAVE_CONFIG_H -D_CRT_SECURE_NO_WARNINGS /showIncludes /FoCMakeFiles\libintl.dir\intl\explodename.c.obj /FdCMakeFiles\libintl.dir\ /FS -c C:\warzone2100\vcpkg\buildtrees\gettext\src\gettext-0.19\gettext-runtime\intl\explodename.c
Microsoft (R) C/C++ Optimizing Compiler Version 19.12.25835 for x86
Copyright (C) Microsoft Corporation.  All rights reserved.

[6/28] C:\PROGRA~2\MICROS~1\2017\COMMUN~1\VC\Tools\MSVC\1412~1.258\bin\Hostx64\x86\cl.exe   -DBUILDING_DLL -DINSTALLDIR=\"c:/gettext\" -DLIBDIR=\"c:/gettext\" -DLOCALEDIR=\"c:/gettext\" -DLOCALE_ALIAS_PATH=\"c:/gettext\" -Dlibintl_EXPORTS -I. -IC:\warzone2100\vcpkg\buildtrees\gettext\src\gettext-0.19\gettext-runtime\. -IC:\warzone2100\vcpkg\installed\x86-windows\include /DWIN32 /D_WINDOWS /W3 /utf-8 /MP /D_DEBUG /MDd /Z7 /Ob0 /Od /RTC1   -DBUILDING_LIBINTL -DIN_LIBINTL -DENABLE_RELOCATABLE=1 -DIN_LIBRARY -DNO_XMALLOC -Dset_relocation_prefix=libintl_set_relocation_prefix -Drelocate=libintl_relocate -DDEPENDS_ON_LIBICONV=1 -DHAVE_CONFIG_H -D_CRT_SECURE_NO_WARNINGS /showIncludes /FoCMakeFiles\libintl.dir\intl\dcigettext.c.obj /FdCMakeFiles\libintl.dir\ /FS -c C:\warzone2100\vcpkg\buildtrees\gettext\src\gettext-0.19\gettext-runtime\intl\dcigettext.c
Microsoft (R) C/C++ Optimizing Compiler Version 19.12.25835 for x86
Copyright (C) Microsoft Corporation.  All rights reserved.

[7/28] C:\PROGRA~2\MICROS~1\2017\COMMUN~1\VC\Tools\MSVC\1412~1.258\bin\Hostx64\x86\cl.exe   -DBUILDING_DLL -DINSTALLDIR=\"c:/gettext\" -DLIBDIR=\"c:/gettext\" -DLOCALEDIR=\"c:/gettext\" -DLOCALE_ALIAS_PATH=\"c:/gettext\" -Dlibintl_EXPORTS -I. -IC:\warzone2100\vcpkg\buildtrees\gettext\src\gettext-0.19\gettext-runtime\. -IC:\warzone2100\vcpkg\installed\x86-windows\include /DWIN32 /D_WINDOWS /W3 /utf-8 /MP /D_DEBUG /MDd /Z7 /Ob0 /Od /RTC1   -DBUILDING_LIBINTL -DIN_LIBINTL -DENABLE_RELOCATABLE=1 -DIN_LIBRARY -DNO_XMALLOC -Dset_relocation_prefix=libintl_set_relocation_prefix -Drelocate=libintl_relocate -DDEPENDS_ON_LIBICONV=1 -DHAVE_CONFIG_H -D_CRT_SECURE_NO_WARNINGS /showIncludes /FoCMakeFiles\libintl.dir\intl\dngettext.c.obj /FdCMakeFiles\libintl.dir\ /FS -c C:\warzone2100\vcpkg\buildtrees\gettext\src\gettext-0.19\gettext-runtime\intl\dngettext.c
Microsoft (R) C/C++ Optimizing Compiler Version 19.12.25835 for x86
Copyright (C) Microsoft Corporation.  All rights reserved.

[8/28] C:\PROGRA~2\MICROS~1\2017\COMMUN~1\VC\Tools\MSVC\1412~1.258\bin\Hostx64\x86\cl.exe   -DBUILDING_DLL -DINSTALLDIR=\"c:/gettext\" -DLIBDIR=\"c:/gettext\" -DLOCALEDIR=\"c:/gettext\" -DLOCALE_ALIAS_PATH=\"c:/gettext\" -Dlibintl_EXPORTS -I. -IC:\warzone2100\vcpkg\buildtrees\gettext\src\gettext-0.19\gettext-runtime\. -IC:\warzone2100\vcpkg\installed\x86-windows\include /DWIN32 /D_WINDOWS /W3 /utf-8 /MP /D_DEBUG /MDd /Z7 /Ob0 /Od /RTC1   -DBUILDING_LIBINTL -DIN_LIBINTL -DENABLE_RELOCATABLE=1 -DIN_LIBRARY -DNO_XMALLOC -Dset_relocation_prefix=libintl_set_relocation_prefix -Drelocate=libintl_relocate -DDEPENDS_ON_LIBICONV=1 -DHAVE_CONFIG_H -D_CRT_SECURE_NO_WARNINGS /showIncludes /FoCMakeFiles\libintl.dir\intl\gettext.c.obj /FdCMakeFiles\libintl.dir\ /FS -c C:\warzone2100\vcpkg\buildtrees\gettext\src\gettext-0.19\gettext-runtime\intl\gettext.c
Microsoft (R) C/C++ Optimizing Compiler Version 19.12.25835 for x86
Copyright (C) Microsoft Corporation.  All rights reserved.

[9/28] C:\PROGRA~2\MICROS~1\2017\COMMUN~1\VC\Tools\MSVC\1412~1.258\bin\Hostx64\x86\cl.exe   -DBUILDING_DLL -DINSTALLDIR=\"c:/gettext\" -DLIBDIR=\"c:/gettext\" -DLOCALEDIR=\"c:/gettext\" -DLOCALE_ALIAS_PATH=\"c:/gettext\" -Dlibintl_EXPORTS -I. -IC:\warzone2100\vcpkg\buildtrees\gettext\src\gettext-0.19\gettext-runtime\. -IC:\warzone2100\vcpkg\installed\x86-windows\include /DWIN32 /D_WINDOWS /W3 /utf-8 /MP /D_DEBUG /MDd /Z7 /Ob0 /Od /RTC1   -DBUILDING_LIBINTL -DIN_LIBINTL -DENABLE_RELOCATABLE=1 -DIN_LIBRARY -DNO_XMALLOC -Dset_relocation_prefix=libintl_set_relocation_prefix -Drelocate=libintl_relocate -DDEPENDS_ON_LIBICONV=1 -DHAVE_CONFIG_H -D_CRT_SECURE_NO_WARNINGS /showIncludes /FoCMakeFiles\libintl.dir\intl\finddomain.c.obj /FdCMakeFiles\libintl.dir\ /FS -c C:\warzone2100\vcpkg\buildtrees\gettext\src\gettext-0.19\gettext-runtime\intl\finddomain.c
Microsoft (R) C/C++ Optimizing Compiler Version 19.12.25835 for x86
Copyright (C) Microsoft Corporation.  All rights reserved.

[10/28] C:\PROGRA~2\MICROS~1\2017\COMMUN~1\VC\Tools\MSVC\1412~1.258\bin\Hostx64\x86\cl.exe   -DBUILDING_DLL -DINSTALLDIR=\"c:/gettext\" -DLIBDIR=\"c:/gettext\" -DLOCALEDIR=\"c:/gettext\" -DLOCALE_ALIAS_PATH=\"c:/gettext\" -Dlibintl_EXPORTS -I. -IC:\warzone2100\vcpkg\buildtrees\gettext\src\gettext-0.19\gettext-runtime\. -IC:\warzone2100\vcpkg\installed\x86-windows\include /DWIN32 /D_WINDOWS /W3 /utf-8 /MP /D_DEBUG /MDd /Z7 /Ob0 /Od /RTC1   -DBUILDING_LIBINTL -DIN_LIBINTL -DENABLE_RELOCATABLE=1 -DIN_LIBRARY -DNO_XMALLOC -Dset_relocation_prefix=libintl_set_relocation_prefix -Drelocate=libintl_relocate -DDEPENDS_ON_LIBICONV=1 -DHAVE_CONFIG_H -D_CRT_SECURE_NO_WARNINGS /showIncludes /FoCMakeFiles\libintl.dir\intl\intl-compat.c.obj /FdCMakeFiles\libintl.dir\ /FS -c C:\warzone2100\vcpkg\buildtrees\gettext\src\gettext-0.19\gettext-runtime\intl\intl-compat.c
Microsoft (R) C/C++ Optimizing Compiler Version 19.12.25835 for x86
Copyright (C) Microsoft Corporation.  All rights reserved.

[11/28] C:\PROGRA~2\MICROS~1\2017\COMMUN~1\VC\Tools\MSVC\1412~1.258\bin\Hostx64\x86\cl.exe   -DBUILDING_DLL -DINSTALLDIR=\"c:/gettext\" -DLIBDIR=\"c:/gettext\" -DLOCALEDIR=\"c:/gettext\" -DLOCALE_ALIAS_PATH=\"c:/gettext\" -Dlibintl_EXPORTS -I. -IC:\warzone2100\vcpkg\buildtrees\gettext\src\gettext-0.19\gettext-runtime\. -IC:\warzone2100\vcpkg\installed\x86-windows\include /DWIN32 /D_WINDOWS /W3 /utf-8 /MP /D_DEBUG /MDd /Z7 /Ob0 /Od /RTC1   -DBUILDING_LIBINTL -DIN_LIBINTL -DENABLE_RELOCATABLE=1 -DIN_LIBRARY -DNO_XMALLOC -Dset_relocation_prefix=libintl_set_relocation_prefix -Drelocate=libintl_relocate -DDEPENDS_ON_LIBICONV=1 -DHAVE_CONFIG_H -D_CRT_SECURE_NO_WARNINGS /showIncludes /FoCMakeFiles\libintl.dir\intl\hash-string.c.obj /FdCMakeFiles\libintl.dir\ /FS -c C:\warzone2100\vcpkg\buildtrees\gettext\src\gettext-0.19\gettext-runtime\intl\hash-string.c
Microsoft (R) C/C++ Optimizing Compiler Version 19.12.25835 for x86
Copyright (C) Microsoft Corporation.  All rights reserved.

[12/28] C:\PROGRA~2\MICROS~1\2017\COMMUN~1\VC\Tools\MSVC\1412~1.258\bin\Hostx64\x86\cl.exe   -DBUILDING_DLL -DINSTALLDIR=\"c:/gettext\" -DLIBDIR=\"c:/gettext\" -DLOCALEDIR=\"c:/gettext\" -DLOCALE_ALIAS_PATH=\"c:/gettext\" -Dlibintl_EXPORTS -I. -IC:\warzone2100\vcpkg\buildtrees\gettext\src\gettext-0.19\gettext-runtime\. -IC:\warzone2100\vcpkg\installed\x86-windows\include /DWIN32 /D_WINDOWS /W3 /utf-8 /MP /D_DEBUG /MDd /Z7 /Ob0 /Od /RTC1   -DBUILDING_LIBINTL -DIN_LIBINTL -DENABLE_RELOCATABLE=1 -DIN_LIBRARY -DNO_XMALLOC -Dset_relocation_prefix=libintl_set_relocation_prefix -Drelocate=libintl_relocate -DDEPENDS_ON_LIBICONV=1 -DHAVE_CONFIG_H -D_CRT_SECURE_NO_WARNINGS /showIncludes /FoCMakeFiles\libintl.dir\intl\l10nflist.c.obj /FdCMakeFiles\libintl.dir\ /FS -c C:\warzone2100\vcpkg\buildtrees\gettext\src\gettext-0.19\gettext-runtime\intl\l10nflist.c
Microsoft (R) C/C++ Optimizing Compiler Version 19.12.25835 for x86
Copyright (C) Microsoft Corporation.  All rights reserved.

[13/28] C:\PROGRA~2\MICROS~1\2017\COMMUN~1\VC\Tools\MSVC\1412~1.258\bin\Hostx64\x86\cl.exe   -DBUILDING_DLL -DINSTALLDIR=\"c:/gettext\" -DLIBDIR=\"c:/gettext\" -DLOCALEDIR=\"c:/gettext\" -DLOCALE_ALIAS_PATH=\"c:/gettext\" -Dlibintl_EXPORTS -I. -IC:\warzone2100\vcpkg\buildtrees\gettext\src\gettext-0.19\gettext-runtime\. -IC:\warzone2100\vcpkg\installed\x86-windows\include /DWIN32 /D_WINDOWS /W3 /utf-8 /MP /D_DEBUG /MDd /Z7 /Ob0 /Od /RTC1   -DBUILDING_LIBINTL -DIN_LIBINTL -DENABLE_RELOCATABLE=1 -DIN_LIBRARY -DNO_XMALLOC -Dset_relocation_prefix=libintl_set_relocation_prefix -Drelocate=libintl_relocate -DDEPENDS_ON_LIBICONV=1 -DHAVE_CONFIG_H -D_CRT_SECURE_NO_WARNINGS /showIncludes /FoCMakeFiles\libintl.dir\intl\localealias.c.obj /FdCMakeFiles\libintl.dir\ /FS -c C:\warzone2100\vcpkg\buildtrees\gettext\src\gettext-0.19\gettext-runtime\intl\localealias.c
Microsoft (R) C/C++ Optimizing Compiler Version 19.12.25835 for x86
Copyright (C) Microsoft Corporation.  All rights reserved.

[14/28] C:\PROGRA~2\MICROS~1\2017\COMMUN~1\VC\Tools\MSVC\1412~1.258\bin\Hostx64\x86\cl.exe   -DBUILDING_DLL -DINSTALLDIR=\"c:/gettext\" -DLIBDIR=\"c:/gettext\" -DLOCALEDIR=\"c:/gettext\" -DLOCALE_ALIAS_PATH=\"c:/gettext\" -Dlibintl_EXPORTS -I. -IC:\warzone2100\vcpkg\buildtrees\gettext\src\gettext-0.19\gettext-runtime\. -IC:\warzone2100\vcpkg\installed\x86-windows\include /DWIN32 /D_WINDOWS /W3 /utf-8 /MP /D_DEBUG /MDd /Z7 /Ob0 /Od /RTC1   -DBUILDING_LIBINTL -DIN_LIBINTL -DENABLE_RELOCATABLE=1 -DIN_LIBRARY -DNO_XMALLOC -Dset_relocation_prefix=libintl_set_relocation_prefix -Drelocate=libintl_relocate -DDEPENDS_ON_LIBICONV=1 -DHAVE_CONFIG_H -D_CRT_SECURE_NO_WARNINGS /showIncludes /FoCMakeFiles\libintl.dir\intl\localename.c.obj /FdCMakeFiles\libintl.dir\ /FS -c C:\warzone2100\vcpkg\buildtrees\gettext\src\gettext-0.19\gettext-runtime\intl\localename.c
Microsoft (R) C/C++ Optimizing Compiler Version 19.12.25835 for x86
Copyright (C) Microsoft Corporation.  All rights reserved.

[15/28] C:\PROGRA~2\MICROS~1\2017\COMMUN~1\VC\Tools\MSVC\1412~1.258\bin\Hostx64\x86\cl.exe   -DBUILDING_DLL -DINSTALLDIR=\"c:/gettext\" -DLIBDIR=\"c:/gettext\" -DLOCALEDIR=\"c:/gettext\" -DLOCALE_ALIAS_PATH=\"c:/gettext\" -Dlibintl_EXPORTS -I. -IC:\warzone2100\vcpkg\buildtrees\gettext\src\gettext-0.19\gettext-runtime\. -IC:\warzone2100\vcpkg\installed\x86-windows\include /DWIN32 /D_WINDOWS /W3 /utf-8 /MP /D_DEBUG /MDd /Z7 /Ob0 /Od /RTC1   -DBUILDING_LIBINTL -DIN_LIBINTL -DENABLE_RELOCATABLE=1 -DIN_LIBRARY -DNO_XMALLOC -Dset_relocation_prefix=libintl_set_relocation_prefix -Drelocate=libintl_relocate -DDEPENDS_ON_LIBICONV=1 -DHAVE_CONFIG_H -D_CRT_SECURE_NO_WARNINGS /showIncludes /FoCMakeFiles\libintl.dir\intl\langprefs.c.obj /FdCMakeFiles\libintl.dir\ /FS -c C:\warzone2100\vcpkg\buildtrees\gettext\src\gettext-0.19\gettext-runtime\intl\langprefs.c
Microsoft (R) C/C++ Optimizing Compiler Version 19.12.25835 for x86
Copyright (C) Microsoft Corporation.  All rights reserved.

[16/28] C:\PROGRA~2\MICROS~1\2017\COMMUN~1\VC\Tools\MSVC\1412~1.258\bin\Hostx64\x86\cl.exe   -DBUILDING_DLL -DINSTALLDIR=\"c:/gettext\" -DLIBDIR=\"c:/gettext\" -DLOCALEDIR=\"c:/gettext\" -DLOCALE_ALIAS_PATH=\"c:/gettext\" -Dlibintl_EXPORTS -I. -IC:\warzone2100\vcpkg\buildtrees\gettext\src\gettext-0.19\gettext-runtime\. -IC:\warzone2100\vcpkg\installed\x86-windows\include /DWIN32 /D_WINDOWS /W3 /utf-8 /MP /D_DEBUG /MDd /Z7 /Ob0 /Od /RTC1   -DBUILDING_LIBINTL -DIN_LIBINTL -DENABLE_RELOCATABLE=1 -DIN_LIBRARY -DNO_XMALLOC -Dset_relocation_prefix=libintl_set_relocation_prefix -Drelocate=libintl_relocate -DDEPENDS_ON_LIBICONV=1 -DHAVE_CONFIG_H -D_CRT_SECURE_NO_WARNINGS /showIncludes /FoCMakeFiles\libintl.dir\intl\loadmsgcat.c.obj /FdCMakeFiles\libintl.dir\ /FS -c C:\warzone2100\vcpkg\buildtrees\gettext\src\gettext-0.19\gettext-runtime\intl\loadmsgcat.c
Microsoft (R) C/C++ Optimizing Compiler Version 19.12.25835 for x86
Copyright (C) Microsoft Corporation.  All rights reserved.

C:\warzone2100\vcpkg\buildtrees\gettext\src\gettext-0.19\gettext-runtime\intl\loadmsgcat.c(834): warning C4013: 'open' undefined; assuming extern returning int
C:\warzone2100\vcpkg\buildtrees\gettext\src\gettext-0.19\gettext-runtime\intl\loadmsgcat.c(880): warning C4013: 'read' undefined; assuming extern returning int
C:\warzone2100\vcpkg\buildtrees\gettext\src\gettext-0.19\gettext-runtime\intl\loadmsgcat.c(894): warning C4013: 'close' undefined; assuming extern returning int
[17/28] C:\PROGRA~2\MICROS~1\2017\COMMUN~1\VC\Tools\MSVC\1412~1.258\bin\Hostx64\x86\cl.exe   -DBUILDING_DLL -DINSTALLDIR=\"c:/gettext\" -DLIBDIR=\"c:/gettext\" -DLOCALEDIR=\"c:/gettext\" -DLOCALE_ALIAS_PATH=\"c:/gettext\" -Dlibintl_EXPORTS -I. -IC:\warzone2100\vcpkg\buildtrees\gettext\src\gettext-0.19\gettext-runtime\. -IC:\warzone2100\vcpkg\installed\x86-windows\include /DWIN32 /D_WINDOWS /W3 /utf-8 /MP /D_DEBUG /MDd /Z7 /Ob0 /Od /RTC1   -DBUILDING_LIBINTL -DIN_LIBINTL -DENABLE_RELOCATABLE=1 -DIN_LIBRARY -DNO_XMALLOC -Dset_relocation_prefix=libintl_set_relocation_prefix -Drelocate=libintl_relocate -DDEPENDS_ON_LIBICONV=1 -DHAVE_CONFIG_H -D_CRT_SECURE_NO_WARNINGS /showIncludes /FoCMakeFiles\libintl.dir\intl\log.c.obj /FdCMakeFiles\libintl.dir\ /FS -c C:\warzone2100\vcpkg\buildtrees\gettext\src\gettext-0.19\gettext-runtime\intl\log.c
Microsoft (R) C/C++ Optimizing Compiler Version 19.12.25835 for x86
Copyright (C) Microsoft Corporation.  All rights reserved.

[18/28] C:\PROGRA~2\MICROS~1\2017\COMMUN~1\VC\Tools\MSVC\1412~1.258\bin\Hostx64\x86\cl.exe   -DBUILDING_DLL -DINSTALLDIR=\"c:/gettext\" -DLIBDIR=\"c:/gettext\" -DLOCALEDIR=\"c:/gettext\" -DLOCALE_ALIAS_PATH=\"c:/gettext\" -Dlibintl_EXPORTS -I. -IC:\warzone2100\vcpkg\buildtrees\gettext\src\gettext-0.19\gettext-runtime\. -IC:\warzone2100\vcpkg\installed\x86-windows\include /DWIN32 /D_WINDOWS /W3 /utf-8 /MP /D_DEBUG /MDd /Z7 /Ob0 /Od /RTC1   -DBUILDING_LIBINTL -DIN_LIBINTL -DENABLE_RELOCATABLE=1 -DIN_LIBRARY -DNO_XMALLOC -Dset_relocation_prefix=libintl_set_relocation_prefix -Drelocate=libintl_relocate -DDEPENDS_ON_LIBICONV=1 -DHAVE_CONFIG_H -D_CRT_SECURE_NO_WARNINGS /showIncludes /FoCMakeFiles\libintl.dir\intl\ngettext.c.obj /FdCMakeFiles\libintl.dir\ /FS -c C:\warzone2100\vcpkg\buildtrees\gettext\src\gettext-0.19\gettext-runtime\intl\ngettext.c
Microsoft (R) C/C++ Optimizing Compiler Version 19.12.25835 for x86
Copyright (C) Microsoft Corporation.  All rights reserved.

[19/28] C:\PROGRA~2\MICROS~1\2017\COMMUN~1\VC\Tools\MSVC\1412~1.258\bin\Hostx64\x86\cl.exe   -DBUILDING_DLL -DINSTALLDIR=\"c:/gettext\" -DLIBDIR=\"c:/gettext\" -DLOCALEDIR=\"c:/gettext\" -DLOCALE_ALIAS_PATH=\"c:/gettext\" -Dlibintl_EXPORTS -I. -IC:\warzone2100\vcpkg\buildtrees\gettext\src\gettext-0.19\gettext-runtime\. -IC:\warzone2100\vcpkg\installed\x86-windows\include /DWIN32 /D_WINDOWS /W3 /utf-8 /MP /D_DEBUG /MDd /Z7 /Ob0 /Od /RTC1   -DBUILDING_LIBINTL -DIN_LIBINTL -DENABLE_RELOCATABLE=1 -DIN_LIBRARY -DNO_XMALLOC -Dset_relocation_prefix=libintl_set_relocation_prefix -Drelocate=libintl_relocate -DDEPENDS_ON_LIBICONV=1 -DHAVE_CONFIG_H -D_CRT_SECURE_NO_WARNINGS /showIncludes /FoCMakeFiles\libintl.dir\intl\lock.c.obj /FdCMakeFiles\libintl.dir\ /FS -c C:\warzone2100\vcpkg\buildtrees\gettext\src\gettext-0.19\gettext-runtime\intl\lock.c
Microsoft (R) C/C++ Optimizing Compiler Version 19.12.25835 for x86
Copyright (C) Microsoft Corporation.  All rights reserved.

[20/28] C:\PROGRA~2\MICROS~1\2017\COMMUN~1\VC\Tools\MSVC\1412~1.258\bin\Hostx64\x86\cl.exe   -DBUILDING_DLL -DINSTALLDIR=\"c:/gettext\" -DLIBDIR=\"c:/gettext\" -DLOCALEDIR=\"c:/gettext\" -DLOCALE_ALIAS_PATH=\"c:/gettext\" -Dlibintl_EXPORTS -I. -IC:\warzone2100\vcpkg\buildtrees\gettext\src\gettext-0.19\gettext-runtime\. -IC:\warzone2100\vcpkg\installed\x86-windows\include /DWIN32 /D_WINDOWS /W3 /utf-8 /MP /D_DEBUG /MDd /Z7 /Ob0 /Od /RTC1   -DBUILDING_LIBINTL -DIN_LIBINTL -DENABLE_RELOCATABLE=1 -DIN_LIBRARY -DNO_XMALLOC -Dset_relocation_prefix=libintl_set_relocation_prefix -Drelocate=libintl_relocate -DDEPENDS_ON_LIBICONV=1 -DHAVE_CONFIG_H -D_CRT_SECURE_NO_WARNINGS /showIncludes /FoCMakeFiles\libintl.dir\intl\plural-exp.c.obj /FdCMakeFiles\libintl.dir\ /FS -c C:\warzone2100\vcpkg\buildtrees\gettext\src\gettext-0.19\gettext-runtime\intl\plural-exp.c
Microsoft (R) C/C++ Optimizing Compiler Version 19.12.25835 for x86
Copyright (C) Microsoft Corporation.  All rights reserved.

[21/28] C:\PROGRA~2\MICROS~1\2017\COMMUN~1\VC\Tools\MSVC\1412~1.258\bin\Hostx64\x86\cl.exe   -DBUILDING_DLL -DINSTALLDIR=\"c:/gettext\" -DLIBDIR=\"c:/gettext\" -DLOCALEDIR=\"c:/gettext\" -DLOCALE_ALIAS_PATH=\"c:/gettext\" -Dlibintl_EXPORTS -I. -IC:\warzone2100\vcpkg\buildtrees\gettext\src\gettext-0.19\gettext-runtime\. -IC:\warzone2100\vcpkg\installed\x86-windows\include /DWIN32 /D_WINDOWS /W3 /utf-8 /MP /D_DEBUG /MDd /Z7 /Ob0 /Od /RTC1   -DBUILDING_LIBINTL -DIN_LIBINTL -DENABLE_RELOCATABLE=1 -DIN_LIBRARY -DNO_XMALLOC -Dset_relocation_prefix=libintl_set_relocation_prefix -Drelocate=libintl_relocate -DDEPENDS_ON_LIBICONV=1 -DHAVE_CONFIG_H -D_CRT_SECURE_NO_WARNINGS /showIncludes /FoCMakeFiles\libintl.dir\intl\plural.c.obj /FdCMakeFiles\libintl.dir\ /FS -c C:\warzone2100\vcpkg\buildtrees\gettext\src\gettext-0.19\gettext-runtime\intl\plural.c
Microsoft (R) C/C++ Optimizing Compiler Version 19.12.25835 for x86
Copyright (C) Microsoft Corporation.  All rights reserved.

[22/28] C:\PROGRA~2\MICROS~1\2017\COMMUN~1\VC\Tools\MSVC\1412~1.258\bin\Hostx64\x86\cl.exe   -DBUILDING_DLL -DINSTALLDIR=\"c:/gettext\" -DLIBDIR=\"c:/gettext\" -DLOCALEDIR=\"c:/gettext\" -DLOCALE_ALIAS_PATH=\"c:/gettext\" -Dlibintl_EXPORTS -I. -IC:\warzone2100\vcpkg\buildtrees\gettext\src\gettext-0.19\gettext-runtime\. -IC:\warzone2100\vcpkg\installed\x86-windows\include /DWIN32 /D_WINDOWS /W3 /utf-8 /MP /D_DEBUG /MDd /Z7 /Ob0 /Od /RTC1   -DBUILDING_LIBINTL -DIN_LIBINTL -DENABLE_RELOCATABLE=1 -DIN_LIBRARY -DNO_XMALLOC -Dset_relocation_prefix=libintl_set_relocation_prefix -Drelocate=libintl_relocate -DDEPENDS_ON_LIBICONV=1 -DHAVE_CONFIG_H -D_CRT_SECURE_NO_WARNINGS /showIncludes /FoCMakeFiles\libintl.dir\intl\osdep.c.obj /FdCMakeFiles\libintl.dir\ /FS -c C:\warzone2100\vcpkg\buildtrees\gettext\src\gettext-0.19\gettext-runtime\intl\osdep.c
Microsoft (R) C/C++ Optimizing Compiler Version 19.12.25835 for x86
Copyright (C) Microsoft Corporation.  All rights reserved.

[23/28] C:\PROGRA~2\MICROS~1\2017\COMMUN~1\VC\Tools\MSVC\1412~1.258\bin\Hostx64\x86\cl.exe   -DBUILDING_DLL -DINSTALLDIR=\"c:/gettext\" -DLIBDIR=\"c:/gettext\" -DLOCALEDIR=\"c:/gettext\" -DLOCALE_ALIAS_PATH=\"c:/gettext\" -Dlibintl_EXPORTS -I. -IC:\warzone2100\vcpkg\buildtrees\gettext\src\gettext-0.19\gettext-runtime\. -IC:\warzone2100\vcpkg\installed\x86-windows\include /DWIN32 /D_WINDOWS /W3 /utf-8 /MP /D_DEBUG /MDd /Z7 /Ob0 /Od /RTC1   -DBUILDING_LIBINTL -DIN_LIBINTL -DENABLE_RELOCATABLE=1 -DIN_LIBRARY -DNO_XMALLOC -Dset_relocation_prefix=libintl_set_relocation_prefix -Drelocate=libintl_relocate -DDEPENDS_ON_LIBICONV=1 -DHAVE_CONFIG_H -D_CRT_SECURE_NO_WARNINGS /showIncludes /FoCMakeFiles\libintl.dir\intl\printf.c.obj /FdCMakeFiles\libintl.dir\ /FS -c C:\warzone2100\vcpkg\buildtrees\gettext\src\gettext-0.19\gettext-runtime\intl\printf.c
FAILED: CMakeFiles/libintl.dir/intl/printf.c.obj 
C:\PROGRA~2\MICROS~1\2017\COMMUN~1\VC\Tools\MSVC\1412~1.258\bin\Hostx64\x86\cl.exe   -DBUILDING_DLL -DINSTALLDIR=\"c:/gettext\" -DLIBDIR=\"c:/gettext\" -DLOCALEDIR=\"c:/gettext\" -DLOCALE_ALIAS_PATH=\"c:/gettext\" -Dlibintl_EXPORTS -I. -IC:\warzone2100\vcpkg\buildtrees\gettext\src\gettext-0.19\gettext-runtime\. -IC:\warzone2100\vcpkg\installed\x86-windows\include /DWIN32 /D_WINDOWS /W3 /utf-8 /MP /D_DEBUG /MDd /Z7 /Ob0 /Od /RTC1   -DBUILDING_LIBINTL -DIN_LIBINTL -DENABLE_RELOCATABLE=1 -DIN_LIBRARY -DNO_XMALLOC -Dset_relocation_prefix=libintl_set_relocation_prefix -Drelocate=libintl_relocate -DDEPENDS_ON_LIBICONV=1 -DHAVE_CONFIG_H -D_CRT_SECURE_NO_WARNINGS /showIncludes /FoCMakeFiles\libintl.dir\intl\printf.c.obj /FdCMakeFiles\libintl.dir\ /FS -c C:\warzone2100\vcpkg\buildtrees\gettext\src\gettext-0.19\gettext-runtime\intl\printf.c
Microsoft (R) C/C++ Optimizing Compiler Version 19.12.25835 for x86
Copyright (C) Microsoft Corporation.  All rights reserved.

c:\warzone2100\vcpkg\buildtrees\gettext\src\gettext-0.19\gettext-runtime\intl\xsize.h(31): fatal error C1189: #error:  "Please include config.h first."
[24/28] C:\PROGRA~2\MICROS~1\2017\COMMUN~1\VC\Tools\MSVC\1412~1.258\bin\Hostx64\x86\cl.exe   -DBUILDING_DLL -DINSTALLDIR=\"c:/gettext\" -DLIBDIR=\"c:/gettext\" -DLOCALEDIR=\"c:/gettext\" -DLOCALE_ALIAS_PATH=\"c:/gettext\" -Dlibintl_EXPORTS -I. -IC:\warzone2100\vcpkg\buildtrees\gettext\src\gettext-0.19\gettext-runtime\. -IC:\warzone2100\vcpkg\installed\x86-windows\include /DWIN32 /D_WINDOWS /W3 /utf-8 /MP /D_DEBUG /MDd /Z7 /Ob0 /Od /RTC1   -DBUILDING_LIBINTL -DIN_LIBINTL -DENABLE_RELOCATABLE=1 -DIN_LIBRARY -DNO_XMALLOC -Dset_relocation_prefix=libintl_set_relocation_prefix -Drelocate=libintl_relocate -DDEPENDS_ON_LIBICONV=1 -DHAVE_CONFIG_H -D_CRT_SECURE_NO_WARNINGS /showIncludes /FoCMakeFiles\libintl.dir\intl\relocatable.c.obj /FdCMakeFiles\libintl.dir\ /FS -c C:\warzone2100\vcpkg\buildtrees\gettext\src\gettext-0.19\gettext-runtime\intl\relocatable.c
Microsoft (R) C/C++ Optimizing Compiler Version 19.12.25835 for x86
Copyright (C) Microsoft Corporation.  All rights reserved.

ninja: build stopped: subcommand failed.
powershell output when executing `vcpkg install gettext` on newly installed Windows 10 VM by Microsoft
powershell output when executing `vcpkg install gettext` on newly installed Windows 10 VM by Microsoft
pastdue
Warzone 2100 Team Member
Warzone 2100 Team Member
Posts: 339
Joined: 13 Aug 2017, 17:44

Re: Cannot install gettext with vcpkg

Post by pastdue »

EDIT: Before you do the below, please grab a copy of the log file mentioned in the screenshot you took. That should explain where it's failing.

Try re-running `vcpkg install gettext`, and see if it succeeds this time. If not, you may have to roll-back vcpkg to before this vcpkg commit.

At the moment, vcpkg is a moving target. Before 3.3.0 release, we should probably find a vcpkg commit that works consistently from scratch and modify `get-dependencies.ps1` to explicitly use it.
Forgon
Code contributor
Code contributor
Posts: 298
Joined: 07 Dec 2016, 22:23

Re: Cannot install gettext with vcpkg

Post by Forgon »

pastdue wrote:[...] If not, you may have to roll-back vcpkg to before this vcpkg commit. [...]
This solved my problem. Meanwhile, the bug has been reported and fixed.
Post Reply