[OE-core] [PATCH] autotools.bbclass: output failed config.log

Khem Raj raj.khem at gmail.com
Mon May 20 20:50:18 UTC 2019



On 5/15/19 7:02 AM, Adrian Bunk wrote:
> On Wed, May 15, 2019 at 09:50:35PM +0800, Hongxu Jia wrote:
>>
>> After applying my fix, here is the sample
>>
>> ...
>>
>> checking for i586-wrs-linux-gcc... i586-wrs-linux-gcc  -m32 -march=i586 --sysroot=/buildarea1/hjia/wrlinux-1019/build_master-wr_qemux86_2019051509/build/tmp-glibc/work/i586-wrs-linux/grub/2.02-r0/recipe-sysroot
>> checking whether the C compiler works... no
>> configure: error: in `/buildarea1/hjia/wrlinux-1019/build_master-wr_qemux86_2019051509/build/tmp-glibc/work/i586-wrs-linux/grub/2.02-r0/build':
>> configure: error: C compiler cannot create executables
>> See `config.log' for more details
>> NOTE: The following config.log files may provide further information.
>> NOTE: /buildarea1/hjia/wrlinux-1019/build_master-wr_qemux86_2019051509/build/tmp-glibc/work/i586-wrs-linux/grub/2.02-r0/build/config.log
>> NOTE: This file contains any messages produced by compilers while
>> NOTE: running configure, to aid debugging if configure makes a mistake.
>>
>> ...
>>
>> The content of config.log has prefix `NOTE:' and also tells user
>> ...
> 
> The problem is that the last > 1000 lines are NOTE: - and they all get
> dumped to the terminal.
> 
> It is a problem when you have to scroll up through more than a thousand
> lines of mostly irrelvant information before you are seeing the most
> relevant information.
> 


It would be good to extract relevant information from config.log and 
dump that instead of verbose concatenation of the whole file.

Are there any markers we can use  ?

>> //Hongxu
> 
> cu
> Adrian
> 


More information about the Openembedded-core mailing list