This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: Error building GCC
- From: Jay <jay dot krell at cornell dot edu>
- To: Jonathan Wakely <jwakely dot gcc at gmail dot com>
- Cc: VladimÃr Fuka <vladimir dot fuka at gmail dot com>, gcc-help <gcc-help at gcc dot gnu dot org>
- Date: Thu, 17 Apr 2014 18:54:18 -0700
- Subject: Re: Error building GCC
- Authentication-results: sourceware.org; auth=none
- References: <CAH6eHdRkwzB8nswuTyfowtSk5H2GApJmC1w=aRd+G_5cCa6GxQ at mail dot gmail dot com>
Are you running from sh/bash/ksh/csh/zsh, or maybe, Python's os.system()?
There is a bug in gmp's configure, related to flex, and revealed by non-default signal handling such as in Python. It has been reported for years, by multiple people, with simple correct fixes, but not fixed.
- Jay
On Apr 17, 2014, at 2:38 AM, Jonathan Wakely <jwakely.gcc@gmail.com> wrote:
> On 17 April 2014 10:12, VladimÃr Fuka wrote:
>>
>> Nevertheless I always get this in some internal `configure` after
>> running `make`:
>>
>> checking for bison... bison -y
>> checking for flex... flex
>> checking lex output file root... configure: error: cannot find
>> output from flex; giving up
>> make[2]: *** [configure-stage1-gmp] Error 1
>> make[2]: Leaving directory `***/gcc-bin-8'
>> make[1]: *** [stage1-bubble] Error 2
>> make[1]: Leaving directory `***/gcc-bin-8'
>> make: *** [all] Error 2
>>
>> It is configured with:
>>
>> ../gcc-4.8.2/configure --enable-languages=c,c++,fortran
>> --prefix=/home/***/gcc-4.8.2
>>
>> I have no idea what should I try more.
>
> You can look in gmp/config.log to see what causes the error. In a
> successful log you should see something like:
>
> configure:29361: flex conftest.l
> configure:29365: $? = 0
> configure:29367: checking lex output file root
> configure:29381: result: lex.yy