[LLVMdev] llvm-config error

António Saragga Seabra antseabra at gmail.com
Mon Sep 6 17:47:33 PDT 2010


Hi

I’m having a few problems building the kaleidoscope example (chapter 3)
under MinGW. To build the example I use as recommended



g++ -g -O3 toy.cpp `llvm-config --cppflags --ldflags --libs core` -o toy



but get the following error



sh: llvm-config: command not found



Indeed in my “\llvm-2.7\tools\llvm-config\” build directory  there is no
“Release” subdirectory as I would expect (only  llvm-config.in among other
files) and in \llvm-2.7\Release\bin no llvm-config executable (only
a llvm-config text file). This was a little unexpected  because otherwise
llvm appears to have been built fine and llvm object directory tree also
looks OK.



What I am doing wrong? Any help would be much appreciated!



***** Error Messages



sh: llvm-config: command not found

In file included from
/mingw/lib/gcc/mingw32/../../../include/llvm/Type.h:15,

                 from
/mingw/lib/gcc/mingw32/../../../include/llvm/DerivedTypes.h:21,

                 from main.cpp:10:

/mingw/lib/gcc/mingw32/../../../include/llvm/System/DataTypes.h:45:3: error:
#error "Must #define __STDC_LIMIT_MACROS before #including
System/DataTypes.h"

/mingw/lib/gcc/mingw32/../../../include/llvm/System/DataTypes.h:49:3: error:
#error "Must #define __STDC_CONSTANT_MACROS before " "#including
System/DataTypes.h"

In file included from
/mingw/lib/gcc/mingw32/../../../include/llvm/Attributes.h:18,

                 from
/mingw/lib/gcc/mingw32/../../../include/llvm/Argument.h:18,

                 from
/mingw/lib/gcc/mingw32/../../../include/llvm/Function.h:24,

                 from
/mingw/lib/gcc/mingw32/../../../include/llvm/Module.h:18,

                 from main.cpp:12:

/mingw/lib/gcc/mingw32/../../../include/llvm/Support/MathExtras.h: In
function 'bool llvm::isInt(int64_t)':

/mingw/lib/gcc/mingw32/../../../include/llvm/Support/MathExtras.h:57: error:
there are no arguments to 'INT64_C' that depend on a template parameter, so
a declaration of 'INT64_C' must be available

/mingw/lib/gcc/mingw32/../../../include/llvm/Support/MathExtras.h:57: note:
(if you use '-fpermissive', G++ will accept your code, but allowing the use
of an undeclared name is deprecated)

/mingw/lib/gcc/mingw32/../../../include/llvm/Support/MathExtras.h:57: error:
there are no arguments to 'INT64_C' that depend on a template parameter, so
a declaration of 'INT64_C' must be available

/mingw/lib/gcc/mingw32/../../../include/llvm/Support/MathExtras.h: In
function 'bool llvm::isUint(uint64_t)':

/mingw/lib/gcc/mingw32/../../../include/llvm/Support/MathExtras.h:62: error:
there are no arguments to 'UINT64_C' that depend on a template parameter, so
a declaration of 'UINT64_C' must be available
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20100907/e61e5a14/attachment.html>


More information about the llvm-dev mailing list