Skip to content

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

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
jcoughlin9 opened this issue May 16, 2017 · 2 comments
Closed

Comments

@jcoughlin9
Copy link

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?

@TimNN
Copy link
Contributor

TimNN commented May 17, 2017

I would just try building without jemalloc, ./configure --disable-jemalloc should do the trick, I think.

@jcoughlin9
Copy link
Author

That works, thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants