Error building GCC

Jay jay.krell@cornell.edu
Fri Apr 18 01:54:00 GMT 2014


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



More information about the Gcc-help mailing list