OK, I've fixed the error that Manuel Villar reported, expanded the output messages and error messages, added a --log option to create a buildlog file and added a check for a mismatch in the upstream source version. The manpage describes this error as: If the upstream buildd for the specified architecture fails to build the current version of one of the toolchain packages, emchain will abort with a "Mismatch in source version" error. It is unlikely that emchain will be able to build a usable toolchain using the new upstream version - even if the cross-build may otherwise appear to succeed. An existing toolchain (typically the previous version) will be unaffected - this failure only affects the creation of new toolchains. Unfortunately, there is little that emchain can do other than highlight the failure to build from source (FTBFS) on the requested architecture. To build a new toolchain manually, you will need to obtain the previous version of the source and follow the build instructions on http://www.emdebian.org/ or wait until the problem has been fixed upstream. You may wish to check for an existing FTBFS bug report against the affected package in the Debian BTS wget http://buildd.emdebian.org/repos/tools/emchain/emchain.html I added this error because that is what is currently blocking my own toolchain updating to the newest release of gcc-4.1: $ /path/to/emchain emchain: Error. Mismatch in source versions arm does not appear to have built version 4.1.1ds2-20 of gcc-4.1 successfully yet. Therefore it is unlikely that emchain will be able to build a usable cross-compiler using the current upstream source of gcc-4.1. Only version 4.1.1ds2-19 is available on arm and emchain is unable to proceed. Please run emchain again when the arm port has updated. (The issue appears to be a failed patch.) http://buildd.debian.org/fetch.cgi?pkg=gcc-4.1;ver=4.1.1ds2-20;arch=arm;stamp=1163650986 Thankfully, by fixing that DEB_CROSS_INDEPENDENT=yes issue, I can continue to use my 4.1.1ds2-19 build of gcc-4.1 : ii gcc-4.1 4.1.1-20 ii gcc-4.1-arm-linux-gnu 4.1.1-19 ii gcc-4.1-arm-linux-gnu-base 4.1.1-19 ii gcc-4.1-base 4.1.1-20 Please test with other architectures and let me know. As of v0.0.3, it is recommended to run 'emchain -v' or 'emchain -v -l' when running the program directly as the default 'emchain' run is intended for cron-apt usage and is silent unless the script dies. -- Neil Williams ============= http://www.data-freedom.org/ http://www.nosoftwarepatents.com/ http://www.linux.codehelp.co.uk/
Attachment:
pgpzILxk4Vfdr.pgp
Description: PGP signature