microsoft / vcpkg

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

[vcpkg-tool] build failed on arm64v8/ubuntu:16.04 #39643

Open alexlee728 opened 5 days ago

alexlee728 commented 5 days ago

[210/216] Building CXX object CMakeFiles/vcpkg-test.dir/src/vcpkg-test/util.cpp.o [211/216] Building CXX object CMakeFiles/vcpkg-test.dir/src/vcpkg-test/versionplan.cpp.o [212/216] Building CXX object CMakeFiles/vcpkg-test.dir/src/vcpkg-test/versions.cpp.o [213/216] Building CXX object CMakeFiles/vcpkg-test.dir/src/vcpkg-test/xunitwriter.cpp.o FAILED: /usr/bin/c++ -DVCPKG_BASE_VERSION=2999-12-31 -DVCPKG_VERSION=unknownhash -D_FILE_OFFSET_BITS=64 -I/builds/xxx/external/vcpkg/buildtrees/_vcpkg/src/vcpkg-tool-2024-06-10/include -I/builds/xxx/external/vcpkg/buildtrees/_vcpkg/build/_deps/fmt-src/include -I/builds/xxx/external/vcpkg/buildtrees/_vcpkg/build/_cmrc/include -O3 -DNDEBUG -std=c++1z -pthread -Winvalid-pch -include /builds/xxx/external/vcpkg/buildtrees/_vcpkg/build/CMakeFiles/vcpkglib.dir/cmake_pch.hxx -MD -MT CMakeFiles/vcpkglib.dir/src/vcpkg/sourceparagraph.cpp.o -MF CMakeFiles/vcpkglib.dir/src/vcpkg/sourceparagraph.cpp.o.d -o CMakeFiles/vcpkglib.dir/src/vcpkg/sourceparagraph.cpp.o -c /builds/xxx/external/vcpkg/buildtrees/_vcpkg/src/vcpkg-tool-2024-06-10/src/vcpkg/sourceparagraph.cpp /builds/xxx/external/vcpkg/buildtrees/_vcpkg/src/vcpkg-tool-2024-06-10/src/vcpkg/sourceparagraph.cpp: In function 'vcpkg::ExpectedL<std::unique_ptr > vcpkg::parse_source_paragraph(vcpkg::StringView, vcpkg::Paragraph&&)': /builds/xxx/external/vcpkg/buildtrees/_vcpkg/src/vcpkg-tool-2024-06-10/src/vcpkg/sourceparagraph.cpp:399:16: error: could not convert 'spgh' from 'std::unique_ptr' to 'vcpkg::ExpectedL<std::unique_ptr > {aka vcpkg::ExpectedT<std::unique_ptr, vcpkg::LocalizedString>}' return spgh; ^~~~ /builds/xxx/external/vcpkg/buildtrees/_vcpkg/src/vcpkg-tool-2024-06-10/src/vcpkg/sourceparagraph.cpp: In function 'vcpkg::ExpectedL<std::unique_ptr > vcpkg::parse_feature_paragraph(vcpkg::StringView, vcpkg::Paragraph&&)': /builds/xxx/external/vcpkg/buildtrees/_vcpkg/src/vcpkg-tool-2024-06-10/src/vcpkg/sourceparagraph.cpp:434:16: error: could not convert 'fpgh' from 'std::unique_ptr' to 'vcpkg::ExpectedL<std::unique_ptr > {aka vcpkg::ExpectedT<std::unique_ptr, vcpkg::LocalizedString>}' return fpgh; ^~~~ /builds/xxx/external/vcpkg/buildtrees/_vcpkg/src/vcpkg-tool-2024-06-10/src/vcpkg/sourceparagraph.cpp: In static member function 'static vcpkg::ExpectedL<std::unique_ptr > vcpkg::SourceControlFile::parse_control_file(vcpkg::StringView, std::vector<std::map<std::cxx11::basic_string, std::pair<std::__cxx11::basic_string, vcpkg::TextRowCol>, std::less > >&&)': /builds/xxx/external/vcpkg/buildtrees/_vcpkg/src/vcpkg-tool-2024-06-10/src/vcpkg/sourceparagraph.cpp:465:16: error: could not convert 'control_file' from 'std::unique_ptr' to 'vcpkg::ExpectedL<std::unique_ptr > {aka vcpkg::ExpectedT<std::unique_ptr, vcpkg::LocalizedString>}' return control_file; ^~~~ FAILED: /usr/bin/c++ -DVCPKG_BASE_VERSION=2999-12-31 -DVCPKG_VERSION=unknownhash -D_FILE_OFFSET_BITS=64 -I/builds/xxx/external/vcpkg/buildtrees/_vcpkg/src/vcpkg-tool-2024-06-10/include -I/builds/xxx/external/vcpkg/buildtrees/_vcpkg/build/_deps/fmt-src/include -I/builds/xxx/external/vcpkg/buildtrees/_vcpkg/build/_cmrc/include -O3 -DNDEBUG -std=c++1z -pthread -Winvalid-pch -include /builds/xxx/external/vcpkg/buildtrees/_vcpkg/build/CMakeFiles/vcpkglib.dir/cmake_pch.hxx -MD -MT CMakeFiles/vcpkglib.dir/src/vcpkg/registries.cpp.o -MF CMakeFiles/vcpkglib.dir/src/vcpkg/registries.cpp.o.d -o CMakeFiles/vcpkglib.dir/src/vcpkg/registries.cpp.o -c /builds/xxx/external/vcpkg/buildtrees/_vcpkg/src/vcpkg-tool-2024-06-10/src/vcpkg/registries.cpp /builds/xxx/external/vcpkg/buildtrees/_vcpkg/src/vcpkg-tool-2024-06-10/src/vcpkg/registries.cpp: In member function 'virtual vcpkg::ExpectedL<std::unique_ptr > {anonymous}::BuiltinGitRegistry::get_port_entry(vcpkg::StringView) const': /builds/xxx/external/vcpkg/buildtrees/_vcpkg/src/vcpkg-tool-2024-06-10/src/vcpkg/registries.cpp:794:16: error: could not convert 'res' from 'std::unique_ptr<{anonymous}::BuiltinGitRegistryEntry, std::default_delete<{anonymous}::BuiltinGitRegistryEntry> >' to 'vcpkg::ExpectedL<std::unique_ptr > {aka vcpkg::ExpectedT<std::unique_ptr, vcpkg::LocalizedString>}' return res; ^~~ /builds/xxx/external/vcpkg/buildtrees/_vcpkg/src/vcpkg-tool-2024-06-10/src/vcpkg/registries.cpp: In member function 'virtual vcpkg::ExpectedL<std::unique_ptr > {anonymous}::FilesystemRegistry::get_port_entry(vcpkg::StringView) const': /builds/xxx/external/vcpkg/buildtrees/_vcpkg/src/vcpkg-tool-2024-06-10/src/vcpkg/registries.cpp:884:16: error: could not convert 'res' from 'std::unique_ptr<{anonymous}::FilesystemRegistryEntry, std::default_delete<{anonymous}::FilesystemRegistryEntry> >' to 'vcpkg::ExpectedL<std::unique_ptr > {aka vcpkg::ExpectedT<std::unique_ptr, vcpkg::LocalizedString>}' return res; ^~~ FAILED: /usr/bin/c++ -DVCPKG_BASE_VERSION=2999-12-31 -DVCPKG_VERSION=unknownhash -D_FILE_OFFSET_BITS=64 -I/builds/xxx/external/vcpkg/buildtrees/_vcpkg/src/vcpkg-tool-2024-06-10/include -I/builds/xxx/external/vcpkg/buildtrees/_vcpkg/build/_deps/fmt-src/include -I/builds/xxx/external/vcpkg/buildtrees/_vcpkg/build/_cmrc/include -O3 -DNDEBUG -std=c++1z -pthread -Winvalid-pch -include /builds/xxx/external/vcpkg/buildtrees/_vcpkg/build/CMakeFiles/vcpkglib.dir/cmake_pch.hxx -MD -MT CMakeFiles/vcpkglib.dir/src/vcpkg/dependencies.cpp.o -MF CMakeFiles/vcpkglib.dir/src/vcpkg/dependencies.cpp.o.d -o CMakeFiles/vcpkglib.dir/src/vcpkg/dependencies.cpp.o -c /builds/xxx/external/vcpkg/buildtrees/_vcpkg/src/vcpkg-tool-2024-06-10/src/vcpkg/dependencies.cpp In file included from /usr/include/c++/7/memory:64:0, from /aubo-base-vcpkg-arm64-linux/buildtrees/_vcpkg/build/_deps/fmt-src/include/fmt/format.h:41, from /builds/xxx/external/vcpkg/buildtrees/_vcpkg/build/_deps/fmt-src/include/fmt/compile.h:11, from /builds/xxx/external/vcpkg/buildtrees/_vcpkg/src/vcpkg-tool-2024-06-10/include/vcpkg/base/fmt.h:15, from /builds/xxx/external/vcpkg/buildtrees/_vcpkg/src/vcpkg-tool-2024-06-10/include/pch.h:5, from /builds/xxx/external/vcpkg/buildtrees/_vcpkg/build/CMakeFiles/vcpkglib.dir/cmake_pch.hxx:5, from :0: /usr/include/c++/7/bits/stl_construct.h: In instantiation of 'void std::_Construct(_T1*, _Args&& ...) [with _T1 = vcpkg::InstallPlanAction; _Args = {const vcpkg::InstallPlanAction&}]': /usr/include/c++/7/bits/stl_uninitialized.h:83:18: required from 'static _ForwardIterator std::uninitialized_copy<_TrivialValueTypes>::uninit_copy(_InputIterator, _InputIterator, _ForwardIterator) [with _InputIterator = __gnu_cxx::normal_iterator<const vcpkg::InstallPlanAction, std::vector >; _ForwardIterator = vcpkg::InstallPlanAction; bool _TrivialValueTypes = false]' /usr/include/c++/7/bits/stl_uninitialized.h:134:15: required from '_ForwardIterator std::uninitialized_copy(_InputIterator, _InputIterator, _ForwardIterator) [with _InputIterator = gnu_cxx::normal_iterator<const vcpkg::InstallPlanAction, std::vector >; _ForwardIterator = vcpkg::InstallPlanAction]' /usr/include/c++/7/bits/stl_uninitialized.h:289:37: required from '_ForwardIterator std::uninitialized_copy_a(_InputIterator, _InputIterator, _ForwardIterator, std::allocator<_Tp>&) [with _InputIterator = gnu_cxx::normal_iterator<const vcpkg::InstallPlanAction, std::vector >; _ForwardIterator = vcpkg::InstallPlanAction; _Tp = vcpkg::InstallPlanAction]' /usr/include/c++/7/bits/stl_vector.h:331:31: required from 'std::vector<_Tp, _Alloc>::vector(const std::vector<_Tp, _Alloc>&) [with _Tp = vcpkg::InstallPlanAction; _Alloc = std::allocator]' /builds/xxx/external/vcpkg/buildtrees/_vcpkg/src/vcpkg-tool-2024-06-10/include/vcpkg/dependencies.h:93:12: required from 'vcpkg::ExpectedHolder::ExpectedHolder(Fwd&&) [with Fwd = vcpkg::ActionPlan&; typename std::enable_if<(! is_same_v<vcpkg::ExpectedHolder, typename std::remove_cv<typename std::remove_reference<_SrcTuple>::type>::type>), int>::type = 0; T = vcpkg::ActionPlan]' /builds/xxx/external/vcpkg/buildtrees/_vcpkg/src/vcpkg-tool-2024-06-10/include/vcpkg/base/expected.h:78:66: required from 'vcpkg::ExpectedT<T, Error>::ExpectedT(ConvToT&&) [with ConvToT = vcpkg::ActionPlan&; typename std::enable_if<(is_convertible_v<ConvToT, T> && (! is_same_v<typename std::remove_reference<_SrcTuple>::type, Error>)), int>::type = 0; T = vcpkg::ActionPlan; Error = vcpkg::LocalizedString]' /builds/xxx/external/vcpkg/buildtrees/_vcpkg/src/vcpkg-tool-2024-06-10/src/vcpkg/dependencies.cpp:2051:20: required from here /usr/include/c++/7/bits/stl_construct.h:75:7: error: use of deleted function 'vcpkg::InstallPlanAction::InstallPlanAction(const vcpkg::InstallPlanAction&)' { ::new(static_cast<void*>(p)) _T1(std::forward<_Args>(__args)...); } ^~~~~~~~~~~~~~ In file included from /builds/xxx/external/vcpkg/buildtrees/_vcpkg/src/vcpkg-tool-2024-06-10/src/vcpkg/dependencies.cpp:8:0: /builds/xxx/external/vcpkg/buildtrees/_vcpkg/src/vcpkg-tool-2024-06-10/include/vcpkg/dependencies.h:37:9: note: declared here InstallPlanAction(const InstallPlanAction&) = delete; ^~~~~ ninja: build stopped: subcommand failed.

alexlee728 commented 5 days ago

using gcc 7.5

dg0yt commented 5 days ago

Install a more modern compiler, and set CXX before starting the build.