gloriousknight opened a new issue #353: URL: https://github.com/apache/rocketmq-client-cpp/issues/353
hi, my MacBook is Apple Silicon M1 and I want to install rocketmq-client-python(https://github.com/apache/rocketmq-client-python) on my MacBook but failed. I supposed it is because rocketmq-client-cpp does not support Apple Silicon M1. When I manually build RocketMQ-Client-CPP to run build.sh, error occurs : ` "_time", referenced from: _ASN1_TIME_to_tm in a_time.o _CT_POLICY_EVAL_CTX_new in ct_policy.o _OCSP_check_validity in ocsp_cl.o _RAND_DRBG_instantiate in drbg_lib.o _RAND_DRBG_reseed in drbg_lib.o _RAND_DRBG_generate in drbg_lib.o _get_time_stamp in rand_unix.o ... (maybe you meant: _X509_STORE_CTX_set_time, _X509_time_adj_ex , _X509_time_adj , _x509_check_cert_time , _TS_TST_INFO_set_time , _TS_RESP_CTX_set_time_cb , _RAND_DRBG_set_reseed_time_interval , _X509_VERIFY_PARAM_set_time , _PKCS7_add0_attrib_signing_time , _X509_cmp_time , _TS_TST_INFO_get_time , _CT_POLICY_EVAL_CTX_set_time , _SCT_CTX_set_time , _SCT_get_timestamp , _CT_POLICY_EVAL_CTX_get_time , _SCT_set_timestamp , _X509_cmp_current_time , _ASN1_TIME_cmp_time_t , _x509_set1_time , _ASN1_UTCTIME_cmp_time_t , _asn1_time_to_tm , _X509_VERIFY_PARAM_get_time , _asn1_time_from_tm , _err_clear_last_constant_time ) "_vfprintf", referenced from: _OPENSSL_showfatal in cryptlib.o "_write$UNIX2003", referenced from: _conn_write in bss_conn.o _dgram_write in bss_dgram.o _fd_write in bss_fd.o _sock_write in bss_sock.o ld: symbol(s) not found for architecture i386 clang: error: linker command failed with exit code 1 (use -v to see invocation) make[1]: *** [libcrypto.dylib] Error 1 make: *** [all] Error 2 ` When I use method one `install_name_tool -id "@rpath/librocketmq.dylib" /usr/local/lib/librocketmq.dylib`, error occurs: `Traceback (most recent call last): File "/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.8/lib/python3.8/threading.py", line 932, in _bootstrap_inner self.run() File "/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.8/lib/python3.8/threading.py", line 870, in run self._target(*self._args, **self._kwargs) File "/Users/zhangye/Projects/ledao/venv/lib/python3.8/site-packages/django/utils/autoreload.py", line 54, in wrapper fn(*args, **kwargs) File "/Users/zhangye/Projects/ledao/venv/lib/python3.8/site-packages/django/core/management/commands/runserver.py", line 109, in inner_run autoreload.raise_last_exception() File "/Users/zhangye/Projects/ledao/venv/lib/python3.8/site-packages/django/utils/autoreload.py", line 77, in raise_last_exception raise _exception[1] File "/Users/zhangye/Projects/ledao/venv/lib/python3.8/site-packages/django/core/management/__init__.py", line 337, in execute autoreload.check_errors(django.setup)() File "/Users/zhangye/Projects/ledao/venv/lib/python3.8/site-packages/django/utils/autoreload.py", line 54, in wrapper fn(*args, **kwargs) File "/Users/zhangye/Projects/ledao/venv/lib/python3.8/site-packages/django/__init__.py", line 24, in setup apps.populate(settings.INSTALLED_APPS) File "/Users/zhangye/Projects/ledao/venv/lib/python3.8/site-packages/django/apps/registry.py", line 114, in populate app_config.import_models() File "/Users/zhangye/Projects/ledao/venv/lib/python3.8/site-packages/django/apps/config.py", line 211, in import_models self.models_module = import_module(models_module_name) File "/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.8/lib/python3.8/importlib/__init__.py", line 127, in import_module return _bootstrap._gcd_import(name[level:], package, level) File "<frozen importlib._bootstrap>", line 1014, in _gcd_import File "<frozen importlib._bootstrap>", line 991, in _find_and_load File "<frozen importlib._bootstrap>", line 975, in _find_and_load_unlocked File "<frozen importlib._bootstrap>", line 671, in _load_unlocked File "<frozen importlib._bootstrap_external>", line 783, in exec_module File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed File "/Users/zhangye/Projects/ledao/service/models.py", line 3, in <module> from admanager.models import AdUser File "/Users/zhangye/Projects/ledao/admanager/models.py", line 21, in <module> from admanager import tasks File "/Users/zhangye/Projects/ledao/admanager/tasks.py", line 15, in <module> from utils.rocketmq import Producer File "/Users/zhangye/Projects/ledao/utils/rocketmq.py", line 1, in <module> from rocketmq.client import Producer as RocketProducer, Message, PushConsumer as RocketPushConsumer File "/Users/zhangye/Projects/ledao/venv/lib/python3.8/site-packages/rocketmq/client.py", line 8, in <module> from .ffi import ( File "/Users/zhangye/Projects/ledao/venv/lib/python3.8/site-packages/rocketmq/ffi.py", line 26, in <module> dll = ctypes.cdll.LoadLibrary(_DYLIB_PATH) File "/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.8/lib/python3.8/ctypes/__init__.py", line 443, in LoadLibrary return self._dlltype(name) File "/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.8/lib/python3.8/ctypes/__init__.py", line 365, in __init__ self._handle = _dlopen(self._name, mode) OSError: dlopen(/usr/local/lib/librocketmq.dylib, 6): no suitable image found. Did find: /usr/local/lib/librocketmq.dylib: mach-o, but wrong architecture /usr/local/lib/librocketmq.dylib: mach-o, but wrong architecture` pls help! -- 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. For queries about this service, please contact Infrastructure at: [email protected]
