[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: configure scripts and cross-compiling
From: |
Guido Draheim |
Subject: |
Re: configure scripts and cross-compiling |
Date: |
Wed, 23 May 2001 14:06:42 +0200 |
You are doing fine, just some configure-checks are not ready
for cross-compiling, and that's what you are warned about.
Basically, the package that you are trying to cross-compile
has not been made ready for cross-compiling.
Two approaches:
a) learn about config.site or cache-file, and let it contain
cache-values - the check will then say "(cached) yes",
so it won't try to autodetect anything.
b) bigendian-crosscompilecheck is a common problem, may be
the next generation autoconf will have the solution that
is currently present in in the autoconf-archive. Edit the
configure.in, replace AC_C_BIGENDIAN with the reference
to the following macro, reconf, and build. This is
generic for all target platforms.
http://cryp.to/autoconf-archive/Cross_Compilation/ac_c_bigendian_cross.html
cheers, guido http://www.gnu.org/software/ac-archive
Mike Culbertson wrote:
>
> Could somone specify what it is generic configure script would have to
> find in order to think that the compiler I am using (gcc 2.95-3 on
> sun/sparc solaris 8) is a cross-compiler? I have a fairly standard
> install of everything, and I am using no proprietary tools with the
> exception of a few in /usr/ccs/bin (ar, as, etc). At thi point, nothing
> wants to build properly and I am really not sure what I have changed that
> has caused this (I never have actually been set up as a cross-compiler)
> Thanks in advance. Any other info provided on request.
>
> it dies here:
> bash-2.03# ./configure
> loading cache ./config.cache
> checking for gcc... gcc
> checking whether the C compiler (gcc -02 -msupersparc ) works... yes
> checking whether the C compiler (gcc -02 -msupersparc ) is a
> cross-compiler... yes
> checking whether we are using GNU C... yes
> checking whether gcc accepts -g... yes
> checking host system type... sparc-sun-solaris2.8
> checking whether byte ordering is bigendian... configure: error: can not
> run test program while cross compiling
> bash-2.03#
>
> Mike Culbertson
-- guido Edel sei der Mensch, hilfreich und gut
31:GCS/E/S/P C++$++++ ULHS L++w- N++@ d(+-) s+a- h.r(*@)>+++ y++ 5++X-