[Solved] Compiling OF with clang
Hi all,
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: Code:
/home/agl/OpenFOAM/OpenFOAM-2.1.1/src/OpenFOAM/lnInclude/GeometricBoundaryField.C:553:34: warning: equality comparison result unused Any thoughts greatly appreciated, Andrew |
Greetings Andrew,
This was asked/reported some time ago: http://www.openfoam.org/mantisbt/view.php?id=510 Best regards, Bruno |
Bruno,
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. Andrew |
All times are GMT -4. The time now is 05:32. |