This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: building 4.8.1 cross-compiler: xgcc: error trying to exec 'cc1': execvp: No such file or directory
- From: Jonathan Wakely <jwakely dot gcc at gmail dot com>
- To: Frédéric Bron <frederic dot bron at m4x dot org>
- Cc: Michael Weise <michael dot weise at ek-team dot de>, "gcc-help at gcc dot gnu dot org" <gcc-help at gcc dot gnu dot org>
- Date: Wed, 18 Sep 2013 11:34:15 +0100
- Subject: Re: building 4.8.1 cross-compiler: xgcc: error trying to exec 'cc1': execvp: No such file or directory
- Authentication-results: sourceware.org; auth=none
- References: <CAPw2sphr-BME1M_PAQz5nE=ozHPUxprmgQ_wt4T=CL4BX3EtSg at mail dot gmail dot com> <CAPw2spgtmnVBodPD_h=UG_zPXO-Be+uvsbfbrF=6JLuJeQEM2Q at mail dot gmail dot com> <CANc4vhrxn6PjAqWjw4j2enz9LC3eTq16zVhwGgA5b29Ev9tXMA at mail dot gmail dot com> <CAPw2spj=0Lyfrs8iG6-r4EuBhm6u2fgPy73YVxvBcMPamrUzpQ at mail dot gmail dot com> <20130917084824 dot dfeeb1530756247ffacda9cc at ek-team dot de> <CAPw2spixF1XmxDs+5RaDB7e6n-Tpp3LwPeasccaLm6K5u4FKmg at mail dot gmail dot com> <CAH6eHdRSgh7qqR+g3N_pOOxmTo8r6-Y3TyOxxBq-k=1qphs-Og at mail dot gmail dot com> <CAPw2sphWuYVYsdJpMxeCLnarpHTRwCgYOkM8KqVU8J4NuvBD3w at mail dot gmail dot com>
On 18 September 2013 10:24, Frédéric Bron wrote:
>>> where is this xgcc suppose to come from? It is not listed in the prerequisites.
>>
>> It's in the build directory after you build GCC. It's not in your
>> $PATH, you'll need to find it and run it as ./xgcc or path/to/xgcc or
>> similar.
>
> OK I found it: build_dir/gcc/xgcc
> and also build_dir/gcc/cc1
>
> The error message says:
> xgcc: error trying to exec 'cc1': execvp: No such file or directory
> so it seems that xgcc is found but xgcc tries to find cc1 and cannot. Why?
Either because your build didn't work properly or you didn't use -B
$build_dir/gcc to tell xgcc where to find cc1.
> What is the purpose of the xgcc command?
It's the newly built gcc executable, before it gets installed as gcc.