Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

I've been trying to fix a problem related with cross (kernel) compilation which as given the following message: gcc: error trying to exec 'cc1': execvp: No such file or directory

I found that this was an issue as discussed here.

Also, when defining GCC_EXEC_PREFIX variable with /usr/lib/gcc/i486-linux-gnu/4.7/ I noticed that whereis cc1 only shows cc1:. Could this be the problem since cc1 has not a path associated to it? Also, how can I define the path to cc1?

PS: Sorry for the (almost) duplicated post. But I just think that this might really be the issue.

share|improve this question
1  
You don't directly tell GCC where to find cc1, it looks inside the directory tree where it's installed. What it looks like is that you haven't (properly) installed the right cross-compiler. What cross-compiler did you install and how exactly (in particular where)? –  Gilles Dec 21 '13 at 1:06
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.