can't compile anything in maverick chroot (invalid driver invocation?)

Bug #742896 reported by dn
8
This bug affects 1 person
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://archive.ubuntu.com/ubuntu maverick main universe" > /etc/apt/sources.list
# 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/release_28)
Target: i386-pc-linux-gnu
Thread model: posix
 "" -cc1 -triple i386-pc-linux-gnu -S -disable-free -disable-llvm-verifier -main-file-name test.cpp -mrelocation-model static -mdisable-fp-elim -mconstructor-aliases -target-cpu pentium4 -target-linker-version 2.20.51 -v -resource-dir /lib/clang/2.8 -ferror-limit 19 -fmessage-length 80 -fexceptions -fgnu-runtime -fdiagnostics-show-option -fcolor-diagnostics -o /tmp/cc-5cvn8H.s -x c++ test.cpp
error: clang frontend command failed with exit code 127 (use -v to see invocation)

Revision history for this message
Benjamin Kramer (benny-kra) wrote :

This is probably because your chroot doesn't have access to /proc, which is used by clang to find the path to the binary.

Revision history for this message
Anders Kaseorg (andersk) wrote :

Did you get this to work after mounting /proc in your chroot?

Changed in clang (Ubuntu):
status: New → Incomplete
Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for clang (Ubuntu) because there has been no activity for 60 days.]

Changed in clang (Ubuntu):
status: Incomplete → Expired
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.