{"id":526930,"date":"2021-08-19T16:27:28","date_gmt":"2021-08-19T08:27:28","guid":{"rendered":"http:\/\/4563.org\/?p=526930"},"modified":"2021-08-19T16:27:28","modified_gmt":"2021-08-19T08:27:28","slug":"%e8%af%b7%e5%90%84%e4%bd%8d%e6%9c%89%e5%bf%97%e4%b9%8b%e5%a3%ab%e5%b8%ae%e5%bf%99%e7%bc%96%e8%af%91arm%e8%83%bd%e7%94%a8%e7%9a%84realm","status":"publish","type":"post","link":"http:\/\/4563.org\/?p=526930","title":{"rendered":"\u8bf7\u5404\u4f4d\u6709\u5fd7\u4e4b\u58eb\u5e2e\u5fd9\u7f16\u8bd1arm\u80fd\u7528\u7684Realm"},"content":{"rendered":"\n<p>  \t\t\t\t\t<strong>\u9676\u6e0a\u660e<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : 2021-7-30 19:51:31\t<\/p>\n<h3>\u8bf7\u5404\u4f4d\u6709\u5fd7\u4e4b\u58eb\u5e2e\u5fd9\u7f16\u8bd1arm\u80fd\u7528\u7684Realm<\/h3>\n<p>  \t\t\u8bf7\u5927\u4f6c\u5e2e\u5fd9\u7f16\u8bd1arm\u80fd\u7528\u7684Realm\uff0c<br \/>  \u81ea\u5df1\u7f16\u8bd1\u51fa\u6765\u7684\u670940M\u5927\u5c0f\uff0c\u5176\u5b83\u5e73\u53f0\u53ea\u67097\u30018\u5146\uff0c\u4e0d\u77e5\u9053\u54ea\u91cc\u7f16\u8bd1\u9519\u4e86<\/p>\n<p>  \u8bf7\u5404\u4f4d\u6709\u7528\u5230realm\u7684mjj\uff0c\u5e2e\u5fd9\u7f16\u8bd1\u9002\u7528arm\u7684Realm<br \/>  \u9644\u4e0a\u6e90\u7801\u5730\u5740\uff1a<br \/>  https:\/\/github.com\/zhboner\/realm<\/p>\n<p>  \u611f\u8c22\u5404\u4f4d\u5e2e\u5fd9\t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>Auto<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : 2021-7-30 19:53:59\t<\/p>\n<h3><\/h3>\n<p>  \t\tarm\u8fd8\u8981\u7ec6\u5206\u7684\uff0c\u7136\u540e\u4f60\u60f3\u8981\u5565\u7f16\u8bd1gnu\u8fd8\u662fmusl\uff0c\u8bdd\u4e0d\u8bf4\u6e05\u695a\u6ca1\u4eba\u7406\u4f60\t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>\u4e8c\u6c27\u5316\u78b3<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : 2021-7-30 19:54:53\t<\/p>\n<h3><\/h3>\n<p>  \t\t\u7f16\u8bd1\u7684\u65f6\u5019\u9009\u62e9release\uff0cCargo.toml\u91cc\u9762\u542f\u7528lto\t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>\u9676\u6e0a\u660e<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : 2021-7-30 19:59:57\t<\/p>\n<h3><\/h3>\n<p>  \t\tAuto \u5927\u4f6c\u6709\u8bdd\u8bf4 : 2021-7-30 19:53<br \/>  arm\u8fd8\u8981\u7ec6\u5206\u7684\uff0c\u7136\u540e\u4f60\u60f3\u8981\u5565\u7f16\u8bd1gnu\u8fd8\u662fmusl\uff0c\u8bdd\u4e0d\u8bf4\u6e05\u695a\u6ca1\u4eba\u7406\u4f60<\/p>\n<p> \u6211\u76f4\u63a5cd\u4e3b\u76ee\u5f55\uff0c\u7136\u540ecargo run:)\uff0c\u4e0d\u6e05\u695arust\u7f16\u8bd1\u9700\u8981\u8fd9\u4e48\u591a\u64cd\u4f5c\t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>dunce<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : 2021-7-30 21:09:13\t<\/p>\n<h3><\/h3>\n<p>  \t\trustup target list|grep arm<\/p>\n<p>  cargo build &#8211;release &#8211;target ${target}\t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>dunce<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : 2021-7-30 21:10:22\t<\/p>\n<h3><\/h3>\n<p>  \t\t\u6216\u8005\u7528cross\u7f16\u8bd1(\u9700\u8981docker)\t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>\u9676\u6e0a\u660e<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : 2021-7-31 00:54:31\t<\/p>\n<h3><\/h3>\n<p>  \t\tdunce \u5927\u4f6c\u6709\u8bdd\u8bf4 : 2021-7-30 21:10<br \/>  \u6216\u8005\u7528cross\u7f16\u8bd1(\u9700\u8981docker)<\/p>\n<p> \u7f16\u8bd1\u540e\u62a5\u9519error: linking with `cc` failed: exit status: 1<br \/>  \u8bf7\u95ee\u8be5\u600e\u4e48\u89e3\u51b3\t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>dunce<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : 2021-7-31 02:04:23\t<\/p>\n<h3><\/h3>\n<p>  \t\t\u9676\u6e0a\u660e \u5927\u4f6c\u6709\u8bdd\u8bf4 : 2021-7-31 00:54<br \/>  \u7f16\u8bd1\u540e\u62a5\u9519error: linking with `cc` failed: exit status: 1<br \/>  \u8bf7\u95ee\u8be5\u600e\u4e48\u89e3\u51b3<\/p>\n<p> \u5148\u770b\u770b \/usr\/bin \u91cc\u6709\u6ca1\u6709\u5bf9\u5e94\u7684cross-compiler<br \/>  \u6ca1\u6709\u7684\u8bdd\u5f97\u88c5\u4e00\u4e0b\uff0c\u6bd4\u5982 apt install arm-linux-gnueabihf-ld<\/p>\n<p>  \u7136\u540e\u5728cargo\u914d\u7f6e\u6587\u4ef6\u91cc(~\/.cargo\/config)\u91cc\u9762\u7ed9\u5bf9\u5e94\u7684target\u6307\u5b9alinker:<\/p>\n<p>  linker = &quot;arm-linux-gnueabihf-ld&quot;<\/p>\n<p>  ==========<br \/>  \u8fd8\u662f\u7528cross\u5427\uff0c\u6bd4\u8f83\u65b9\u4fbf<br \/>  cargo install cross<br \/>  cross build &#8211;release $target\t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>\u9676\u6e0a\u660e<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : \t<\/p>\n<h3><\/h3>\n<p>  \t\tdunce \u5927\u4f6c\u6709\u8bdd\u8bf4 : 2021-7-31 02:04<br \/>  \u5148\u770b\u770b \/usr\/bin \u91cc\u6709\u6ca1\u6709\u5bf9\u5e94\u7684cross-compiler<br \/>  \u6ca1\u6709\u7684\u8bdd\u5f97\u88c5\u4e00\u4e0b\uff0c\u6bd4\u5982 apt install arm-linux-gnueabih &#8230;<\/p>\n<p> aarch64\u5e73\u53f0\u7f16\u8bd1 release\u7248\u672c\u7684realm\uff0cspeedtest\u6d4b\u901f\u4f1a\u628a\u6574\u4e2aCPU\u4f1a\u8dd1\u6ee1<br \/>  \u4e0d\u6562\u7528\uff0c\u53cd\u800c\u6ca1\u6709\u4f18\u5316\u7684realm\u4e0d\u4f1a\u6709\u8fd9\u4e2a\u95ee\u9898\uff0c<br \/>  \u5f53\u7136\uff0c\u6211\u5728X86\u5e73\u53f0\u6d4b\u8bd5\u7f16\u8bd1release\u662f\u6ca1\u6709\u8fd9\u4e2a\u95ee\u9898<br \/>  \u6240\u4ee5\u6211\u89c9\u5f97arm\u673a\u5668\u4e0erealm\u517c\u5bb9\u6027\u6709\u95ee\u9898\t\t\t  <\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u9676\u6e0a\u660e \u5927\u4f6c\u6709\u8bdd\u8bf4 : 2021-&hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[],"tags":[],"_links":{"self":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/526930"}],"collection":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=526930"}],"version-history":[{"count":0,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/526930\/revisions"}],"wp:attachment":[{"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=526930"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=526930"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=526930"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}