[Python-bugs-list] [Bug #110836] configure script fails with cross-compiler (PR#228)

noreply@sourceforge.net noreply@sourceforge.net
Thu, 5 Oct 2000 08:38:10 -0700


Bug #110836, was updated on 2000-Aug-01 14:14
Here is a current snapshot of the bug.

Project: Python
Category: Build
Status: Closed
Resolution: Later
Bug Group: Feature Request
Priority: 3
Summary: configure script fails with cross-compiler (PR#228)

Details: Jitterbug-Id: 228
Submitted-By: dean@dragonsys.com
Date: Wed,  8 Mar 2000 15:36:00 -0500 (EST)
Version: 1.5.2
OS: Linux


I was trying to build python with a cross-compiler, so I put my cross-compiler
bin directory in the front of my path and executed the configure script. The
fact that a cross-compiler was being used was detected correctly, causing it to
fail later on at line 1922:
    { echo "configure: error: can not run test program while cross compiling"
1>&2; exit 1; }

This is a bug in configure, isn't it?





====================================================================
Audit trail:
Mon Apr 03 18:37:06 2000	guido	moved from incoming to request

Follow-Ups:

Date: 2000-Aug-01 14:14
By: none

Comment:
From: Guido van Rossum <guido@python.org>
Subject: Re: [Python-bugs-list] configure script fails with cross-compiler (PR#228)
Date: Wed, 08 Mar 2000 22:19:12 -0500

> I was trying to build python with a cross-compiler, so I put my cross-compiler
> bin directory in the front of my path and executed the configure script. The
> fact that a cross-compiler was being used was detected correctly, causing it to
> fail later on at line 1922:
>     { echo "configure: error: can not run test program while cross compiling"
> 1>&2; exit 1; }
> 
> This is a bug in configure, isn't it?

Depends on your point of view.  It's a restriction that the configure
doesn't work with a cross compiler, because there are a bunch of tests
for which it needs to run code to determine the outcome.

If you want to contribute patches to configure.in to supply defaults
(I think there are 6-8 cases) that would be approciated.  See
python.org/patches/.

Cheers,

--Guido van Rossum (home page: http://www.python.org/~guido/)


-------------------------------------------------------

Date: 2000-Oct-05 08:38
By: bwarsaw

Comment:
I'm not sure what changes to configure are necessary to support cross compiling, but if we decide to fix this, it shouldn't be until after 2.0 final.

I've added this feature request to PEP 42, under the Building and Installing section.  Closing this bug.
-------------------------------------------------------

For detailed info, follow this link:
http://sourceforge.net/bugs/?func=detailbug&bug_id=110836&group_id=5470