<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Shantonu,<div><br class="webkit-block-placeholder"></div><div>I just wanted to verify that you used the llvm/autoconf/AutoRegen.sh script to regenerate configure. Is that correct?</div><div><br class="webkit-block-placeholder"></div><div>Thanks,</div><div>Tanya</div><div><br><div><div>On Feb 5, 2008, at 10:10 AM, Shantonu Sen wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div>Some low-priority fixes to the build system.... These can probably wait after 2.2</div><div><br class="webkit-block-placeholder"></div><div>1) The current configure script checks for gcc 3.x or later by parsing "gcc --version" output and trying to tokenize it to find the major compiler version. This is pretty fragile and interacts poorly with compilers produced by vendors (like Apple) that modify this string to output target triple (including potentially i<b>686</b> and darwin<b>9</b>), FSF GCC version, Apple local version. There's lots of numbers there, and the sed expression doesn't find any of the right ones. This patch turns the check into a compile-time check for __GNUC__ version. Since autoconf already does this to determine if you're using GCC or not, it should be pretty safe.</div><div><br class="webkit-block-placeholder"></div><div>Believe it or not, I dusted off a copy of gcc 2.95.2 for Mac OS X for PowerPC and ran it under Rosetta to verify this fix:</div><div><div><br class="webkit-block-placeholder"></div><div>[ssen@virgon]$ gcc-2.95.2 -v</div><div>Reading specs from /usr/libexec/gcc/darwin/ppc/2.95.2/specs</div><div>Apple Computer, Inc. version gcc-926, based on gcc version 2.95.2 19991024 (release)</div><div><div>[ssen@virgon]$ ./configure CC=gcc-2.95.2 CXX=g++-2.95.2</div><div>...</div><div><div>checking for llvm-gcc... no</div><div>checking for llvm-g++... no</div><div>checking tool compatibility... configure: error: gcc 3.x required, but you have a lower version</div><div><br class="webkit-block-placeholder"></div><div>2) Makefile.rules is missing some dependencies for shared library targets, which means if you change core libraries and do a rebuild, things like tools/lto don't get relinked against the new libraries. Test case is to have a pre-built tree and do "touch lib/System/Unix/Program.inc && make" and make sure you see "Linking Debug Loadable Module LLVMlto.dylib".</div><div><br class="webkit-block-placeholder"></div><div>3) There appears to be a typo for for llvm_cv_no_link_all_option for Darwin, but this never seems to be used anyway. Probably worth fixing in case a new standalone project uses the LLVM makefiles.</div><div><br class="webkit-block-placeholder"></div><div>I regenerated the configure script with the required versions of autotools on Mac OS X on Intel.</div><div><br class="webkit-block-placeholder"></div></div></div></div><div><div></div><span><llvm-makefile-and-configure.patch></span></div><div><div></div></div><br><div apple-content-edited="true"> <span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div>Shantonu Sen</div><div><a href="mailto:ssen@apple.com">ssen@apple.com</a></div><div><br class="webkit-block-placeholder"></div><div>Sent from my Mac Pro</div></div></span> </div><br><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">_______________________________________________</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">LLVM Developers mailing list</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><a href="mailto:LLVMdev@cs.uiuc.edu">LLVMdev@cs.uiuc.edu</a> <span class="Apple-converted-space">        </span><a href="http://llvm.cs.uiuc.edu">http://llvm.cs.uiuc.edu</a></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><a href="http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev">http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev</a></div> </blockquote></div><br></div></body></html>