Hi Manuel,
Please keep it on list, this will help others solve the problem.
So I sent an email saying that Apple's 4.2 is the SVN's 3.2 version.
So please download Apple's 4.2 version and not the 3.2 version and try again.
Kind regards
Stewart
On Wed, Oct 23, 2013 at 2:40 PM, Manuel Bravo
<
manuelbra...@gmail.com> wrote:
> Thank you very much for your help. However, I have not been able to build it
> yet :S
>
> Can you send me Kenny's email? Maybe talking directly to him I can solve.
>
> Anyway this has been my last try:
>
> - I have downloaded the prebuilt clang 3.2
> - I have also downloaded the source code of both clang 3.2 and llvm 3.2.
> - I have put the source code of clang 3.2 in ~/llvm3.2/tools/clang
> - I have dowloaded Mozart2 source code
> - I have executed the following cake command:
>
> cmake -DCMAKE_BUILD_TYPE=Release -DGTEST_SRC_DIR=../../externals/gtest
> -DGTEST_BUILD_DIR=../gtest-debug -DLLVM_SRC_DIR=../../externals/llvm-3.2.src
> -DLLVM_BUILD_DIR=../clang+llvm-3.2-x86_64-apple-darwin11/ ../../mozart2
>
> - I execute make and I get the following error:
>
> Scanning dependencies of target generator
> [ 1%] Building CXX object
> vm/generator/main/CMakeFiles/generator.dir/generator.cc.o
> In file included from
> /Users/manuelbravo/mozart2/vm/generator/main/generator.cc:25:
> In file included from
> /Users/manuelbravo/mozart2/vm/generator/main/generator.hh:30:
> In file included from
> /Users/manuelbravo/builds/clang+llvm-3.2-x86_64-apple-darwin11/include/clang/Frontend/ASTUnit.h:17:
> In file included from
> /Users/manuelbravo/builds/clang+llvm-3.2-x86_64-apple-darwin11/include/clang/Serialization/ASTBitCodes.h:20:
> In file included from
> /Users/manuelbravo/builds/clang+llvm-3.2-x86_64-apple-darwin11/include/clang/AST/Type.h:17:
> In file included from
> /Users/manuelbravo/builds/clang+llvm-3.2-x86_64-apple-darwin11/include/clang/Basic/Diagnostic.h:21:
> In file included from
> /Users/manuelbravo/externals/llvm-3.2.src/include/llvm/ADT/ArrayRef.h:13:
> In file included from
> /Users/manuelbravo/externals/llvm-3.2.src/include/llvm/ADT/SmallVector.h:17:
> /Users/manuelbravo/externals/llvm-3.2.src/include/llvm/Support/AlignOf.h:90:1:
> error: 'alignas' attribute cannot be applied to types
> LLVM_ALIGNEDCHARARRAY_TEMPLATE_ALIGNMENT(1);
> ^
> /Users/manuelbravo/externals/llvm-3.2.src/include/llvm/Support/AlignOf.h:79:10:
> note: expanded from macro 'LLVM_ALIGNEDCHARARRAY_TEMPLATE_ALIGNMENT'
> char alignas(x) aligned; \
> ^
> /Users/manuelbravo/externals/llvm-3.2.src/include/llvm/Support/AlignOf.h:91:1:
> error: 'alignas' attribute cannot be applied to types
> LLVM_ALIGNEDCHARARRAY_TEMPLATE_ALIGNMENT(2);
> ^
> /Users/manuelbravo/externals/llvm-3.2.src/include/llvm/Support/AlignOf.h:79:10:
> note: expanded from macro 'LLVM_ALIGNEDCHARARRAY_TEMPLATE_ALIGNMENT'
> char alignas(x) aligned; \
> ^
> /Users/manuelbravo/externals/llvm-3.2.src/include/llvm/Support/AlignOf.h:92:1:
> error: 'alignas' attribute cannot be applied to types
> LLVM_ALIGNEDCHARARRAY_TEMPLATE_ALIGNMENT(4);
> ^
> /Users/manuelbravo/externals/llvm-3.2.src/include/llvm/Support/AlignOf.h:79:10:
> note: expanded from macro 'LLVM_ALIGNEDCHARARRAY_TEMPLATE_ALIGNMENT'
> char alignas(x) aligned; \
> ^
> /Users/manuelbravo/externals/llvm-3.2.src/include/llvm/Support/AlignOf.h:93:1:
> error: 'alignas' attribute cannot be applied to types
> LLVM_ALIGNEDCHARARRAY_TEMPLATE_ALIGNMENT(8);
> ^
> /Users/manuelbravo/externals/llvm-3.2.src/include/llvm/Support/AlignOf.h:79:10:
> note: expanded from macro 'LLVM_ALIGNEDCHARARRAY_TEMPLATE_ALIGNMENT'
> char alignas(x) aligned; \
> ^
> /Users/manuelbravo/externals/llvm-3.2.src/include/llvm/Support/AlignOf.h:94:1:
> error: 'alignas' attribute cannot be applied to types
> LLVM_ALIGNEDCHARARRAY_TEMPLATE_ALIGNMENT(16);
> ^
> /Users/manuelbravo/externals/llvm-3.2.src/include/llvm/Support/AlignOf.h:79:10:
> note: expanded from macro 'LLVM_ALIGNEDCHARARRAY_TEMPLATE_ALIGNMENT'
> char alignas(x) aligned; \
> ^
>
> I was getting exactly the same error when building llvm and clang by myself.
> When using the latest version of both clang and llvm, I got the error posted
> in my last post in the email group.
>
> Do not really know what to try now :S
>
> Thank you again,
> Manuel
>
> On Oct 23, 2013, at 1:43 PM, Stewart Mackenzie <
seto...@gmail.com> wrote:
>
> Apple's 4.2 == svn's 3.2 version.