git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Cross compiling git for ARM

From
RDRobert Dailey <rcdailey.lists@gmail.com>
Date
Aug 1, 2014, 17:53 UTC
Message-ID
<CAHd499BjTqurQX4Lj6MUqzKQW8Qsf-2UDVe6G4qiZW3anEzuVw@mail.gmail.com>
Hello,

I'm interested in cross compiling Git 2.0.3 (I have a clone from github) for ARM. Ideally I'd like to use the prebuilt gcc eabi toolchain bundled with Android NDK, since I plan to run the git executable on an ARM device running the android kernel.

I've looked into the "./configure --help" documentation but nothing strikes me as helpful for this. I also have relied heavily on Google searching but again I'm hitting dead ends.

I'm not an expert with Linux, so it would really help to have a set of instructions that are detailed and easy to understand.

Here is as far as I've gotten:
1. Ran "autoconf" inside my git clone root.
2. Ran "./configure --prefix=/home/fe/git-arm --build=x86_64-linux-gnu
--host=arm-linux-gnueabi"
3. Ran "make"
4. Build fails because there is no OpenSSL.

Then I began to wonder, do I need to cross compile OpenSSL, ZLib, and other things too? This is getting pretty messy :(

Note that on step #2 I am using the gcc arm cross compiler from Ubuntu package manager, because I couldn't for the life of me get the Android NDK toolchain working. I'm fine with using the ubuntu one as long as it yields an ARM executable that can be run on my device.

Our device is ARM Cortex - A8, so I'm not sure what version of GCC ARM is compatible with this chip.

Thanks in advance for any help at all!!
Message 1 of 1 in “Cross compiling git for ARM”
  1. Robert DaileyAug 1, 2014

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.