Repository navigation
Description
Im using Ubuntu 22.04 on ARM64(arch64), i got this error on build
log error[E0432]: unresolved import std::arch::x86_64--> /root/.cargo/registry/src/index.crates.io-6f17d22bba15001f/kawa-0.6.7/src/protocol/utils.rs:127:32 | 127 | use std::arch::x86_64::{ | ^^^^^^ could not findx86_64inarch| ::: /root/.cargo/registry/src/index.crates.io-6f17d22bba15001f/kawa-0.6.7/src/protocol/h1/parser/primitives.rs:93:1 | 93 | compile_lookup!(pub tchar => [0x00..0x20, '('..')', '['..']', '{', '}', ',', ':'..'@', 0x7F..LAST_INVALID_CHAR]); | ---------------------------------------------------------------------------------------------------------------- in this macro invocation | = note: this error originates in the macrocompile_lookup` (in Nightly builds, run with -Z macro-backtrace for more info)
error[E0432]: unresolved import std::arch::x86_64
--> /root/.cargo/registry/src/index.crates.io-6f17d22bba15001f/kawa-0.6.7/src/protocol/utils.rs:183:32
|
183 | use std::arch::x86_64::{
| ^^^^^^ could not find x86_64 in arch
|
::: /root/.cargo/registry/src/index.crates.io-6f17d22bba15001f/kawa-0.6.7/src/protocol/h1/parser/primitives.rs:93:1
|
93 | compile_lookup!(pub tchar => [0x00..0x20, '('..')', '['..']', '{', '}', ',', ':'..'@', 0x7F..LAST_INVALID_CHAR]);
| ---------------------------------------------------------------------------------------------------------------- in this macro invocation
|
= note: this error originates in the macro compile_lookup (in Nightly builds, run with -Z macro-backtrace for more info)
error[E0432]: unresolved import std::arch::x86_64
--> /root/.cargo/registry/src/index.crates.io-6f17d22bba15001f/kawa-0.6.7/src/protocol/utils.rs:127:32
|
127 | use std::arch::x86_64::{
| ^^^^^^ could not find x86_64 in arch
|
::: /root/.cargo/registry/src/index.crates.io-6f17d22bba15001f/kawa-0.6.7/src/protocol/h1/parser/primitives.rs:117:1
|
117 | compile_lookup!(pub vchar => [0x00..0x20, 0x7F..LAST_INVALID_CHAR]);
| ------------------------------------------------------------------- in this macro invocation
|
= note: this error originates in the macro compile_lookup (in Nightly builds, run with -Z macro-backtrace for more info)
error[E0432]: unresolved import std::arch::x86_64
--> /root/.cargo/registry/src/index.crates.io-6f17d22bba15001f/kawa-0.6.7/src/protocol/utils.rs:183:32
|
183 | use std::arch::x86_64::{
| ^^^^^^ could not find x86_64 in arch
|
::: /root/.cargo/registry/src/index.crates.io-6f17d22bba15001f/kawa-0.6.7/src/protocol/h1/parser/primitives.rs:117:1
|
117 | compile_lookup!(pub vchar => [0x00..0x20, 0x7F..LAST_INVALID_CHAR]);
| ------------------------------------------------------------------- in this macro invocation
|
= note: this error originates in the macro compile_lookup (in Nightly builds, run with -Z macro-backtrace for more info)
error[E0432]: unresolved import std::arch::x86_64
--> /root/.cargo/registry/src/index.crates.io-6f17d22bba15001f/kawa-0.6.7/src/protocol/utils.rs:127:32
|
127 | use std::arch::x86_64::{
| ^^^^^^ could not find x86_64 in arch
|
::: /root/.cargo/registry/src/index.crates.io-6f17d22bba15001f/kawa-0.6.7/src/protocol/h1/parser/primitives.rs:143:1
|
143 | compile_lookup!(pub ck_char => [0x00..0x1F, ';', '=', 0x7F..LAST_INVALID_CHAR]);
| ------------------------------------------------------------------------------- in this macro invocation
|
= note: this error originates in the macro compile_lookup (in Nightly builds, run with -Z macro-backtrace for more info)
error[E0432]: unresolved import std::arch::x86_64
--> /root/.cargo/registry/src/index.crates.io-6f17d22bba15001f/kawa-0.6.7/src/protocol/utils.rs:183:32
|
183 | use std::arch::x86_64::{
| ^^^^^^ could not find x86_64 in arch
|
::: /root/.cargo/registry/src/index.crates.io-6f17d22bba15001f/kawa-0.6.7/src/protocol/h1/parser/primitives.rs:143:1
|
143 | compile_lookup!(pub ck_char => [0x00..0x1F, ';', '=', 0x7F..LAST_INVALID_CHAR]);
| ------------------------------------------------------------------------------- in this macro invocation
|
= note: this error originates in the macro compile_lookup (in Nightly builds, run with -Z macro-backtrace for more info)
error[E0432]: unresolved import std::arch::x86_64
--> /root/.cargo/registry/src/index.crates.io-6f17d22bba15001f/kawa-0.6.7/src/protocol/utils.rs:127:32
|
127 | use std::arch::x86_64::{
| ^^^^^^ could not find x86_64 in arch
|
::: /root/.cargo/registry/src/index.crates.io-6f17d22bba15001f/kawa-0.6.7/src/protocol/h1/parser/primitives.rs:144:1
|
144 | compile_lookup!(pub cv_char => [0x00..0x1F, ';', 0x7F..LAST_INVALID_CHAR]);
| -------------------------------------------------------------------------- in this macro invocation
|
= note: this error originates in the macro compile_lookup (in Nightly builds, run with -Z macro-backtrace for more info)
error[E0432]: unresolved import std::arch::x86_64
--> /root/.cargo/registry/src/index.crates.io-6f17d22bba15001f/kawa-0.6.7/src/protocol/utils.rs:183:32
|
183 | use std::arch::x86_64::{
| ^^^^^^ could not find x86_64 in arch
|
::: /root/.cargo/registry/src/index.crates.io-6f17d22bba15001f/kawa-0.6.7/src/protocol/h1/parser/primitives.rs:144:1
|
144 | compile_lookup!(pub cv_char => [0x00..0x1F, ';', 0x7F..LAST_INVALID_CHAR]);
| -------------------------------------------------------------------------- in this macro invocation
|
= note: this error originates in the macro compile_lookup (in Nightly builds, run with -Z macro-backtrace for more info)
error[E0432]: unresolved import std::arch::x86_64
--> /root/.cargo/registry/src/index.crates.io-6f17d22bba15001f/kawa-0.6.7/src/protocol/utils.rs:127:32
|
127 | use std::arch::x86_64::{
| ^^^^^^ could not find x86_64 in arch
|
::: /root/.cargo/registry/src/index.crates.io-6f17d22bba15001f/kawa-0.6.7/src/protocol/h1/parser/primitives.rs:168:1
|
168 | compile_lookup!(pub achar => [0x00..0x08, 0x0A..0x1F, 0x7F..LAST_INVALID_CHAR]);
| ------------------------------------------------------------------------------- in this macro invocation
|
= note: this error originates in the macro compile_lookup (in Nightly builds, run with -Z macro-backtrace for more info)
error[E0432]: unresolved import std::arch::x86_64
--> /root/.cargo/registry/src/index.crates.io-6f17d22bba15001f/kawa-0.6.7/src/protocol/utils.rs:183:32
|
183 | use std::arch::x86_64::{
| ^^^^^^ could not find x86_64 in arch
|
::: /root/.cargo/registry/src/index.crates.io-6f17d22bba15001f/kawa-0.6.7/src/protocol/h1/parser/primitives.rs:168:1
|
168 | compile_lookup!(pub achar => [0x00..0x08, 0x0A..0x1F, 0x7F..LAST_INVALID_CHAR]);
| ------------------------------------------------------------------------------- in this macro invocation
|
= note: this error originates in the macro compile_lookup (in Nightly builds, run with -Z macro-backtrace for more info)
For more information about this error, try rustc --explain E0432.
error: could not compile kawa (lib) due to 10 previous errors
warning: build failed, waiting for other jobs to finish...`
is it not gonna work for ARM arch? got this error on build
Activity
fcdont commentedon Sep 22, 2024
I tried default rustup and nightly, still same
Wonshtrum commentedon Sep 27, 2024
Hi, this is an ongoing issue, and not well documented: Sozu uses kawa to parse http and is accelerated by default with x86 SIMD instructions (SSE). If your target doesn't support SSE you can disable them by removing the "simd" feature of Sozu. It is currently the only default feature, so you can compile Sozu with:
shanduur commentedon Nov 15, 2024
This prevents building the docker image on ARM Mac, as the flag cannot be provided workspace-wide.
FlorentinDUBOIS commentedon Nov 15, 2024
Hello,
To me, you need to only build the crate on the
binfolder to have a working Sōzu, there is no need to build the workspace completely, and if you want to do so you could update the file bin/Cargo.toml and removing the default simd feature.Do you have tried on the Sōzu repository to do the following command?
anonkey commentedon Jan 5, 2025
there's a fix WIP #1136 you can use this branch
feat(tls): add compile-time crypto provider selection for rustls
feat(tls): add compile-time crypto provider selection for rustls
FlorentinDUBOIS commentedon Apr 30, 2026
PR #1191 does not directly fix this — the unresolved
std::arch::x86_64import is inkawa-0.6.7's SIMD code path, gated behind kawa'ssimdCargo feature. The fix needs to land either in kawa itself (gating the import oncfg(any(target_arch = "x86", target_arch = "x86_64"))) or in sozu by not enabling kawa'ssimdfeature on non-x86 targets.Workaround for ARM64 builds today: disable the
simdfeature when building Sōzu.Or in
Cargo.toml:PR #1191's CI matrix runs on
ubuntu-latest(x86_64) only, so an ARM64 cell would also help catch this regression earlier. That's tracked separately. Leaving this issue open until the kawa / sozu side adds the propercfggate.FlorentinDUBOIS commentedon May 4, 2026
Quick follow-up: did the
--no-default-features --features jemallocator,crypto-ringworkaround work for your ARM64 (aarch64) build? Keeping this issue open as the tracking item for the proper fix — thestd::arch::x86_64import inkawa-0.6.7/src/protocol/utils.rsneeds to be cfg-gated ontarget_arch = "x86" / "x86_64"upstream in kawa, or sozu needs to stop enabling kawa'ssimdfeature on non-x86 targets.FlorentinDUBOIS commentedon Jun 5, 2026
The unresolved
std::arch::x86_64import came from kawa 0.6.7's SIMD path being active by default. The workspace now depends onkawa 0.6.8withdefault-features = false, and SIMD is strictly opt-in behind thesimdfeature — nostd::archusage remains in this tree. Closing; please reopen if a current checkout still fails on ARM.