tech-toolchain archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: debugging early failure of build.sh (in rebuilding nbmake)
On Sun, 13 Jan 2013, Martin Husemann wrote:
I would suggest to copy the log file to /tmp in error case and print a
message pointing this out.
OK, how about this:
...
===> Bootstrapping nbmake
checking for sh... /bin/sh
checking for gcc... cc
checking for C compiler default output... configure: error: C compiler
cannot create executables
ERROR: Configure of nbmake failed, see /tmp/nbbuild5181-config.log for
details
*** BUILD ABORTED ***
%
Patch is below.
Any objections to commit?
- Hubert
Index: build.sh
===================================================================
RCS file: /cvsroot/src/build.sh,v
retrieving revision 1.260
diff -u -r1.260 build.sh
--- build.sh 2 Dec 2012 19:19:36 -0000 1.260
+++ build.sh 13 Jan 2013 11:51:11 -0000
@@ -1454,7 +1454,8 @@
${runcmd} env CC="${HOST_CC-cc}" CPPFLAGS="${HOST_CPPFLAGS}" \
CFLAGS="${HOST_CFLAGS--O}" LDFLAGS="${HOST_LDFLAGS}" \
${HOST_SH} "${TOP}/tools/make/configure" ||
- bomb "Configure of ${toolprefix}make failed"
+ ( cp ${tmpdir}/config.log ${tmpdir}-config.log ; # HF
+ bomb "Configure of ${toolprefix}make failed, see
${tmpdir}-config.log for details" )
${runcmd} ${HOST_SH} buildmake.sh ||
bomb "Build of ${toolprefix}make failed"
make="${tmpdir}/${toolprefix}make"
Home |
Main Index |
Thread Index |
Old Index