Opened 14 years ago

Closed 14 years ago

#5561 closed bug (fixed)

[patch] Allow Python on linux to compile the buildtools

Reported by: mmadia Owned by: bonefish
Priority: normal Milestone: R1
Component: Build System Version: R1/Development
Keywords: Cc:
Blocked By: Blocking:
Platform: All

Description

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.

Attachments (1)

buildtools-gcc-gmp-configure-in_python.patch (339 bytes ) - added by mmadia 14 years ago.

Download all attachments as: .zip

Change History (3)

comment:1 by bonefish, 14 years ago

Fine by me.

comment:2 by mmadia, 14 years ago

Resolution: fixed
Status: newclosed

Applied in hrev35831.

Note: See TracTickets for help on using tickets.