From: Hannes W. <han...@ma...> - 2012-06-07 17:05:33
|
Hello avr-llvm developers, I just tried to build avr-llvm as described in gettingstarted.html, however I ran across some problems: The patches from avr-llvm (cat ../avr-llvm/patches/*.diff | patch -p0) did not apply cleanly: RegAllocGreedy.diff was missing some path information (lib/CodeGen/), but I told patch manually, which file to use. After that, I ran configure, like described in the tutorial (../llvm/configure --prefix=$HOME/usr/avr-llvm/ --disable-optimized --enable-targets=avr), however it seems this configure-script calls another script, which is not properly patched because it does not know the "avr" target. The second configure script is called with the following line: ./../../llvm/projects/sample/configure --disable-option-checking '--prefix=/Users/hannesweisbach/usr/avr-llvm' '--disable-optimized' '--enable-targets=avr' 'CFLAGS=-L/opt/local/lib -I/opt/local/include' --cache-file=/dev/null --srcdir=../../../llvm/projects/sample [...] configure: error: Unrecognized target avr configure: error: ../../../llvm/projects/sample/configure failed for projects/sample I added the "avr" target manually, but the build fails (as expected) after throwing a lot of errors like this one: llvm-build: error: invalid target to enable: 'AVR' (not in project) So my question is: Can avr-llvm be used with any version of llvm and, if not, what is the recommended version of llvm to use with avr-llvm (svn revision or release)? Thanks in advance, Hannes |