raspberrypi / tools

1.89k stars 865 forks source link

Toolchain build fails on ArchLinux host due to Python path #9

Open johnlane opened 11 years ago

johnlane commented 11 years ago

Having just tried to build toolchain with crosstool-ng on an x86_64 ArchLinux machine, I found that it fails on the step Installing cross-gdb due to the wrong Python being used:

[INFO ]  Installing cross-gdb
[ERROR]    configure: error: failure running python-config --includes

The error is a syntax difference between Python2 and 3. I could not work out how to configure the toolchain build to use the correct python path. To get around this I disabled the debug tools in the config until I can find the correct solution:

#   
# Debug facilities
#   
# CT_DEBUG_dmalloc is not set 
# CT_DEBUG_duma is not set 
#CT_DEBUG_gdb=y
#CT_GDB_CROSS=y
# CT_GDB_CROSS_STATIC is not set 
# CT_GDB_CROSS_SIM is not set 
#CT_GDB_CROSS_PYTHON=y
#CT_GDB_CROSS_EXTRA_CONFIG_ARRAY=""
# CT_GDB_NATIVE is not set 
#CT_GDB_GDBSERVER=y
#CT_GDB_GDBSERVER_STATIC=y

Config used: https://raw.github.com/raspberrypi/tools/master/configs/bcm2708hardfp-ct-ng.config

Host uname: Linux 3.6.10-1-ARCH #1 SMP PREEMPT Tue Dec 11 09:40:17 CET 2012 x86_64 GNU/Linux

Ruffio commented 9 years ago

@johnlane is this still an issue?

johnlane commented 9 years ago

don't know, I've move on to other things since then. If I get some time I will take a look...