Problem with the installation of llvm gcc

Hello

I’m trying to install LLVM and LLVM GCC
so I check out the source of llvm and llvm-gcc-4.2 from the svn

I flow the instructions of this page http://llvm.org/docs/GCCFEBuildInstrs.html

I did the installation of LLVM and LLVM GCC well but the problem is there is no llvm-gcc at the end of instalation !!! ??
I mean in the /usr/local/bin/ there are all the commands of llvm (lli llc llvmc llmv-mc … ) execpt llvm-gcc !!

Please can you tell me what I did wrong

Thank you

khaled hamidouche wrote:

Hello

I'm trying to install LLVM and LLVM GCC
so I check out the source of llvm and llvm-gcc-4.2 from the svn

I flow the instructions of this page http://llvm.org/docs/GCCFEBuildInstrs.html

I did the installation of LLVM and LLVM GCC well but the problem is there is no llvm-gcc at the end of instalation !!! ??
I mean in the /usr/local/bin/ there are all the commands of llvm (lli llc llvmc llmv-mc .... ) execpt llvm-gcc !!

Please can you tell me what I did wrong

1) Did you type "make install" at the end of the llvm-gcc compilation?

2) What did you set the prefix to when configuring llvm-gcc? Was it /usr/local?

3) Did you use the -program-prefix=llvm- option when running configure to name all of the programs llvm-gcc, llvm-g++, etc? If not, then all of your programs will come out as gcc, g++, etc.

-- John T.

You need to manually copy the llvm-gcc front-end binaries to somewhere
in your path. Alternatively, you can download the clang front-end and
start using that instead.

John Criswell a écrit :

khaled hamidouche wrote:

Hello

I'm trying to install LLVM and LLVM GCC
so I check out the source of llvm and llvm-gcc-4.2 from the svn

I flow the instructions of this page http://llvm.org/docs/GCCFEBuildInstrs.html
I did the installation of LLVM and LLVM GCC well but the problem is there is no llvm-gcc at the end of instalation !!! ??
I mean in the /usr/local/bin/ there are all the commands of llvm (lli llc llvmc llmv-mc .... ) execpt llvm-gcc !!

Please can you tell me what I did wrong

1) Did you type "make install" at the end of the llvm-gcc compilation?

2) What did you set the prefix to when configuring llvm-gcc? Was it /usr/local?

3) Did you use the -program-prefix=llvm- option when running configure to name all of the programs llvm-gcc, llvm-g++, etc? If not, then all of your programs will come out as gcc, g++, etc.

yes I did all of this things

2010/4/19 Ben Perry <pianoman@udel.edu>

You need to manually copy the llvm-gcc front-end binaries to somewhere
in your path. Alternatively, you can download the clang front-end and
start using that instead.

In file included from Hello.cpp:16:
In file included from /usr/local/include/llvm/Pass.h:32:
/usr/local/include/llvm/System/DataTypes.h:45:3: error: #error “Must #define __STDC_LIMIT_MACROS before #including System/DataTypes.h”

error “Must #define __STDC_LIMIT_MACROS before #including System/DataTypes.h”

^
/usr/local/include/llvm/System/DataTypes.h:49:3: error: #error "Must #define __STDC_CONSTANT_MACROS before " “#including System/DataTypes.h”

error "Must #define __STDC_CONSTANT_MACROS before " \

^
In file included from Hello.cpp:17:
In file included from /usr/local/include/llvm/Function.h:24:
In file included from /usr/local/include/llvm/Argument.h:18:
In file included from /usr/local/include/llvm/Attributes.h:18:
/usr/local/include/llvm/Support/MathExtras.h:38:24: error: use of undeclared identifier ‘INT64_C’
return N >= 64 || (-(INT64_C(1)<<(N-1)) <= x && x < (INT64_C(1)<<(N-1)));
^
/usr/local/include/llvm/Support/MathExtras.h:57:26: error: use of undeclared identifier ‘UINT64_C’
return N >= 64 || x < (UINT64_C(1)<<N);
^
4 errors generated.

so I m wandering to know if errors due to Clang or to LLVM ??

Thank you