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>
Anand, I have not tried building llvm-gcc, though, ... Please show me "/path/to/config.status --version". I doubt you did configure with "--prefix= /cygdrive/c/llvm-2.8" and you were trying to build llvm on /cygdrive/c/llvm-2.8 , ... it would be wrong. In common sense, build directory must be under your home directory or temporary directory. ...Takumi
On Wed, Feb 9, 2011 at 9:40 AM, NAKAMURA Takumi <geek4civic at gmail.com>wrote:> Anand, > > > I have not tried building llvm-gcc, though, ... > > Please show me "/path/to/config.status --version". >[Anand] Here is the config.status output taken from '/cygdrive/c/llvm-2.8': ./config.status --version llvm config.status 2.8 configured by src/configure, generated by GNU Autoconf 2.60, with options "'--prefix=/cygdrive/c/llvm-2.8'"> I doubt you did configure with "--prefix= /cygdrive/c/llvm-2.8" and > you were trying to build llvm on /cygdrive/c/llvm-2.8 > , ... it would be wrong. > > In common sense, build directory must be under your home directory or > temporary directory. > >[Anand] The build has to be done from a different directory than the source. I was doing it from one level up. Whats wrong in the way I had it setup? So if I have given a different prefix other than the directory from where the build is done, then it will work. Is that what you are saying? -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20110209/5aad7f43/attachment.html>