lede icon indicating copy to clipboard operation
lede copied to clipboard

大佬们编译失败,求救!

Open c455025066 opened this issue 4 months ago • 1 comments

详细叙述

ninja: Entering directory `/home/chenxiaoxin/lede/build_dir/hostpkg/gn-2025-09-18-81b24e01/out' [1/236] CXX src/gn/rust_project_writer.o FAILED: src/gn/rust_project_writer.o clang++ -MMD -MF src/gn/rust_project_writer.o.d -I../src -I. -DNDEBUG -O3 -fdata-sections -ffunction-sections -D_FILE_OFFSET_BITS=64 -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -pthread -pipe -fno-exceptions -fno-rtti -fdiagnostics-color -Wall -Wextra -Wno-unused-parameter -Wextra-semi -Wundef -std=c++20 -Wrange-loop-analysis -Wextra-semi-stmt -Wno-deprecated-copy -Wno-implicit-fallthrough -Wno-redundant-move -Wno-unused-variable -Wno-format -Wno-strict-aliasing -Wno-cast-function-type -c ../src/gn/rust_project_writer.cc -o src/gn/rust_project_writer.o In file included from ../src/gn/rust_project_writer.cc:5: In file included from ../src/gn/rust_project_writer.h:8: In file included from ../src/gn/err.h:8: In file included from /usr/bin/../lib/gcc/x86_64-linux-gnu/11/../../../../include/c++/11/memory:63: In file included from /usr/bin/../lib/gcc/x86_64-linux-gnu/11/../../../../include/c++/11/bits/stl_algobase.h:65: In file included from /usr/bin/../lib/gcc/x86_64-linux-gnu/11/../../../../include/c++/11/bits/stl_iterator_base_types.h:71: /usr/bin/../lib/gcc/x86_64-linux-gnu/11/../../../../include/c++/11/bits/iterator_concepts.h:979:13: error: no matching function for call to '__begin' = decltype(ranges::__cust_access::__begin(std::declval<_Tp&>())); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/bin/../lib/gcc/x86_64-linux-gnu/11/../../../../include/c++/11/bits/ranges_base.h:590:5: note: in instantiation of template type alias '__range_iter_t' requested here using iterator_t = std::__detail::__range_iter_t<_Tp>; ^ /usr/bin/../lib/gcc/x86_64-linux-gnu/11/../../../../include/c++/11/bits/ranges_util.h:98:43: note: in instantiation of template type alias 'iterator_t' requested here data() requires contiguous_iterator<iterator_t<_Derived>> ^ /usr/bin/../lib/gcc/x86_64-linux-gnu/11/../../../../include/c++/11/bits/ranges_util.h:203:29: note: in instantiation of template class 'std::ranges::view_interface<std::ranges::subrange<__gnu_cxx::__normal_iterator<SourceDir *, std::vector<SourceDir>>, __gnu_cxx::__normal_iterator<SourceDir *, std::vector<SourceDir>>, std::ranges::subrange_kind::sized>>' requested here class subrange : public view_interface<subrange<_It, _Sent, _Kind>> ^ /usr/bin/../lib/gcc/x86_64-linux-gnu/11/../../../../include/c++/11/bits/ranges_algo.h:1179:7: note: in instantiation of template class 'std::ranges::subrange<__gnu_cxx::__normal_iterator<SourceDir *, std::vector<SourceDir>>, __gnu_cxx::__normal_iterator<SourceDir *, std::vector<SourceDir>>, std::ranges::subrange_kind::sized>' requested here operator()(_Range&& __r, _Comp __comp = {}, _Proj __proj = {}) const ^ ../src/gn/rust_project_writer.cc:221:41: note: in instantiation of function template specialization 'std::ranges::__unique_fn::operator()<std::vector<SourceDir> &, std::identity, std::ranges::equal_to>' requested here include_dirs.erase(std::ranges::unique(include_dirs).begin(), ^ /usr/bin/../lib/gcc/x86_64-linux-gnu/11/../../../../include/c++/11/bits/iterator_concepts.h:963:7: note: candidate template ignored: constraints not satisfied [with _Tp = std::ranges::subrange<__gnu_cxx::__normal_iterator<SourceDir *, std::vector<SourceDir>>, __gnu_cxx::__normal_iterator<SourceDir *, std::vector<SourceDir>>, std::ranges::subrange_kind::sized>] __begin(_Tp& __t) ^ /usr/bin/../lib/gcc/x86_64-linux-gnu/11/../../../../include/c++/11/bits/iterator_concepts.h:961:16: note: because 'is_array_v<std::ranges::subrange<__gnu_cxx::__normal_iterator<SourceDir *, std::vector<SourceDir> >, __gnu_cxx::__normal_iterator<SourceDir *, std::vector<SourceDir> >, std::ranges::subrange_kind::sized> >' evaluated to false requires is_array_v<_Tp> || __member_begin<_Tp&> || __adl_begin<_Tp&> ^ /usr/bin/../lib/gcc/x86_64-linux-gnu/11/../../../../include/c++/11/bits/iterator_concepts.h:961:35: note: and 'std::ranges::subrange<__gnu_cxx::__normal_iterator<SourceDir *, std::vector<SourceDir>>, __gnu_cxx::__normal_iterator<SourceDir *, std::vector<SourceDir>>, std::ranges::subrange_kind::sized> &' does not satisfy '__member_begin' requires is_array_v<_Tp> || __member_begin<_Tp&> || __adl_begin<_Tp&> ^ /usr/bin/../lib/gcc/x86_64-linux-gnu/11/../../../../include/c++/11/bits/iterator_concepts.h:944:23: note: because '__decay_copy(__t.begin())' would be invalid: no member named 'begin' in 'std::ranges::subrange<__gnu_cxx::__normal_iterator<SourceDir *, std::vector<SourceDir>>, __gnu_cxx::__normal_iterator<SourceDir *, std::vector<SourceDir>>, std::ranges::subrange_kind::sized>' { __decay_copy(__t.begin()) } -> input_or_output_iterator; ^ /usr/bin/../lib/gcc/x86_64-linux-gnu/11/../../../../include/c++/11/bits/iterator_concepts.h:961:59: note: and 'std::ranges::subrange<__gnu_cxx::__normal_iterator<SourceDir *, std::vector<SourceDir>>, __gnu_cxx::__normal_iterator<SourceDir *, std::vector<SourceDir>>, std::ranges::subrange_kind::sized> &' does not satisfy '__adl_begin' requires is_array_v<_Tp> || __member_begin<_Tp&> || __adl_begin<_Tp&> ^ /usr/bin/../lib/gcc/x86_64-linux-gnu/11/../../../../include/c++/11/bits/iterator_concepts.h:955:19: note: because '__decay_copy(begin(__t))' would be invalid: call to deleted function 'begin' { __decay_copy(begin(__t)) } -> input_or_output_iterator; ^ /usr/bin/../lib/gcc/x86_64-linux-gnu/11/../../../../include/c++/11/bits/iterator_concepts.h:979:13: error: no matching function for call to '__begin' = decltype(ranges::__cust_access::__begin(std::declval<_Tp&>())); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/bin/../lib/gcc/x86_64-linux-gnu/11/../../../../include/c++/11/bits/ranges_base.h:590:5: note: in instantiation of template type alias '__range_iter_t' requested here using iterator_t = std::__detail::__range_iter_t<_Tp>; ^ /usr/bin/../lib/gcc/x86_64-linux-gnu/11/../../../../include/c++/11/bits/ranges_util.h:104:25: note: in instantiation of template type alias 'iterator_t' requested here && contiguous_iterator<iterator_t<const _Derived>> ^ /usr/bin/../lib/gcc/x86_64-linux-gnu/11/../../../../include/c++/11/bits/ranges_util.h:203:29: note: in instantiation of template class 'std::ranges::view_interface<std::ranges::subrange<__gnu_cxx::__normal_iterator<SourceDir *, std::vector<SourceDir>>, __gnu_cxx::__normal_iterator<SourceDir *, std::vector<SourceDir>>, std::ranges::subrange_kind::sized>>' requested here class subrange : public view_interface<subrange<_It, _Sent, _Kind>> ^ /usr/bin/../lib/gcc/x86_64-linux-gnu/11/../../../../include/c++/11/bits/ranges_algo.h:1179:7: note: in instantiation of template class 'std::ranges::subrange<__gnu_cxx::__normal_iterator<SourceDir *, std::vector<SourceDir>>, __gnu_cxx::__normal_iterator<SourceDir *, std::vector<SourceDir>>, std::ranges::subrange_kind::sized>' requested here operator()(_Range&& __r, _Comp __comp = {}, _Proj __proj = {}) const ^ ../src/gn/rust_project_writer.cc:221:41: note: in instantiation of function template specialization 'std::ranges::__unique_fn::operator()<std::vector<SourceDir> &, std::identity, std::ranges::equal_to>' requested here include_dirs.erase(std::ranges::unique(include_dirs).begin(), ^ /usr/bin/../lib/gcc/x86_64-linux-gnu/11/../../../../include/c++/11/bits/iterator_concepts.h:963:7: note: candidate template ignored: constraints not satisfied [with _Tp = const std::ranges::subrange<__gnu_cxx::__normal_iterator<SourceDir *, std::vector<SourceDir>>, __gnu_cxx::__normal_iterator<SourceDir *, std::vector<SourceDir>>, std::ranges::subrange_kind::sized>] __begin(_Tp& __t) ^ /usr/bin/../lib/gcc/x86_64-linux-gnu/11/../../../../include/c++/11/bits/iterator_concepts.h:961:16: note: because 'is_array_v<const std::ranges::subrange<__gnu_cxx::__normal_iterator<SourceDir *, std::vector<SourceDir> >, __gnu_cxx::__normal_iterator<SourceDir *, std::vector<SourceDir> >, std::ranges::subrange_kind::sized> >' evaluated to false requires is_array_v<_Tp> || __member_begin<_Tp&> || __adl_begin<_Tp&> ^ /usr/bin/../lib/gcc/x86_64-linux-gnu/11/../../../../include/c++/11/bits/iterator_concepts.h:961:35: note: and 'const std::ranges::subrange<__gnu_cxx::__normal_iterator<SourceDir *, std::vector<SourceDir>>, __gnu_cxx::__normal_iterator<SourceDir *, std::vector<SourceDir>>, std::ranges::subrange_kind::sized> &' does not satisfy '__member_begin' requires is_array_v<_Tp> || __member_begin<_Tp&> || __adl_begin<_Tp&> ^ /usr/bin/../lib/gcc/x86_64-linux-gnu/11/../../../../include/c++/11/bits/iterator_concepts.h:944:23: note: because '__decay_copy(__t.begin())' would be invalid: no member named 'begin' in 'std::ranges::subrange<__gnu_cxx::__normal_iterator<SourceDir *, std::vector<SourceDir>>, __gnu_cxx::__normal_iterator<SourceDir *, std::vector<SourceDir>>, std::ranges::subrange_kind::sized>' { __decay_copy(__t.begin()) } -> input_or_output_iterator; ^ /usr/bin/../lib/gcc/x86_64-linux-gnu/11/../../../../include/c++/11/bits/iterator_concepts.h:961:59: note: and 'const std::ranges::subrange<__gnu_cxx::__normal_iterator<SourceDir *, std::vector<SourceDir>>, __gnu_cxx::__normal_iterator<SourceDir *, std::vector<SourceDir>>, std::ranges::subrange_kind::sized> &' does not satisfy '__adl_begin' requires is_array_v<_Tp> || __member_begin<_Tp&> || __adl_begin<_Tp&> ^ /usr/bin/../lib/gcc/x86_64-linux-gnu/11/../../../../include/c++/11/bits/iterator_concepts.h:955:19: note: because '__decay_copy(begin(__t))' would be invalid: call to deleted function 'begin' { __decay_copy(begin(__t)) } -> input_or_output_iterator; ^ In file included from ../src/gn/rust_project_writer.cc:5: In file included from ../src/gn/rust_project_writer.h:8: In file included from ../src/gn/err.h:12: In file included from ../src/gn/label.h:13: In file included from ../src/gn/source_dir.h:10: In file included from /usr/bin/../lib/gcc/x86_64-linux-gnu/11/../../../../include/c++/11/algorithm:64: In file included from /usr/bin/../lib/gcc/x86_64-linux-gnu/11/../../../../include/c++/11/bits/ranges_algo.h:36: /usr/bin/../lib/gcc/x86_64-linux-gnu/11/../../../../include/c++/11/bits/ranges_util.h:110:24: error: constraints not satisfied for alias template 'sentinel_t' [with _Range = std::ranges::subrange<__gnu_cxx::__normal_iterator<SourceDir *, std::vector<SourceDir>>, __gnu_cxx::__normal_iterator<SourceDir *, std::vector<SourceDir>>, std::ranges::subrange_kind::sized>] && sized_sentinel_for<sentinel_t<_Derived>, iterator_t<_Derived>> ^~~~~~~~~~~~~~~~~~~~ /usr/bin/../lib/gcc/x86_64-linux-gnu/11/../../../../include/c++/11/bits/ranges_util.h:203:29: note: in instantiation of template class 'std::ranges::view_interface<std::ranges::subrange<__gnu_cxx::__normal_iterator<SourceDir *, std::vector<SourceDir>>, __gnu_cxx::__normal_iterator<SourceDir *, std::vector<SourceDir>>, std::ranges::subrange_kind::sized>>' requested here class subrange : public view_interface<subrange<_It, _Sent, _Kind>> ^ /usr/bin/../lib/gcc/x86_64-linux-gnu/11/../../../../include/c++/11/bits/ranges_algo.h:1179:7: note: in instantiation of template class 'std::ranges::subrange<__gnu_cxx::__normal_iterator<SourceDir *, std::vector<SourceDir>>, __gnu_cxx::__normal_iterator<SourceDir *, std::vector<SourceDir>>, std::ranges::subrange_kind::sized>' requested here operator()(_Range&& __r, _Comp __comp = {}, _Proj __proj = {}) const ^ ../src/gn/rust_project_writer.cc:221:41: note: in instantiation of function template specialization 'std::ranges::__unique_fn::operator()<std::vector<SourceDir> &, std::identity, std::ranges::equal_to>' requested here include_dirs.erase(std::ranges::unique(include_dirs).begin(), ^ /usr/bin/../lib/gcc/x86_64-linux-gnu/11/../../../../include/c++/11/bits/ranges_base.h:592:12: note: because 'std::ranges::subrange<__gnu_cxx::__normal_iterator<SourceDir *, std::vector<SourceDir>>, __gnu_cxx::__normal_iterator<SourceDir *, std::vector<SourceDir>>, std::ranges::subrange_kind::sized>' does not satisfy 'range' template<range _Range> ^ /usr/bin/../lib/gcc/x86_64-linux-gnu/11/../../../../include/c++/11/bits/ranges_base.h:580:2: note: because 'ranges::begin(__t)' would be invalid: no matching function for call to object of type 'const __cust_access::_Begin' ranges::begin(__t); ^ In file included from ../src/gn/rust_project_writer.cc:5: In file included from ../src/gn/rust_project_writer.h:8: In file included from ../src/gn/err.h:12: In file included from ../src/gn/label.h:13: In file included from ../src/gn/source_dir.h:10: In file included from /usr/bin/../lib/gcc/x86_64-linux-gnu/11/../../../../include/c++/11/algorithm:64: In file included from /usr/bin/../lib/gcc/x86_64-linux-gnu/11/../../../../include/c++/11/bits/ranges_algo.h:36: /usr/bin/../lib/gcc/x86_64-linux-gnu/11/../../../../include/c++/11/bits/ranges_util.h:116:24: error: constraints not satisfied for alias template 'sentinel_t' [with _Range = const std::ranges::subrange<__gnu_cxx::__normal_iterator<SourceDir *, std::vector<SourceDir>>, __gnu_cxx::__normal_iterator<SourceDir *, std::vector<SourceDir>>, std::ranges::subrange_kind::sized>] && sized_sentinel_for<sentinel_t<const _Derived>, ^~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/bin/../lib/gcc/x86_64-linux-gnu/11/../../../../include/c++/11/bits/ranges_base.h:592:12: note: because 'const std::ranges::subrange<__gnu_cxx::__normal_iterator<SourceDir *, std::vector<SourceDir>>, __gnu_cxx::__normal_iterator<SourceDir *, std::vector<SourceDir>>, std::ranges::subrange_kind::sized>' does not satisfy 'range' template<range _Range> ^ /usr/bin/../lib/gcc/x86_64-linux-gnu/11/../../../../include/c++/11/bits/ranges_base.h:580:2: note: because 'ranges::begin(__t)' would be invalid: no matching function for call to object of type 'const __cust_access::_Begin' ranges::begin(__t); ^ 4 errors generated. ninja: build stopped: subcommand failed. make[3]: *** [Makefile:59: /home/chenxiaoxin/lede/build_dir/hostpkg/gn-2025-09-18-81b24e01/.built] Error 1 make[3]: Leaving directory '/home/chenxiaoxin/lede/feeds/helloworld/gn' time: package/feeds/helloworld/gn/host-compile#1.09#0.12#1.58 ERROR: package/feeds/helloworld/gn [host] failed to build. make[2]: *** [package/Makefile:114: package/feeds/helloworld/gn/host/compile] Error 1 make[2]: Leaving directory '/home/chenxiaoxin/lede' make[1]: *** [package/Makefile:110: /home/chenxiaoxin/lede/staging_dir/target-x86_64_musl/stamp/.package_compile] Error 2 make[1]: Leaving directory '/home/chenxiaoxin/lede' make: *** [/home/chenxiaoxin/lede/include/toplevel.mk:231:world] 错误 2

重复 issue

  • [x] 没有类似的 issue

具体型号

X86/64

详细日志

ninja: Entering directory `/home/chenxiaoxin/lede/build_dir/hostpkg/gn-2025-09-18-81b24e01/out' [1/236] CXX src/gn/rust_project_writer.o FAILED: src/gn/rust_project_writer.o clang++ -MMD -MF src/gn/rust_project_writer.o.d -I../src -I. -DNDEBUG -O3 -fdata-sections -ffunction-sections -D_FILE_OFFSET_BITS=64 -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -pthread -pipe -fno-exceptions -fno-rtti -fdiagnostics-color -Wall -Wextra -Wno-unused-parameter -Wextra-semi -Wundef -std=c++20 -Wrange-loop-analysis -Wextra-semi-stmt -Wno-deprecated-copy -Wno-implicit-fallthrough -Wno-redundant-move -Wno-unused-variable -Wno-format -Wno-strict-aliasing -Wno-cast-function-type -c ../src/gn/rust_project_writer.cc -o src/gn/rust_project_writer.o In file included from ../src/gn/rust_project_writer.cc:5: In file included from ../src/gn/rust_project_writer.h:8: In file included from ../src/gn/err.h:8: In file included from /usr/bin/../lib/gcc/x86_64-linux-gnu/11/../../../../include/c++/11/memory:63: In file included from /usr/bin/../lib/gcc/x86_64-linux-gnu/11/../../../../include/c++/11/bits/stl_algobase.h:65: In file included from /usr/bin/../lib/gcc/x86_64-linux-gnu/11/../../../../include/c++/11/bits/stl_iterator_base_types.h:71: /usr/bin/../lib/gcc/x86_64-linux-gnu/11/../../../../include/c++/11/bits/iterator_concepts.h:979:13: error: no matching function for call to '__begin' = decltype(ranges::__cust_access::__begin(std::declval<_Tp&>())); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/bin/../lib/gcc/x86_64-linux-gnu/11/../../../../include/c++/11/bits/ranges_base.h:590:5: note: in instantiation of template type alias '__range_iter_t' requested here using iterator_t = std::__detail::__range_iter_t<_Tp>; ^ /usr/bin/../lib/gcc/x86_64-linux-gnu/11/../../../../include/c++/11/bits/ranges_util.h:98:43: note: in instantiation of template type alias 'iterator_t' requested here data() requires contiguous_iterator<iterator_t<_Derived>> ^ /usr/bin/../lib/gcc/x86_64-linux-gnu/11/../../../../include/c++/11/bits/ranges_util.h:203:29: note: in instantiation of template class 'std::ranges::view_interface<std::ranges::subrange<__gnu_cxx::__normal_iterator<SourceDir *, std::vector<SourceDir>>, __gnu_cxx::__normal_iterator<SourceDir *, std::vector<SourceDir>>, std::ranges::subrange_kind::sized>>' requested here class subrange : public view_interface<subrange<_It, _Sent, _Kind>> ^ /usr/bin/../lib/gcc/x86_64-linux-gnu/11/../../../../include/c++/11/bits/ranges_algo.h:1179:7: note: in instantiation of template class 'std::ranges::subrange<__gnu_cxx::__normal_iterator<SourceDir *, std::vector<SourceDir>>, __gnu_cxx::__normal_iterator<SourceDir *, std::vector<SourceDir>>, std::ranges::subrange_kind::sized>' requested here operator()(_Range&& __r, _Comp __comp = {}, _Proj __proj = {}) const ^ ../src/gn/rust_project_writer.cc:221:41: note: in instantiation of function template specialization 'std::ranges::__unique_fn::operator()<std::vector<SourceDir> &, std::identity, std::ranges::equal_to>' requested here include_dirs.erase(std::ranges::unique(include_dirs).begin(), ^ /usr/bin/../lib/gcc/x86_64-linux-gnu/11/../../../../include/c++/11/bits/iterator_concepts.h:963:7: note: candidate template ignored: constraints not satisfied [with _Tp = std::ranges::subrange<__gnu_cxx::__normal_iterator<SourceDir *, std::vector<SourceDir>>, __gnu_cxx::__normal_iterator<SourceDir *, std::vector<SourceDir>>, std::ranges::subrange_kind::sized>] __begin(_Tp& __t) ^ /usr/bin/../lib/gcc/x86_64-linux-gnu/11/../../../../include/c++/11/bits/iterator_concepts.h:961:16: note: because 'is_array_v<std::ranges::subrange<__gnu_cxx::__normal_iterator<SourceDir *, std::vector<SourceDir> >, __gnu_cxx::__normal_iterator<SourceDir *, std::vector<SourceDir> >, std::ranges::subrange_kind::sized> >' evaluated to false requires is_array_v<_Tp> || __member_begin<_Tp&> || __adl_begin<_Tp&> ^ /usr/bin/../lib/gcc/x86_64-linux-gnu/11/../../../../include/c++/11/bits/iterator_concepts.h:961:35: note: and 'std::ranges::subrange<__gnu_cxx::__normal_iterator<SourceDir *, std::vector<SourceDir>>, __gnu_cxx::__normal_iterator<SourceDir *, std::vector<SourceDir>>, std::ranges::subrange_kind::sized> &' does not satisfy '__member_begin' requires is_array_v<_Tp> || __member_begin<_Tp&> || __adl_begin<_Tp&> ^ /usr/bin/../lib/gcc/x86_64-linux-gnu/11/../../../../include/c++/11/bits/iterator_concepts.h:944:23: note: because '__decay_copy(__t.begin())' would be invalid: no member named 'begin' in 'std::ranges::subrange<__gnu_cxx::__normal_iterator<SourceDir *, std::vector<SourceDir>>, __gnu_cxx::__normal_iterator<SourceDir *, std::vector<SourceDir>>, std::ranges::subrange_kind::sized>' { __decay_copy(__t.begin()) } -> input_or_output_iterator; ^ /usr/bin/../lib/gcc/x86_64-linux-gnu/11/../../../../include/c++/11/bits/iterator_concepts.h:961:59: note: and 'std::ranges::subrange<__gnu_cxx::__normal_iterator<SourceDir *, std::vector<SourceDir>>, __gnu_cxx::__normal_iterator<SourceDir *, std::vector<SourceDir>>, std::ranges::subrange_kind::sized> &' does not satisfy '__adl_begin' requires is_array_v<_Tp> || __member_begin<_Tp&> || __adl_begin<_Tp&> ^ /usr/bin/../lib/gcc/x86_64-linux-gnu/11/../../../../include/c++/11/bits/iterator_concepts.h:955:19: note: because '__decay_copy(begin(__t))' would be invalid: call to deleted function 'begin' { __decay_copy(begin(__t)) } -> input_or_output_iterator; ^ /usr/bin/../lib/gcc/x86_64-linux-gnu/11/../../../../include/c++/11/bits/iterator_concepts.h:979:13: error: no matching function for call to '__begin' = decltype(ranges::__cust_access::__begin(std::declval<_Tp&>())); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/bin/../lib/gcc/x86_64-linux-gnu/11/../../../../include/c++/11/bits/ranges_base.h:590:5: note: in instantiation of template type alias '__range_iter_t' requested here using iterator_t = std::__detail::__range_iter_t<_Tp>; ^ /usr/bin/../lib/gcc/x86_64-linux-gnu/11/../../../../include/c++/11/bits/ranges_util.h:104:25: note: in instantiation of template type alias 'iterator_t' requested here && contiguous_iterator<iterator_t<const _Derived>> ^ /usr/bin/../lib/gcc/x86_64-linux-gnu/11/../../../../include/c++/11/bits/ranges_util.h:203:29: note: in instantiation of template class 'std::ranges::view_interface<std::ranges::subrange<__gnu_cxx::__normal_iterator<SourceDir *, std::vector<SourceDir>>, __gnu_cxx::__normal_iterator<SourceDir *, std::vector<SourceDir>>, std::ranges::subrange_kind::sized>>' requested here class subrange : public view_interface<subrange<_It, _Sent, _Kind>> ^ /usr/bin/../lib/gcc/x86_64-linux-gnu/11/../../../../include/c++/11/bits/ranges_algo.h:1179:7: note: in instantiation of template class 'std::ranges::subrange<__gnu_cxx::__normal_iterator<SourceDir *, std::vector<SourceDir>>, __gnu_cxx::__normal_iterator<SourceDir *, std::vector<SourceDir>>, std::ranges::subrange_kind::sized>' requested here operator()(_Range&& __r, _Comp __comp = {}, _Proj __proj = {}) const ^ ../src/gn/rust_project_writer.cc:221:41: note: in instantiation of function template specialization 'std::ranges::__unique_fn::operator()<std::vector<SourceDir> &, std::identity, std::ranges::equal_to>' requested here include_dirs.erase(std::ranges::unique(include_dirs).begin(), ^ /usr/bin/../lib/gcc/x86_64-linux-gnu/11/../../../../include/c++/11/bits/iterator_concepts.h:963:7: note: candidate template ignored: constraints not satisfied [with _Tp = const std::ranges::subrange<__gnu_cxx::__normal_iterator<SourceDir *, std::vector<SourceDir>>, __gnu_cxx::__normal_iterator<SourceDir *, std::vector<SourceDir>>, std::ranges::subrange_kind::sized>] __begin(_Tp& __t) ^ /usr/bin/../lib/gcc/x86_64-linux-gnu/11/../../../../include/c++/11/bits/iterator_concepts.h:961:16: note: because 'is_array_v<const std::ranges::subrange<__gnu_cxx::__normal_iterator<SourceDir *, std::vector<SourceDir> >, __gnu_cxx::__normal_iterator<SourceDir *, std::vector<SourceDir> >, std::ranges::subrange_kind::sized> >' evaluated to false requires is_array_v<_Tp> || __member_begin<_Tp&> || __adl_begin<_Tp&> ^ /usr/bin/../lib/gcc/x86_64-linux-gnu/11/../../../../include/c++/11/bits/iterator_concepts.h:961:35: note: and 'const std::ranges::subrange<__gnu_cxx::__normal_iterator<SourceDir *, std::vector<SourceDir>>, __gnu_cxx::__normal_iterator<SourceDir *, std::vector<SourceDir>>, std::ranges::subrange_kind::sized> &' does not satisfy '__member_begin' requires is_array_v<_Tp> || __member_begin<_Tp&> || __adl_begin<_Tp&> ^ /usr/bin/../lib/gcc/x86_64-linux-gnu/11/../../../../include/c++/11/bits/iterator_concepts.h:944:23: note: because '__decay_copy(__t.begin())' would be invalid: no member named 'begin' in 'std::ranges::subrange<__gnu_cxx::__normal_iterator<SourceDir *, std::vector<SourceDir>>, __gnu_cxx::__normal_iterator<SourceDir *, std::vector<SourceDir>>, std::ranges::subrange_kind::sized>' { __decay_copy(__t.begin()) } -> input_or_output_iterator; ^ /usr/bin/../lib/gcc/x86_64-linux-gnu/11/../../../../include/c++/11/bits/iterator_concepts.h:961:59: note: and 'const std::ranges::subrange<__gnu_cxx::__normal_iterator<SourceDir *, std::vector<SourceDir>>, __gnu_cxx::__normal_iterator<SourceDir *, std::vector<SourceDir>>, std::ranges::subrange_kind::sized> &' does not satisfy '__adl_begin' requires is_array_v<_Tp> || __member_begin<_Tp&> || __adl_begin<_Tp&> ^ /usr/bin/../lib/gcc/x86_64-linux-gnu/11/../../../../include/c++/11/bits/iterator_concepts.h:955:19: note: because '__decay_copy(begin(__t))' would be invalid: call to deleted function 'begin' { __decay_copy(begin(__t)) } -> input_or_output_iterator; ^ In file included from ../src/gn/rust_project_writer.cc:5: In file included from ../src/gn/rust_project_writer.h:8: In file included from ../src/gn/err.h:12: In file included from ../src/gn/label.h:13: In file included from ../src/gn/source_dir.h:10: In file included from /usr/bin/../lib/gcc/x86_64-linux-gnu/11/../../../../include/c++/11/algorithm:64: In file included from /usr/bin/../lib/gcc/x86_64-linux-gnu/11/../../../../include/c++/11/bits/ranges_algo.h:36: /usr/bin/../lib/gcc/x86_64-linux-gnu/11/../../../../include/c++/11/bits/ranges_util.h:110:24: error: constraints not satisfied for alias template 'sentinel_t' [with _Range = std::ranges::subrange<__gnu_cxx::__normal_iterator<SourceDir *, std::vector<SourceDir>>, __gnu_cxx::__normal_iterator<SourceDir *, std::vector<SourceDir>>, std::ranges::subrange_kind::sized>] && sized_sentinel_for<sentinel_t<_Derived>, iterator_t<_Derived>> ^~~~~~~~~~~~~~~~~~~~ /usr/bin/../lib/gcc/x86_64-linux-gnu/11/../../../../include/c++/11/bits/ranges_util.h:203:29: note: in instantiation of template class 'std::ranges::view_interface<std::ranges::subrange<__gnu_cxx::__normal_iterator<SourceDir *, std::vector<SourceDir>>, __gnu_cxx::__normal_iterator<SourceDir *, std::vector<SourceDir>>, std::ranges::subrange_kind::sized>>' requested here class subrange : public view_interface<subrange<_It, _Sent, _Kind>> ^ /usr/bin/../lib/gcc/x86_64-linux-gnu/11/../../../../include/c++/11/bits/ranges_algo.h:1179:7: note: in instantiation of template class 'std::ranges::subrange<__gnu_cxx::__normal_iterator<SourceDir *, std::vector<SourceDir>>, __gnu_cxx::__normal_iterator<SourceDir *, std::vector<SourceDir>>, std::ranges::subrange_kind::sized>' requested here operator()(_Range&& __r, _Comp __comp = {}, _Proj __proj = {}) const ^ ../src/gn/rust_project_writer.cc:221:41: note: in instantiation of function template specialization 'std::ranges::__unique_fn::operator()<std::vector<SourceDir> &, std::identity, std::ranges::equal_to>' requested here include_dirs.erase(std::ranges::unique(include_dirs).begin(), ^ /usr/bin/../lib/gcc/x86_64-linux-gnu/11/../../../../include/c++/11/bits/ranges_base.h:592:12: note: because 'std::ranges::subrange<__gnu_cxx::__normal_iterator<SourceDir *, std::vector<SourceDir>>, __gnu_cxx::__normal_iterator<SourceDir *, std::vector<SourceDir>>, std::ranges::subrange_kind::sized>' does not satisfy 'range' template<range _Range> ^ /usr/bin/../lib/gcc/x86_64-linux-gnu/11/../../../../include/c++/11/bits/ranges_base.h:580:2: note: because 'ranges::begin(__t)' would be invalid: no matching function for call to object of type 'const __cust_access::_Begin' ranges::begin(__t); ^ In file included from ../src/gn/rust_project_writer.cc:5: In file included from ../src/gn/rust_project_writer.h:8: In file included from ../src/gn/err.h:12: In file included from ../src/gn/label.h:13: In file included from ../src/gn/source_dir.h:10: In file included from /usr/bin/../lib/gcc/x86_64-linux-gnu/11/../../../../include/c++/11/algorithm:64: In file included from /usr/bin/../lib/gcc/x86_64-linux-gnu/11/../../../../include/c++/11/bits/ranges_algo.h:36: /usr/bin/../lib/gcc/x86_64-linux-gnu/11/../../../../include/c++/11/bits/ranges_util.h:116:24: error: constraints not satisfied for alias template 'sentinel_t' [with _Range = const std::ranges::subrange<__gnu_cxx::__normal_iterator<SourceDir *, std::vector<SourceDir>>, __gnu_cxx::__normal_iterator<SourceDir *, std::vector<SourceDir>>, std::ranges::subrange_kind::sized>] && sized_sentinel_for<sentinel_t<const _Derived>, ^~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/bin/../lib/gcc/x86_64-linux-gnu/11/../../../../include/c++/11/bits/ranges_base.h:592:12: note: because 'const std::ranges::subrange<__gnu_cxx::__normal_iterator<SourceDir *, std::vector<SourceDir>>, __gnu_cxx::__normal_iterator<SourceDir *, std::vector<SourceDir>>, std::ranges::subrange_kind::sized>' does not satisfy 'range' template<range _Range> ^ /usr/bin/../lib/gcc/x86_64-linux-gnu/11/../../../../include/c++/11/bits/ranges_base.h:580:2: note: because 'ranges::begin(__t)' would be invalid: no matching function for call to object of type 'const __cust_access::_Begin' ranges::begin(__t); ^ 4 errors generated. ninja: build stopped: subcommand failed. make[3]: *** [Makefile:59: /home/chenxiaoxin/lede/build_dir/hostpkg/gn-2025-09-18-81b24e01/.built] Error 1 make[3]: Leaving directory '/home/chenxiaoxin/lede/feeds/helloworld/gn' time: package/feeds/helloworld/gn/host-compile#1.09#0.12#1.58 ERROR: package/feeds/helloworld/gn [host] failed to build. make[2]: *** [package/Makefile:114: package/feeds/helloworld/gn/host/compile] Error 1 make[2]: Leaving directory '/home/chenxiaoxin/lede' make[1]: *** [package/Makefile:110: /home/chenxiaoxin/lede/staging_dir/target-x86_64_musl/stamp/.package_compile] Error 2 make[1]: Leaving directory '/home/chenxiaoxin/lede' make: *** [/home/chenxiaoxin/lede/include/toplevel.mk:231:world] 错误 2

c455025066 avatar Oct 19 '25 07:10 c455025066

这个解决了吗?我也遇到了

没有呢,我搜了半天没找到解决办法就没弄了

c455025066 avatar Oct 21 '25 02:10 c455025066