System: FreeBSD 8.x to -CURRENT, amd64 and i386
The current blender release 2.69 is broken on FreeBSD, since the OpenShadingLanguage implementation as well as all upcoming FreeBSD versions (starting with 10.0) will use LLVM and Clang as default compile and linker environment.
Instead of GCC and libstdc++, Clang, Clang++ and LLVM (version 3.3) are used.
Find below links to the current set of patches (against 2.69) that enable blender to build, link and work on FreeBSD.
Patch to remove the hardcoded libstdc++ linker argument. The correct c++ library is picked by the compiler:
Fix an issue with clang++ and libc++ in the triangulator code:
Fix a libstdc++ specific pass-through that is not covered by the C++ standard using an explicit assignment operator for Range structs:
Fix the itasc KDL::TreeElement implementation by not using SegmentMap, but a standard compliant std::pair implementation.
A minor caveat might be that you can't safely increment/decrement the parent member anymore, but the code does not
use such an approach (and it also would not make any sense to inc/dec over the parent):
Fix an issue with libc++ bringing in several parts of C++11 that are already in the std:: namespace. It does not have a std::tr1 namespace
Furthermore, the current cycles implementation violates the OpenCL standard due to the definition of reserved compiler keywords, such as global, local, ... Right now, libc++ only gets hickups with global and align, so those were replaced with
cycles_global and cycles_align in the following headers: