[PATCH] Support cross-compiling for Arm on a x86 Linux

Murali, Sriram sriram.murali at intel.com
Mon Oct 7 09:19:04 PDT 2013


Ping.
It will be great to have this functionality checked-in.

Thanks to the reviewers for their useful comments.
Regards,
Sriram


-----Original Message-----
Date: Fri, 4 Oct 2013 21:04:25 -0400
From: Sriram Murali <sriram87 at gmail.com>
To: "cfe-commits at cs.uiuc.edu" <cfe-commits at cs.uiuc.edu>
Subject: Re: [PATCH] Support cross-compiling for Arm on a x86 Linux
	machine
Message-ID: <-2879867129293156415 at unknownmsgid>
Content-Type: text/plain; charset=ISO-8859-1

Hi, I updated the patch as per the suggestions from reviewers.

I request you to kindly see the revised patch.

Thanks
Sriram

Sent from my iPad

> On Oct 3, 2013, at 5:16 PM, "Murali, Sriram" <sriram.murali at intel.com> wrote:
>
> Hi there,
> I am attempting to cross-compile for Arm devices on a x86 machine. Looks like clang is picking up library paths in the wrong order, that it chose a different library file in /usr/lib32 directory, since I am compiling for arm. So, I worked around it by choosing the libpath of GNU cross compiler for arm instead.
>
> Further, there was a problem including the right header files from bits/ directory. So, I made sure clang picked it up from the GNU cross compiler include directory. However, clang did not have support to pick up include files from GCC version with no Patch, for example "4.8.0", where GCC version is of the format "Major.Minor.Patch". It looks at 4.8 instead. But, gnu cross compiler is packed such that the include files are in a directory with name 4.8.0. So, if the Version.Patch is -1 (which is unset for versions with no Patch) , we should pick the directory with Patch = 0.
>
> Please review the patch, and see if it can be improved.
>
> Thanks
> Sriram





More information about the cfe-commits mailing list