<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">Alright, tried a manual build with clang and compiler-rt.<br class=""><div class="">Config command I used was:<br class=""><div class=""><br class=""><div class=""><div class="">cmake -G "Unix Makefiles" ../llvm -DCMAKE_VERBOSE_MAKEFILE=ON -DLLVM_OPTIMIZED_TABLEGEN=On -DLLVM_ENABLE_ASSERTIONS=On</div><div class=""><br class=""></div><div class="">Ran builds with 1, 2, 4, 8, 9 threads. Only got a failure on two of the four 9-threaded</div><div class="">builds; tried the other ones once each.</div><div class=""><br class=""></div><div class="">For what it's worth, fully multi-threaded builds with one or none of the tablegen/assertion</div><div class="">flags succeeded. The main difference I noticed from the failing config is that these builds</div><div class="">didn't produce a NATIVE folder.</div><div class=""><br class=""></div><div class="">gist here: <a href="https://gist.github.com/aw1621107/b01fc73821895847a454" class="">https://gist.github.com/aw1621107/b01fc73821895847a454</a></div><div class=""><br class=""></div><div class="">It does look like the SDK/linker issues are something with homebrew, so I'll go</div><div class="">bother the homebrew maintainers instead. My apologies for the trouble.</div><div class=""><br class=""></div><div class=""><div><blockquote type="cite" class=""><div class="">On Sep 22, 2015, at 6:07 PM, Chris Bieneman <<a href="mailto:beanz@apple.com" class="">beanz@apple.com</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><meta http-equiv="Content-Type" content="text/html charset=utf-8" class=""><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">Sadly I really can’t help you debug the home-brew build, it is a good ways outside my expertise.<div class=""><br class=""></div><div class="">If you want to try building from source using the guide here: <a href="http://llvm.org/docs/GettingStarted.html#getting-started-quickly-a-summary" class="">http://llvm.org/docs/GettingStarted.html#getting-started-quickly-a-summary</a></div><div class=""><br class=""></div><div class="">I’d be more helpful. As it is, the patch you proposed doesn’t seem to make it build via home-brew, and I don’t think we should be taking an effectively untested patch that doesn’t actually enable you to build.</div><div class=""><br class=""></div><div class="">You may want to take up this issue with whomever maintains the home-brew package you’re trying to build.</div><div class=""><br class=""></div><div class="">-Chris</div><div class=""><br class=""><div class=""><blockquote type="cite" class=""><div class="">On Sep 22, 2015, at 2:50 PM, Alex Wang <<a href="mailto:aw1621107@gmail.com" class="">aw1621107@gmail.com</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><meta http-equiv="Content-Type" content="text/html charset=utf-8" class=""><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">Doesn't look like it's set when that command runs. <div class=""><br class=""></div><div class="">The env during the build looks something like the first one here:</div><div class=""><a href="https://gist.github.com/aw1621107/3e0b5a36d028f648d7a0" class="">https://gist.github.com/aw1621107/3e0b5a36d028f648d7a0</a></div><div class=""><br class=""><div class=""><div class=""><div class=""><blockquote type="cite" class=""><div class="">On Sep 22, 2015, at 5:42 PM, Chris Bieneman <<a href="mailto:beanz@apple.com" class="">beanz@apple.com</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><meta http-equiv="Content-Type" content="text/html charset=utf-8" class=""><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">The behavior here is consistent with setting SDKROOT in the environment to an OS X SDK.<div class=""><br class=""></div><div class="">-Chris</div><div class=""><br class=""><div class=""><blockquote type="cite" class=""><div class="">On Sep 22, 2015, at 2:28 PM, Alex Wang <<a href="mailto:aw1621107@gmail.com" class="">aw1621107@gmail.com</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><meta http-equiv="Content-Type" content="text/html charset=utf-8" class=""><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">Logs + commands added to the earlier gist.<div class=""><br class=""></div><div class="">Only thing different from a plain trunk build is adding -Wl,-v and -Wl,-t to the</div><div class="">iossim link flags.</div><div class=""><br class=""><div class=""><div class=""><blockquote type="cite" class=""><div class="">On Sep 22, 2015, at 5:17 PM, Chris Bieneman <<a href="mailto:beanz@apple.com" class="">beanz@apple.com</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><meta http-equiv="Content-Type" content="text/html charset=utf-8" class=""><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">Can you please provide the full error and information about the failure you saw without your patch?<div class=""><br class=""></div><div class="">Since you couldn’t build before the patch, and you can’t build with the patch. I suspect there is an underlying issue which isn’t being addressed.</div><div class=""><br class=""></div><div class="">-Chris<br class=""><div class=""><br class=""></div><div class=""><div class=""><blockquote type="cite" class=""><div class="">On Sep 22, 2015, at 2:02 PM, Alex Wang <<a href="mailto:aw1621107@gmail.com" class="">aw1621107@gmail.com</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><meta http-equiv="Content-Type" content="text/html charset=utf-8" class=""><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">Whoops. Forgot to include what happened before the patch.<div class=""><br class=""></div><div class="">Without it, my build fails earlier with something along the lines of "Building for</div><div class="">iOS simulator, but linking against file (libc++.dylib) built for OS X (x86_64)".</div><div class="">The linker wasn't touching the iPhone SDK at all, instead going straight for</div><div class="">/usr/lib/libc++.dylib. This also happened with libSystem.dylib, but I don't know</div><div class="">what causes one library to fail vs the other.</div><div class=""><br class=""></div><div class=""><div class=""><div class=""><blockquote type="cite" class=""><div class="">On Sep 22, 2015, at 4:57 PM, Chris Bieneman <<a href="mailto:beanz@apple.com" class="">beanz@apple.com</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><meta http-equiv="Content-Type" content="text/html charset=utf-8" class=""><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">In the failing command (iossim-log) the syslibroot flag is being specified to the linker and the link command still fails, so your patch shouldn’t fix the problem. You can see that listed in iossim-link.txt.<div class=""><br class=""></div><div class="">The other error is (if anything) more disturbing. You’re generating a malformed libLLVMSupport. Not sure how that’s happening.</div><div class=""><br class=""></div><div class="">It looks to me like there is something wrong with your host toolchain. I don’t really know what else to say, but your patch shouldn’t have any impact on this problem since that flag is already being specified in the failing commands you’ve shown.</div><div class=""><br class=""></div><div class="">-Chris</div><div class=""><div class=""><br class=""><div class=""><blockquote type="cite" class=""><div class="">On Sep 22, 2015, at 1:43 PM, Alex Wang via llvm-commits <<a href="mailto:llvm-commits@lists.llvm.org" class="">llvm-commits@lists.llvm.org</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><meta http-equiv="Content-Type" content="text/html charset=us-ascii" class=""><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div class="">Summary is linker fails with unknown symbol in iossim asan/ubsan (was _wordexp</div><div class="">in the past, now is _sigaltstack$UNIX2003"i), or ranlib getting bad input while</div><div class="">working on native tablegen (archive extends past end of file, no such file are</div><div class="">the ones I remember)</div><div class=""><br class=""></div><div class="">Full commands + partial logs here:</div><div class=""> <a href="https://gist.github.com/aw1621107/86fec1e1fa9cc66bbf4d" class="">https://gist.github.com/aw1621107/86fec1e1fa9cc66bbf4d</a></div><div class=""><br class=""></div><div class="">This was built on OS X 10.11, Xcode 7.1 using the following homebrew command</div><div class="">and formula:</div><div class=""><br class=""></div><div class=""> brew install llvm --with-clang --with-sanitizers --HEAD --debug --verbose</div><div class=""> <a href="https://github.com/aw1621107/homebrew/blob/llvm-updates/Library/Formula/llvm.rb" class="">https://github.com/aw1621107/homebrew/blob/llvm-updates/Library/Formula/llvm.rb</a></div><div style="" class=""><blockquote type="cite" class=""><div class="">On Sep 22, 2015, at 4:08 PM, Joerg Sonnenberger via llvm-dev <<a href="mailto:llvm-dev@lists.llvm.org" class="">llvm-dev@lists.llvm.org</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div class="">On Tue, Sep 22, 2015 at 01:04:27PM -0700, Chris Bieneman via llvm-dev wrote:<br class=""><blockquote type="cite" class="">This does not sound right. -isysroot specified during linking should be passing through the sys root to the linker.<br class=""></blockquote><br class="">No? It should just be dropped.<br class=""><br class="">Joerg<br class="">_______________________________________________<br class="">LLVM Developers mailing list<br class=""><a href="mailto:llvm-dev@lists.llvm.org" class="">llvm-dev@lists.llvm.org</a><br class=""><a href="http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev" class="">http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev</a><br class=""></div></div></blockquote></div><br class=""></div>_______________________________________________<br class="">llvm-commits mailing list<br class=""><a href="mailto:llvm-commits@lists.llvm.org" class="">llvm-commits@lists.llvm.org</a><br class=""><a href="http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-commits" class="">http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-commits</a><br class=""></div></blockquote></div><br class=""></div></div></div></div></blockquote></div><br class=""></div></div></div></div></blockquote></div><br class=""></div></div></div></div></blockquote></div><br class=""></div></div></div></div></blockquote></div><br class=""></div></div></div></blockquote></div><br class=""></div></div></div></div></div></blockquote></div><br class=""></div></div></div></blockquote></div><br class=""></div></div></div></div></body></html>