I’ve let ‘make check’ run for over 90 minutes with the clang process stuck in the same place and running at 100%. If I change the compiler to to llvm-g++ (the other compiler included with OS X but removed in the upcoming OS X 10.9 release), the build process also hangs. The tests only finish building if I use an actual FSF g++ (v4.8) compiler for the tests (in this case, g+±4.8 comes from Fink). Depending on FSF g++ is suboptimal since it is a large program that users must first install, so it would be nice to fix it to build with clang.
What can I do to try and trace the hang location in benchmark.c?
cd /src
tar xf /src/ETL-0.04.16.tar.gz
cd ETL-0.04.16
./configure
make
make check
All the flags for the compiler are picked automatically. I’m not setting anything in the environment to modify them. Here’s the configuration summary that I get after ./configure:
I did a test, and using the ./configure flag ‘–enable-optimization’, the hang happens whenever optimization is set to 1 or higher (2 is the default). At -O0, the tests programs all compile and the tests finish.
Correction: the problem is with compiling fixed.o, NOT with linking benchmark as I had originally thought (there was a -j8 kicking in that I hadn’t seen). When I use -j1, the hang is clear: