Alexey Samsonov via llvm-dev
2015-Sep-22 19:34 UTC
[llvm-dev] [compiler-rt] Add iOS simulator link flag
+llvm-commits (correct list) On Tue, Sep 22, 2015 at 12:32 PM, Alexey Samsonov <vonosmas at gmail.com> wrote:> Could you describe the build failures you see after applying this patch? > I'll let Chris judge if adding -Wl,-syslibroot makes sense for iossim, or > that problem should be solved differently. > > On Tue, Sep 22, 2015 at 9:37 AM, Alex Wang via llvm-dev < > llvm-dev at lists.llvm.org> wrote: > >> Hello all! >> >> Just got a small patch I’d like to put up for review. >> >> llvm with clang and compiler-rt have been consistently failing for me >> during >> the linking step for either the address or ub sanitizer for iOS simulator. >> >> As far as I could tell, passing -isysroot to clang++ when linking does not >> also set the search root for ld. This patch addresses that issue. >> >> Unfortunately, the build fails later on, so I can't say for sure whether >> this won't break anything else, or if it is required elsewhere. I'm also >> not sure if this is specific to my computer, but it persisted between a >> wipe + reinstall, so I'm hoping it isn't just me getting this. >> >> Thanks, >> Alex >> >> _______________________________________________ >> LLVM Developers mailing list >> llvm-dev at lists.llvm.org >> http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev >> >> > > > -- > Alexey Samsonov > vonosmas at gmail.com >-- Alexey Samsonov vonosmas at gmail.com -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20150922/2c282973/attachment.html>
Chris Bieneman via llvm-dev
2015-Sep-22 20:04 UTC
[llvm-dev] [compiler-rt] Add iOS simulator link flag
This does not sound right. -isysroot specified during linking should be passing through the sys root to the linker. What is the error you’re seeing? It would also help if you can provide the clang++ invocation and the output of it when run with -v. Also which version of OS X are you on and which version of Xcode are you using? Thanks, -Chris> On Sep 22, 2015, at 12:34 PM, Alexey Samsonov <vonosmas at gmail.com> wrote: > > +llvm-commits (correct list) > > On Tue, Sep 22, 2015 at 12:32 PM, Alexey Samsonov <vonosmas at gmail.com <mailto:vonosmas at gmail.com>> wrote: > Could you describe the build failures you see after applying this patch? I'll let Chris judge if adding -Wl,-syslibroot makes sense for iossim, or that problem should be solved differently. > > On Tue, Sep 22, 2015 at 9:37 AM, Alex Wang via llvm-dev <llvm-dev at lists.llvm.org <mailto:llvm-dev at lists.llvm.org>> wrote: > Hello all! > > Just got a small patch I’d like to put up for review. > > llvm with clang and compiler-rt have been consistently failing for me during > the linking step for either the address or ub sanitizer for iOS simulator. > > As far as I could tell, passing -isysroot to clang++ when linking does not > also set the search root for ld. This patch addresses that issue. > > Unfortunately, the build fails later on, so I can't say for sure whether > this won't break anything else, or if it is required elsewhere. I'm also > not sure if this is specific to my computer, but it persisted between a > wipe + reinstall, so I'm hoping it isn't just me getting this. > > Thanks, > Alex > > _______________________________________________ > 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> > > > > > -- > Alexey Samsonov > vonosmas at gmail.com <mailto:vonosmas at gmail.com> > > > -- > Alexey Samsonov > vonosmas at gmail.com <mailto:vonosmas at gmail.com>-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20150922/e292a98d/attachment.html>
Joerg Sonnenberger via llvm-dev
2015-Sep-22 20:08 UTC
[llvm-dev] [compiler-rt] Add iOS simulator link flag
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. Joerg
Alex Wang via llvm-dev
2015-Sep-22 20:39 UTC
[llvm-dev] [compiler-rt] Add iOS simulator link flag
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> On Sep 22, 2015, at 4:04 PM, Chris Bieneman <beanz at apple.com> wrote: > > This does not sound right. -isysroot specified during linking should be passing through the sys root to the linker. > > What is the error you’re seeing? It would also help if you can provide the clang++ invocation and the output of it when run with -v. > > Also which version of OS X are you on and which version of Xcode are you using? > > Thanks, > -Chris > >> On Sep 22, 2015, at 12:34 PM, Alexey Samsonov <vonosmas at gmail.com <mailto:vonosmas at gmail.com>> wrote: >> >> +llvm-commits (correct list) >> >> On Tue, Sep 22, 2015 at 12:32 PM, Alexey Samsonov <vonosmas at gmail.com <mailto:vonosmas at gmail.com>> wrote: >> Could you describe the build failures you see after applying this patch? I'll let Chris judge if adding -Wl,-syslibroot makes sense for iossim, or that problem should be solved differently. >> >> On Tue, Sep 22, 2015 at 9:37 AM, Alex Wang via llvm-dev <llvm-dev at lists.llvm.org <mailto:llvm-dev at lists.llvm.org>> wrote: >> Hello all! >> >> Just got a small patch I’d like to put up for review. >> >> llvm with clang and compiler-rt have been consistently failing for me during >> the linking step for either the address or ub sanitizer for iOS simulator. >> >> As far as I could tell, passing -isysroot to clang++ when linking does not >> also set the search root for ld. This patch addresses that issue. >> >> Unfortunately, the build fails later on, so I can't say for sure whether >> this won't break anything else, or if it is required elsewhere. I'm also >> not sure if this is specific to my computer, but it persisted between a >> wipe + reinstall, so I'm hoping it isn't just me getting this. >> >> Thanks, >> Alex >> >> _______________________________________________ >> 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> >> >> >> >> >> -- >> Alexey Samsonov >> vonosmas at gmail.com <mailto:vonosmas at gmail.com> >> >> >> -- >> Alexey Samsonov >> vonosmas at gmail.com <mailto:vonosmas at gmail.com>-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20150922/954415bf/attachment.html>