Hi Óscar,<br><br>Thanks for the explanation. I was able to use the automatic update method.<br>FYI, for some reason the first run build completed without failure.<br><br>--John<br><br><div class="gmail_quote">On Mon, Nov 2, 2009 at 2:28 AM, Óscar Fuentes <span dir="ltr"><<a href="mailto:ofv@wanadoo.es" target="_blank">ofv@wanadoo.es</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
The following message is a courtesy copy of an article<br>
that has been posted to gmane.comp.compilers.llvm.devel as well.<br>
<div><br>
John Myers <<a href="mailto:atomicdog.jwm@gmail.com" target="_blank">atomicdog.jwm@gmail.com</a>> writes:<br>
<br>
> I'm looking for some pointers on how to troubleshoot this problem. I'm<br>
> trying to write a backend for the AVR.<br>
> There is an undefined reference at line 48 which is the line FrameInfo() is<br>
> on. I've tried to use the MSP430 and other targets as references so I'm not<br>
> sure<br>
> what changes I did would cause a problem on this line?<br>
<br>
</div>cmake tracks library dependencies on $LLVM_ROOT/cmake/modules/LLVMLibDeps.txt<br>
<br>
That file is automatically updated on Unix and Unix-like platforms when<br>
all LLVM targets are included on the build. This means that either you<br>
update the file manually or run the build with MSYS passing<br>
-DLLVM_TARGETS_TO_BUILD=all on the cmake command line.<br>
<br>
The manual update would consist on adding this lines to the above<br>
mentioned file:<br>
<br>
set(MSVC_LIB_DEPS_LLVMAVRAsmPrinter LLVMAsmPrinter LLVMCodeGen LLVMCore LLVMMC LLVMAVRInfo LLVMSupport LLVMSystem LLVMTarget)<br>
set(MSVC_LIB_DEPS_LLVMAVRCodeGen LLVMCodeGen LLVMCore LLVMMC LLVMAVRInfo LLVMSelectionDAG LLVMSupport LLVMSystem LLVMTarget)<br>
set(MSVC_LIB_DEPS_LLVMAVRInfo LLVMSupport)<br>
<br>
which uses MSP430 as a template and supposses that your target is named<br>
`AVR' (case sensitive).<br>
<br>
In case you use the automatic update, the first run of the build will<br>
fail because the new dependencies are still not effective. Re-execute<br>
the build and it should work.<br>
<br>
--<br>
<font color="#888888">Óscar<br>
</font></blockquote></div><br>