[LLVMbugs] [Bug 7002] Cmake build of clang broken on FreeBSD

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Sat May 1 11:03:06 PDT 2010


Chris Lattner <clattner at apple.com> changed:

           What    |Removed                     |Added
             Status|NEW                         |RESOLVED
         Resolution|                            |INVALID

--- Comment #1 from Chris Lattner <clattner at apple.com> 2010-05-01 13:03:05 CDT ---
pastebins are not stable.  Here is the issue:

[ 81%] Building CXX object
In file included from /usr/include/xmmintrin.h:42,
                 from /usr/include/emmintrin.h:34,
/usr/include/mm_malloc.h:37: error: declaration of 'int posix_memalign(void**,
size_t, size_t) throw ()' throws different exceptions
/usr/include/stdlib.h:160: error: from previous declaration 'int
posix_memalign(void**, size_t, size_t)'
gmake[2]: *** [tools/clang/lib/Lex/CMakeFiles/clangLex.dir/Lexer.cpp.o] Error 1
gmake[1]: *** [tools/clang/lib/Lex/CMakeFiles/clangLex.dir/all] Error 2
gmake: *** [all] Error 2

It looks to me that your system headers are incompatible.  mm_malloc.h and
stdlib.h need to agree, this seems to be a likely bug in your system headers. 
This probably doesn't work:

$ cat > t.cc
#include <cstdlib>
#include <xmmintrin.h>
$ gcc t.cc

Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.

More information about the llvm-bugs mailing list