Skip to content
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

Cannot build in debootstrap/chroot environment #1949

Closed
cko opened this issue Mar 9, 2012 · 8 comments
Closed

Cannot build in debootstrap/chroot environment #1949

cko opened this issue Mar 9, 2012 · 8 comments
Labels
O-linux Operating system: Linux

Comments

@cko
Copy link

cko commented Mar 9, 2012

I tried to build the source in a debootstrap environment of Debian Wheezy (testing) and got the following error for make:

make[3]: Entering directory `/home/user/rust/llvm/x86_64-unknown-linux-gnu/tools/opt'
llvm[3]: Compiling AnalysisWrappers.cpp for Release+Asserts build
llvm[3]: Compiling GraphPrinters.cpp for Release+Asserts build
llvm[3]: Compiling PrintSCC.cpp for Release+Asserts build
llvm[3]: Compiling opt.cpp for Release+Asserts build
make[3]: *** No rule to make target `/home/user/rust/llvm/x86_64-unknown-linux-gnu/tools/lib/libLLVMipo.a', needed by `/home/user/rust/llvm/x86_64-unknown-linux-gnu/Release+Asserts/bin/opt'.  Stop.
make[3]: Leaving directory `/home/user/rust/llvm/x86_64-unknown-linux-gnu/tools/opt'
make[2]: *** [opt/.makeall] Error 2
make[2]: Leaving directory `/home/user/rust/llvm/x86_64-unknown-linux-gnu/tools'
make[1]: *** [all] Error 1
make[1]: Leaving directory `/home/user/rust/llvm/x86_64-unknown-linux-gnu'
make: *** [/home/user/rust/llvm/x86_64-unknown-linux-gnu/Release+Asserts/bin/llvm-config] Error 2
@brson
Copy link
Contributor

brson commented Mar 12, 2012

Can you provide some more information about how to set this up? I am not familiar with debootstrap.

@cko
Copy link
Author

cko commented Mar 25, 2012

debootstrap is a tool which will install a Debian base system into a subdirectory of another, already installed system.

A short explanation on how to set it up can be found here:
http://serverfault.com/questions/23734/is-there-any-way-to-get-apt-to-install-packages-to-my-home-directory
Afaik it works on Debian and Ubuntu. Just replace lenny with wheezy, which is the current debian testing version and next stable one. It will require about 3GB hard disk.

I like it as a fast way to test somewhat experimental software a bit isolated from my main system, even though the combination of debootstrap and chroot is not an ultimate security feature (see for example: http://blog.technologyofcontent.com/2011/04/sandboxing-for-multi-tenant-applications/)

@catamorphism
Copy link
Contributor

@cko If it wouldn't be too much trouble for you, would you mind trying to install and build LLVM on its own ( http://llvm.org/releases/ ) so we can get a rough idea of whether this is a Rust issue or an LLVM issue? (The version will probably not be exactly the same, so this is not a perfect test.)

@cko
Copy link
Author

cko commented May 19, 2012

I set up a complete fresh environment. The rust build still produces the error above. The source of llvm 3.0 builds without problems.

@graydon
Copy link
Contributor

graydon commented Jul 26, 2012

This is really perplexing. I can reproduce it (in both wheezy and squeeze chroots) and have no idea why it's happening.

@ghost ghost assigned graydon Aug 2, 2012
@thestinger
Copy link
Contributor

Is this still an issue? I haven't tested with debootstrap, but Rust does build fine in a chroot + namespaced container with the Arch Linux devtools. For some reason tidy.py breaks though...

@bblum
Copy link
Contributor

bblum commented Aug 9, 2013

triage visit, moving along

@lucab
Copy link
Contributor

lucab commented Sep 6, 2013

I'm currently nightly building rust from scratch in several pbuilders (which is a common debian automation of deboostrap+chroot), including wheezy and sid, and I haven't yet encountered any problems.
Given that this is now a year old, I think it can be closed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
O-linux Operating system: Linux
Projects
None yet
Development

No branches or pull requests

7 participants