cross-rs/cross

jemalloc MADV_DONTNEED warning during build

ShaneMurphy2 opened this issue · 2 comments

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?

  • macOS
  • Windows
  • Linux / BSD
  • other OS (specify in description)

What architecture is the host?

  • x86_64 / AMD64
  • arm32
  • arm64 (including Mac M1)

What container engine is cross using?

  • docker
  • podman
  • other container engine (specify in description)

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

this is a duplicate of #1238

this is unfortunately expected behaviour

this is a duplicate of #1238

this is unfortunately expected behaviour

🤦 I'm bad at search apparently