cannot exec 'cc1'
On a relatively recent Debian installation, I keep getting this error: gcc: installation problem, cannot exec `cc1': No such file or directory But when I execute: # ls -l /usr/lib/gcc-lib/i486-linux/2.7.2.1/cc1 I get: -rwxr-xr-x 1 rootroot 1153181 Aug 14 15:23 \ /usr/lib/gcc-lib/i486-linux/2.7.2.1/cc1 On all the other Debian systems I have, I get precisely the same output from ls -l, but no errors from gcc. I'd be happy to provide package info if only I knew which package was relevant. In case it's of any relevance, libelf didn't seem to want to install; libelf0 and libelf0-dev installed OK though. ?? Susan Kleinmann -- TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word unsubscribe to [EMAIL PROTECTED] . Trouble? e-mail to [EMAIL PROTECTED]
Re: libelf (Re: cannot exec 'cc1')
Hi Stuart -- You asked: Did I forget to stick in Replaces: libelf and Conflicts: libelf in there somewhere? libelf0 and libelf0-dev are the current versions; libelf should be dead. (If I forgot to do the Replaces and Conflicts bit, bug me, and I'll fix it. Two minute job, and a good excuse not to study. :) Yes, you did forget to stick in Replaces. I noticed that I had no trouble installing libelf0 and libelf0-dev today when libelf was installed and libelf-dev was half-installed. I haven't been able to fully install libelf-dev, at least not on the most recent machine where I've installed Debian. (For a minute there I hoped you were going to tell me why I couldn't cc1. Any ideas?) Susan -- TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word unsubscribe to [EMAIL PROTECTED] . Trouble? e-mail to [EMAIL PROTECTED]
Re: cannot exec 'cc1'
Hi Dale -- You said: I have had this same problem on my test partition. It was suggested (I think it was Steven Early) that one of the other packages in devel, possibly using dpkg diversions has clobbered things. If you look, you will find a 2.7.2 directory as well as the 2.7.2.1 directory (that gcc used for it's install). If you copy everything in the 2.7.2.1 directory into the 2.7.2 directory everything will work. I am still trying to narrow down which package actually does the nasty deed. Let me know if you find it first ;-) Thank you Thank you Thank you The package which causes the problem is gnat Version 3.04-2. Susan -- TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word unsubscribe to [EMAIL PROTECTED] . Trouble? e-mail to [EMAIL PROTECTED]
Re: cannot exec 'cc1'
Susan G. Kleinmann [EMAIL PROTECTED] writes: On a relatively recent Debian installation, I keep getting this error: gcc: installation problem, cannot exec `cc1': No such file or directory Do you have any packages installed which divert gcc? Other language compilers? Do an strace on gcc and see where it's looking for cc1. In case it's of any relevance, libelf didn't seem to want to install; libelf0 and libelf0-dev installed OK though. ?? It's not; libelf is for manipulating the contents of ELF objects. Guy -- TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word unsubscribe to [EMAIL PROTECTED] . Trouble? e-mail to [EMAIL PROTECTED]
Re: cannot exec 'cc1'
Hi Guy -- You suggested: Susan G. Kleinmann [EMAIL PROTECTED] writes: On a relatively recent Debian installation, I keep getting this error: gcc: installation problem, cannot exec `cc1': No such file or directory Do you have any packages installed which divert gcc? Other language compilers? Do an strace on gcc and see where it's looking for cc1. Thanks for your response. strace gcc hello.c did indeed reveal where gcc was looking for cc1, which I could then have used on Contents.gz to find out what was confusing gcc. It looks as if this problem was reported as Bug #4773 against gnat 3.04-2, and that Mark Eichin plans to fix it along with the release of a new version of gnat. Susan Kleinmann -- TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word unsubscribe to [EMAIL PROTECTED] . Trouble? e-mail to [EMAIL PROTECTED]