-
Notifications
You must be signed in to change notification settings - Fork 329
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
make -j16报错 #280
Comments
/opt/Tendis/build/CMakeFiles/CMakeTmp/src.cxx:2:11: error: expected constructor, destructor, or type conversion before ‘(’ token Source file was: __declspec(thread) int tls; Determining if the F_FULLFSYNC exist failed with the following output: Run Build Command:"/usr/bin/gmake" "cmTC_942d8/fast" File /opt/Tendis/build/CMakeFiles/CMakeTmp/CheckSymbolExists.cxx: int main(int argc, char** argv) [root@test build]# clear Run Build Command:"/usr/bin/gmake" "cmTC_7d2ef/fast" Source file was: __declspec(thread) int tls; Determining if the F_FULLFSYNC exist failed with the following output: Run Build Command:"/usr/bin/gmake" "cmTC_942d8/fast" File /opt/Tendis/build/CMakeFiles/CMakeTmp/CheckSymbolExists.cxx: int main(int argc, char** argv) 这是cmake的Error.log里面的内容 |
执行make -j16的报错
In file included from /opt/Tendis/src/tendisplus/utils/status.h:20,
from /opt/Tendis/src/tendisplus/utils/status_test.cpp:10:
/opt/Tendis/src/tendisplus/utils/portable.h:16:23: error: ‘optional’ in namespace ‘std’ does not name a template type
16 | using optional = std::optional;
| ^~~~~~~~
/opt/Tendis/src/tendisplus/utils/portable.h:16:18: note: ‘std::optional’ is only available from C++17 onwards
16 | using optional = std::optional;
| ^~~
In file included from /opt/Tendis/src/tendisplus/utils/status.h:20,
from /opt/Tendis/src/tendisplus/utils/status_test.cpp:10:
/opt/Tendis/src/tendisplus/utils/portable.h:31:29: error: ‘filesystem’ is not a namespace-name
31 | namespace filesystem = std::filesystem;
| ^~~~~~~~~~
In file included from /opt/Tendis/src/tendisplus/utils/status_test.cpp:10:
/opt/Tendis/src/tendisplus/utils/status.h:157:3: error: ‘optional’ does not name a type
157 | optional _data;
| ^~~~~~~~
/opt/Tendis/src/tendisplus/utils/status.h: In constructor ‘tendisplus::Expected::Expected(const T&)’:
/opt/Tendis/src/tendisplus/utils/status.h:135:7: error: class ‘tendisplus::Expected’ does not have any field named ‘_data’
135 | : _data(t), _status(Status(ErrorCodes::ERR_OK, "")) {}
| ^~~~~
/opt/Tendis/src/tendisplus/utils/status.h: In constructor ‘tendisplus::Expected::Expected(T&&)’:
/opt/Tendis/src/tendisplus/utils/status.h:138:7: error: class ‘tendisplus::Expected’ does not have any field named ‘_data’
138 | : _data(std::move(t)), _status(Status(ErrorCodes::ERR_OK, "")) {}
| ^~~~~
/opt/Tendis/src/tendisplus/utils/status.h: In member function ‘const T& tendisplus::Expected::value() const’:
/opt/Tendis/src/tendisplus/utils/status.h:141:13: error: ‘_data’ was not declared in this scope
141 | return *_data;
| ^~~~~
/opt/Tendis/src/tendisplus/utils/status.h: In member function ‘T& tendisplus::Expected::value()’:
/opt/Tendis/src/tendisplus/utils/status.h:145:13: error: ‘_data’ was not declared in this scope
145 | return *_data;
| ^~~~~
make[2]: *** [src/tendisplus/utils/CMakeFiles/status_test.dir/status_test.cpp.o] Error 1
make[1]: *** [src/tendisplus/utils/CMakeFiles/status_test.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
In file included from /opt/Tendis/src/tendisplus/utils/status.h:20,
from /opt/Tendis/src/tendisplus/storage/varint.h:14,
from /opt/Tendis/src/tendisplus/storage/varint_test.cpp:11:
/opt/Tendis/src/tendisplus/utils/portable.h:16:23: error: ‘optional’ in namespace ‘std’ does not name a template type
16 | using optional = std::optional;
| ^~~~~~~~
/opt/Tendis/src/tendisplus/utils/portable.h:16:18: note: ‘std::optional’ is only available from C++17 onwards
16 | using optional = std::optional;
| ^~~
In file included from /opt/Tendis/src/tendisplus/utils/status.h:20,
from /opt/Tendis/src/tendisplus/storage/varint.h:14,
from /opt/Tendis/src/tendisplus/storage/varint_test.cpp:11:
/opt/Tendis/src/tendisplus/utils/portable.h:31:29: error: ‘filesystem’ is not a namespace-name
31 | namespace filesystem = std::filesystem;
| ^~~~~~~~~~
In file included from /opt/Tendis/src/tendisplus/storage/varint.h:14,
from /opt/Tendis/src/tendisplus/storage/varint_test.cpp:11:
/opt/Tendis/src/tendisplus/utils/status.h:157:3: error: ‘optional’ does not name a type
157 | optional _data;
| ^~~~~~~~
/opt/Tendis/src/tendisplus/utils/status.h: In constructor ‘tendisplus::Expected::Expected(const T&)’:
/opt/Tendis/src/tendisplus/utils/status.h:135:7: error: class ‘tendisplus::Expected’ does not have any field named ‘_data’
135 | : _data(t), _status(Status(ErrorCodes::ERR_OK, "")) {}
| ^~~~~
/opt/Tendis/src/tendisplus/utils/status.h: In constructor ‘tendisplus::Expected::Expected(T&&)’:
/opt/Tendis/src/tendisplus/utils/status.h:138:7: error: class ‘tendisplus::Expected’ does not have any field named ‘_data’
138 | : _data(std::move(t)), _status(Status(ErrorCodes::ERR_OK, "")) {}
| ^~~~~
/opt/Tendis/src/tendisplus/utils/status.h: In member function ‘const T& tendisplus::Expected::value() const’:
/opt/Tendis/src/tendisplus/utils/status.h:141:13: error: ‘_data’ was not declared in this scope
141 | return *_data;
| ^~~~~
/opt/Tendis/src/tendisplus/utils/status.h: In member function ‘T& tendisplus::Expected::value()’:
/opt/Tendis/src/tendisplus/utils/status.h:145:13: error: ‘_data’ was not declared in this scope
145 | return *_data;
| ^~~~~
The text was updated successfully, but these errors were encountered: