-
-
Notifications
You must be signed in to change notification settings - Fork 6
Closed
Labels
bugSomething isn't workingSomething isn't working
Description
Hi,
This project looks really nice, but I am not able to build it on my Mac. Relevant commands and outputs
% cmake -GNinja -Bbuild
-- The CXX compiler identification is AppleClang 16.0.0.16000026
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /Library/Developer/CommandLineTools/usr/bin/c++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Configuring done (1.7s)
-- Generating done (0.0s)
-- Build files have been written to: /tmp/simple-protobuf/build
% cmake --build build
[5/9] Building CXX object src/spb-prot...MakeFiles/spb-protoc.dir/ast/ast.cpp.o
FAILED: src/spb-proto-compiler/CMakeFiles/spb-protoc.dir/ast/ast.cpp.o
/Library/Developer/CommandLineTools/usr/bin/c++ -I/tmp/simple-protobuf/src/spb-proto-compiler -I/tmp/simple-protobuf/include -std=c++20 -flto=thin -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX15.2.sdk -Wall -Wextra -Wpedantic -Werror -Wno-missing-field-initializers -MD -MT src/spb-proto-compiler/CMakeFiles/spb-protoc.dir/ast/ast.cpp.o -MF src/spb-proto-compiler/CMakeFiles/spb-protoc.dir/ast/ast.cpp.o.d -o src/spb-proto-compiler/CMakeFiles/spb-protoc.dir/ast/ast.cpp.o -c /tmp/simple-protobuf/src/spb-proto-compiler/ast/ast.cpp
/tmp/simple-protobuf/src/spb-proto-compiler/ast/ast.cpp:33:25: error: no member named 'any_of' in namespace 'std::ranges'
33 | return std::ranges::any_of( imports, [ = ]( const auto & import ) -> bool
| ~~~~~~~~~~~~~^
/tmp/simple-protobuf/src/spb-proto-compiler/ast/ast.cpp:39:25: error: no member named 'any_of' in namespace 'std::ranges'
39 | return std::ranges::any_of( enums, [ = ]( const auto & enum_field ) -> bool
| ~~~~~~~~~~~~~^
/tmp/simple-protobuf/src/spb-proto-compiler/ast/ast.cpp:45:25: error: no member named 'any_of' in namespace 'std::ranges'
45 | return std::ranges::any_of( messages, [ = ]( const auto & message ) -> bool
| ~~~~~~~~~~~~~^
/tmp/simple-protobuf/src/spb-proto-compiler/ast/ast.cpp:52:25: error: no member named 'any_of' in namespace 'std::ranges'
52 | return std::ranges::any_of( messages, [ = ]( const auto & message ) -> bool
| ~~~~~~~~~~~~~^
/tmp/simple-protobuf/src/spb-proto-compiler/ast/ast.cpp:58:25: error: no member named 'any_of' in namespace 'std::ranges'
58 | return std::ranges::any_of( oneofs, [ = ]( const auto & oneof ) -> bool
| ~~~~~~~~~~~~~^
/tmp/simple-protobuf/src/spb-proto-compiler/ast/ast.cpp:226:25: error: no member named 'all_of' in namespace 'std::ranges'
226 | return std::ranges::all_of( messages,
| ~~~~~~~~~~~~~^
6 errors generated.
[6/9] Building CXX object src/spb-prot...les/spb-protoc.dir/parser/parser.cpp.o
FAILED: src/spb-proto-compiler/CMakeFiles/spb-protoc.dir/parser/parser.cpp.o
/Library/Developer/CommandLineTools/usr/bin/c++ -I/tmp/simple-protobuf/src/spb-proto-compiler -I/tmp/simple-protobuf/include -std=c++20 -flto=thin -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX15.2.sdk -Wall -Wextra -Wpedantic -Werror -Wno-missing-field-initializers -MD -MT src/spb-proto-compiler/CMakeFiles/spb-protoc.dir/parser/parser.cpp.o -MF src/spb-proto-compiler/CMakeFiles/spb-protoc.dir/parser/parser.cpp.o.d -o src/spb-proto-compiler/CMakeFiles/spb-protoc.dir/parser/parser.cpp.o -c /tmp/simple-protobuf/src/spb-proto-compiler/parser/parser.cpp
/tmp/simple-protobuf/src/spb-proto-compiler/parser/parser.cpp:196:16: error: no matching constructor for initialization of 'std::string_view' (aka 'basic_string_view<char>')
196 | return { start, result.ptr };
| ^~~~~~~~~~~~~~~~~~~~~
/Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/string_view:267:5: note: candidate constructor not viable: no known conversion from 'const char *' to 'size_type' (aka 'unsigned long') for 2nd argument; dereference the argument with *
267 | basic_string_view(const _CharT* __s, size_type __len) _NOEXCEPT
| ^ ~~~~~~~~~~~~~~~
/Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/string_view:261:5: note: candidate constructor not viable: requires 1 argument, but 2 were provided
261 | basic_string_view(const basic_string_view&) _NOEXCEPT = default;
| ^ ~~~~~~~~~~~~~~~~~~~~~~~~
/Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/string_view:276:5: note: candidate constructor not viable: requires single argument '__s', but 2 arguments were provided
276 | basic_string_view(const _CharT* __s)
| ^ ~~~~~~~~~~~~~~~~~
/Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/string_view:258:5: note: candidate constructor not viable: requires 0 arguments, but 2 were provided
258 | basic_string_view() _NOEXCEPT : __data (nullptr), __size(0) {}
| ^
/tmp/simple-protobuf/src/spb-proto-compiler/parser/parser.cpp:447:12: error: no matching constructor for initialization of 'std::string_view' (aka 'basic_string_view<char>')
447 | return std::string_view{ ident.begin( ), ident2.end( ) };
| ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/string_view:267:5: note: candidate constructor not viable: no known conversion from 'const_iterator' (aka 'const char *') to 'size_type' (aka 'unsigned long') for 2nd argument; dereference the argument with *
267 | basic_string_view(const _CharT* __s, size_type __len) _NOEXCEPT
| ^ ~~~~~~~~~~~~~~~
/Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/string_view:261:5: note: candidate constructor not viable: requires 1 argument, but 2 were provided
261 | basic_string_view(const basic_string_view&) _NOEXCEPT = default;
| ^ ~~~~~~~~~~~~~~~~~~~~~~~~
/Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/string_view:276:5: note: candidate constructor not viable: requires single argument '__s', but 2 arguments were provided
276 | basic_string_view(const _CharT* __s)
| ^ ~~~~~~~~~~~~~~~~~
/Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/string_view:258:5: note: candidate constructor not viable: requires 0 arguments, but 2 were provided
258 | basic_string_view() _NOEXCEPT : __data (nullptr), __size(0) {}
| ^
2 errors generated.
[8/9] Building CXX object src/spb-prot...pb-protoc.dir/dumper/json/dumper.cpp.o
ninja: build stopped: subcommand failed.
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working