This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: Error Building GCC as PIE
- From: Cyd Haselton <chaselton at gmail dot com>
- To: noloader at gmail dot com
- Cc: "gcc-help at gcc dot gnu dot org" <gcc-help at gcc dot gnu dot org>
- Date: Mon, 22 Jun 2015 06:31:51 -0500
- Subject: Re: Error Building GCC as PIE
- Authentication-results: sourceware.org; auth=none
- References: <36F38A10-BFB2-40DE-BD89-34C243C43B9C at gmail dot com> <4BA77817-731F-4D4F-AC88-5606D1615D50 at gmail dot com> <3F3CD0D0-9A01-46BC-8A53-FF4A0E400696 at gmail dot com> <CAH8yC8mC7D13uF1Pt2MyS9jv_u1VOqqVHiDLCv6cL8O41O_HiQ at mail dot gmail dot com> <CAH8yC8mxt59GkLhrQX-qKyT5RafD9AnXbFCq9RUzVABW+4syCg at mail dot gmail dot com> <AD40A559-51E9-4FC9-97CA-33A391B158A0 at gmail dot com> <CAH8yC8mS16EJ08Pi833Um+jksjKRwfV_fMC-X+6yhdaW_ocijQ at mail dot gmail dot com>
Additionally, if I build on a host, I don't have a device to push it to. I have one tablet, runming android 4.4, with a working compiler and environment. If I upgrade to android 5, I lose the environment (the developer hasn't been upgraded to 5.0 yet).
On June 22, 2015 4:45:43 AM CDT, Jeffrey Walton <noloader@gmail.com> wrote:
>On Mon, Jun 22, 2015 at 5:36 AM, Cyd Haselton <chaselton@gmail.com>
>wrote:
>> At this point...after researching/working on this for most of the
>weekend i'm not sure if I should be cross-compiling or not.
>>
>My question would be, why do you want to do this?
>
>The NDK provides the tools to perform the cross-compile on a host. So
>you don't really need it (or I don't think you need it).
>
>If you want to compile a program on a tablet or phone, then you would
>need the compiler that runs on the device. But that seems awful
>painful to me because desktops are so much faster with much more
>memory. Just compile on the host and use adb to push it to the
>device...
>
>Sorry about the bike shedding (http://bikeshed.com/). I'm not trying
>to tell you what to do. I'm just wondering why you want to do it since
>its non-trivial.