From: Robert Dailey <hidden> Date: 2016-06-15 23:02:34
I run the following on Ubuntu:
fe@BLD01:~/code/git$ autoconf
fe@BLD01:~/code/git$ ./configure --prefix=/home/fe/git-arm
--build=x86_64-linux-gnu --host=arm-linux-androideabi
configure: Setting lib to 'lib' (the default)
configure: Will try -pthread then -lpthread to enable POSIX Threads.
configure: CHECKS for site configuration
checking for arm-linux-androideabi-gcc... arm-linux-androideabi-gcc
checking whether the C compiler works... no
configure: error: in `/home/fe/code/git':
configure: error: C compiler cannot create executables
See `config.log' for more details
I have my NDK's prebuilt GCC 4.8 toolchain on PATH (the bin folder).
Can someone help me cross compile Git using Android NDK toolchain?
Thanks.
From: Stefan Beller <hidden> Date: 2016-06-15 23:02:34
On 22.09.2014 21:04, Robert Dailey wrote:
I run the following on Ubuntu:
fe@BLD01:~/code/git$ autoconf
fe@BLD01:~/code/git$ ./configure --prefix=/home/fe/git-arm
--build=x86_64-linux-gnu --host=arm-linux-androideabi
configure: Setting lib to 'lib' (the default)
configure: Will try -pthread then -lpthread to enable POSIX Threads.
configure: CHECKS for site configuration
checking for arm-linux-androideabi-gcc... arm-linux-androideabi-gcc
checking whether the C compiler works... no
configure: error: in `/home/fe/code/git':
configure: error: C compiler cannot create executables
See `config.log' for more details
I have my NDK's prebuilt GCC 4.8 toolchain on PATH (the bin folder).
Can someone help me cross compile Git using Android NDK toolchain?
Thanks.
You don't need autoconf, just type 'make' and you'll be fine.
Please read the file INSTALL for installation instructions.
Stefan
From: Robert Dailey <hidden> Date: 2016-06-15 23:02:34
But if I type just 'make', I don't see how it will know where my ARM
toolchain is. I'll read the INSTALL file in the meantime.
On Mon, Sep 22, 2014 at 4:22 PM, Stefan Beller [off-list ref] wrote:
On 22.09.2014 21:04, Robert Dailey wrote:
quoted
I run the following on Ubuntu:
fe@BLD01:~/code/git$ autoconf
fe@BLD01:~/code/git$ ./configure --prefix=/home/fe/git-arm
--build=x86_64-linux-gnu --host=arm-linux-androideabi
configure: Setting lib to 'lib' (the default)
configure: Will try -pthread then -lpthread to enable POSIX Threads.
configure: CHECKS for site configuration
checking for arm-linux-androideabi-gcc... arm-linux-androideabi-gcc
checking whether the C compiler works... no
configure: error: in `/home/fe/code/git':
configure: error: C compiler cannot create executables
See `config.log' for more details
I have my NDK's prebuilt GCC 4.8 toolchain on PATH (the bin folder).
Can someone help me cross compile Git using Android NDK toolchain?
Thanks.
You don't need autoconf, just type 'make' and you'll be fine.
Please read the file INSTALL for installation instructions.
Stefan
From: Robert Dailey <hidden> Date: 2016-06-15 23:02:34
On Tue, Sep 23, 2014 at 7:47 AM, Robert Dailey [off-list ref] wrote:
But if I type just 'make', I don't see how it will know where my ARM
toolchain is. I'll read the INSTALL file in the meantime.
Sorry for top post earlier, my mistake.
I reviewed the INSTALL file. It doesn't mention anything regarding how
to setup the toolchain for the Git build. Also looks like I'll have to
build the library dependencies with ARM toolchain as well. Looks like
zlib is the only absolute required one. Is that correct?
From: Jeff King <hidden> Date: 2016-06-15 23:02:34
On Tue, Sep 23, 2014 at 07:47:11AM -0500, Robert Dailey wrote:
But if I type just 'make', I don't see how it will know where my ARM
toolchain is. I'll read the INSTALL file in the meantime.
It won't. If you are cross-compiling you'll have to specify CC and LD
manually, plus a host of other settings. We usually pick pretty sane
defaults (which is why you can get away without running autoconf), but
they're not going to be reasonable for cross-compiling. If you do go the
non-autoconf route, you'd probably want to try building with "make
uname_S=whatever" to override our defaults (see config.mak.uname for an
idea of which uname variables we look at).
In your original report:
quoted
quoted
fe@BLD01:~/code/git$ autoconf
fe@BLD01:~/code/git$ ./configure --prefix=/home/fe/git-arm
--build=x86_64-linux-gnu --host=arm-linux-androideabi
configure: Setting lib to 'lib' (the default)
configure: Will try -pthread then -lpthread to enable POSIX Threads.
configure: CHECKS for site configuration
checking for arm-linux-androideabi-gcc... arm-linux-androideabi-gcc
checking whether the C compiler works... no
configure: error: in `/home/fe/code/git':
configure: error: C compiler cannot create executables
See `config.log' for more details
Autoconf couldn't even build a simple hello-world with the compiler you
specified. So the first step would probably be to figure that out. What
does config.log say?
-Peff
From: Jeff King <hidden> Date: 2016-06-15 23:02:34
On Tue, Sep 23, 2014 at 07:52:32AM -0500, Robert Dailey wrote:
On Tue, Sep 23, 2014 at 7:47 AM, Robert Dailey [off-list ref] wrote:
quoted
But if I type just 'make', I don't see how it will know where my ARM
toolchain is. I'll read the INSTALL file in the meantime.
Sorry for top post earlier, my mistake.
I reviewed the INSTALL file. It doesn't mention anything regarding how
to setup the toolchain for the Git build. Also looks like I'll have to
build the library dependencies with ARM toolchain as well. Looks like
zlib is the only absolute required one. Is that correct?
Yes, zlib is the only absolute dependency. However, libcurl is useful if
you want to clone http repositories.
-Peff