r193528 - Support cross linking to arm on ubuntu.

Chandler Carruth chandlerc at google.com
Mon Oct 28 18:04:02 PDT 2013


On Mon, Oct 28, 2013 at 5:58 PM, Rafael EspĂ­ndola <
rafael.espindola at gmail.com> wrote:

> On 28 October 2013 20:56, Chandler Carruth <chandlerc at google.com> wrote:
> >
> > On Mon, Oct 28, 2013 at 5:53 PM, Rafael EspĂ­ndola
> > <rafael.espindola at gmail.com> wrote:
> >>
> >> Right now we print:
> >>
> >> -dynamic-linker
> >> /lib/ld-linux-armhf.so.3
> >> /usr/lib/gcc/armv7hl-redhat-linux-gnueabi/4.7.2/../../../crt1.o
> >> /usr/lib/gcc/armv7hl-redhat-linux-gnueabi/4.7.2/../../../crti.o
> >> /usr/lib/gcc/armv7hl-redhat-linux-gnueabi/4.7.2/crtbegin.o
> >> -L/usr/lib/gcc/armv7hl-redhat-linux-gnueabi/4.7.2
> >> -L/usr/lib/gcc/armv7hl-redhat-linux-gnueabi/4.7.2/../../..
> >> -L/lib
> >> -L/usr/lib
> >> /usr/lib/gcc/armv7hl-redhat-linux-gnueabi/4.7.2/crtend.o
> >> /usr/lib/gcc/armv7hl-redhat-linux-gnueabi/4.7.2/../../../crtn.o
> >>
> >> The tricky part is implementing the ubuntu support (where with have
> >> the "..../lib/../lib line) without regressing this.
> >
> >
> > How so? Shouldn't that just be a no-op?
>
> No. Because that is where we look first. If you try ubuntu right now
> (after the revert) with the 32 bit x86 support installed we will try
> to use the 32 bit x86 libraries when linking for arm.
>

Wait, you're saying the sysroot isn't being applied?

Maybe it would help to show GCC's search paths and Clang's current (broken)
search paths on the ubuntu setup you're trying to make work? I worry that
I'm misunderstanding your email, and thus misunderstanding the problem.


>
> Cheers,
> Rafael
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20131028/c432d887/attachment.html>


More information about the cfe-commits mailing list