can't compile anything in maverick chroot (invalid driver invocation?)
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
clang (Ubuntu) |
Expired
|
Undecided
|
Unassigned |
Bug Description
Binary package hint: clang
I'm using an Ubuntu Maverick chroot to try clang 2.8, and it can't compile anything. Something seems to go terribly wrong when clang tries to invoke itself. (the `"" -cc1` should be `clang -cc1`)
Exact steps:
$ sudo debootstrap --arch=i386 maverick maverick32/
$ sudo chroot maverick32
# echo "deb http://
# apt-get update && apt-get install clang
# echo "int main (int argc, char **argv) { return 0; }" > test.cpp
# clang++ -v test.cpp -o test
clang version 2.8 (branches/
Target: i386-pc-linux-gnu
Thread model: posix
"" -cc1 -triple i386-pc-linux-gnu -S -disable-free -disable-
error: clang frontend command failed with exit code 127 (use -v to see invocation)
This is probably because your chroot doesn't have access to /proc, which is used by clang to find the path to the binary.