Skip to content
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 rocketmq_shared -j #454

Open
zhaokaiping-github opened this issue Aug 27, 2023 · 2 comments
Open

$ make rocketmq_shared -j #454

zhaokaiping-github opened this issue Aug 27, 2023 · 2 comments

Comments

@zhaokaiping-github
Copy link

zhaokaiping-github commented Aug 27, 2023

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

  1. Please describe the issue you observed:
  • What did you do (The steps to reproduce)?
    $ make rocketmq_shared -j 4
  • What did you expect to see?
    Success
  • 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
  1. Please tell us about your environment:
  • What is your OS?
    Apple M2
  • What is your client version?
    Use branch re_dev
  • What is your RocketMQ version?
    4.7.1
  1. Other information (e.g. detailed explanation, logs, related issues, suggestions on how to fix, etc):

FEATURE REQUEST

  1. Please describe the feature you are requesting.

  2. Provide any additional detail on your proposed use case for this feature.

  3. 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?

  4. If there are some sub-tasks using -[] for each subtask and create a corresponding issue to map to the sub task:

@DavideyLee
Copy link

me too! mysql mac is m2

@davideuler
Copy link

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
#include <boost/atomic.hpp>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants