cross-rs / cross

“Zero setup” cross compilation and “cross testing” of Rust crates
Apache License 2.0
6.49k stars 365 forks source link

jemalloc MADV_DONTNEED warning during build #1359

Closed ShaneMurphy2 closed 10 months ago

ShaneMurphy2 commented 10 months ago

Checklist

Describe your issue

Whe I run cross build --target aarch64-unknown-linux-gnu on a simple project, I get:

<jemalloc>: MADV_DONTNEED does not work (memset will be used instead)
<jemalloc>: MADV_DONTNEED does not work (memset will be used instead)
<jemalloc>: MADV_DONTNEED does not work (memset will be used instead)
<jemalloc>: (This is the expected behaviour if you are running under QEMU)
<jemalloc>: (This is the expected behaviour if you are running under QEMU)
<jemalloc>: (This is the expected behaviour if you are running under QEMU)

This is spammed throughout the build process.

What target(s) are you cross-compiling for?

aarch64-unknown-linux-gnu

Which operating system is the host (e.g computer cross is on) running?

What architecture is the host?

What container engine is cross using?

cross version

cross 0.2.5 (44011c8 2023-10-23)

Example

cargo new arm
cd arm
cross build --target aarch64-unknown-linux-gnu

Output:

    Compiling arm v0.1.0 (/Users/Me/Something)
<jemalloc>: MADV_DONTNEED does not work (memset will be used instead)
<jemalloc>: (This is the expected behaviour if you are running under QEMU)
    Finished dev [unoptimized + debuginfo] target(s) in 2.85s

Additional information / notes

I'm running Docker Desktop 4.24.2 (124339) and Rust 1.73.0. Also, I see this in docker desktop during a build: image

Emilgardis commented 10 months ago

this is a duplicate of https://github.com/cross-rs/cross/issues/1238

this is unfortunately expected behaviour

ShaneMurphy2 commented 10 months ago

this is a duplicate of #1238

this is unfortunately expected behaviour

🤦 I'm bad at search apparently