Hi Xiaofan

I also experienced the same build error a while ago.  To fix it I manually
checked out version 0.63 of JimTCL, and after that, the build went on
without any problems.  I did a git clone of openocd just-now, and I did a
--host="i686-w64-mingw32" build on a Windows 7 installation of cygwin, and
it compiled without a hitch.

Please let me know if this doesn't help.

Regards

Olivier



Subject: Re: [Openocd-development] 0.5.0 MinGW configure failure
Message-ID:
        <CAGjSPUCkqMc7zrf==G7dMby+cf=mwmmw7u1ooekyc6yjnyf...@mail.gmail.com>
Content-Type: text/plain; charset=windows-1252

On Tue, Aug 9, 2011 at 10:05 PM, Xiaofan Chen <xiaof...@gmail.com> wrote:
> On Tue, Aug 9, 2011 at 9:47 PM, Xiaofan Chen <xiaof...@gmail.com> wrote:
>> On Tue, Aug 9, 2011 at 9:27 PM, Spencer Oliver <s...@spen-soft.co.uk>
wrote:
>>> The issue is building using msys under windoze.
>>> Using cygwin or linux to build native win32 (mingw) is not an issue.
>>>
>>
>> I remember there were no issues to build MinGW binary under
>> Cygwin with the cross compiler with OpenOCD git. But it seems
>> that there are problems with the 0.5.0 release tar ball.
>>
>> Actually build under Cygwin is also problematic.
>
> Luckily git tree is still okay for Cygwin native build and
> Cygwin MinGW cross build.
>

But only Cygwin native build is okay.
$ openocd -v
Open On-Chip Debugger 0.6.0-dev-00002-gdb87a2f-dirty (2011-08-09-22:03)
Licensed under GNU GPL v2
For bug reports, read
        http://openocd.berlios.de/doc/doxygen/bugs.html


MinGW cross build under Cygwin fails because of
jimtcl.<jimtcl.mcuee@mcuee-PC-Win7>

mcuee@mcuee-PC-Win7
<jimtcl.mcuee@mcuee-PC-Win7>

/cygdrive/d/work/openocd/openocd/build-crossmingw
$ make
make  all-recursive
make[1]: Entering directory
`/cygdrive/d/work/openocd/openocd/build-crossmingw'
Making all in jimtcl
make[2]: Entering directory
`/cygdrive/d/work/openocd/openocd/build-crossmingw/j
imtcl'
/cygdrive/d/work/openocd/openocd/build-crossmingw/jimtcl/../../jimtcl/autosetup/
jimsh0 ../../jimtcl/make-load-static-exts.tcl aio array clock eventloop exec
fil
e load nvp package posix readdir regexp signal syslog glob stdlib tclcompat
>_lo
ad-static-exts.c || ( rm _load-static-exts.c; exit 1)
cc -g -O2 -D_GNU_SOURCE -Wall -Werror  -I. -I../../jimtcl  -c -o
_load-static-ex
ts.o _load-static-exts.c
cc -g -O2 -D_GNU_SOURCE -Wall -Werror  -I. -I../../jimtcl  -c -o
jim-subcmd.o ..
/../jimtcl/jim-subcmd.c
cc -g -O2 -D_GNU_SOURCE -Wall -Werror  -I. -I../../jimtcl  -c -o
jim-interactive
.o ../../jimtcl/jim-interactive.c
cc -g -O2 -D_GNU_SOURCE -Wall -Werror  -I. -I../../jimtcl  -c -o
jim-format.o ..
/../jimtcl/jim-format.c
cc -g -O2 -D_GNU_SOURCE -Wall -Werror  -I. -I../../jimtcl  -c -o jim.o
../../jim
tcl/jim.c
cc -g -O2 -D_GNU_SOURCE -Wall -Werror  -I. -I../../jimtcl  -c -o utf8.o
../../ji
mtcl/utf8.c
cc -g -O2 -D_GNU_SOURCE -Wall -Werror  -I. -I../../jimtcl  -c -o jimregexp.o
../
../jimtcl/jimregexp.c
cc -g -O2 -D_GNU_SOURCE -Wall -Werror  -I. -I../../jimtcl  -c -o
jim-win32compat
.o ../../jimtcl/jim-win32compat.c
cc1: warnings being treated as errors
../../jimtcl/jim-win32compat.c: In function ?dlopen?:
../../jimtcl/jim-win32compat.c:9: error: implicit declaration of
function ?LoadLibraryA?
../../jimtcl/jim-win32compat.c: In function ?dlclose?:
../../jimtcl/jim-win32compat.c:14: error: implicit declaration of
function ?FreeLibrary?
../../jimtcl/jim-win32compat.c:14: error: ?HANDLE? undeclared (first
use in this function)
../../jimtcl/jim-win32compat.c:14: error: (Each undeclared identifier
is reported only once
../../jimtcl/jim-win32compat.c:14: error: for each function it appears in.)
../../jimtcl/jim-win32compat.c:14: error: expected ?)? before ?handle?
../../jimtcl/jim-win32compat.c: In function ?dlsym?:
../../jimtcl/jim-win32compat.c:20: error: implicit declaration of
function ?GetProcAddress?
../../jimtcl/jim-win32compat.c:20: error: ?HMODULE? undeclared (first
use in this function)
../../jimtcl/jim-win32compat.c:20: error: expected ?)? before ?handle?
../../jimtcl/jim-win32compat.c:20: error: return makes pointer from
integer without a cast
../../jimtcl/jim-win32compat.c: In function ?dlerror?:
../../jimtcl/jim-win32compat.c:26: error: implicit declaration of
function ?FormatMessageA?
../../jimtcl/jim-win32compat.c:26: error: ?FORMAT_MESSAGE_FROM_SYSTEM?
undeclared (first use in this function)
../../jimtcl/jim-win32compat.c:26: error: implicit declaration of
function ?GetLastError?
../../jimtcl/jim-win32compat.c:27: error: ?LANG_NEUTRAL? undeclared
(first use in this function)
make[2]: *** [jim-win32compat.o] Error 1
make[2]: Leaving directory
`/cygdrive/d/work/openocd/openocd/build-crossmingw/jimtcl'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory
`/cygdrive/d/work/openocd/openocd/build-crossmingw'
make: *** [all] Error 2 <2mcuee@mcuee-PC-Win7>

mcuee@mcuee-PC-Win7
<2mcuee@mcuee-PC-Win7>

/cygdrive/d/work/openocd/openocd/build-crossmingw
$ i686-pc-mingw32-gcc -v
Using built-in specs.
COLLECT_GCC=i686-pc-mingw32-gcc
COLLECT_LTO_WRAPPER=/usr/lib/gcc/i686-pc-mingw32/4.5.2/lto-wrapper.exe
Target: i686-pc-mingw32
Configured with:
/usr/src/packages/mingw-gcc/mingw-gcc-4.5.2-1/src/gcc-4.5.2/con
figure --srcdir=/usr/src/packages/mingw-gcc/mingw-gcc-4.5.2-1/src/gcc-4.5.2
--pr
efix=/usr --exec-prefix=/usr --bindir=/usr/bin --sbindir=/usr/sbin
--libexecdir=
/usr/lib --datadir=/usr/share --localstatedir=/var --sysconfdir=/etc
--datarootd
ir=/usr/share --docdir=/usr/share/doc/mingw-gcc -C --build=i686-pc-cygwin
--host
=i686-pc-cygwin --target=i686-pc-mingw32
--with-sysroot=/usr/i686-pc-mingw32/sys
-root --with-build-sysroot=/usr/i686-pc-mingw32/sys-root --disable-multilib
--di
sable-win32-registry --enable-languages=c,c++,fortran,objc,obj-c++
--enable-libg
omp --disable-sjlj-exceptions --enable-libstdcxx-debug
--enable-version-specific
-runtime-libs --with-dwarf2 --disable-werror --enable-lto
Thread model: win32
gcc version 4.5.2 (GCC)

--
Xiaofan
_______________________________________________
Openocd-development mailing list
Openocd-development@lists.berlios.de
https://lists.berlios.de/mailman/listinfo/openocd-development

Reply via email to