-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Description
Describe the Issue
We are building nacos native image on macOS(arm64) platform, but facing an issue that cannot be resolved by ourselves.
On the MacOS system with M1 chip or M4 chip architecture, we all got a consistent exception: the link to the setProxyProperties function in SystemConfiguration cannot be created.
At first, we thought it might be that GraalVM did not actively link to SystemConfiguration (i.e. no -framework SystemConfiguration), but we checked the document and it seemed that there was no parameter that could help us create a link manually.
This problem occurs entirely on the macOS platform, not only in version 17.0.14, but also in version 21.0.6.
ld: warning: no platform load command found in '/private/var/folders/p5/07bvtvg96wx2yvvfszh0x3nm0000gn/T/SVM-9780311304649630371/nacos-server.o', assuming: macOS
Undefined symbols for architecture arm64:
"_SCDynamicStoreCopyProxies", referenced from:
_setProxyProperties in libjava.a[58](java_props_macosx.o)
"_kSCPropNetProxiesExceptionsList", referenced from:
_setProxyProperties in libjava.a[58](java_props_macosx.o)
"_kSCPropNetProxiesFTPEnable", referenced from:
_setProxyProperties in libjava.a[58](java_props_macosx.o)
"_kSCPropNetProxiesFTPPort", referenced from:
_setProxyProperties in libjava.a[58](java_props_macosx.o)
"_kSCPropNetProxiesFTPProxy", referenced from:
_setProxyProperties in libjava.a[58](java_props_macosx.o)
"_kSCPropNetProxiesHTTPEnable", referenced from:
_setProxyProperties in libjava.a[58](java_props_macosx.o)
"_kSCPropNetProxiesHTTPPort", referenced from:
_setProxyProperties in libjava.a[58](java_props_macosx.o)
"_kSCPropNetProxiesHTTPProxy", referenced from:
_setProxyProperties in libjava.a[58](java_props_macosx.o)
"_kSCPropNetProxiesHTTPSEnable", referenced from:
_setProxyProperties in libjava.a[58](java_props_macosx.o)
"_kSCPropNetProxiesHTTPSPort", referenced from:
_setProxyProperties in libjava.a[58](java_props_macosx.o)
"_kSCPropNetProxiesHTTPSProxy", referenced from:
_setProxyProperties in libjava.a[58](java_props_macosx.o)
"_kSCPropNetProxiesSOCKSEnable", referenced from:
_setProxyProperties in libjava.a[58](java_props_macosx.o)
"_kSCPropNetProxiesSOCKSPort", referenced from:
_setProxyProperties in libjava.a[58](java_props_macosx.o)
"_kSCPropNetProxiesSOCKSProxy", referenced from:
_setProxyProperties in libjava.a[58](java_props_macosx.o)
ld: symbol(s) not found for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
We still encountered this problem after installing all the tools of XCode on the Mac Mini with the new M4 chip, so I think this problem may be common. He may be related to an exact third party (it may be Derby, netty or gRpc), but we can't be sure what caused this link error.
On the Windows platform, we have also encountered special link errors and exceptions before. After not getting an effective solution, we gave up compiling nacos native image on the Windows platform. We don't want to lose the support of the macOS platform again, and hope to get your support. Thank you very much🙏🏻!
Please confirm if you have tested with the latest available version.
- I tried with the latest version of GraalVM. Latest GraalVM Version
Share the svm_err_b_*.md File
svm_err_b_20250409T154527.985_pid24742.md
Additional Context
No additional context will be provided.