microsoft / vcpkg

C++ Library Manager for Windows, Linux, and MacOS
MIT License
22.84k stars 6.3k forks source link

building gettext:x64-windows failed with: BUILD_FAILED #33353

Closed sanyan97642 closed 6 months ago

sanyan97642 commented 1 year ago

Operating system

Windows 10 Enterprise 22H2 OS build 19045.3324

Compiler

MSVC, Mingw

Steps to reproduce the behavior

C:\tools\vcpkg>.\vcpkg install gtk3:x64-windows
Computing installation plan...
The following packages will be built and installed:
  * atk:x64-windows -> 2.38.0#7
  * brotli:x64-windows -> 1.0.9#5
  * bzip2[core,tool]:x64-windows -> 1.0.8#5
  * cairo[core,fontconfig,freetype,gobject]:x64-windows -> 1.17.8#3
  * dirent:x64-windows -> 1.23.2#3
  * expat:x64-windows -> 2.5.0#3
  * fontconfig:x64-windows -> 2.14.2
  * freetype[brotli,bzip2,core,png,zlib]:x64-windows -> 2.12.1#3
  * fribidi:x64-windows -> 1.0.12#1
  * gdk-pixbuf:x64-windows -> 2.42.10#1
  * getopt:x64-windows -> 0#3
  * getopt-win32:x64-windows -> 0.1#7
  * gettext[core,tools]:x64-windows -> 0.21.1#2
  * gettext-libintl:x64-windows -> 0.21.1#1
  * glib:x64-windows -> 2.76.3#2
  * gperf:x64-windows -> 3.1#6
    gtk3:x64-windows -> 3.24.38
  * harfbuzz:x64-windows -> 8.1.1
  * libepoxy:x64-windows -> 1.5.10#2
  * libffi:x64-windows -> 3.4.4#2
  * libiconv:x64-windows -> 1.17#1
  * libjpeg-turbo:x64-windows -> 2.1.5.1#2
  * liblzma:x64-windows -> 5.4.3#1
  * libpng:x64-windows -> 1.6.39#1
  * lzo:x64-windows -> 2.10#9
  * pango:x64-windows -> 1.50.14#3
  * pcre2[core,jit,platform-default-features]:x64-windows -> 10.42
  * pixman:x64-windows -> 0.42.2#2
  * pthread:x64-windows -> 3.0.0#2
  * pthreads:x64-windows -> 3.0.0#14
  * tiff[core,jpeg,lzma,zip]:x64-windows -> 4.5.1#2
  * vcpkg-cmake:x64-windows -> 2023-05-04
  * vcpkg-cmake-config:x64-windows -> 2022-02-06#1
  * vcpkg-tool-meson:x64-windows -> 0.63
  * zlib:x64-windows -> 1.2.13
Additional packages (*) will be modified to complete this operation.
Detecting compiler hash for triplet x64-windows...
Restored 2 package(s) from C:\Users\KUO\AppData\Local\vcpkg\archives in 214 ms. Use --debug to see more details.
Installing 1/35 libiconv:x64-windows...
Elapsed time to handle libiconv:x64-windows: 22.1 ms
Installing 2/35 gettext-libintl:x64-windows...
Elapsed time to handle gettext-libintl:x64-windows: 19.8 ms
Installing 3/35 gettext:x64-windows...
Building gettext[core,tools]:x64-windows...
-- Using cached gettext-0.21.1.tar.gz.
-- Cleaning sources at C:/tools/vcpkg/buildtrees/gettext/src/gettext-0-11969128c3.clean. Use --editable to skip cleaning for the packages you specify.
-- Extracting source C:/tools/vcpkg/downloads/gettext-0.21.1.tar.gz
-- Applying patch android.patch
-- Applying patch uwp.patch
-- Applying patch 0003-Fix-win-unicode-paths.patch
-- Applying patch win-gethostname.patch
-- Applying patch rel_path.patch
-- Applying patch subdirs.patch
-- Applying patch parallel-gettext-tools.patch
-- Applying patch macosx-libs.patch
-- Using source at C:/tools/vcpkg/buildtrees/gettext/src/gettext-0-11969128c3.clean
-- Modifying build system for less forks
-- Found external ninja('1.10.2').
-- Getting CMake variables for x64-windows
-- Using cached msys2-autoconf-wrapper-20221207-1-any.pkg.tar.zst.
-- Using cached msys2-automake-wrapper-20221207-1-any.pkg.tar.zst.
-- Using cached msys2-binutils-2.40-1-x86_64.pkg.tar.zst.
-- Using cached msys2-libtool-2.4.7-3-x86_64.pkg.tar.zst.
-- Using cached msys2-make-4.4.1-1-x86_64.pkg.tar.zst.
-- Using cached msys2-pkgconf-1.9.4-1-x86_64.pkg.tar.zst.
-- Using cached msys2-which-2.21-4-x86_64.pkg.tar.zst.
-- Using cached msys2-gzip-1.12-2-x86_64.pkg.tar.zst.
-- Using cached msys2-bash-5.2.015-1-x86_64.pkg.tar.zst.
-- Using cached msys2-coreutils-8.32-5-x86_64.pkg.tar.zst.
-- Using cached msys2-file-5.44-5-x86_64.pkg.tar.zst.
-- Using cached msys2-gawk-5.2.1-2-x86_64.pkg.tar.zst.
-- Using cached msys2-grep-1~3.0-6-x86_64.pkg.tar.zst.
-- Using cached msys2-diffutils-3.9-1-x86_64.pkg.tar.zst.
-- Using cached msys2-sed-4.9-1-x86_64.pkg.tar.zst.
-- Using cached msys2-msys2-runtime-3.4.6-1-x86_64.pkg.tar.zst.
-- Using cached msys2-autoconf2.71-2.71-1-any.pkg.tar.zst.
-- Using cached msys2-automake1.16-1.16.5-1-any.pkg.tar.zst.
-- Using cached msys2-libiconv-1.17-1-x86_64.pkg.tar.zst.
-- Using cached msys2-libintl-0.21-2-x86_64.pkg.tar.zst.
-- Using cached msys2-zlib-1.2.13-1-x86_64.pkg.tar.zst.
-- Using cached msys2-tar-1.34-3-x86_64.pkg.tar.zst.
-- Using cached msys2-findutils-4.9.0-3-x86_64.pkg.tar.zst.
-- Using cached msys2-gmp-6.2.1-2-x86_64.pkg.tar.zst.
-- Using cached msys2-gcc-libs-11.3.0-3-x86_64.pkg.tar.zst.
-- Using cached msys2-libbz2-1.0.8-4-x86_64.pkg.tar.zst.
-- Using cached msys2-liblzma-5.4.1-1-x86_64.pkg.tar.zst.
-- Using cached msys2-libzstd-1.5.4-1-x86_64.pkg.tar.zst.
-- Using cached msys2-libreadline-8.2.001-3-x86_64.pkg.tar.zst.
-- Using cached msys2-mpfr-4.2.0-2-x86_64.pkg.tar.zst.
-- Using cached msys2-libpcre-8.45-3-x86_64.pkg.tar.zst.
-- Using cached msys2-m4-1.4.19-2-x86_64.pkg.tar.zst.
-- Using cached msys2-perl-5.36.0-1-x86_64.pkg.tar.zst.
-- Using cached msys2-ncurses-6.4-1-x86_64.pkg.tar.zst.
-- Using cached msys2-libcrypt-2.1-4-x86_64.pkg.tar.zst.
-- Using msys root at C:/tools/vcpkg/downloads/tools/msys2/d7266db249278763
CMake Warning at scripts/cmake/vcpkg_configure_make.cmake:269 (message):
  Unable to find system dir in the PATH variable! Appending required msys
  paths!
Call Stack (most recent call first):
  ports/gettext/portfile.cmake:129 (vcpkg_configure_make)
  scripts/ports.cmake:147 (include)

-- Using cached mingw-w64-i686-pkgconf-1~1.8.0-2-any.pkg.tar.zst.
-- Using cached msys2-msys2-runtime-3.4.6-1-x86_64.pkg.tar.zst.
-- Using msys root at C:/tools/vcpkg/downloads/tools/msys2/6f3fa1a12ef85a6f
-- Configuring x64-windows-rel
-- Building x64-windows-rel
CMake Error at scripts/cmake/vcpkg_execute_build_process.cmake:134 (message):
    Command failed: C:/tools/vcpkg/downloads/tools/msys2/d7266db249278763/usr/bin/make.exe -j 9 --trace -f Makefile all
    Working Directory: C:/tools/vcpkg/buildtrees/gettext/x64-windows-rel/
    See logs for more information:
      C:\tools\vcpkg\buildtrees\gettext\build-x64-windows-rel-out.log
      C:\tools\vcpkg\buildtrees\gettext\build-x64-windows-rel-err.log

Call Stack (most recent call first):
  scripts/cmake/vcpkg_build_make.cmake:151 (vcpkg_execute_build_process)
  scripts/cmake/vcpkg_install_make.cmake:2 (vcpkg_build_make)
  ports/gettext/portfile.cmake:153 (vcpkg_install_make)
  scripts/ports.cmake:147 (include)

Failure logs

error: building gettext:x64-windows failed with: BUILD_FAILED Elapsed time to handle gettext:x64-windows: 12 min Please ensure you're using the latest port files with git pull and vcpkg update. Then check for known issues at: https://github.com/microsoft/vcpkg/issues?q=is%3Aissue+is%3Aopen+in%3Atitle+gettext You can submit a new issue at: https://github.com/microsoft/vcpkg/issues/new?title=[gettext]+Build+error&body=Copy+issue+body+from+C%3A%2Ftools%2Fvcpkg%2Finstalled%2Fvcpkg%2Fissue_body.md

Additional context

C:\tools\vcpkg\buildtrees\gettext\build-x64-windows-rel-out.log

The pipe is being closed.

libtool: error: object name conflicts in archive: .libs/libtextstyle.lax/croco_rpl.lib//c/tools/vcpkg/buildtrees/gettext/x64-windows-rel/libtextstyle/lib/./.libs/croco_rpl.lib make[5]: [Makefile:2516: libtextstyle.la] Error 1 make[4]: [Makefile:2298: all] Error 2 make[3]: [Makefile:1913: all-recursive] Error 1 make[2]: [Makefile:1841: all] Error 2 make[1]: [Makefile:406: all-recursive] Error 1 make: [Makefile:362: all] Error 2

jimwang118 commented 1 year ago

Please provide detailed logs.

C:\tools\vcpkg\buildtrees\gettext\build-x64-windows-rel-out.log 
C:\tools\vcpkg\buildtrees\gettext\build-x64-windows-rel-err.log
github-actions[bot] commented 6 months ago

This is an automated message. Per our repo policy, stale issues get closed if there has been no activity in the past 180 days. The issue will be automatically closed in 14 days. If you wish to keep this issue open, please add a new comment.

jimwang118 commented 6 months ago

We haven't been able to repro this; if more information comes up, or this issue appears again, please reopen.