From: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
To: buildroot@busybox.net
Subject: [Buildroot] configure error while trying to add package git
Date: Thu, 18 Apr 2013 14:29:54 +0200 [thread overview]
Message-ID: <20130418142954.6cb3b00a@skate> (raw)
In-Reply-To: <9BAF5BF9BE8F4D08B0E74E8595853989@JohanW7>
Dear Sagaert Johan,
On Thu, 18 Apr 2013 14:21:06 +0200, Sagaert Johan wrote:
> The configure script throws :
>
> configure: error: cannot run test program while cross compiling
This happens when a configure.ac script has a AC_RUN_IFELSE() test. It
tries to run programs, which is not possible when cross-compiling. So
you need to tell the configure script what is the result of those
tests, so that it doesn't execute them. In the case of Git, it should
be:
GIT_CONF_ENV = \
ac_cv_fread_reads_directories=<yes or no> \
ac_cv_snprintf_returns_bogus=<yes or no>
Of course, you still have to figure out what's the right value to put.
> #resolves to tag 1.8.2.1
> GIT_VERSION = 5bda18c186e455f8e65f976d3bf333ab1f4b5b53
Then just use GIT_VERSION = 1.8.2.1
Just curious, why are you packaging Git? Remember that we are
deprecating the support for the toolchain on the target, so if what you
want to achieve is build C/C++ code on the target, you're probably not
on the right track.
Best regards,
Thomas
--
Thomas Petazzoni, Free Electrons
Kernel, drivers, real-time and embedded Linux
development, consulting, training and support.
http://free-electrons.com
prev parent reply other threads:[~2013-04-18 12:29 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-04-18 12:21 [Buildroot] configure error while trying to add package git Sagaert Johan
2013-04-18 12:29 ` Thomas Petazzoni [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20130418142954.6cb3b00a@skate \
--to=thomas.petazzoni@free-electrons.com \
--cc=buildroot@busybox.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox