rust-cross / cargo-zigbuild

Compile Cargo project with zig as linker
MIT License
1.59k stars 56 forks source link

`note: error: unsupported linker arg: -znoexecstack` #93

Closed GregoryConrad closed 1 year ago

GregoryConrad commented 1 year ago

This error just started popping up in my CI several days ago after not seeing it before. I noticed 0.16.0 was released recently, but based on the changelog this issue looks unrelated. I just wanted to check here, but I am guessing this is just a missing linker arg over in zig and I should open an issue there?


2023-02-20T10:26:48.9582960Z error: linking with `/home/runner/.cache/cargo-zigbuild/0.16.0/zigcc-aarch64-unknown-linux-gnu.sh` failed: exit status: 1
2023-02-20T10:26:48.9583350Z   |
2023-02-20T10:26:48.9637380Z   = note: "/home/runner/.cache/cargo-zigbuild/0.16.0/zigcc-aarch64-unknown-linux-gnu.sh" "-Wl,--version-script=/tmp/rustceSg9YK/list" "/tmp/rustceSg9YK/symbols.o" "/home/runner/work/mimir/mimir/target/aarch64-unknown-linux-gnu/release/deps/embedded_milli.embedded_milli.4606c769-cgu.0.rcgu.o" "/home/runner/work/mimir/mimir/target/aarch64-unknown-linux-gnu/release/deps/embedded_milli.embedded_milli.4606c769-cgu.1.rcgu.o" "/home/runner/work/mimir/mimir/target/aarch64-unknown-linux-gnu/release/deps/embedded_milli.embedded_milli.4606c769-cgu.10.rcgu.o" "/home/runner/work/mimir/mimir/target/aarch64-unknown-linux-gnu/release/deps/embedded_milli.embedded_milli.4606c769-cgu.11.rcgu.o" "/home/runner/work/mimir/mimir/target/aarch64-unknown-linux-gnu/release/deps/embedded_milli.embedded_milli.4606c769-cgu.12.rcgu.o" "/home/runner/work/mimir/mimir/target/aarch64-unknown-linux-gnu/release/deps/embedded_milli.embedded_milli.4606c769-cgu.13.rcgu.o" "/home/runner/work/mimir/mimir/target/aarch64-unknown-linux-gnu/release/deps/embedded_milli.embedded_milli.4606c769-cgu.14.rcgu.o" "/home/runner/work/mimir/mimir/target/aarch64-unknown-linux-gnu/release/deps/embedded_milli.embedded_milli.4606c769-cgu.15.rcgu.o" "/home/runner/work/mimir/mimir/target/aarch64-unknown-linux-gnu/release/deps/embedded_milli.embedded_milli.4606c769-cgu.2.rcgu.o" "/home/runner/work/mimir/mimir/target/aarch64-unknown-linux-gnu/release/deps/embedded_milli.embedded_milli.4606c769-cgu.3.rcgu.o" "/home/runner/work/mimir/mimir/target/aarch64-unknown-linux-gnu/release/deps/embedded_milli.embedded_milli.4606c769-cgu.4.rcgu.o" "/home/runner/work/mimir/mimir/target/aarch64-unknown-linux-gnu/release/deps/embedded_milli.embedded_milli.4606c769-cgu.5.rcgu.o" "/home/runner/work/mimir/mimir/target/aarch64-unknown-linux-gnu/release/deps/embedded_milli.embedded_milli.4606c769-cgu.6.rcgu.o" "/home/runner/work/mimir/mimir/target/aarch64-unknown-linux-gnu/release/deps/embedded_milli.embedded_milli.4606c769-cgu.7.rcgu.o" "/home/runner/work/mimir/mimir/target/aarch64-unknown-linux-gnu/release/deps/embedded_milli.embedded_milli.4606c769-cgu.8.rcgu.o" "/home/runner/work/mimir/mimir/target/aarch64-unknown-linux-gnu/release/deps/embedded_milli.embedded_milli.4606c769-cgu.9.rcgu.o" "/home/runner/work/mimir/mimir/target/aarch64-unknown-linux-gnu/release/deps/embedded_milli.z7a85olpne1xt4u.rcgu.o" "-Wl,--as-needed" "-L" "/home/runner/work/mimir/mimir/target/aarch64-unknown-linux-gnu/release/deps" "-L" "/home/runner/work/mimir/mimir/target/release/deps" "-L" "/home/runner/work/mimir/mimir/target/aarch64-unknown-linux-gnu/release/build/dart-sys-e54c42564856e8e7/out" "-L" "/home/runner/work/mimir/mimir/target/aarch64-unknown-linux-gnu/release/build/zstd-sys-024b340c35f45352/out" "-L" "/home/runner/work/mimir/mimir/target/aarch64-unknown-linux-gnu/release/build/lmdb-rkv-sys-383c4f700aef444b/out" "-L" "/home/runner/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/aarch64-unknown-linux-gnu/lib" "-Wl,-Bstatic" "/home/runner/work/mimir/mimir/target/aarch64-unknown-linux-gnu/release/deps/libmilli-78889ae32779a938.rlib" "/home/runner/work/mimir/mimir/target/aarch64-unknown-linux-gnu/release/deps/libgeoutils-661c11c91e161d19.rlib" "/home/runner/work/mimir/mimir/target/aarch64-unknown-linux-gnu/release/deps/libsmallstr-20034d91546abb84.rlib" "/home/runner/work/mimir/mimir/target/aarch64-unknown-linux-gnu/release/deps/libflatten_serde_json-c5ef72c2de5b1a91.rlib" "/home/runner/work/mimir/mimir/target/aarch64-unknown-linux-gnu/release/deps/libjson_depth_checker-44a5b8d9508590a3.rlib" "/home/runner/work/mimir/mimir/target/aarch64-unknown-linux-gnu/release/deps/libuuid-3ec480abaa19c09a.rlib" "/home/runner/work/mimir/mimir/target/aarch64-unknown-linux-gnu/release/deps/liblogging_timer-f45ee5f70de9b290.rlib" "/home/runner/work/mimir/mimir/target/aarch64-unknown-linux-gnu/release/deps/libdeserr-2fc052003ed114db.rlib" "/home/runner/work/mimir/mimir/target/aarch64-unknown-linux-gnu/release/deps/libserde_cs-7754441890ffe928.rlib" "/home/runner/work/mimir/mimir/target/aarch64-unknown-linux-gnu/release/deps/libstrsim-7f6570c3a031564c.rlib" "/home/runner/work/mimir/mimir/target/aarch64-unknown-linux-gnu/release/deps/libfutures-eb2516d7b7026163.rlib" "/home/runner/work/mimir/mimir/target/aarch64-unknown-linux-gnu/release/deps/libfutures_executor-e260532ace9c599b.rlib" "/home/runner/work/mimir/mimir/target/aarch64-unknown-linux-gnu/release/deps/libactix_web-d74d559635019dce.rlib" "/home/runner/work/mimir/mimir/target/aarch64-unknown-linux-gnu/release/deps/libcookie-9cb8c4c510f4e897.rlib" "/home/runner/work/mimir/mimir/target/aarch64-unknown-linux-gnu/release/deps/liburl-789df5cd9c8ca4af.rlib" "/home/runner/work/mimir/mimir/target/aarch64-unknown-linux-gnu/release/deps/libidna-c82cd1bc9a6e311a.rlib" "/home/runner/work/mimir/mimir/target/aarch64-unknown-linux-gnu/release/deps/libunicode_bidi-0841a0bc31edae52.rlib" "/home/runner/work/mimir/mimir/target/aarch64-unknown-linux-gnu/release/deps/libserde_urlencoded-53b6a48e00370ebf.rlib" "/home/runner/work/mimir/mimir/target/aarch64-unknown-linux-gnu/release/deps/libform_urlencoded-8359707928fda0c6.rlib" "/home/runner/work/mimir/mimir/target/aarch64-unknown-linux-gnu/release/deps/libactix_server-2e305fa233105cea.rlib" "/home/runner/work/mimir/mimir/target/aarch64-unknown-linux-gnu/release/deps/libactix_router-e3fe80d444a435ce.rlib" "/home/runner/work/mimir/mimir/target/aarch64-unknown-linux-gnu/release/deps/libactix_http-b9df2f0049b97f10.rlib" "/home/runner/work/mimir/mimir/target/aarch64-unknown-linux-gnu/release/deps/librand-2e8b7e98e4b987ac.rlib" "/home/runner/work/mimir/mimir/target/aarch64-unknown-linux-gnu/release/deps/librand_chacha-8ca34b7ed0798968.rlib" "/home/runner/work/mimir/mimir/target/aarch64-unknown-linux-gnu/release/deps/libppv_lite86-a1e6c3a0f800c9a0.rlib" "/home/runner/work/mimir/mimir/target/aarch64-unknown-linux-gnu/release/deps/librand_core-097389585294ecf9.rlib" "/home/runner/work/mimir/mimir/target/aarch64-unknown-linux-gnu/release/deps/libhttparse-1f79e668066630cd.rlib" "/home/runner/work/mimir/mimir/target/aarch64-unknown-linux-gnu/release/deps/libbrotli-dcd2b3d9cc686e1e.rlib" "/home/runner/work/mimir/mimir/target/aarch64-unknown-linux-gnu/release/deps/libbrotli_decompressor-faf9124717f56c6b.rlib" "/home/runner/work/mimir/mimir/target/aarch64-unknown-linux-gnu/release/deps/liballoc_stdlib-23a3ca9094988f83.rlib" "/home/runner/work/mimir/mimir/target/aarch64-unknown-linux-gnu/release/deps/liballoc_no_stdlib-12b2a21dca7bc47c.rlib" "/home/runner/work/mimir/mimir/target/aarch64-unknown-linux-gnu/release/deps/libhttpdate-8f3c257dcd9fbdf1.rlib" "/home/runner/work/mimir/mimir/target/aarch64-unknown-linux-gnu/release/deps/libsha1-22ca9cbaa560c73d.rlib" "/home/runner/work/mimir/mimir/target/aarch64-unknown-linux-gnu/release/deps/libdigest-e19ace176289ab94.rlib" "/home/runner/work/mimir/mimir/target/aarch64-unknown-linux-gnu/release/deps/libblock_buffer-738b3e2935103632.rlib" "/home/runner/work/mimir/mimir/target/aarch64-unknown-linux-gnu/release/deps/libcrypto_common-f23407b32b2284fe.rlib" "/home/runner/work/mimir/mimir/target/aarch64-unknown-linux-gnu/release/deps/libgeneric_array-1fe0fbfefd75d644.rlib" "/home/runner/work/mimir/mimir/target/aarch64-unknown-linux-gnu/release/deps/libtypenum-c94d8e268410f7de.rlib" "/home/runner/work/mimir/mimir/target/aarch64-unknown-linux-gnu/release/deps/libbase64-d605c674f818b081.rlib" "/home/runner/work/mimir/mimir/target/aarch64-unknown-linux-gnu/release/deps/liblocal_channel-a053b5e69c971b63.rlib" "/home/runner/work/mimir/mimir/target/aarch64-unknown-linux-gnu/release/deps/libbytestring-279794d4fbeabe15.rlib" "/home/runner/work/mimir/mimir/target/aarch64-unknown-linux-gnu/release/deps/liblanguage_tags-29de741bfb253c4a.rlib" "/home/runner/work/mimir/mimir/target/aarch64-unknown-linux-gnu/release/deps/libmime-1551e822f3118bb1.rlib" "/home/runner/work/mimir/mimir/target/aarch64-unknown-linux-gnu/release/deps/libpercent_encoding-398a47023ca3633e.rlib" "/home/runner/work/mimir/mimir/target/aarch64-unknown-linux-gnu/release/deps/libh2-3b7197fbd7caca01.rlib" "/home/runner/work/mimir/mimir/target/aarch64-unknown-linux-gnu/release/deps/libfutures_util-dde012da63b90dc8.rlib" "/home/runner/work/mimir/mimir/target/aarch64-unknown-linux-gnu/release/deps/libfutures_io-34594296af6bb818.rlib" "/home/runner/work/mimir/mimir/target/aarch64-unknown-linux-gnu/release/deps/libslab-f79dac7fab23e45f.rlib" "/home/runner/work/mimir/mimir/target/aarch64-unknown-linux-gnu/release/deps/libfutures_channel-28966328960166dd.rlib" "/home/runner/work/mimir/mimir/target/aarch64-unknown-linux-gnu/release/deps/libfutures_task-19260abc4d6e3799.rlib" "/home/runner/work/mimir/mimir/target/aarch64-unknown-linux-gnu/release/deps/libpin_utils-4471ca8522c257d5.rlib" "/home/runner/work/mimir/mimir/target/aarch64-unknown-linux-gnu/release/deps/libzstd-6e0411994ee74b90.rlib" "/home/runner/work/mimir/mimir/target/aarch64-unknown-linux-gnu/release/deps/libzstd_safe-7ea5cc8eee8f1bd2.rlib" "/home/runner/work/mimir/mimir/target/aarch64-unknown-linux-gnu/release/deps/libzstd_sys-adb338e985feb3ca.rlib" "/home/runner/work/mimir/mimir/target/aarch64-unknown-linux-gnu/release/deps/libactix_service-b81094f1108a3fa4.rlib" "/home/runner/work/mimir/mimir/target/aarch64-unknown-linux-gnu/release/deps/libactix_codec-2cb1b3a126f35f0d.rlib" "/home/runner/work/mimir/mimir/target/aarch64-unknown-linux-gnu/release/deps/libtokio_util-491ae972c858b1d7.rlib" "/home/runner/work/mimir/mimir/target/aarch64-unknown-linux-gnu/release/deps/libtracing-cbf6be295b13e356.rlib" "/home/runner/work/mimir/mimir/target/aarch64-unknown-linux-gnu/release/deps/libtracing_core-1c7ba3b060556ec1.rlib" "/home/runner/work/mimir/mimir/target/aarch64-unknown-linux-gnu/release/deps/libfutures_sink-ca67d0e595d2623e.rlib" "/home/runner/work/mimir/mimir/target/aarch64-unknown-linux-gnu/release/deps/libactix_utils-e38e19fa34048447.rlib" "/home/runner/work/mimir/mimir/target/aarch64-unknown-linux-gnu/release/deps/liblocal_waker-d936d12b1ab2d21a.rlib" "/home/runner/work/mimir/mimir/target/aarch64-unknown-linux-gnu/release/deps/libactix_rt-f7318cd1a360360d.rlib" "/home/runner/work/mimir/mimir/target/aarch64-unknown-linux-gnu/release/deps/libtokio-7b42cf394cf55764.rlib" "/home/runner/work/mimir/mimir/target/aarch64-unknown-linux-gnu/release/deps/libsignal_hook_registry-11e8cea65cfe9932.rlib" "/home/runner/work/mimir/mimir/target/aarch64-unknown-linux-gnu/release/deps/libsocket2-c373f88721d12f45.rlib" "/home/runner/work/mimir/mimir/target/aarch64-unknown-linux-gnu/release/deps/libmio-9065f23cff9d54a6.rlib" "/home/runner/work/mimir/mimir/target/aarch64-unknown-linux-gnu/release/deps/libpin_project_lite-b364139afe9d3ede.rlib" "/home/runner/work/mimir/mimir/target/aarch64-unknown-linux-gnu/release/deps/libfutures_core-20d5614be63a5998.rlib" "/home/runner/work/mimir/mimir/target/aarch64-unknown-linux-gnu/release/deps/libhttp-1a8367871701770f.rlib" "/home/runner/work/mimir/mimir/target/aarch64-unknown-linux-gnu/release/deps/libbytes-251ed37d830dffdb.rlib" "/home/runner/work/mimir/mimir/target/aarch64-unknown-linux-gnu/release/deps/libfnv-ea960c8c78180c6b.rlib" "/home/runner/work/mimir/mimir/target/aarch64-unknown-linux-gnu/release/deps/libsmartstring-2292e1a10ead4893.rlib" "/home/runner/work/mimir/mimir/target/aarch64-unknown-linux-gnu/release/deps/libstatic_assertions-44b042bc47d255c8.rlib" "/home/runner/work/mimir/mimir/target/aarch64-unknown-linux-gnu/release/deps/libmemmap2-5f2f0c2fd79a7e09.rlib" "/home/runner/work/mimir/mimir/target/aarch64-unknown-linux-gnu/release/deps/libfilter_parser-126f4dba4564794c.rlib" "/home/runner/work/mimir/mimir/target/aarch64-unknown-linux-gnu/release/deps/libnom_locate-39633e63ce630d45.rlib" "/home/runner/work/mimir/mimir/target/aarch64-unknown-linux-gnu/release/deps/libbytecount-7cb7d2133222d1e5.rlib" "/home/runner/work/mimir/mimir/target/aarch64-unknown-linux-gnu/release/deps/libnom-a728d0934ee8fddc.rlib" "/home/runner/work/mimir/mimir/target/aarch64-unknown-linux-gnu/release/deps/libitertools-49bf16cb4c361e3d.rlib" "/home/runner/work/mimir/mimir/target/aarch64-unknown-linux-gnu/release/deps/liblevenshtein_automata-9430184188409fd1.rlib" "/home/runner/work/mimir/mimir/target/aarch64-unknown-linux-gnu/release/deps/libcharabia-93167e8a55737856.rlib" "/home/runner/work/mimir/mimir/target/aarch64-unknown-linux-gnu/release/deps/libirg_kvariants-09d8383936386e64.rlib" "/home/runner/work/mimir/mimir/target/aarch64-unknown-linux-gnu/release/deps/libwhatlang-35aa15071631ab65.rlib" "/home/runner/work/mimir/mimir/target/aarch64-unknown-linux-gnu/release/deps/liblindera-903dade768694117.rlib" "/home/runner/work/mimir/mimir/target/aarch64-unknown-linux-gnu/release/deps/libunicode_blocks-d67154f0591d9f43.rlib" "/home/runner/work/mimir/mimir/target/aarch64-unknown-linux-gnu/release/deps/liblindera_dictionary-2899fe582c5cd83a.rlib" "/home/runner/work/mimir/mimir/target/aarch64-unknown-linux-gnu/release/deps/liblindera_ko_dic-e86b2a8644b1cb35.rlib" "/home/runner/work/mimir/mimir/target/aarch64-unknown-linux-gnu/release/deps/liblindera_ipadic-2b5373f8d874b176.rlib" "/home/runner/work/mimir/mimir/target/aarch64-unknown-linux-gnu/release/deps/libkanaria-6c71880d7ef83852.rlib" "/home/runner/work/mimir/mimir/target/aarch64-unknown-linux-gnu/release/deps/libbitflags-8cbf5a36997f93b3.rlib" "/home/runner/work/mimir/mimir/target/aarch64-unknown-linux-gnu/release/deps/liblindera_unidic_builder-b4aa5972abe3b258.rlib" "/home/runner/work/mimir/mimir/target/aarch64-unknown-linux-gnu/release/deps/liblindera_ko_dic_builder-b1a754ab594042d3.rlib" "/home/runner/work/mimir/mimir/target/aarch64-unknown-linux-gnu/release/deps/liblindera_ipadic_builder-f4b56349bd04a61d.rlib" "/home/runner/work/mimir/mimir/target/aarch64-unknown-linux-gnu/release/deps/liblindera_compress-109a6f77a214be05.rlib" "/home/runner/work/mimir/mimir/target/aarch64-unknown-linux-gnu/release/deps/libencoding_rs_io-d62aa350952390ea.rlib" "/home/runner/work/mimir/mimir/target/aarch64-unknown-linux-gnu/release/deps/liblindera_cc_cedict_builder-533cda6169124999.rlib" "/home/runner/work/mimir/mimir/target/aarch64-unknown-linux-gnu/release/deps/liblindera_decompress-0753789e9406b1d4.rlib" "/home/runner/work/mimir/mimir/target/aarch64-unknown-linux-gnu/release/deps/libflate2-4088203268299daf.rlib" "/home/runner/work/mimir/mimir/target/aarch64-unknown-linux-gnu/release/deps/libminiz_oxide-64d1f48c0037dc66.rlib" "/home/runner/work/mimir/mimir/target/aarch64-unknown-linux-gnu/release/deps/libadler-ff9d93279e48eeca.rlib" "/home/runner/work/mimir/mimir/target/aarch64-unknown-linux-gnu/release/deps/libcrc32fast-eb89a295305efd3d.rlib" "/home/runner/work/mimir/mimir/target/aarch64-unknown-linux-gnu/release/deps/libglob-380089541f3a84db.rlib" "/home/runner/work/mimir/mimir/target/aarch64-unknown-linux-gnu/release/deps/libcsv-ca7b1d607dbde52f.rlib" "/home/runner/work/mimir/mimir/target/aarch64-unknown-linux-gnu/release/deps/libcsv_core-94b866383e246b02.rlib" "/home/runner/work/mimir/mimir/target/aarch64-unknown-linux-gnu/release/deps/liblindera_core-e858c0815e19aee9.rlib" "/home/runner/work/mimir/mimir/target/aarch64-unknown-linux-gnu/release/deps/libyada-1d8c8ea992b1c90c.rlib" "/home/runner/work/mimir/mimir/target/aarch64-unknown-linux-gnu/release/deps/libencoding_rs-e5fb507bfc3bbead.rlib" "/home/runner/work/mimir/mimir/target/aarch64-unknown-linux-gnu/release/deps/libunicode_segmentation-6099a0f352703395.rlib" "/home/runner/work/mimir/mimir/target/aarch64-unknown-linux-gnu/release/deps/libjieba_rs-4641b9c2d9d255e6.rlib" "/home/runner/work/mimir/mimir/target/aarch64-unknown-linux-gnu/release/deps/libphf-f58d92372d0b0ff7.rlib" "/home/runner/work/mimir/mimir/target/aarch64-unknown-linux-gnu/release/deps/libphf_shared-bff673b0348c0100.rlib" "/home/runner/work/mimir/mimir/target/aarch64-unknown-linux-gnu/release/deps/libsiphasher-72f038c56cf7a001.rlib" "/home/runner/work/mimir/mimir/target/aarch64-unknown-linux-gnu/release/deps/libfxhash-5dc26500d7e0c0f3.rlib" "/home/runner/work/mimir/mimir/target/aarch64-unknown-linux-gnu/release/deps/libregex-3b3069af791e55e2.rlib" "/home/runner/work/mimir/mimir/target/aarch64-unknown-linux-gnu/release/deps/libaho_corasick-3460c881dc7b21d0.rlib" "/home/runner/work/mimir/mimir/target/aarch64-unknown-linux-gnu/release/deps/libmemchr-48668ddc57a206ff.rlib" "/home/runner/work/mimir/mimir/target/aarch64-unknown-linux-gnu/release/deps/libregex_syntax-4461fc22edf1ebde.rlib" "/home/runner/work/mimir/mimir/target/aarch64-unknown-linux-gnu/release/deps/libcedarwood-c2318febc5162ae8.rlib" "/home/runner/work/mimir/mimir/target/aarch64-unknown-linux-gnu/release/deps/libslice_group_by-954129982da446a8.rlib" "/home/runner/work/mimir/mimir/target/aarch64-unknown-linux-gnu/release/deps/libunicode_normalization-37d1787f8841a802.rlib" "/home/runner/work/mimir/mimir/target/aarch64-unknown-linux-gnu/release/deps/libtinyvec-0ac1f75cf9612ea7.rlib" "/home/runner/work/mimir/mimir/target/aarch64-unknown-linux-gnu/release/deps/libtinyvec_macros-aa1c4a407894231f.rlib" "/home/runner/work/mimir/mimir/target/aarch64-unknown-linux-gnu/release/deps/libpinyin-b450fd8020c19d06.rlib" "/home/runner/work/mimir/mimir/target/aarch64-unknown-linux-gnu/release/deps/libdeunicode-40139e0e0b57193b.rlib" "/home/runner/work/mimir/mimir/target/aarch64-unknown-linux-gnu/release/deps/libtime-688404d3caeab795.rlib" "/home/runner/work/mimir/mimir/target/aarch64-unknown-linux-gnu/release/deps/libtime_core-5d3088db85ce135c.rlib" "/home/runner/work/mimir/mimir/target/aarch64-unknown-linux-gnu/release/deps/librstar-1b8f25727c8081c3.rlib" "/home/runner/work/mimir/mimir/target/aarch64-unknown-linux-gnu/release/deps/libheapless-1ce261315331c306.rlib" "/home/runner/work/mimir/mimir/target/aarch64-unknown-linux-gnu/release/deps/libstable_deref_trait-da082ac621a41ef2.rlib" "/home/runner/work/mimir/mimir/target/aarch64-unknown-linux-gnu/release/deps/libhash32-b092908333d95416.rlib" "/home/runner/work/mimir/mimir/target/aarch64-unknown-linux-gnu/release/deps/libordered_float-a468702bf46dc179.rlib" "/home/runner/work/mimir/mimir/target/aarch64-unknown-linux-gnu/release/deps/libroaring-f2d256debc2fdf05.rlib" "/home/runner/work/mimir/mimir/target/aarch64-unknown-linux-gnu/release/deps/libretain_mut-de41fd342cc2a3e9.rlib" "/home/runner/work/mimir/mimir/target/aarch64-unknown-linux-gnu/release/deps/libfst-7e5547fad01447c0.rlib" "/home/runner/work/mimir/mimir/target/aarch64-unknown-linux-gnu/release/deps/librayon-e1ca8ccc0c792079.rlib" "/home/runner/work/mimir/mimir/target/aarch64-unknown-linux-gnu/release/deps/librayon_core-d318269e7348b48c.rlib" "/home/runner/work/mimir/mimir/target/aarch64-unknown-linux-gnu/release/deps/libcrossbeam_deque-f6a7c479aa68887b.rlib" "/home/runner/work/mimir/mimir/target/aarch64-unknown-linux-gnu/release/deps/libcrossbeam_epoch-f75534b00586697a.rlib" "/home/runner/work/mimir/mimir/target/aarch64-unknown-linux-gnu/release/deps/libmemoffset-1bd3289742916692.rlib" "/home/runner/work/mimir/mimir/target/aarch64-unknown-linux-gnu/release/deps/libcrossbeam_channel-200c3a7e31a65fc3.rlib" "/home/runner/work/mimir/mimir/target/aarch64-unknown-linux-gnu/release/deps/libeither-da7b83e210b70f0f.rlib" "/home/runner/work/mimir/mimir/target/aarch64-unknown-linux-gnu/release/deps/libheed-5f9b7db2bf58b7f2.rlib" "/home/runner/work/mimir/mimir/target/aarch64-unknown-linux-gnu/release/deps/libpage_size-b3890b7d48d31b3f.rlib" "/home/runner/work/mimir/mimir/target/aarch64-unknown-linux-gnu/release/deps/libheed_types-52afca5d55623a85.rlib" "/home/runner/work/mimir/mimir/target/aarch64-unknown-linux-gnu/release/deps/libbincode-d1fadac8b1c51d7c.rlib" "/home/runner/work/mimir/mimir/target/aarch64-unknown-linux-gnu/release/deps/libzerocopy-78992fde7c5434d0.rlib" "/home/runner/work/mimir/mimir/target/aarch64-unknown-linux-gnu/release/deps/libheed_traits-16e57cba5b0304fc.rlib" "/home/runner/work/mimir/mimir/target/aarch64-unknown-linux-gnu/release/deps/liblmdb_sys-67456595fb6148f5.rlib" "/home/runner/work/mimir/mimir/target/aarch64-unknown-linux-gnu/release/deps/libsynchronoise-9f28925b5970a151.rlib" "/home/runner/work/mimir/mimir/target/aarch64-unknown-linux-gnu/release/deps/libcrossbeam_queue-1bcd26ed55432d86.rlib" "/home/runner/work/mimir/mimir/target/aarch64-unknown-linux-gnu/release/deps/libcrossbeam_utils-b7a0236075c7e862.rlib" "/home/runner/work/mimir/mimir/target/aarch64-unknown-linux-gnu/release/deps/libthiserror-21dba7be049afe54.rlib" "/home/runner/work/mimir/mimir/target/aarch64-unknown-linux-gnu/release/deps/libbimap-bdf8aeb3fa36a7f1.rlib" "/home/runner/work/mimir/mimir/target/aarch64-unknown-linux-gnu/release/deps/libobkv-54326b65e467272d.rlib" "/home/runner/work/mimir/mimir/target/aarch64-unknown-linux-gnu/release/deps/libserde_json-9fdf19a8656dd56a.rlib" "/home/runner/work/mimir/mimir/target/aarch64-unknown-linux-gnu/release/deps/libryu-31578f8cf0e7fb46.rlib" "/home/runner/work/mimir/mimir/target/aarch64-unknown-linux-gnu/release/deps/libitoa-d792c45add243025.rlib" "/home/runner/work/mimir/mimir/target/aarch64-unknown-linux-gnu/release/deps/libindexmap-0ee49570b9453715.rlib" "/home/runner/work/mimir/mimir/target/aarch64-unknown-linux-gnu/release/deps/libhashbrown-00eb73b5a78728b4.rlib" "/home/runner/work/mimir/mimir/target/aarch64-unknown-linux-gnu/release/deps/libahash-ab7b208ebee77e91.rlib" "/home/runner/work/mimir/mimir/target/aarch64-unknown-linux-gnu/release/deps/libgetrandom-2fe7f14ed7b2fdc6.rlib" "/home/runner/work/mimir/mimir/target/aarch64-unknown-linux-gnu/release/deps/libonce_cell-6b066bd6c2f68f34.rlib" "/home/runner/work/mimir/mimir/target/aarch64-unknown-linux-gnu/release/deps/libserde-2af62a785b144229.rlib" "/home/runner/work/mimir/mimir/target/aarch64-unknown-linux-gnu/release/deps/libgrenad-9ef1af9b06caa898.rlib" "/home/runner/work/mimir/mimir/target/aarch64-unknown-linux-gnu/release/deps/libtempfile-cfd2692e2c99c556.rlib" "/home/runner/work/mimir/mimir/target/aarch64-unknown-linux-gnu/release/deps/libfastrand-68763ce593761666.rlib" "/home/runner/work/mimir/mimir/target/aarch64-unknown-linux-gnu/release/deps/libremove_dir_all-d5ea9894f67de237.rlib" "/home/runner/work/mimir/mimir/target/aarch64-unknown-linux-gnu/release/deps/libbyteorder-011a4162e1f64873.rlib" "/home/runner/work/mimir/mimir/target/aarch64-unknown-linux-gnu/release/deps/libflutter_rust_bridge-1fdb61ed748f94a0.rlib" "/home/runner/work/mimir/mimir/target/aarch64-unknown-linux-gnu/release/deps/libbytemuck-d6f77312726ed689.rlib" "/home/runner/work/mimir/mimir/target/aarch64-unknown-linux-gnu/release/deps/libthreadpool-c4e13ee51ae95d32.rlib" "/home/runner/work/mimir/mimir/target/aarch64-unknown-linux-gnu/release/deps/libnum_cpus-0a3a1e063d35c03a.rlib" "/home/runner/work/mimir/mimir/target/aarch64-unknown-linux-gnu/release/deps/libparking_lot-7bfd77f4971cf5c8.rlib" "/home/runner/work/mimir/mimir/target/aarch64-unknown-linux-gnu/release/deps/libparking_lot_core-bc8763646b9d8059.rlib" "/home/runner/work/mimir/mimir/target/aarch64-unknown-linux-gnu/release/deps/libsmallvec-5c0eb257e2506b43.rlib" "/home/runner/work/mimir/mimir/target/aarch64-unknown-linux-gnu/release/deps/liblock_api-29bb290fc856a6a0.rlib" "/home/runner/work/mimir/mimir/target/aarch64-unknown-linux-gnu/release/deps/libscopeguard-9945dbf5df0481ed.rlib" "/home/runner/work/mimir/mimir/target/aarch64-unknown-linux-gnu/release/deps/liblazy_static-0f316e715724b586.rlib" "/home/runner/work/mimir/mimir/target/aarch64-unknown-linux-gnu/release/deps/liballo_isolate-5e2e1b417b7d2363.rlib" "/home/runner/work/mimir/mimir/target/aarch64-unknown-linux-gnu/release/deps/libchrono-fcf3a25ecccf5417.rlib" "/home/runner/work/mimir/mimir/target/aarch64-unknown-linux-gnu/release/deps/libiana_time_zone-007f55d25a0df3e5.rlib" "/home/runner/work/mimir/mimir/target/aarch64-unknown-linux-gnu/release/deps/libnum_integer-f1c189d69195ff2f.rlib" "/home/runner/work/mimir/mimir/target/aarch64-unknown-linux-gnu/release/deps/libnum_traits-baac0e439d904533.rlib" "/home/runner/work/mimir/mimir/target/aarch64-unknown-linux-gnu/release/deps/libtime-6e9026502c544c0b.rlib" "/home/runner/work/mimir/mimir/target/aarch64-unknown-linux-gnu/release/deps/liblibc-9fcac05ffa5478eb.rlib" "/home/runner/work/mimir/mimir/target/aarch64-unknown-linux-gnu/release/deps/libatomic-7870f163ea3092cd.rlib" "/home/runner/work/mimir/mimir/target/aarch64-unknown-linux-gnu/release/deps/liblog-241e85a0d774d7ca.rlib" "/home/runner/work/mimir/mimir/target/aarch64-unknown-linux-gnu/release/deps/libcfg_if-7dd256e4d0f319f2.rlib" "/home/runner/work/mimir/mimir/target/aarch64-unknown-linux-gnu/release/deps/libdart_sys-d682d8d52bb23e02.rlib" "/home/runner/work/mimir/mimir/target/aarch64-unknown-linux-gnu/release/deps/libanyhow-184e7dd6b4db2030.rlib" "/home/runner/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/aarch64-unknown-linux-gnu/lib/libstd-349359eac2fa563a.rlib" "/home/runner/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/aarch64-unknown-linux-gnu/lib/libpanic_unwind-31b7d9c39d332e7e.rlib" "/home/runner/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/aarch64-unknown-linux-gnu/lib/libobject-e4755e7cc0cf32f6.rlib" "/home/runner/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/aarch64-unknown-linux-gnu/lib/libmemchr-c59c0931456a5895.rlib" "/home/runner/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/aarch64-unknown-linux-gnu/lib/libaddr2line-2432e11c5ed85293.rlib" "/home/runner/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/aarch64-unknown-linux-gnu/lib/libgimli-50b014f97ec65d7d.rlib" "/home/runner/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/aarch64-unknown-linux-gnu/lib/librustc_demangle-468eeeab1fbb28f5.rlib" "/home/runner/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/aarch64-unknown-linux-gnu/lib/libstd_detect-79bb703ad54035f1.rlib" "/home/runner/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/aarch64-unknown-linux-gnu/lib/libhashbrown-c9ca678db2065aa7.rlib" "/home/runner/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/aarch64-unknown-linux-gnu/lib/libminiz_oxide-dea3338d69b31db5.rlib" "/home/runner/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/aarch64-unknown-linux-gnu/lib/libadler-2026069c2dbb325f.rlib" "/home/runner/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/aarch64-unknown-linux-gnu/lib/librustc_std_workspace_alloc-695157849b64d0eb.rlib" "/home/runner/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/aarch64-unknown-linux-gnu/lib/libunwind-2c8634584bb07fc7.rlib" "/home/runner/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/aarch64-unknown-linux-gnu/lib/libcfg_if-c0f43e9dad65e1d1.rlib" "/home/runner/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/aarch64-unknown-linux-gnu/lib/liblibc-3e8addf800b23be6.rlib" "/home/runner/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/aarch64-unknown-linux-gnu/lib/liballoc-a086bb9c64e768ff.rlib" "/home/runner/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/aarch64-unknown-linux-gnu/lib/librustc_std_workspace_core-52080b0ee07e3678.rlib" "/home/runner/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/aarch64-unknown-linux-gnu/lib/libcore-3d08762e2121fc67.rlib" "/home/runner/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/aarch64-unknown-linux-gnu/lib/libcompiler_builtins-f3aa9c6bb7bdaf49.rlib" "-Wl,-Bdynamic" "-lgcc_s" "-lutil" "-lrt" "-lpthread" "-lm" "-ldl" "-lc" "-Wl,--eh-frame-hdr" "-Wl,-znoexecstack" "-L" "/home/runner/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/aarch64-unknown-linux-gnu/lib" "-o" "/home/runner/work/mimir/mimir/target/aarch64-unknown-linux-gnu/release/deps/libembedded_milli.so" "-Wl,--gc-sections" "-shared" "-Wl,-zrelro,-znow" "-Wl,-O1" "-nodefaultlibs"
2023-02-20T10:26:48.9671668Z   = note: error: unsupported linker arg: -znoexecstack
2023-02-20T10:26:48.9671908Z           
2023-02-20T10:26:48.9672017Z 
2023-02-20T10:26:48.9672023Z 
2023-02-20T10:26:49.0491105Z error: could not compile `embedded_milli` due to previous error
messense commented 1 year ago

Please provide a list of steps to reproduce this issue.

GregoryConrad commented 1 year ago

After all necessary dependencies installed:

# Slightly modified from my CI (basically just a `cargo zigbuild` with some extra fluff I need):

zig_build () {
    local TARGET="$1"
    local PLATFORM_NAME="$2"
    local LIBNAME="$3"
    rustup target add "$TARGET"
    cargo zigbuild --target "$TARGET" -r
    mkdir "$PLATFORM_NAME"
    cp "target/$TARGET/release/$LIBNAME" "$PLATFORM_NAME/"
}

LINUX_LIBNAME=libembedded_milli.so
zig_build aarch64-unknown-linux-gnu linux-arm64 $LINUX_LIBNAME
zig_build x86_64-unknown-linux-gnu linux-x64 $LINUX_LIBNAME

Running above script for this Cargo project: https://github.com/GregoryConrad/mimir/tree/main/packages/mimir/native

Build fails when running on Linux x86-64, compiling to both aarch64-unknown-linux-gnu and x86_64-unknown-linux-gnu.

Seems to build fine locally on macOS.

messense commented 1 year ago

Fixed in zig: https://github.com/ziglang/zig/pull/14680

jedisct1 commented 1 year ago

Until the next major release of Zig is tagged, you can (and probably should, especially for code not written in Zig) use Zig 0.10.1 instead.