From: Victor A. <vic...@wi...> - 2012-07-07 02:27:51
|
Hi all, I'm brand new to the list and to the project. I have been hearing a lot of chatter about Clang lately, was curious and that led me here. My configuration is Ubuntu 12.04 So I start following the directions in the docs/gettingstarted.html file<http://avr-llvm.svn.sourceforge.net/viewvc/avr-llvm/llvm/trunk/docs/gettingstarted.html?revision=164>. Everything was going fine (ish... patching reported some failures) until I hit the steps: $ cd .. $ mkdir build $ cd ../build build$ ../llvm/configure --prefix=$HOME/usr/avr-llvm/ --disable-optimized --enable-targets=avr build$ make First of all I think "$HOME/usr/avr-llvm/" should be "$HOME/avr-llvm/". I also think the line "cd ../build" should just say "cd build". But anyway I get the following error after some crunching (even after those "fixes" I mentioned). ... > checking whether byte ordering is bigendian... no > configure: error: Unrecognized target avr > configure: error: ../../../llvm/projects/sample/configure failed for > projects/sample I followed all the preceding steps (copy/paste) of patching and what not, but apparently something is out of sync with the documentation, the patches, and the repositories? Some more details about the preceding step outputs are as follows: *llvm checkout*: Checked out revision 159885. *avr-llvm checkout*: Checked out revision 197. *patch* output: cat ../avr-llvm/patches/*.diff | patch -p0 > patching file lib/CodeGen/AsmPrinter/AsmPrinter.cpp > patching file CMakeLists.txt > Hunk #1 succeeded at 75 (offset 3 lines). > patching file cmake/config-ix.cmake > Hunk #1 succeeded at 317 (offset 2 lines). > patching file autoconf/configure.ac > Hunk #2 succeeded at 536 (offset 23 lines). > Hunk #3 FAILED at 631. > Hunk #4 succeeded at 668 (offset 22 lines). > Hunk #5 succeeded at 684 (offset 21 lines). > 1 out of 5 hunks FAILED -- saving rejects to file autoconf/configure.ac.rej > patching file include/llvm/CallingConv.h > patching file lib/VMCore/AsmWriter.cpp > Hunk #1 succeeded at 1533 (offset 28 lines). > Hunk #2 succeeded at 1836 (offset 28 lines). > Hunk #3 succeeded at 1894 (offset 28 lines). > patching file lib/AsmParser/LLParser.cpp > Hunk #1 succeeded at 1063 (offset 42 lines). > Hunk #2 succeeded at 1082 (offset 42 lines). > patching file lib/AsmParser/LLLexer.cpp > Hunk #1 succeeded at 521 (offset 3 lines). > patching file lib/AsmParser/LLToken.h > Hunk #1 succeeded at 77 (offset 1 line). > patching file lib/Target/LLVMBuild.txt > Hunk #1 FAILED at 16. > 1 out of 1 hunk FAILED -- saving rejects to file > lib/Target/LLVMBuild.txt.rej > patching file lib/CodeGen/RegAllocGreedy.cpp > patching file lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp > Hunk #1 FAILED at 6114. > Hunk #2 succeeded at 6672 (offset 365 lines). > 1 out of 2 hunks FAILED -- saving rejects to file > lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp.rej > patching file include/llvm/Target/TargetCallingConv.h > Hunk #1 succeeded at 40 with fuzz 1 (offset 4 lines). > Hunk #2 succeeded at 99 (offset 4 lines). > patching file include/llvm/ADT/Triple.h > Hunk #2 succeeded at 72 with fuzz 2 (offset 1 line). > patching file lib/Support/Triple.cpp > Hunk #2 succeeded at 56 (offset 1 line). > Hunk #3 succeeded at 94 with fuzz 1 (offset 8 lines). > Hunk #4 succeeded at 150 (offset 11 lines). > Hunk #5 succeeded at 219 (offset 13 lines). > Hunk #6 succeeded at 264 with fuzz 1 (offset 15 lines). > Hunk #7 succeeded at 678 (offset 41 lines). > Hunk #8 succeeded at 727 (offset 42 lines). > Hunk #9 succeeded at 766 (offset 43 lines). I can't imagine those FAILED messages are expected... so the problem is probably related I'm guessing. *rsync*: terminates silently. Can anyone lend me a hand continuing to make progress building? Kind Regards, Vic -- Victor Aprea // Wicked Device vic...@wi... T: twitter.com/vicatcu/ |