[cfe-dev] 'scan-build ./configure' hang

Jonathan Roelofs via cfe-dev cfe-dev at lists.llvm.org
Wed Nov 11 13:37:00 PST 2015



On 11/11/15 2:28 PM, Craig, Ben via cfe-dev wrote:
> I usually run 'top' in another console.  Often, you will find an
> instance of clang running the analyzer.  It is usually taking a fair
> amount of CPU and memory.
>
> If this is the case, then you may be able to look at the command line to
> see which part of the configure is causing the slow build.
>
> On 11/11/2015 3:18 PM, Maarten Hoes via cfe-dev wrote:
>> Hi,
>>
>>
>> I'm trying to analyze a certain project [1] with the clang-analyzer.
>> But at a certain step [2] during 'scan-build ./configure', the command
>> appears to hang (or at least perform so slowly that it appears to
>> hang). If I just run './configure' without scan-build, the configure
>> finishes quite fast and as expected. I'm running the latest svn
>> version (r252789) of llvm/clang/scan-build on Fedora 23.
>>
>> I aborted the scan-build and took a look at 'config.log' but must
>> admit I'm not quite sure what to look for.
>>
>> Any and all help to figure out what is going on here, and help fix it,
>> is appreciated.

I think you ought to be running scan-build on the resulting makefiles, 
not on configure itself (unless you intend to analyze the code that 
configure uses to feature-test the compiler).


Jon

>>
>>
>> Thanks,
>>
>>
>> - Maarten
>>
>>
>>
>> [1]
>> Hyperion
>> https://github.com/hercules-390/hyperion
>>
>> [2]
>> checking whether getopt wrapper kludge is necessary...
>>
>>
>>
>> _______________________________________________
>> cfe-dev mailing list
>> cfe-dev at lists.llvm.org
>> http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-dev
>
> --
> Employee of Qualcomm Innovation Center, Inc.
> Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, a Linux Foundation Collaborative Project
>
>
>
> _______________________________________________
> cfe-dev mailing list
> cfe-dev at lists.llvm.org
> http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-dev
>

-- 
Jon Roelofs
jonathan at codesourcery.com
CodeSourcery / Mentor Embedded



More information about the cfe-dev mailing list