llvm-gcc-4.2-2.6 build failed,

I try to build llvm-gcc-4.2-2.6.source before build and install llvm-2.6, the configure is shown bellow
…/llvm-gcc-4.2/configure --prefix=/home/ts/program/ --program-prefix=llvm- --enable-llvm=/home/ts/llvm/llvm-2.6 --enable-languages=c,c++
where, it is the path where llvm-2.6 source is stored, -enable-llvm=/home/ts/llvm/llvm-2.6

the “make” gave error message as bellow:

Hello

I try to build llvm-gcc-4.2-2.6.source before build and install llvm-2.6,
the configure is shown bellow
../llvm-gcc-4.2/configure --prefix=/home/ts/program/ --program-prefix=llvm-
--enable-llvm=/home/ts/llvm/llvm-2.6 --enable-languages=c,c++
where, it is the path where llvm-2.6 source is stored,
-enable-llvm=/home/ts/llvm/llvm-2.6

You need to build llvm itself first.

tianshuo_1 wrote:

I try to build llvm-gcc-4.2-2.6.source before build and install llvm-2.6, the configure is shown bellow

You need to build llvm first. --enable-llvm (and not -enable-llvm)
should point to the directory in which you built llvm (this may be
the same as the llvm source directory if you built llvm in place).

Best wishes,

Duncan.

Thank you for reply,

I have tried building llvm-2.6 first in place, and configure llvm-gcc-4.2 with --enable-llvm=/path\to\llvm-2.6/,
but, still the same problerm,
and there’s no files missed reported in the error message, such as “lvm/System/DataTypes.h”, in the file system including /usr/include and ~/llvm/llvm-2.6/include/.

May these files should be generated during llvm-2.6 building? I have compiled llvm-2.6 successfully and installed it in another directory, what’s the reason for the problem?

and , I found no file ,System/DataTypes.h, exist in the directory llvm-2.6/include/llvm/

Are you sure you are building llvm-gcc-4.2-2.6 against llvm-2.6 and not against
a version of llvm checked out from subversion?

Ciao,

Duncan.

oooo. I check out llvm form svn by
"svn co http://llvm.org/svn/llvm-project/llvm/trunk llvm",
but not "``svn co https://user@llvm.org/svn/llvm-project/llvm/trunk llvm``",,,,

在2009-11-06,"Duncan Sands" <baldrick@free.fr> 写道:
>> and , I found no file ,System/DataTypes.h, exist in the directory llvm-2.6/include/llvm/
>
>Are you sure you are building llvm-gcc-4.2-2.6 against llvm-2.6 and not against
>a version of llvm checked out from subversion?
>
>Ciao,
>
>Duncan.

Don't build the LLVM GCC source checked out from SVN. Download the
source tar.gz, unzip it and then build it. That works.