[llvm-dev] [compiler-rt] Add iOS simulator link flag
Chris Bieneman via llvm-commits
llvm-commits at lists.llvm.org
Tue Sep 22 14:17:13 PDT 2015
Can you please provide the full error and information about the failure you saw without your patch?
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.
> On Sep 22, 2015, at 2:02 PM, Alex Wang <aw1621107 at gmail.com> wrote:
> Whoops. Forgot to include what happened before the patch.
> Without it, my build fails earlier with something along the lines of "Building for
> iOS simulator, but linking against file (libc++.dylib) built for OS X (x86_64)".
> The linker wasn't touching the iPhone SDK at all, instead going straight for
> /usr/lib/libc++.dylib. This also happened with libSystem.dylib, but I don't know
> what causes one library to fail vs the other.
>> On Sep 22, 2015, at 4:57 PM, Chris Bieneman <beanz at apple.com <mailto:beanz at apple.com>> wrote:
>> 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.
>> The other error is (if anything) more disturbing. You’re generating a malformed libLLVMSupport. Not sure how that’s happening.
>> 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.
>>> On Sep 22, 2015, at 1:43 PM, Alex Wang via llvm-commits <llvm-commits at lists.llvm.org <mailto:llvm-commits at lists.llvm.org>> wrote:
>>> Summary is linker fails with unknown symbol in iossim asan/ubsan (was _wordexp
>>> in the past, now is _sigaltstack$UNIX2003"i), or ranlib getting bad input while
>>> working on native tablegen (archive extends past end of file, no such file are
>>> the ones I remember)
>>> Full commands + partial logs here:
>>> https://gist.github.com/aw1621107/86fec1e1fa9cc66bbf4d <https://gist.github.com/aw1621107/86fec1e1fa9cc66bbf4d>
>>> This was built on OS X 10.11, Xcode 7.1 using the following homebrew command
>>> and formula:
>>> brew install llvm --with-clang --with-sanitizers --HEAD --debug --verbose
>>> https://github.com/aw1621107/homebrew/blob/llvm-updates/Library/Formula/llvm.rb <https://github.com/aw1621107/homebrew/blob/llvm-updates/Library/Formula/llvm.rb>
>>>> On Sep 22, 2015, at 4:08 PM, Joerg Sonnenberger via llvm-dev <llvm-dev at lists.llvm.org <mailto:llvm-dev at lists.llvm.org>> wrote:
>>>> On Tue, Sep 22, 2015 at 01:04:27PM -0700, Chris Bieneman via llvm-dev wrote:
>>>>> This does not sound right. -isysroot specified during linking should be passing through the sys root to the linker.
>>>> No? It should just be dropped.
>>>> LLVM Developers mailing list
>>>> llvm-dev at lists.llvm.org <mailto:llvm-dev at lists.llvm.org>
>>>> http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev <http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev>
>>> llvm-commits mailing list
>>> llvm-commits at lists.llvm.org <mailto:llvm-commits at lists.llvm.org>
>>> http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-commits <http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-commits>
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the llvm-commits