llvm / llvm-project

The LLVM Project is a collection of modular and reusable compiler and toolchain technologies.
http://llvm.org
Other
27.97k stars 11.54k forks source link

'scan-build ./configure' loops on building 'conftest1.c/conftest2.c' #25876

Open llvmbot opened 8 years ago

llvmbot commented 8 years ago
Bugzilla Link 25502
Version trunk
OS Linux
Attachments The 'conftest1.c' and 'conftest2.c' ./configure testcases
Reporter LLVM Bugzilla Contributor

Extended Description

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 loop. This step is trying to compile 2 small C testcases, 'conftest1.c' and 'conftest2.c' (which Ive included in the attachment), and the executed commandline is this :

/bin/sh ./libtool --mode=compile /usr/local/bin/../libexec/ccc-analyzer conftest1.c -c -o conftest1.lo

Running this on the command line gives me endless lines of this :

Waiting for -c.o.lock to be removed Waiting for -c.o.lock to be removed Waiting for -c.o.lock to be removed

If I just run './configure' without scan-build, the configure finishes quite fast and as expected. I'm running a recent svn version (r252789) of llvm/clang/scan-build on Fedora 23.

[1] Hyperion https://github.com/hercules-390/hyperion

[2] checking whether getopt wrapper kludge is necessary...

llvmbot commented 8 years ago

Changing 'Assigned To' from 'Ted Kremenek' to 'Anna Zaks' because of changing of roles as per 'http://lists.llvm.org/pipermail/cfe-dev/2015-November/046026.html'

llvmbot commented 8 years ago

assigned to @AnnaZaks