Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[expat] error: building expat:x64-windows failed with: BUILD_FAILED #41075

Open
AlessandroPampado99 opened this issue Sep 19, 2024 · 5 comments
Assignees
Labels
requires:more-information This Issue requires more information to solve

Comments

@AlessandroPampado99
Copy link

AlessandroPampado99 commented Sep 19, 2024

Hi everybody,
I'm trying to install boost with the command
vcpkg install boost --triplet x64-windows
However, it always stops with the following error
error: building expat:x64-windows failed with: BUILD_FAILED
See https://learn.microsoft.com/vcpkg/troubleshoot/build-failures?WT.mc_id=vcpkg_inproduct_cli for more information.
Elapsed time to handle expat:x64-windows: 13 s
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+expat
You can submit a new issue at:
https://github.com/microsoft/vcpkg/issues/new?title=[expat]+Build+error+on+x64-windows&body=Copy+issue+body+from+C%3A%2Fvcpkg%2Finstalled%2Fvcpkg%2Fissue_body.md
Clearly, I have already updated vcpkg. I don't know what else I should do. Thank you in advance

@Cheney-W Cheney-W added the requires:more-information This Issue requires more information to solve label Sep 19, 2024
@Cheney-W
Copy link
Contributor

@AlessandroPampado99 Could you please provide us with the vcpkg\installed\vcpkg\issue_body.md file? Thank you!

@AlessandroPampado99
Copy link
Author

For sure! Here you are
issue_body.md

@Cheney-W
Copy link
Contributor

Package: expat:x64-windows@2.6.3

Host Environment

  • Host: x64-windows
  • Compiler: MSVC 19.41.34120.0
  • vcpkg-tool version: 2024-08-01-fd884a0d390d12783076341bd43d77c3a6a15658
    vcpkg-scripts version: a39a744 2024-09-19 (5 hours ago)

To Reproduce

vcpkg install boost

Failure logs

-- Downloading https://github.com/libexpat/libexpat/archive/R_2_6_3.tar.gz -> libexpat-libexpat-R_2_6_3.tar.gz...
-- Extracting source C:/vcpkg/downloads/libexpat-libexpat-R_2_6_3.tar.gz
-- Using source at C:/vcpkg/buildtrees/expat/src/R_2_6_3-d07a3503b4.clean
-- Found external ninja('1.11.0').
-- Configuring x64-windows
-- Building x64-windows-dbg
CMake Error at scripts/cmake/vcpkg_execute_build_process.cmake:134 (message):
    Command failed: "C:/Program Files/Cmake/bin/cmake.exe" --build . --config Debug --target install -- -v -j13
    Working Directory: C:/vcpkg/buildtrees/expat/x64-windows-dbg
    See logs for more information:
      C:\vcpkg\buildtrees\expat\install-x64-windows-dbg-out.log

Call Stack (most recent call first):
  installed/x64-windows/share/vcpkg-cmake/vcpkg_cmake_build.cmake:74 (vcpkg_execute_build_process)
  installed/x64-windows/share/vcpkg-cmake/vcpkg_cmake_install.cmake:16 (vcpkg_cmake_build)
  ports/expat/portfile.cmake:28 (vcpkg_cmake_install)
  scripts/ports.cmake:192 (include)



C:\vcpkg\buildtrees\expat\install-x64-windows-dbg-out.log
Change Dir: 'C:/vcpkg/buildtrees/expat/x64-windows-dbg'

Run Build Command(s): "C:/Program Files/Microsoft Visual Studio/2022/Community/Common7/IDE/CommonExtensions/Microsoft/CMake/Ninja/ninja.exe" -v -v -j13 install
[1/6] C:/PROGRA~1/Cmake/bin/cmcldeps.exe RC C:\vcpkg\buildtrees\expat\x64-windows-dbg\win32\version.rc CMakeFiles\expat.dir\win32\version.rc.res.d CMakeFiles\expat.dir\win32\version.rc.res "Nota: file incluso  " "C:/Program Files/Microsoft Visual Studio/2022/Community/VC/Tools/MSVC/14.41.34120/bin/Hostx64/x64/cl.exe" C:\PROGRA~2\WI3CF2~1\10\bin\100226~1.0\x64\rc.exe -DVER_FILEVERSION=2,6,3,0 -DXML_ENABLE_VISIBILITY=1 -D_CRT_SECURE_NO_WARNINGS -Dexpat_EXPORTS -I C:\vcpkg\buildtrees\expat\x64-windows-dbg -I C:\vcpkg\buildtrees\expat\src\R_2_6_3-d07a3503b4.clean\expat\lib -c65001 /DWIN32 -D_DEBUG   -wd4996 /fo CMakeFiles\expat.dir\win32\version.rc.res C:\vcpkg\buildtrees\expat\x64-windows-dbg\win32\version.rc
[2/6] C:\PROGRA~1\MIB055~1\2022\COMMUN~1\VC\Tools\MSVC\1441~1.341\bin\Hostx64\x64\cl.exe   -DVER_FILEVERSION=2,6,3,0 -DXML_ENABLE_VISIBILITY=1 -D_CRT_SECURE_NO_WARNINGS -Dexpat_EXPORTS -IC:\vcpkg\buildtrees\expat\x64-windows-dbg -IC:\vcpkg\buildtrees\expat\src\R_2_6_3-d07a3503b4.clean\expat\lib /nologo /DWIN32 /D_WINDOWS /utf-8 /MP   -fno-strict-aliasing -fvisibility=hidden /D_DEBUG /MDd /Z7 /Ob0 /Od /RTC1    -wd4996 /showIncludes /FoCMakeFiles\expat.dir\lib\xmlparse.c.obj /FdCMakeFiles\expat.dir\ /FS -c C:\vcpkg\buildtrees\expat\src\R_2_6_3-d07a3503b4.clean\expat\lib\xmlparse.c
FAILED: CMakeFiles/expat.dir/lib/xmlparse.c.obj 
C:\PROGRA~1\MIB055~1\2022\COMMUN~1\VC\Tools\MSVC\1441~1.341\bin\Hostx64\x64\cl.exe   -DVER_FILEVERSION=2,6,3,0 -DXML_ENABLE_VISIBILITY=1 -D_CRT_SECURE_NO_WARNINGS -Dexpat_EXPORTS -IC:\vcpkg\buildtrees\expat\x64-windows-dbg -IC:\vcpkg\buildtrees\expat\src\R_2_6_3-d07a3503b4.clean\expat\lib /nologo /DWIN32 /D_WINDOWS /utf-8 /MP   -fno-strict-aliasing -fvisibility=hidden /D_DEBUG /MDd /Z7 /Ob0 /Od /RTC1    -wd4996 /showIncludes /FoCMakeFiles\expat.dir\lib\xmlparse.c.obj /FdCMakeFiles\expat.dir\ /FS -c C:\vcpkg\buildtrees\expat\src\R_2_6_3-d07a3503b4.clean\expat\lib\xmlparse.c
cl : warning della riga di comando D9002 : l'opzione sconosciuta '-fno-strict-aliasing' verrà ignorata
cl : warning della riga di comando D9002 : l'opzione sconosciuta '-fvisibility=hidden' verrà ignorata
C:\vcpkg\buildtrees\expat\src\R_2_6_3-d07a3503b4.clean\expat\lib\expat.h(190): error C2143: errore di sintassi: ')' mancante prima di '('
C:\vcpkg\buildtrees\expat\src\R_2_6_3-d07a3503b4.clean\expat\lib\expat.h(190): error C2091: la funzione restituisce una funzione
C:\vcpkg\buildtrees\expat\src\R_2_6_3-d07a3503b4.clean\expat\lib\expat.h(190): error C2143: errore di sintassi: ')' mancante prima di 'stringa'
C:\vcpkg\buildtrees\expat\src\R_2_6_3-d07a3503b4.clean\expat\lib\expat.h(190): error C2143: errore di sintassi: '{' mancante prima di 'stringa'
C:\vcpkg\buildtrees\expat\src\R_2_6_3-d07a3503b4.clean\expat\lib\expat.h(190): error C2059: errore di sintassi: 'stringa'
C:\vcpkg\buildtrees\expat\src\R_2_6_3-d07a3503b4.clean\expat\lib\expat.h(190): error C2059: errore di sintassi: ')'
C:\vcpkg\buildtrees\expat\src\R_2_6_3-d07a3503b4.clean\expat\lib\expat.h(205): error C2143: errore di sintassi: ')' mancante prima di '('
C:\vcpkg\buildtrees\expat\src\R_2_6_3-d07a3503b4.clean\expat\lib\expat.h(205): error C2091: la funzione restituisce una funzione
C:\vcpkg\buildtrees\expat\src\R_2_6_3-d07a3503b4.clean\expat\lib\expat.h(205): error C2143: errore di sintassi: ')' mancante prima di 'stringa'
C:\vcpkg\buildtrees\expat\src\R_2_6_3-d07a3503b4.clean\expat\lib\expat.h(205): error C2143: errore di sintassi: '{' mancante prima di 'stringa'
C:\vcpkg\buildtrees\expat\src\R_2_6_3-d07a3503b4.clean\expat\lib\expat.h(205): error C2059: errore di sintassi: 'stringa'
C:\vcpkg\buildtrees\expat\src\R_2_6_3-d07a3503b4.clean\expat\lib\expat.h(205): error C2059: errore di sintassi: ')'
C:\vcpkg\buildtrees\expat\src\R_2_6_3-d07a3503b4.clean\expat\lib\expat.h(221): error C2143: errore di sintassi: ')' mancante prima di '('
C:\vcpkg\buildtrees\expat\src\R_2_6_3-d07a3503b4.clean\expat\lib\expat.h(221): error C2091: la funzione restituisce una funzione
C:\vcpkg\buildtrees\expat\src\R_2_6_3-d07a3503b4.clean\expat\lib\expat.h(221): error C2143: errore di sintassi: ')' mancante prima di 'stringa'
C:\vcpkg\buildtrees\expat\src\R_2_6_3-d07a3503b4.clean\expat\lib\expat.h(221): error C2143: errore di sintassi: '{' mancante prima di 'stringa'
C:\vcpkg\buildtrees\expat\src\R_2_6_3-d07a3503b4.clean\expat\lib\expat.h(221): error C2059: errore di sintassi: 'stringa'
C:\vcpkg\buildtrees\expat\src\R_2_6_3-d07a3503b4.clean\expat\lib\expat.h(221): error C2059: errore di sintassi: ')'
C:\vcpkg\buildtrees\expat\src\R_2_6_3-d07a3503b4.clean\expat\lib\expat.h(233): error C2143: errore di sintassi: ')' mancante prima di '('
C:\vcpkg\buildtrees\expat\src\R_2_6_3-d07a3503b4.clean\expat\lib\expat.h(233): error C2091: la funzione restituisce una funzione
C:\vcpkg\buildtrees\expat\src\R_2_6_3-d07a3503b4.clean\expat\lib\expat.h(233): error C2143: errore di sintassi: ')' mancante prima di 'stringa'
C:\vcpkg\buildtrees\expat\src\R_2_6_3-d07a3503b4.clean\expat\lib\expat.h(233): error C2143: errore di sintassi: '{' mancante prima di 'stringa'
C:\vcpkg\buildtrees\expat\src\R_2_6_3-d07a3503b4.clean\expat\lib\expat.h(233): error C2059: errore di sintassi: 'stringa'
C:\vcpkg\buildtrees\expat\src\R_2_6_3-d07a3503b4.clean\expat\lib\expat.h(233): error C2059: errore di sintassi: ')'
C:\vcpkg\buildtrees\expat\src\R_2_6_3-d07a3503b4.clean\expat\lib\expat.h(258): error C2143: errore di sintassi: ')' mancante prima di '('
C:\vcpkg\buildtrees\expat\src\R_2_6_3-d07a3503b4.clean\expat\lib\expat.h(258): error C2091: la funzione restituisce una funzione
C:\vcpkg\buildtrees\expat\src\R_2_6_3-d07a3503b4.clean\expat\lib\expat.h(258): error C2143: errore di sintassi: ')' mancante prima di 'stringa'
C:\vcpkg\buildtrees\expat\src\R_2_6_3-d07a3503b4.clean\expat\lib\expat.h(258): error C2143: errore di sintassi: '{' mancante prima di 'stringa'
C:\vcpkg\buildtrees\expat\src\R_2_6_3-d07a3503b4.clean\expat\lib\expat.h(258): error C2059: errore di sintassi: 'stringa'
C:\vcpkg\buildtrees\expat\src\R_2_6_3-d07a3503b4.clean\expat\lib\expat.h(258): error C2059: errore di sintassi: ')'
C:\vcpkg\buildtrees\expat\src\R_2_6_3-d07a3503b4.clean\expat\lib\expat.h(270): error C2143: errore di sintassi: ')' mancante prima di '('
C:\vcpkg\buildtrees\expat\src\R_2_6_3-d07a3503b4.clean\expat\lib\expat.h(270): error C2091: la funzione restituisce una funzione
C:\vcpkg\buildtrees\expat\src\R_2_6_3-d07a3503b4.clean\expat\lib\expat.h(270): error C2143: errore di sintassi: ')' mancante prima di 'stringa'
C:\vcpkg\buildtrees\expat\src\R_2_6_3-d07a3503b4.clean\expat\lib\expat.h(270): error C2143: errore di sintassi: '{' mancante prima di 'stringa'
C:\vcpkg\buildtrees\expat\src\R_2_6_3-d07a3503b4.clean\expat\lib\expat.h(270): error C2059: errore di sintassi: 'stringa'
C:\vcpkg\buildtrees\expat\src\R_2_6_3-d07a3503b4.clean\expat\lib\expat.h(270): error C2059: errore di sintassi: ')'
C:\vcpkg\buildtrees\expat\src\R_2_6_3-d07a3503b4.clean\expat\lib\expat.h(284): error C2143: errore di sintassi: ')' mancante prima di '('
C:\vcpkg\buildtrees\expat\src\R_2_6_3-d07a3503b4.clean\expat\lib\expat.h(284): error C2091: la funzione restituisce una funzione
C:\vcpkg\buildtrees\expat\src\R_2_6_3-d07a3503b4.clean\expat\lib\expat.h(284): error C2143: errore di sintassi: ')' mancante prima di 'stringa'
C:\vcpkg\buildtrees\expat\src\R_2_6_3-d07a3503b4.clean\expat\lib\expat.h(284): error C2143: errore di sintassi: '{' mancante prima di 'stringa'
C:\vcpkg\buildtrees\expat\src\R_2_6_3-d07a3503b4.clean\expat\lib\expat.h(284): error C2059: errore di sintassi: 'stringa'
C:\vcpkg\buildtrees\expat\src\R_2_6_3-d07a3503b4.clean\expat\lib\expat.h(284): error C2059: errore di sintassi: ')'
C:\vcpkg\buildtrees\expat\src\R_2_6_3-d07a3503b4.clean\expat\lib\expat.h(367): error C2143: errore di sintassi: ')' mancante prima di '('
C:\vcpkg\buildtrees\expat\src\R_2_6_3-d07a3503b4.clean\expat\lib\expat.h(367): error C2091: la funzione restituisce una funzione
C:\vcpkg\buildtrees\expat\src\R_2_6_3-d07a3503b4.clean\expat\lib\expat.h(367): error C2143: errore di sintassi: ')' mancante prima di 'stringa'
C:\vcpkg\buildtrees\expat\src\R_2_6_3-d07a3503b4.clean\expat\lib\expat.h(367): error C2143: errore di sintassi: '{' mancante prima di 'stringa'
C:\vcpkg\buildtrees\expat\src\R_2_6_3-d07a3503b4.clean\expat\lib\expat.h(367): error C2059: errore di sintassi: 'stringa'
C:\vcpkg\buildtrees\expat\src\R_2_6_3-d07a3503b4.clean\expat\lib\expat.h(367): error C2059: errore di sintassi: ')'
C:\vcpkg\buildtrees\expat\src\R_2_6_3-d07a3503b4.clean\expat\lib\expat.h(550): error C2143: errore di sintassi: ')' mancante prima di '('
C:\vcpkg\buildtrees\expat\src\R_2_6_3-d07a3503b4.clean\expat\lib\expat.h(550): error C2091: la funzione restituisce una funzione
C:\vcpkg\buildtrees\expat\src\R_2_6_3-d07a3503b4.clean\expat\lib\expat.h(550): error C2143: errore di sintassi: ')' mancante prima di 'stringa'
C:\vcpkg\buildtrees\expat\src\R_2_6_3-d07a3503b4.clean\expat\lib\expat.h(550): error C2143: errore di sintassi: '{' mancante prima di 'stringa'
C:\vcpkg\buildtrees\expat\src\R_2_6_3-d07a3503b4.clean\expat\lib\expat.h(550): error C2059: errore di sintassi: 'stringa'
C:\vcpkg\buildtrees\expat\src\R_2_6_3-d07a3503b4.clean\expat\lib\expat.h(550): error C2059: errore di sintassi: ')'
C:\vcpkg\buildtrees\expat\src\R_2_6_3-d07a3503b4.clean\expat\lib\expat.h(554): error C2143: errore di sintassi: ')' mancante prima di '('
C:\vcpkg\buildtrees\expat\src\R_2_6_3-d07a3503b4.clean\expat\lib\expat.h(554): error C2091: la funzione restituisce una funzione
C:\vcpkg\buildtrees\expat\src\R_2_6_3-d07a3503b4.clean\expat\lib\expat.h(554): error C2143: errore di sintassi: ')' mancante prima di 'stringa'
C:\vcpkg\buildtrees\expat\src\R_2_6_3-d07a3503b4.clean\expat\lib\expat.h(554): error C2143: errore di sintassi: '{' mancante prima di 'stringa'
C:\vcpkg\buildtrees\expat\src\R_2_6_3-d07a3503b4.clean\expat\lib\expat.h(554): error C2059: errore di sintassi: 'stringa'
C:\vcpkg\buildtrees\expat\src\R_2_6_3-d07a3503b4.clean\expat\lib\expat.h(554): error C2059: errore di sintassi: ')'
C:\vcpkg\buildtrees\expat\src\R_2_6_3-d07a3503b4.clean\expat\lib\expat.h(557): error C2143: errore di sintassi: ')' mancante prima di '('
C:\vcpkg\buildtrees\expat\src\R_2_6_3-d07a3503b4.clean\expat\lib\expat.h(557): fatal error C1003: il conteggio degli errori supera 100. Interruzione della compilazione
[3/6] C:\PROGRA~1\MIB055~1\2022\COMMUN~1\VC\Tools\MSVC\1441~1.341\bin\Hostx64\x64\cl.exe   -DVER_FILEVERSION=2,6,3,0 -DXML_ENABLE_VISIBILITY=1 -D_CRT_SECURE_NO_WARNINGS -Dexpat_EXPORTS -IC:\vcpkg\buildtrees\expat\x64-windows-dbg -IC:\vcpkg\buildtrees\expat\src\R_2_6_3-d07a3503b4.clean\expat\lib /nologo /DWIN32 /D_WINDOWS /utf-8 /MP   -fno-strict-aliasing -fvisibility=hidden /D_DEBUG /MDd /Z7 /Ob0 /Od /RTC1    -wd4996 /showIncludes /FoCMakeFiles\expat.dir\lib\xmlrole.c.obj /FdCMakeFiles\expat.dir\ /FS -c C:\vcpkg\buildtrees\expat\src\R_2_6_3-d07a3503b4.clean\expat\lib\xmlrole.c
cl : warning della riga di comando D9002 : l'opzione sconosciuta '-fno-strict-aliasing' verrà ignorata
cl : warning della riga di comando D9002 : l'opzione sconosciuta '-fvisibility=hidden' verrà ignorata
[4/6] C:\PROGRA~1\MIB055~1\2022\COMMUN~1\VC\Tools\MSVC\1441~1.341\bin\Hostx64\x64\cl.exe   -DVER_FILEVERSION=2,6,3,0 -DXML_ENABLE_VISIBILITY=1 -D_CRT_SECURE_NO_WARNINGS -Dexpat_EXPORTS -IC:\vcpkg\buildtrees\expat\x64-windows-dbg -IC:\vcpkg\buildtrees\expat\src\R_2_6_3-d07a3503b4.clean\expat\lib /nologo /DWIN32 /D_WINDOWS /utf-8 /MP   -fno-strict-aliasing -fvisibility=hidden /D_DEBUG /MDd /Z7 /Ob0 /Od /RTC1    -wd4996 /showIncludes /FoCMakeFiles\expat.dir\lib\xmltok.c.obj /FdCMakeFiles\expat.dir\ /FS -c C:\vcpkg\buildtrees\expat\src\R_2_6_3-d07a3503b4.clean\expat\lib\xmltok.c
cl : warning della riga di comando D9002 : l'opzione sconosciuta '-fno-strict-aliasing' verrà ignorata
cl : warning della riga di comando D9002 : l'opzione sconosciuta '-fvisibility=hidden' verrà ignorata
ninja: build stopped: subcommand failed.
@Cheney-W
Copy link
Contributor

May I ask if you have installed the English language pack for Visual Studio? Also, what is the version of CMake installed on your system(C:/Program Files/Cmake/bin/cmake.exe)?

@AlessandroPampado99
Copy link
Author

I think I solved it by just changing the language of Visual Studio. Thanks a lot!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
requires:more-information This Issue requires more information to solve
4 participants
@Cheney-W @AlessandroPampado99 and others