From: John M. <ato...@gm...> - 2012-06-07 17:59:02
|
Hi Hannes, You can just delete the projects/sample folder to get it to compile. The SVN trunk is the recommended version. --John On Thu, Jun 7, 2012 at 9:43 AM, Hannes Weisbach < han...@ma...> wrote: > 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 > > ------------------------------------------------------------------------------ > Live Security Virtual Conference > Exclusive live event will cover all the ways today's security and > threat landscape has changed and how IT managers can respond. Discussions > will include endpoint security, mobile security and the latest in malware > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > _______________________________________________ > avr-llvm-devel mailing list > avr...@li... > https://lists.sourceforge.net/lists/listinfo/avr-llvm-devel > |