Open Bzz2745 opened 1 year ago
duplicate. Solution here https://github.com/microsoft/vcpkg/issues/30446#issuecomment-1484247259
duplicate. Solution here #30446 (comment)
My vcpkg was installed in C:/vcpkg and I can build debug but unable to build release.
duplicate. Solution here #30446 (comment)
I have seen identical answer in many threads that refer to this problem. But this solution doesn't work (at least to me). Same error with and without --x-buildtrees-root option.
C:\GitHub\Vcpkg>vcpkg install qtdeclarative[core] --x-buildtrees-root=D: Computing installation plan... The following packages will be built and installed: qtdeclarative[core]:x64-windows -> 6.5.0 Detecting compiler hash for triplet x64-windows... Installing 1/1 qtdeclarative:x64-windows... Building qtdeclarative[core]:x64-windows... -- Using cached qtdeclarative-everywhere-src-6.5.0.tar.xz. -- Extracting source C:/GitHub/Vcpkg/downloads/qtdeclarative-everywhere-src-6.5.0.tar.xz -- Using source at D://qtdeclarative/src/here-src-6-b6137c37a7.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:/GitHub/Vcpkg/downloads/tools/cmake-3.25.1-windows/cmake-3.25.1-windows-i386/bin/cmake.exe --build . --config Debug --target install -- -v -j9 Working Directory: D://qtdeclarative/x64-windows-dbg See logs for more information: D:\qtdeclarative\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) installed/x64-windows/share/qtbase/qt_install_submodule.cmake:348 (vcpkg_cmake_install) ports/qtdeclarative/portfile.cmake:25 (qt_install_submodule) scripts/ports.cmake:147 (include)
error: building qtdeclarative:x64-windows failed with: BUILD_FAILED
error: 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+qtdeclarative
You can submit a new issue at:
https://github.com/microsoft/vcpkg/issues/new?template=report-package-build-failure.md&title=[qtdeclarative]+Build+error
Include '[qtdeclarative] Build error' in your bug report title, the following version information in your bug description, and attach any relevant failure logs from above.
vcpkg-tool version: 2023-03-14-105f7f7e8a5ea10dfac9874ff9d1a6bacba5f454
vcpkg-scripts version: 0ccb3d114 2023-05-22 (32 hours ago)
Please use the prefilled template from C:\GitHub\Vcpkg\installed\vcpkg\issue_body.md when reporting your issue.
@conradosigrid Are the debug build errors consistent?
Strange characters in the output, and -c65001
in the cl flags...
@conradosigrid Are the debug build errors consistent?
I am not able to see anything strange. Attached log file. install-x64-windows-dbg-err.log install-x64-windows-dbg-out.log
@conradosigrid Are the debug build errors consistent?
I am not able to see anything strange. Attached log file. install-x64-windows-dbg-err.log install-x64-windows-dbg-out.log
package-build-x64-windows-rel-out.log package-install-x64-windows-dbg-err.log package-install-x64-windows-dbg-out.log package-install-x64-windows-rel-err.log package-install-x64-windows-rel-out.log package-build-x64-windows-dbg-err.log package-build-x64-windows-dbg-out.log package-build-x64-windows-rel-err.log
@Bzz2745 @conradosigrid, could you please use --x-buildtrees-root=<shortpath>
try again?
I already tried it with this option:
I just did a git pull and the problem remains
This suggestion didn't work for me either: path
I have the same issue and can also confirm, that using a short path is not a solution to the problem. Though, the build only fails on Windows, specifically the x64-windows triplet (have neither tried nor tested x86-windows). I managed to compile it successfully on x64-linux.
The vcpkg provided ninja was used, but I also tried it with the one in Visual Studio and a separate download. It fails in all three instances.
See the following output:
Package: qtdeclarative:x64-windows -> 6.5.1
Host Environment
To Reproduce
vcpkg install qt[default-features] boost-regex[icu] bext-di bext-sml nlohmann-json gtest boost-odeint[mpi] boost-python[python3] qtbase[default-features,concurrent,gui,dbus,network,opengl,openssl,sql,sql-psql,sql-sqlite,testlib,thread,vulkan,widgets] boost[mpi] boost-asio[ssl] boost-fiber[numa] boost-iostreams[bzip2,lzma,zlib,zstd]
Failure logs
-- Using cached qtdeclarative-everywhere-src-6.5.1.tar.xz.
-- Cleaning sources at D:/vcpkg/b/qtdeclarative/src/here-src-6-02b224fed5.clean. Use --editable to skip cleaning for the packages you specify.
-- Extracting source D:/vcpkg/d/qtdeclarative-everywhere-src-6.5.1.tar.xz
-- Using source at D:/vcpkg/b/qtdeclarative/src/here-src-6-02b224fed5.clean
-- 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 -j25
Working Directory: D:/vcpkg/b/qtdeclarative/x64-windows-dbg
See logs for more information:
D:\vcpkg\b\qtdeclarative\install-x64-windows-dbg-out.log
Call Stack (most recent call first):
D:/vcpkg/i/x64-windows/share/vcpkg-cmake/vcpkg_cmake_build.cmake:74 (vcpkg_execute_build_process)
D:/vcpkg/i/x64-windows/share/vcpkg-cmake/vcpkg_cmake_install.cmake:16 (vcpkg_cmake_build)
D:/vcpkg/i/x64-windows/share/qtbase/qt_install_submodule.cmake:348 (vcpkg_cmake_install)
ports/qtdeclarative/portfile.cmake:25 (qt_install_submodule)
scripts/ports.cmake:147 (include)
Additional context
This is an automated message. Per our repo policy, stale issues get closed if there has been no activity in the past 28 days. The issue will be automatically closed in 14 days. If you wish to keep this issue open, please add a new comment.
Experiencing the same on PCLs build servers: https://dev.azure.com/PointCloudLibrary/pcl/_build/results?buildId=23404&view=logs&j=3c126311-40eb-5a67-b84f-bab09445b990&t=3955afee-651e-5c71-6bae-096f23e94e72
Currently trying locally.
VCPKG path is c:\vcpkg - so can't really be shorter...
Hmm, couldn't reproduce it locally on my own PC.
The build log on the CI shows the same error as in @chronos38 log:
[34/3052] cmd.exe /C "cd /D C:\vcpkg\buildtrees\qtdeclarative\x86-windows-rel-rel\src\quick && C:\vcpkg\installed\x86-windows-rel\tools\Qt6\bin\qsb.exe --glsl 100es,120,150 --hlsl 50 --msl 12 -b -c -O -s -o C:/vcpkg/buildtrees/qtdeclarative/x86-windows-rel-rel/src/quick/.qsb/scenegraph/shaders_ng/flatcolor.vert.qsb C:/vcpkg/buildtrees/qtdeclarative/src/here-src-6-02b224fed5.clean/src/quick/scenegraph/shaders_ng/flatcolor.vert"
FAILED: src/quick/.qsb/scenegraph/shaders_ng/flatcolor.vert.qsb C:/vcpkg/buildtrees/qtdeclarative/x86-windows-rel-rel/src/quick/.qsb/scenegraph/shaders_ng/flatcolor.vert.qsb
cmd.exe /C "cd /D C:\vcpkg\buildtrees\qtdeclarative\x86-windows-rel-rel\src\quick && C:\vcpkg\installed\x86-windows-rel\tools\Qt6\bin\qsb.exe --glsl 100es,120,150 --hlsl 50 --msl 12 -b -c -O -s -o C:/vcpkg/buildtrees/qtdeclarative/x86-windows-rel-rel/src/quick/.qsb/scenegraph/shaders_ng/flatcolor.vert.qsb C:/vcpkg/buildtrees/qtdeclarative/src/here-src-6-02b224fed5.clean/src/quick/scenegraph/shaders_ng/flatcolor.vert"
So its seems the qsb tool fail to do its thing on the vert files.
same issue as #30288
@larshg Try adding a CI step after the failure which runs on failure and which manually invokes the command CMake/ninja would invoke. Make sure to print %ERRORLEVEL%
before and after. Sometimes this can give either a better error message (since cmake somehow ate the output or at least give you an error code. ) Especially since you cannot reproduce it locally.
VCPKG path is c:\vcpkg - so can't really be shorter...
that is not true. --x-buildtrees-root=C:\b
is a shorter buildpath
for #30288, I solve it by install python from the Microsoft Store.
from the qt5-declarative\package-build-x64-windows-dbg-out.log
, the reason is missing python required :
C:\Users\Shiroki\AppData\Local\Microsoft\WindowsApps\python.exe V:/buildtrees/qt5-declarative/src/5.15.8-f2590fed43.clean/src/3rdparty/masm/yarr/create_regex_tables > .generated\debug\RegExpJitTables.h
This is an automated message. Per our repo policy, stale issues get closed if there has been no activity in the past 28 days. The issue will be automatically closed in 14 days. If you wish to keep this issue open, please add a new comment.
This is an automated message. Per our repo policy, stale issues get closed if there has been no activity in the past 28 days. The issue will be automatically closed in 14 days. If you wish to keep this issue open, please add a new comment.
Seem to be solved with the solution proposed from @Neumann-A., about shorter build paths. Thanks.
Please close the issue.
Woops, I wasn't the auther of this issue, so maybe let it open until @Bzz2745 has found a solution to his problem.
The build log on the CI shows the same error as in @chronos38 log:
[34/3052] cmd.exe /C "cd /D C:\vcpkg\buildtrees\qtdeclarative\x86-windows-rel-rel\src\quick && C:\vcpkg\installed\x86-windows-rel\tools\Qt6\bin\qsb.exe --glsl 100es,120,150 --hlsl 50 --msl 12 -b -c -O -s -o C:/vcpkg/buildtrees/qtdeclarative/x86-windows-rel-rel/src/quick/.qsb/scenegraph/shaders_ng/flatcolor.vert.qsb C:/vcpkg/buildtrees/qtdeclarative/src/here-src-6-02b224fed5.clean/src/quick/scenegraph/shaders_ng/flatcolor.vert" FAILED: src/quick/.qsb/scenegraph/shaders_ng/flatcolor.vert.qsb C:/vcpkg/buildtrees/qtdeclarative/x86-windows-rel-rel/src/quick/.qsb/scenegraph/shaders_ng/flatcolor.vert.qsb cmd.exe /C "cd /D C:\vcpkg\buildtrees\qtdeclarative\x86-windows-rel-rel\src\quick && C:\vcpkg\installed\x86-windows-rel\tools\Qt6\bin\qsb.exe --glsl 100es,120,150 --hlsl 50 --msl 12 -b -c -O -s -o C:/vcpkg/buildtrees/qtdeclarative/x86-windows-rel-rel/src/quick/.qsb/scenegraph/shaders_ng/flatcolor.vert.qsb C:/vcpkg/buildtrees/qtdeclarative/src/here-src-6-02b224fed5.clean/src/quick/scenegraph/shaders_ng/flatcolor.vert"
So its seems the qsb tool fail to do its thing on the vert files The file "type_traits.h" doesn't exist,try copy it from https://gcc.gnu.org/onlinedocs/gcc-4.8.2/libstdc++/api/a01611_source.html no such file or directory
Operating system
Windows 11
Compiler
MSVC vc143
Steps to reproduce the behavior
Failure logs
Computing installation plan... The following packages will be built and installed: qtdeclarative[core]:x64-windows -> 6.5.0 Detecting compiler hash for triplet x64-windows... Restored 0 package(s) from C:\Users\BaZunzhi\AppData\Local\vcpkg\archives in 1.24 ms. Use --debug to see more details. Installing 1/1 qtdeclarative:x64-windows... Building qtdeclarative[core]:x64-windows... -- Using cached qtdeclarative-everywhere-src-6.5.0.tar.xz. -- Extracting source C:/vcpkg/downloads/qtdeclarative-everywhere-src-6.5.0.tar.xz -- Using source at C:/vcpkg/buildtrees/qtdeclarative/src/here-src-6-b6137c37a7.clean -- Configuring x64-windows -- Building x64-windows-dbg -- Building x64-windows-rel CMake Error at scripts/cmake/vcpkg_execute_build_process.cmake:134 (message): Command failed: "C:/Program Files/CMake/bin/cmake.exe" --build . --config Release --target install -- -v -j13 Working Directory: C:/vcpkg/buildtrees/qtdeclarative/x64-windows-rel See logs for more information: C:\vcpkg\buildtrees\qtdeclarative\install-x64-windows-rel-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) installed/x64-windows/share/qtbase/qt_install_submodule.cmake:348 (vcpkg_cmake_install) ports/qtdeclarative/portfile.cmake:25 (qt_install_submodule) scripts/ports.cmake:147 (include)
error: building qtdeclarative:x64-windows failed with: BUILD_FAILED Please ensure you're using the latest port files with
git pull
andvcpkg update
. Then check for known issues at: https://github.com/microsoft/vcpkg/issues?q=is%3Aissue+is%3Aopen+in%3Atitle+qtdeclarative You can submit a new issue at: https://github.com/microsoft/vcpkg/issues/new?title=[qtdeclarative]+Build+error&body=Copy+issue+body+from+C%3A%2Fvcpkg%2Finstalled%2Fvcpkg%2Fissue_body.md install-x64-windows-rel-out.logAdditional context
No response