[LLVMdev] Building LLVM on Cygwin.

Anand Arumugam anand.arumug at gmail.com
Wed Feb 9 06:09:57 PST 2011


Hi,

I followed the build instructions at
http://www.aarongray.org/LLVM/BuildingLLVMonCygwin.html to build LLVM and
LLVM GCC. Everything went fine except for the 'make install' step of llvm.
At this step, I am getting a big list of files which are under
/cygdrive/c/llvm-2.8/include/llvm and /cygdrive/c/llvm-2.8/include/llvm-c.
The error I am getting is:

/usr/bin/install: `./llvm-c/ExecutionEngine.h' and
`/cygdrive/c/llvm-2.8/include/./llvm-c/ExecutionEngine.h' are the same file
/usr/bin/install: `./llvm-c/LinkTimeOptimizer.h' and
`/cygdrive/c/llvm-2.8/include/./llvm-c/LinkTimeOptimizer.h' are the same
file
/usr/bin/install: `./llvm-c/lto.h' and
`/cygdrive/c/llvm-2.8/include/./llvm-c/lto.h' are the same file
/usr/bin/install: `./llvm-c/Target.h' and
`/cygdrive/c/llvm-2.8/include/./llvm-c/Target.h' are the same file
/usr/bin/install: `./llvm-c/Transforms/IPO.h' and
`/cygdrive/c/llvm-2.8/include/./llvm-c/Transforms/IPO.h' are the same file
/usr/bin/install: `./llvm-c/Transforms/Scalar.h' and
`/cygdrive/c/llvm-2.8/include/./llvm-c/Transforms/Scalar.h' are the same
file
make: *** [install-local] Error 1

I am not sure what I am doing wrong. I also tried a 'make clean' and 'make'.
The 'make' completed successfully, but it is 'make install' that's giving me
the error. Can you please tell me whats going wrong? The built executable
are in /cygdrive/c/llvm-2.8/include/llvm/Release/bin.

Thank you.

Sincerely,
Anand Arumugam.

-------------------------

P.S: Following is the directory structure I am using:

/cygdrive/c/llvm-2.8/src <--- contains the source extracted from the
llvm-2.8 tar ball.

The llvm-2.8 was built from /cygdrive/c/llvm-2.8 folder.

/cygdrive/c/llvm-gcc-4.2-2.8/source <--- contains the source extracted from
the llvm-gcc-4.2-2.8 tar ball.

The llvm-gcc-4.2-2.8 was built from /cygdrive/c/llvm-gcc-4.2-2.8 folder.

And the directory and its contents where make install is stopping:

aarumug at aarumgxp /cygdrive/c/llvm-2.8
$ cd include/

aarumug at aarumgxp /cygdrive/c/llvm-2.8/include
$ ls
llvm/  llvm-c/

aarumug at aarumgxp /cygdrive/c/llvm-2.8/include
$ cd llvm

aarumug at aarumgxp /cygdrive/c/llvm-2.8/include/llvm
 $ ls
ADT/                CallingConv.h     GlobalValue.h
IntrinsicsARM.td      Metadata.h             SymbolTableListTraits.h
AbstractTypeUser.h  CodeGen/          GlobalVariable.h
IntrinsicsAlpha.td    Module.h               System/
Analysis/           CompilerDriver/   InlineAsm.h
IntrinsicsCellSPU.td  OperandTraits.h        Target/
Argument.h          Config/           InstrTypes.h
IntrinsicsPowerPC.td  Operator.h             Transforms/
 Assembly/           Constant.h        Instruction.def
IntrinsicsX86.td      Pass.h                 Type.h
Attributes.h        Constants.h       Instruction.h
IntrinsicsXCore.td    PassAnalysisSupport.h  TypeSymbolTable.h
 AutoUpgrade.h       DerivedTypes.h    Instructions.h
LLVMContext.h         PassManager.h          Use.h
BasicBlock.h        ExecutionEngine/  IntrinsicInst.h
LinkAllPasses.h       PassManagers.h         User.h
 Bitcode/            Function.h        Intrinsics.gen
LinkAllVMCore.h       PassRegistry.h         Value.h
CMakeLists.txt      GVMaterializer.h  Intrinsics.h
Linker.h              PassSupport.h          ValueSymbolTable.h
 CallGraphSCCPass.h  GlobalAlias.h     Intrinsics.td
MC/                   Support/

aarumug at aarumgxp /cygdrive/c/llvm-2.8/include/llvm
$ cd ../llvm-c

aarumug at aarumgxp /cygdrive/c/llvm-2.8/include/llvm-c
 $ ls
Analysis.h   BitWriter.h  EnhancedDisassembly.h  LinkTimeOptimizer.h
Transforms/
BitReader.h  Core.h       ExecutionEngine.h      Target.h             lto.h
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20110209/70f4672a/attachment.html>


More information about the llvm-dev mailing list