Skip to content

WatchpointResource.cpp build fails with `error: no member named 'find' in namespace 'std'; did you mean 'fill'?̀ #73580

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

Closed
sylvestre opened this issue Nov 27, 2023 · 3 comments

Comments

@sylvestre
Copy link
Collaborator


/build/source/build-llvm/./bin/clang++ -DHAVE_ROUND -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/build/source/build-llvm/tools/clang/stage2-bins/tools/lldb/source/Breakpoint -I/build/source/lldb/source/Breakpoint -I/build/source/lldb/include -I/build/source/build-llvm/tools/clang/stage2-bins/tools/lldb/include -I/build/source/build-llvm/tools/clang/stage2-bins/include -I/build/source/llvm/include -I/usr/include/python3.11 -I/build/source/clang/include -I/build/source/build-llvm/tools/clang/stage2-bins/tools/lldb/../clang/include -I/build/source/lldb/source -I/build/source/build-llvm/tools/clang/stage2-bins/tools/lldb/source -isystem /usr/include/libxml2 -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -mbranch-protection=standard -Wno-unused-command-line-argument -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -fno-semantic-interposition -fvisibility-inlines-hidden -Werror=date-time -Werror=unguarded-availability-new -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wmissing-field-initializers -pedantic -Wno-long-long -Wc++98-compat-extra-semi -Wimplicit-fallthrough -Wcovered-switch-default -Wno-noexcept-type -Wnon-virtual-dtor -Wdelete-non-virtual-dtor -Wsuggest-override -Wstring-conversion -Wmisleading-indentation -Wctad-maybe-unsupported -fdiagnostics-color -ffunction-sections -fdata-sections -ffile-prefix-map=/build/source/build-llvm/tools/clang/stage2-bins=build-llvm/tools/clang/stage2-bins -ffile-prefix-map=/build/source/= -no-canonical-prefixes -Wno-deprecated-declarations -Wno-unknown-pragmas -Wno-strict-aliasing -Wno-deprecated-register -Wno-vla-extension -O2 -DNDEBUG -g1 -std=c++17  -fno-exceptions -funwind-tables -MD -MT tools/lldb/source/Breakpoint/CMakeFiles/lldbBreakpoint.dir/WatchpointResource.cpp.o -MF tools/lldb/source/Breakpoint/CMakeFiles/lldbBreakpoint.dir/WatchpointResource.cpp.o.d -o tools/lldb/source/Breakpoint/CMakeFiles/lldbBreakpoint.dir/WatchpointResource.cpp.o -c /build/source/lldb/source/Breakpoint/WatchpointResource.cpp
/build/source/lldb/source/Breakpoint/WatchpointResource.cpp:59:12: error: no member named 'find' in namespace 'std'; did you mean 'fill'?
   59 |       std::find(m_constituents.begin(), m_constituents.end(), wp_sp);
      |       ~~~~~^~~~
      |            fill
/usr/lib/gcc/aarch64-linux-gnu/13/../../../../include/c++/13/bits/stl_algobase.h:1000:5: note: 'fill' declared here
 1000 |     fill(_ForwardIterator __first, _ForwardIterator __last, const _Tp& __value)
      |     ^
/build/source/lldb/source/Breakpoint/WatchpointResource.cpp:58:14: error: cannot form a reference to 'void'
   58 |   const auto &it =
      |              ^
/build/source/lldb/source/Breakpoint/WatchpointResource.cpp:76:12: error: no member named 'find_if' in namespace 'std'
   76 |       std::find_if(m_constituents.begin(), m_constituents.end(),
@llvmbot
Copy link
Member

llvmbot commented Nov 27, 2023

@llvm/issue-subscribers-lldb

Author: Sylvestre Ledru (sylvestre)

```

/build/source/build-llvm/./bin/clang++ -DHAVE_ROUND -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/build/source/build-llvm/tools/clang/stage2-bins/tools/lldb/source/Breakpoint -I/build/source/lldb/source/Breakpoint -I/build/source/lldb/include -I/build/source/build-llvm/tools/clang/stage2-bins/tools/lldb/include -I/build/source/build-llvm/tools/clang/stage2-bins/include -I/build/source/llvm/include -I/usr/include/python3.11 -I/build/source/clang/include -I/build/source/build-llvm/tools/clang/stage2-bins/tools/lldb/../clang/include -I/build/source/lldb/source -I/build/source/build-llvm/tools/clang/stage2-bins/tools/lldb/source -isystem /usr/include/libxml2 -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -mbranch-protection=standard -Wno-unused-command-line-argument -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -fno-semantic-interposition -fvisibility-inlines-hidden -Werror=date-time -Werror=unguarded-availability-new -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wmissing-field-initializers -pedantic -Wno-long-long -Wc++98-compat-extra-semi -Wimplicit-fallthrough -Wcovered-switch-default -Wno-noexcept-type -Wnon-virtual-dtor -Wdelete-non-virtual-dtor -Wsuggest-override -Wstring-conversion -Wmisleading-indentation -Wctad-maybe-unsupported -fdiagnostics-color -ffunction-sections -fdata-sections -ffile-prefix-map=/build/source/build-llvm/tools/clang/stage2-bins=build-llvm/tools/clang/stage2-bins -ffile-prefix-map=/build/source/= -no-canonical-prefixes -Wno-deprecated-declarations -Wno-unknown-pragmas -Wno-strict-aliasing -Wno-deprecated-register -Wno-vla-extension -O2 -DNDEBUG -g1 -std=c++17 -fno-exceptions -funwind-tables -MD -MT tools/lldb/source/Breakpoint/CMakeFiles/lldbBreakpoint.dir/WatchpointResource.cpp.o -MF tools/lldb/source/Breakpoint/CMakeFiles/lldbBreakpoint.dir/WatchpointResource.cpp.o.d -o tools/lldb/source/Breakpoint/CMakeFiles/lldbBreakpoint.dir/WatchpointResource.cpp.o -c /build/source/lldb/source/Breakpoint/WatchpointResource.cpp
/build/source/lldb/source/Breakpoint/WatchpointResource.cpp:59:12: error: no member named 'find' in namespace 'std'; did you mean 'fill'?
59 | std::find(m_constituents.begin(), m_constituents.end(), wp_sp);
| ~~~~~^~~~
| fill
/usr/lib/gcc/aarch64-linux-gnu/13/../../../../include/c++/13/bits/stl_algobase.h:1000:5: note: 'fill' declared here
1000 | fill(_ForwardIterator __first, _ForwardIterator __last, const _Tp& __value)
| ^
/build/source/lldb/source/Breakpoint/WatchpointResource.cpp:58:14: error: cannot form a reference to 'void'
58 | const auto &it =
| ^
/build/source/lldb/source/Breakpoint/WatchpointResource.cpp:76:12: error: no member named 'find_if' in namespace 'std'
76 | std::find_if(m_constituents.begin(), m_constituents.end(),

</details>

@sylvestre
Copy link
Collaborator Author

maybe a6c62bf will fix it

@xgupta
Copy link
Contributor

xgupta commented May 29, 2024

This can be closed.

@xgupta xgupta closed this as completed May 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants