On 15 August 2011 14:22, Eric Wetzel <[email protected]> wrote: > Hello, > > Recently, perhaps the last month or two, I've noticed the Git revision > string is not being appended to base version in the OpenOCD banner. > From my investigation, I believe that my observation of the problem > was dependent upon my use of a new toolchain and environment, because > the suspect lines seem to have been there for quite some time. > > I'm using the (new, as of about 2 months ago) mingw cross-compiler > under Cygwin in Windows 7. `configure` seems to think that I'm trying > to build a release, so it doesn't run guess-rev.sh. I found this in > configure.in: > if test $cross_compiling = no; then > # guess-rev.sh only exists in the repository, not in the released archives > AC_CHECK_FILE("$srcdir/guess-rev.sh", has_guess_rev=yes, has_guess_rev=no) > > AC_MSG_CHECKING([whether to build a release]) > if test $has_guess_rev = no; then > build_release=yes > else > build_release=no > fi > AC_MSG_RESULT($build_release) > else > build_release=yes > fi > > We automatically assume that if we are cross-compiling that we are > building a release. This section was last modified in July 2009, back > in the SVN days, but the commit is here: > http://repo.or.cz/w/openocd.git/commitdiff/00fad24996d6642c6a820cc951c197dddef5734a > > Before someone reminded me of the --build and --host options in > configure, I would append CC='gcc-3 -mno-cygwin' to the configure > line. Perhaps this fooled the process into thinking that it wasn't > cross-compiling. >
I spotted this a while back but have never found time to look into further. But you are correct and this is an issue with cross compiling mingw under cygwin.os. It is not so much the files existence, but we must be able to execute it. As you also point out the old method did fool the build system into thinking it was a native build. However it is still an issue for example 32bit builds on a 64bit host. Spen _______________________________________________ Openocd-development mailing list [email protected] https://lists.berlios.de/mailman/listinfo/openocd-development
