[Solved] Compiling OF with clang
I have both OpenFOAM and clang on my linux box so I decided to see if I could compile OF. Lo & behold, there is an option in the build config file for clang, so I set it and kicked off the compile. Has anyone managed to get the build process to fully compile OF? I get the build failing after about an hour, in solidEquilibriumDisplacementFoam, and also get lots and lots of warnings, along the lines of:
Any thoughts greatly appreciated,
This was asked/reported some time ago: http://www.openfoam.org/mantisbt/view.php?id=510
Thanks for that, didn't even think to look in the bugs db. Had a search in the forum and nothing came up hence the post.
I do agree with the comment in the bug about the error reporting in clang - it is spectacular in comparison to gcc/VC/etc. Even if clang is slower, and I have a feeling by the end of the year it will be as fast as gcc, it's worth keeping for the error reporting alone. My unscientific view at the moment is that it also compiles code much quicker than gcc.
|All times are GMT -4. The time now is 21:35.|