Skip to content

clean-llvm needs a make target for x86_64-w64-mingw32 #7491

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
thadguidry opened this issue Jun 29, 2013 · 1 comment
Closed

clean-llvm needs a make target for x86_64-w64-mingw32 #7491

thadguidry opened this issue Jun 29, 2013 · 1 comment

Comments

@thadguidry
Copy link
Contributor

make[5]: Leaving directory /home/Thad/rust/llvm/i686-pc-mingw32/projects/sample /tools' make[4]: Leaving directory/home/Thad/rust/llvm/i686-pc-mingw32/projects/sample
'
make[3]: Leaving directory /home/Thad/rust/llvm/i686-pc-mingw32/projects' make[3]: Entering directory/home/Thad/rust/llvm/i686-pc-mingw32/bindings'
make[3]: Leaving directory /home/Thad/rust/llvm/i686-pc-mingw32/bindings' make[2]: Leaving directory/home/Thad/rust/llvm/i686-pc-mingw32'
make[1]: *** No rule to make target clean-llvmx86_64-w64-mingw32', needed byc
lean-llvm'. Stop.
make[1]: Leaving directory `/home/Thad/rust'
make: *** [rustllvm/llvm-auto-clean-stamp] Error 2

Thad@Thad-Windows ~/rust
$

@brson
Copy link
Contributor

brson commented Jun 30, 2013

Looks like a bug in clean.mk.

We build compilers that run on 'host' triples, so for each host triple we must have an llvm - we don't need an llvm for 'target' triples, and in fact should not build one for targets that are not hosts - not all targets may be capable of running llvm.

The problem here is that clean.mk defines clean rules for all hosts, but then goes on to try to invoke them for all targets. The solution is probably to fix the latter to only invoke clean on host triples.

This is the same issue addressed by #7492

@thad for your purposes, since you are trying to create a compiler for x86_64 from an i686 host, you probably want to configure with --host-triples=i686-pc-mingw,x86_64-whatever, producing two complete compilers.

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

3 participants