Open zhaokaiping-github opened 1 year ago
me too! mysql mac is m2
The error means installed boost is not compatible with rocketmq-client-cpp. It need boost 1.77.0 to 1.79.0. atomic.hpp is included in the 1.7x versions of boost library.
rocketmq-client-cpp/src/protocol/RemotingCommand.h:19:10: fatal error: 'boost/atomic.hpp' file not found
The issue tracker is ONLY used for the CPP/C client (feature request of RocketMQ need to follow RIP process). Keep in mind, please check whether there is an existing same report before your raise a new one.
Alternately (especially if your communication is not a bug report), you can send mail to our mailing lists. We welcome any friendly suggestions, bug fixes, collaboration, and other improvements.
Please ensure that your bug report is clear and that it is complete. Otherwise, we may be unable to understand it or to reproduce it, either of which would prevent us from fixing the bug. We strongly recommend the report(bug report or feature request) could include some hints as to the following:
BUG REPORT
What did you see instead? /opt/homebrew/Cellar/cmake/3.27.4/bin/cmake -S/Users/zhaokaiping/data/file/golang/rocketmq-client-cpp -B/Users/zhaokaiping/data/file/golang/rocketmq-client-cpp/build --check-build-system CMakeFiles/Makefile.cmake 0 /Applications/Xcode.app/Contents/Developer/usr/bin/make -f CMakeFiles/Makefile2 rocketmq_shared /opt/homebrew/Cellar/cmake/3.27.4/bin/cmake -S/Users/zhaokaiping/data/file/golang/rocketmq-client-cpp -B/Users/zhaokaiping/data/file/golang/rocketmq-client-cpp/build --check-build-system CMakeFiles/Makefile.cmake 0 /opt/homebrew/Cellar/cmake/3.27.4/bin/cmake -E cmake_progress_start /Users/zhaokaiping/data/file/golang/rocketmq-client-cpp/build/CMakeFiles 74 /Applications/Xcode.app/Contents/Developer/usr/bin/make -f CMakeFiles/Makefile2 project/CMakeFiles/rocketmq_shared.dir/all /Applications/Xcode.app/Contents/Developer/usr/bin/make -f libs/signature/CMakeFiles/Signature.dir/build.make libs/signature/CMakeFiles/Signature.dir/depend cd /Users/zhaokaiping/data/file/golang/rocketmq-client-cpp/build && /opt/homebrew/Cellar/cmake/3.27.4/bin/cmake -E cmake_depends "Unix Makefiles" /Users/zhaokaiping/data/file/golang/rocketmq-client-cpp /Users/zhaokaiping/data/file/golang/rocketmq-client-cpp/libs/signature /Users/zhaokaiping/data/file/golang/rocketmq-client-cpp/build /Users/zhaokaiping/data/file/golang/rocketmq-client-cpp/build/libs/signature /Users/zhaokaiping/data/file/golang/rocketmq-client-cpp/build/libs/signature/CMakeFiles/Signature.dir/DependInfo.cmake "--color=" /Applications/Xcode.app/Contents/Developer/usr/bin/make -f libs/signature/CMakeFiles/Signature.dir/build.make libs/signature/CMakeFiles/Signature.dir/build make[3]: Nothing to be done for `libs/signature/CMakeFiles/Signature.dir/build'. [ 9%] Built target Signature /Applications/Xcode.app/Contents/Developer/usr/bin/make -f project/CMakeFiles/rocketmq_shared.dir/build.make project/CMakeFiles/rocketmq_shared.dir/depend cd /Users/zhaokaiping/data/file/golang/rocketmq-client-cpp/build && /opt/homebrew/Cellar/cmake/3.27.4/bin/cmake -E cmake_depends "Unix Makefiles" /Users/zhaokaiping/data/file/golang/rocketmq-client-cpp /Users/zhaokaiping/data/file/golang/rocketmq-client-cpp/project /Users/zhaokaiping/data/file/golang/rocketmq-client-cpp/build /Users/zhaokaiping/data/file/golang/rocketmq-client-cpp/build/project /Users/zhaokaiping/data/file/golang/rocketmq-client-cpp/build/ project/CMakeFiles/rocketmq_shared.dir/DependInfo.cmake "--color=" /Applications/Xcode.app/Contents/Developer/usr/bin/make -f project/CMakeFiles/rocketmq_shared.dir/build.make project/CMakeFiles/rocketmq_shared.dir/build [ 10%] Building CXX object project/CMakeFiles/rocketmq_shared.dir//src/MQClientAPIImpl.cpp.o [ 10%] Building CXX object project/CMakeFiles/rocketmq_shared.dir/__/src/MQClientFactory.cpp.o cd /Users/zhaokaiping/data/file/golang/rocketmq-client-cpp/build/project && /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++ -Drocketmq_shared_EXPORTS -I/Users/zhaokaiping/data/file/golang/rocketmq-client-cpp/bin/include -I/Users/zhaokaiping/data/file/golang/rocketmq-client-cpp/bin/include/jsoncpp -I/Users/zhaokaiping/data/file/golang/rocketmq-client-cpp/include -I/Users/zhaokaiping/data/file/golang/ rocketmq-client-cpp/src/common -I/Users/zhaokaiping/data/file/golang/rocketmq-client-cpp/src/consumer -I/Users/zhaokaiping/data/file/golang/rocketmq-client-cpp/src/extern -I/Users/zhaokaiping/data/file/golang/rocketmq-client-cpp/src/include -I/Users/zhaokaiping/data/file/golang/rocketmq-client-cpp/src/log -I/Users/zhaokaiping/data/file/golang/rocketmq-client-cpp/src/message -I/Users/zhaokaiping/data/file/golang/rocketmq-client-cpp/src/producer -I/Users/zhaokaiping/data/file/golang/rocketmq-client-cpp/src/protocol -I/Users/zhaokaiping/data/file/golang/rocketmq-client-cpp/src/status -I/Users/zhaokaiping/data/file/golang/rocketmq-client-cpp/src/thread -I/Users/zhaokaiping/data/file/golang/rocketmq-client-cpp/src/trace -I/Users/zhaokaiping/data/file/golang/rocketmq-client-cpp/src/transport -I/Users/zhaokaiping/data/file/golang/rocketmq-client-cpp/src -I/Users/zhaokaiping/data/file/golang/ rocketmq-client-cpp/libs/signature/include -Wall -Wno-deprecated -fPIC -fno-strict-aliasing -std=c++11 -Wno-unused-local-typedef -Wno-expansion-to-defined -m64 -O3 -DNDEBUG -arch arm64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk -fPIC -MD -MT project/CMakeFiles/rocketmq_shared.dir//src/MQClientAPIImpl.cpp.o -MF CMakeFiles/rocketmq_shared.dir//src/MQClientAPIImpl.cpp.o.d -o CMakeFiles/rocketmq_shared.dir/__/src/MQClientAPIImpl.cpp.o -c /Users/zhaokaiping/data/file/golang/rocketmq-client-cpp/src/MQClientAPIImpl.cpp [ 12%] Building CXX object project/CMakeFiles/rocketmq_shared.dir//src/MQClientManager.cpp.o [ 13%] Building CXX object project/CMakeFiles/rocketmq_shared.dir//src/common/Arg_helper.cpp.o cd /Users/zhaokaiping/data/file/golang/rocketmq-client-cpp/build/project && /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++ -Drocketmq_shared_EXPORTS -I/Users/zhaokaiping/data/file/golang/rocketmq-client-cpp/bin/include -I/Users/zhaokaiping/data/file/golang/rocketmq-client-cpp/bin/include/jsoncpp -I/Users/zhaokaiping/data/file/golang/rocketmq-client-cpp/include -I/Users/zhaokaiping/data/file/golang/ rocketmq-client-cpp/src/common -I/Users/zhaokaiping/data/file/golang/rocketmq-client-cpp/src/consumer -I/Users/zhaokaiping/data/file/golang/rocketmq-client-cpp/src/extern -I/Users/zhaokaiping/data/file/golang/rocketmq-client-cpp/src/include -I/Users/zhaokaiping/data/file/golang/rocketmq-client-cpp/src/log -I/Users/zhaokaiping/data/file/golang/rocketmq-client-cpp/src/message -I/Users/zhaokaiping/data/file/golang/rocketmq-client-cpp/src/producer -I/Users/zhaokaiping/data/file/golang/rocketmq-client-cpp/src/protocol -I/Users/zhaokaiping/data/file/golang/rocketmq-client-cpp/src/status -I/Users/zhaokaiping/data/file/golang/rocketmq-client-cpp/src/thread -I/Users/zhaokaiping/data/file/golang/rocketmq-client-cpp/src/trace -I/Users/zhaokaiping/data/file/golang/rocketmq-client-cpp/src/transport -I/Users/zhaokaiping/data/file/golang/rocketmq-client-cpp/src -I/Users/zhaokaiping/data/file/golang/ rocketmq-client-cpp/libs/signature/include -Wall -Wno-deprecated -fPIC -fno-strict-aliasing -std=c++11 -Wno-unused-local-typedef -Wno-expansion-to-defined -m64 -O3 -DNDEBUG -arch arm64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk -fPIC -MD -MT project/CMakeFiles/rocketmq_shared.dir//src/MQClientFactory.cpp.o -MF CMakeFiles/rocketmq_shared.dir//src/MQClientFactory.cpp.o.d -o CMakeFiles/rocketmq_shared.dir/__/src/MQClientFactory.cpp.o -c /Users/zhaokaiping/data/file/golang/rocketmq-client-cpp/src/MQClientFactory.cpp cd /Users/zhaokaiping/data/file/golang/rocketmq-client-cpp/build/project && /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++ -Drocketmq_shared_EXPORTS -I/Users/zhaokaiping/data/file/golang/rocketmq-client-cpp/bin/include -I/Users/zhaokaiping/data/file/golang/rocketmq-client-cpp/bin/include/jsoncpp -I/Users/zhaokaiping/data/file/golang/rocketmq-client-cpp/include -I/Users/zhaokaiping/data/file/golang/ rocketmq-client-cpp/src/common -I/Users/zhaokaiping/data/file/golang/rocketmq-client-cpp/src/consumer -I/Users/zhaokaiping/data/file/golang/rocketmq-client-cpp/src/extern -I/Users/zhaokaiping/data/file/golang/rocketmq-client-cpp/src/include -I/Users/zhaokaiping/data/file/golang/rocketmq-client-cpp/src/log -I/Users/zhaokaiping/data/file/golang/rocketmq-client-cpp/src/message -I/Users/zhaokaiping/data/file/golang/rocketmq-client-cpp/src/producer -I/Users/zhaokaiping/data/file/golang/rocketmq-client-cpp/src/protocol -I/Users/zhaokaiping/data/file/golang/rocketmq-client-cpp/src/status -I/Users/zhaokaiping/data/file/golang/rocketmq-client-cpp/src/thread -I/Users/zhaokaiping/data/file/golang/rocketmq-client-cpp/src/trace -I/Users/zhaokaiping/data/file/golang/rocketmq-client-cpp/src/transport -I/Users/zhaokaiping/data/file/golang/rocketmq-client-cpp/src -I/Users/zhaokaiping/data/file/golang/ rocketmq-client-cpp/libs/signature/include -Wall -Wno-deprecated -fPIC -fno-strict-aliasing -std=c++11 -Wno-unused-local-typedef -Wno-expansion-to-defined -m64 -O3 -DNDEBUG -arch arm64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk -fPIC -MD -MT project/CMakeFiles/rocketmq_shared.dir//src/MQClientManager.cpp.o -MF CMakeFiles/rocketmq_shared.dir//src/MQClientManager.cpp.o.d -o CMakeFiles/rocketmq_shared.dir/__/src/MQClientManager.cpp.o -c /Users/zhaokaiping/data/file/golang/rocketmq-client-cpp/src/MQClientManager.cpp cd /Users/zhaokaiping/data/file/golang/rocketmq-client-cpp/build/project && /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++ -Drocketmq_shared_EXPORTS -I/Users/zhaokaiping/data/file/golang/rocketmq-client-cpp/bin/include -I/Users/zhaokaiping/data/file/golang/rocketmq-client-cpp/bin/include/jsoncpp -I/Users/zhaokaiping/data/file/golang/rocketmq-client-cpp/include -I/Users/zhaokaiping/data/file/golang/ rocketmq-client-cpp/src/common -I/Users/zhaokaiping/data/file/golang/rocketmq-client-cpp/src/consumer -I/Users/zhaokaiping/data/file/golang/rocketmq-client-cpp/src/extern -I/Users/zhaokaiping/data/file/golang/rocketmq-client-cpp/src/include -I/Users/zhaokaiping/data/file/golang/rocketmq-client-cpp/src/log -I/Users/zhaokaiping/data/file/golang/rocketmq-client-cpp/src/message -I/Users/zhaokaiping/data/file/golang/rocketmq-client-cpp/src/producer -I/Users/zhaokaiping/data/file/golang/rocketmq-client-cpp/src/protocol -I/Users/zhaokaiping/data/file/golang/rocketmq-client-cpp/src/status -I/Users/zhaokaiping/data/file/golang/rocketmq-client-cpp/src/thread -I/Users/zhaokaiping/data/file/golang/rocketmq-client-cpp/src/trace -I/Users/zhaokaiping/data/file/golang/rocketmq-client-cpp/src/transport -I/Users/zhaokaiping/data/file/golang/rocketmq-client-cpp/src -I/Users/zhaokaiping/data/file/golang/ rocketmq-client-cpp/libs/signature/include -Wall -Wno-deprecated -fPIC -fno-strict-aliasing -std=c++11 -Wno-unused-local-typedef -Wno-expansion-to-defined -m64 -O3 -DNDEBUG -arch arm64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk -fPIC -MD -MT project/CMakeFiles/rocketmq_shared.dir//src/common/Arg_helper.cpp.o -MF CMakeFiles/rocketmq_shared.dir//src/common/Arg_helper.cpp.o.d -o CMakeFiles/rocketmq_shared.dir//src/common/Arg_helper.cpp.o -c /Users/zhaokaiping/data/file/golang/rocketmq-client-cpp/src/common/Arg_helper.cpp In file included from /Users/zhaokaiping/data/file/golang/rocketmq-client-cpp/src/MQClientFactory.cpp:17: /Users/zhaokaiping/data/file/golang/rocketmq-client-cpp/src/MQClientFactory.h:19:10: fatal error: 'boost/asio.hpp' file not found
include <boost/asio.hpp>
In file included from /Users/zhaokaiping/data/file/golang/rocketmq-client-cpp/src/common/Arg_helper.cpp:19: /Users/zhaokaiping/data/file/golang/rocketmq-client-cpp/src/common/UtilAll.h:31:10: fatal error: 'boost/algorithm/string/trim.hpp' file not found
include <boost/algorithm/string/trim.hpp>
In file included from /Users/zhaokaiping/data/file/golang/rocketmq-client-cpp/src/MQClientManager.cpp:17: In file included from /Users/zhaokaiping/data/file/golang/rocketmq-client-cpp/src/MQClientManager.h:22: /Users/zhaokaiping/data/file/golang/rocketmq-client-cpp/src/log/Logging.h:22:10: fatal error: 'boost/date_time/posix_time/posix_time_types.hpp' file not found
include <boost/date_time/posix_time/posix_time_types.hpp>
In file included from /Users/zhaokaiping/data/file/golang/rocketmq-client-cpp/src/MQClientAPIImpl.cpp:18: In file included from /Users/zhaokaiping/data/file/golang/rocketmq-client-cpp/src/MQClientAPIImpl.h:21: In file included from /Users/zhaokaiping/data/file/golang/rocketmq-client-cpp/src/common/ClientRPCHook.h:21: /Users/zhaokaiping/data/file/golang/rocketmq-client-cpp/src/protocol/RemotingCommand.h:19:10: fatal error: 'boost/atomic.hpp' file not found
include <boost/atomic.hpp>
1 error generated. make[3]: [project/CMakeFiles/rocketmq_shared.dir/__/src/common/Arg_helper.cpp.o] Error 1 make[3]: Waiting for unfinished jobs.... 1 error generated. make[3]: [project/CMakeFiles/rocketmq_shared.dir/__/src/MQClientManager.cpp.o] Error 1 1 error generated. make[3]: [project/CMakeFiles/rocketmq_shared.dir/__/src/MQClientFactory.cpp.o] Error 1 1 error generated. make[3]: [project/CMakeFiles/rocketmq_shared.dir/__/src/MQClientAPIImpl.cpp.o] Error 1 make[2]: [project/CMakeFiles/rocketmq_shared.dir/all] Error 2 make[1]: [project/CMakeFiles/rocketmq_shared.dir/rule] Error 2 make: [rocketmq_shared] Error 2
FEATURE REQUEST
Please describe the feature you are requesting.
Provide any additional detail on your proposed use case for this feature.
Indicate the importance of this issue to you (blocker, must-have, should-have, nice-to-have). Are you currently using any workarounds to address this issue?
If there are some sub-tasks using -[] for each subtask and create a corresponding issue to map to the sub task: