[haiku-bugs] [Haiku] #5561: [patch] Allow Python on linux to compile the buildtools
- From: "mmadia" <trac@xxxxxxxxxxxx>
- Date: Thu, 11 Mar 2010 22:08:44 -0000
#5561: [patch] Allow Python on linux to compile the buildtools
--------------------------+-------------------------------------------------
Reporter: mmadia | Owner: bonefish
Type: bug | Status: new
Priority: normal | Milestone: R1
Component: Build System | Version: R1/Development
Keywords: | Blockedby:
Platform: All | Blocking:
--------------------------+-------------------------------------------------
While testing Build-O-Matic on Ubuntu, it would consistently fail to
configure gcc.
Python test code:
(haiku/, buildtools/, generated/ are all subdirs of output/)
{{{
import os, subprocess, sys, commands
os.chdir('/home/mmadia/Build-O-Matic/output/generated.arm')
cmd = "../haiku/configure --use-gcc-pipe --build-cross-tools-gcc4 arm
../buildtools"
retcode = subprocess.call(cmd, shell=True)
print "\n\n\nReturn code:", retcode
}}}
Output snippet:
{{{
...
checking for bison... bison -y
checking for flex... flex
checking for yywrap in -lfl... yes
checking lex output file root... configure: error: cannot find output from
flex; giving up
make[1]: *** [configure-gmp] Error 1
make[1]: Leaving directory
`/home/mmadia/Build-O-Matic/output/generated.mipsel/cross-tools-build/gcc'
make: *** [all] Error 2
ERROR: Building gcc failed.
}}}
Running Haiku's configure command outside of Python, completes
successfully. Only from within Python would it fail.
Here are some related mailing list threads, that DraX and I found
http://gmplib.org/list-archives/gmp-bugs/2008-August/001114.html
http://www.cygwin.com/ml/cygwin/2008-08/msg00067.html
http://gcc.gnu.org/ml/gcc/2008-07/msg00663.html
The attached patch is based on the first link and has tested successfully
in Python in Ubuntu.
--
Ticket URL: <http://dev.haiku-os.org/ticket/5561>
Haiku <http://dev.haiku-os.org>
Haiku - the operating system.
Other related posts: