empiredan opened a new issue, #2291:
URL: https://github.com/apache/incubator-pegasus/issues/2291
Compilation on macOS failed for `aio` test due to variable length arrays as
follows:
```
/Users/runner/work/incubator-pegasus/incubator-pegasus/src/aio/test/aio.cpp:113:34:
error: variable length arrays in C++ are a Clang extension
[-Werror,-Wvla-cxx-extension]
113 | char read_buffer[kUnitBufferLength + 1];
| ^~~~~~~~~~~~~~~~~~~~~
[ 53%] Building CXX object
src/replica/CMakeFiles/dsn_replica_server.dir/kms_key_provider.cpp.o
/Users/runner/work/incubator-pegasus/incubator-pegasus/src/aio/test/aio.cpp:113:34:
note: initializer of 'kUnitBufferLength' is not a constant expression
/Users/runner/work/incubator-pegasus/incubator-pegasus/src/aio/test/aio.cpp:85:18:
note: declared here
85 | const size_t kUnitBufferLength = FLAGS_op_buffer_size;
| ^
/Users/runner/work/incubator-pegasus/incubator-pegasus/src/aio/test/aio.cpp:136:50:
error: variable length arrays in C++ are a Clang extension
[-Werror,-Wvla-cxx-extension]
136 | char read_buffers[kTotalBufferCount][kUnitBufferLength +
1];
|
^~~~~~~~~~~~~~~~~~~~~
/Users/runner/work/incubator-pegasus/incubator-pegasus/src/aio/test/aio.cpp:136:50:
note: initializer of 'kUnitBufferLength' is not a constant expression
/Users/runner/work/incubator-pegasus/incubator-pegasus/src/aio/test/aio.cpp:85:18:
note: declared here
85 | const size_t kUnitBufferLength = FLAGS_op_buffer_size;
| ^
/Users/runner/work/incubator-pegasus/incubator-pegasus/src/aio/test/aio.cpp:136:31:
error: variable length arrays in C++ are a Clang extension
[-Werror,-Wvla-cxx-extension]
136 | char read_buffers[kTotalBufferCount][kUnitBufferLength +
1];
| ^~~~~~~~~~~~~~~~~
/Users/runner/work/incubator-pegasus/incubator-pegasus/src/aio/test/aio.cpp:136:31:
note: initializer of 'kTotalBufferCount' is not a constant expression
/Users/runner/work/incubator-pegasus/incubator-pegasus/src/aio/test/aio.cpp:87:15:
note: declared here
87 | const int kTotalBufferCount = FLAGS_total_op_count;
| ^
3 errors generated.
make[2]: *** [src/aio/test/CMakeFiles/dsn_aio_test.dir/aio.cpp.o] Error 1
make[1]: *** [src/aio/test/CMakeFiles/dsn_aio_test.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]