Opened 10 years ago

Closed 10 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


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
cmd = "../haiku/configure --use-gcc-pipe --build-cross-tools-gcc4 arm ../buildtools"
retcode =, 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

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 10 years ago.

Download all attachments as: .zip

Change History (3)

comment:1 by bonefish, 10 years ago

Fine by me.

comment:2 by mmadia, 10 years ago

Resolution: fixed
Status: newclosed

Applied in hrev35831.

Note: See TracTickets for help on using tickets.