Skip to content

Building cross-compiler for x86_64-sun-solaris fails due to jemalloc error. #42043

Closed
@jcoughlin9

Description

@jcoughlin9

I am trying to build Rust 1.17.0 to cross compile to x86_64-sun-solaris and am running into an error similar to #15228. I am running on a CentOS 7 host with the default g++, v4.8.5.

Configuring with the following commands:

git clone https://github.com/rust-lang/rust.git
cd rust
git checkout 56124baa9e73f28c0709e59e74783cf234a978cf    # Rust 1.17.0
./configure --target=x86_64-sun-solaris
./x.py build --target x86_64-sun-solaris

Produces the error:

checking whether utrace(2) is compilable... no
checking whether valgrind is compilable... no
checking whether a program using __builtin_ffsl is compilable... no
checking whether a program using ffsl is compilable... no

command did not execute successfully: "sh" "/var/tmp/dev/rust-dev/rust/src/liballoc_jemalloc/../jemalloc/configure" "--disable-fill" "--host=x86_64-sun-solaris" "--build=x86_64-unknown-linux-gnu"
expected success, got: exit code: 1

--- stderr
configure: error: Cannot build without ffsl(3) or __builtin_ffsl()

Build failed, waiting for other jobs to finish...
error: build failed

command did not execute successfully: "/var/tmp/dev/rust-dev/rust/build/x86_64-unknown-linux-gnu/stage0/bin/cargo" "build" "-j" "40" "--target" "x86_64-sun-solaris" "--release" "--features" "panic-unwind jemalloc backtrace" "--manifest-path" "/var/tmp/dev/rust-dev/rust/src/libstd/Cargo.toml"
expected success, got: exit code: 101

Am I doing something wrong? Or does the issue with jemalloc still exist for x86_64-sun-solaris?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions