I’ve been interested in llvm for some time, and I finally got around to testing it with BRL-CAD. I first built llvm and clang from the current svn trunk, but that generated a crash report (llvm bug 16921 just submitted to llvm.org).
Then I installed clang+llvm (v. 3.3.0) on Debian amd64 from pre-built binaries and got a good BRL-CAD build (but I haven’t done the regression tests yet) and thought the following compilation timings from my 4-cpu box might be interesting to some users:
Release build BRL-CAD trunk (r56887):
I haven't been able to build gcc 4.7.3 yet (prereq ppl build problems--I
think that's why I stopped building gcc some time ago), but I did have
success with building gcc-4.8.1 (ppl no longer required).
That has uncovered a slew of errors not caught with gcc 4.4.5 or clang 3.3.
Note that the clang trunk bug I reported has been fixed so it will be
interesting to see if clang picks up the same (or other errors).
I need to convert to a debug build so I can get through all the
errors--will attach a list when complete.
Best regards,
-Tom
...
I'll see if I can try it with gcc 4.7 soon.
I haven't been able to build gcc 4.7.3 yet (prereq ppl build problems--I
think that's why I stopped building gcc some time ago), but I did have
success with building gcc-4.8.1 (ppl no longer required).
Sorry for a bit of a false alarm: I forgot a BRL-CAD release build has
-Werror turned on, so I'm not yet sure if that affects clang or not
with the way I configured the CMake build (I merely changed the paths to
the C and C++ compilers)
.
That has uncovered a slew of errors not caught with gcc 4.4.5 or
I should have said:
That has uncovered a slew of warnings not caught with gcc 4.4.5 or clang
3.3.
Best,
-Tom
Attached is a list of the gcc-4.8.1 warnings from a trunk rev 56916 build
(made into errors) that, for some reason, don't show in a debug build
(looks like compile flags may be different but I'm not sure at the
moment--need to dig into BRL-CAD CMake environment some more).
They look like legit problems but I haven't tried to fix them.
Best,
-Tom
Now the file is attached!
-Tom
compile-gcc-4.8.1-rel.log.errors.txt (9.69 KB)