Skip to content

Instantly share code, notes, and snippets.

@syst3mw0rm
Created March 3, 2014 17:35
Show Gist options
  • Select an option

  • Save syst3mw0rm/9330190 to your computer and use it in GitHub Desktop.

Select an option

Save syst3mw0rm/9330190 to your computer and use it in GitHub Desktop.
work:~/workspace/dxr > make
make -C dxr/plugins/clang build
/usr/local/bin/llvm-config: 1: /usr/local/bin/llvm-config: Syntax error: ")" unexpected
/usr/local/bin/llvm-config: 1: /usr/local/bin/llvm-config: Syntax error: ")" unexpected
make[1]: Entering directory `/home/aamir/workspace/dxr/dxr/plugins/clang'
g++ -Wall -Wno-strict-aliasing -c dxr-index.cpp -o dxr-index.o
In file included from /usr/local/include/llvm/Support/type_traits.h:20:0,
from /usr/local/include/llvm/Support/Casting.h:18,
from /usr/local/include/clang/Basic/LLVM.h:21,
from /usr/local/include/clang/Basic/IdentifierTable.h:21,
from /usr/local/include/clang/AST/ASTContext.h:19,
from /usr/local/include/clang/AST/AST.h:18,
from dxr-index.cpp:1:
/usr/local/include/llvm/Support/DataTypes.h:49:3: error: #error "Must #define __STDC_LIMIT_MACROS before #including Support/DataTypes.h"
/usr/local/include/llvm/Support/DataTypes.h:53:3: error: #error "Must #define __STDC_CONSTANT_MACROS before " "#including Support/DataTypes.h"
In file included from /usr/local/include/llvm/Support/Allocator.h:18:0,
from /usr/local/include/llvm/ADT/StringMap.h:18,
from /usr/local/include/clang/Basic/IdentifierTable.h:22,
from /usr/local/include/clang/AST/ASTContext.h:19,
from /usr/local/include/clang/AST/AST.h:18,
from dxr-index.cpp:1:
/usr/local/include/llvm/Support/MathExtras.h: In function ‘bool llvm::isInt(int64_t)’:
/usr/local/include/llvm/Support/MathExtras.h:38:33: error: there are no arguments to ‘INT64_C’ that depend on a template parameter, so a declaration of ‘INT64_C’ must be available [-fpermissive]
/usr/local/include/llvm/Support/MathExtras.h:38:33: note: (if you use ‘-fpermissive’, G++ will accept your code, but allowing the use of an undeclared name is deprecated)
/usr/local/include/llvm/Support/MathExtras.h:38:65: error: there are no arguments to ‘INT64_C’ that depend on a template parameter, so a declaration of ‘INT64_C’ must be available [-fpermissive]
/usr/local/include/llvm/Support/MathExtras.h: In function ‘bool llvm::isUInt(uint64_t)’:
/usr/local/include/llvm/Support/MathExtras.h:64:36: error: there are no arguments to ‘UINT64_C’ that depend on a template parameter, so a declaration of ‘UINT64_C’ must be available [-fpermissive]
/usr/local/include/llvm/Support/MathExtras.h: In function ‘bool llvm::isIntN(unsigned int, int64_t)’:
/usr/local/include/llvm/Support/MathExtras.h:96:33: error: ‘INT64_C’ was not declared in this scope
make[1]: *** [dxr-index.o] Error 1
make[1]: Leaving directory `/home/aamir/workspace/dxr/dxr/plugins/clang'
make: *** [build-plugin-clang] Error 2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment