Skip to content

error: Cannot build without ffsl(3) or __builtin_ffsl() #91

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
Virtlink opened this issue Jun 28, 2014 · 2 comments
Closed

error: Cannot build without ffsl(3) or __builtin_ffsl() #91

Virtlink opened this issue Jun 28, 2014 · 2 comments
Labels

Comments

@Virtlink
Copy link

I'm trying to build Rust to cross-compile to i686-unknown-linux-gnu, but I run into an error when it compiles jemalloc. I was directed here from my Rust issue.

On a fresh installation of Linux Mint 17 Qiana MATE 64-bit (in VirtualBox), I execute the following series of commands:

sudo apt-get install g++
sudo apt-get install curl
sudo apt-get install libc6-dev-i386
cd
mkdir src
cd src
git clone https://github.com/rust-lang/rust.git
cd rust
./configure --target=i686-unknown-linux-gnu
make

Then after a while I get this 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
configure: error: Cannot build without ffsl(3) or __builtin_ffsl()
make: *** [i686-unknown-linux-gnu/rt/jemalloc/lib/libjemalloc_pic.a] Error 1

This only happens when compiling to a different target than the default. I'm using:

  • g++ 4.8.2-19ubuntu
  • clang++ not installed
  • python 2.7.6
  • perl 5.18.2
  • make 3.81
  • curl 7.35.0
  • git 1.9.1
@jasone
Copy link
Member

jasone commented Jul 8, 2014

This is likely fixed by 1a3eafd, which is not yet part of an official release.

@jasone jasone added the bug label Sep 10, 2014
@jasone
Copy link
Member

jasone commented Sep 10, 2014

Please re-open if this issue still exists in the dev branch.

@jasone jasone closed this as completed Sep 10, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants