On Wed, Aug 10, 2011 at 6:05 PM, Xiaofan Chen <xiaof...@gmail.com> wrote:
> On Wed, Aug 10, 2011 at 5:12 PM, Olivier Schonken
> <olivier.schon...@gmail.com> wrote:
>> Could you try building with
>>
>> ../configure --host=i686-pc-mingw32 --enable-jlink --enable-ft2232_libftdi
>> in stead of
>>
>> ../configure --build=i686-pc-mingw32 --enable-jlink --enable-ft2232_libftdi
>>
>> Afaik, --host specifies the cross-compiler i.e. the target system, while
>> --build specifies the system it is being built on - cygwin etc.  Remember to
>> do a make clean beforehand to clear any old object files.
>>
>> This might solve the path errors with building JimTCL.
>
> You are absolutely right. I made a mistake here and I will try again.

Yes it works now. Thanks. I also need to make sure that I use fresh
build source tree.

mcuee@AcerPC /cygdrive/d/work/openocd/openocd-0.5.0/build_mingw_cross
$ ../configure --host=i686-pc-mingw32 --build=i686-pc-cygwin
--enable-jlink --enable-ft2232_libftdi
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for i686-pc-mingw32-strip... i686-pc-mingw32-strip
checking for a thread-safe mkdir -p... /usr/bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether to enable maintainer-specific portions of Makefiles... no
checking for i686-pc-mingw32-gcc... i686-pc-mingw32-gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.exe
checking for suffix of executables... .exe
checking whether we are cross compiling... yes
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether i686-pc-mingw32-gcc accepts -g... yes
checking for i686-pc-mingw32-gcc option to accept ISO C89... none needed
checking for style of include used by make... GNU
checking dependency style of i686-pc-mingw32-gcc... gcc3
checking for i686-pc-mingw32-gcc option to accept ISO C99... -std=gnu99
checking whether i686-pc-mingw32-gcc -std=gnu99 and cc understand -c
and -o together... yes
checking for i686-pc-mingw32-ranlib... i686-pc-mingw32-ranlib
checking build system type... i686-pc-cygwin
checking host system type... i686-pc-mingw32
checking how to print strings... printf
checking for a sed that does not truncate output... /usr/bin/sed
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking for fgrep... /usr/bin/grep -F
checking for ld used by i686-pc-mingw32-gcc -std=gnu99...
/usr/i686-pc-mingw32/bin/ld.exe
checking if the linker (/usr/i686-pc-mingw32/bin/ld.exe) is GNU ld... yes
checking for BSD- or MS-compatible name lister (nm)...
/usr/bin/i686-pc-mingw32-nm -B
checking the name lister (/usr/bin/i686-pc-mingw32-nm -B) interface... BSD nm
checking whether ln -s works... yes
checking the maximum length of command line arguments... 8192
checking whether the shell understands some XSI constructs... yes
checking whether the shell understands "+="... yes
checking how to convert i686-pc-cygwin file names to i686-pc-mingw32
format... func_convert_file_cygwin_to_w32
checking how to convert i686-pc-cygwin file names to toolchain
format... func_convert_file_noop
checking for /usr/i686-pc-mingw32/bin/ld.exe option to reload object files... -r

checking for i686-pc-mingw32-objdump... i686-pc-mingw32-objdump
checking how to recognize dependent libraries... file_magic ^x86
archive import|^x86 DLL
checking for i686-pc-mingw32-dlltool... i686-pc-mingw32-dlltool
checking how to associate runtime and link libraries...
func_cygming_dll_for_implib
checking for i686-pc-mingw32-ar... i686-pc-mingw32-ar
checking for archiver @FILE support... @
checking for i686-pc-mingw32-strip... (cached) i686-pc-mingw32-strip
checking for i686-pc-mingw32-ranlib... (cached) i686-pc-mingw32-ranlib
checking command to parse /usr/bin/i686-pc-mingw32-nm -B output from i686-pc-min
gw32-gcc -std=gnu99 object... ok
checking for sysroot... no
checking for i686-pc-mingw32-mt... no
checking for mt... no
checking if : is a manifest tool... no
checking how to run the C preprocessor... i686-pc-mingw32-gcc -std=gnu99 -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking for dlfcn.h... no
checking for objdir... .libs
checking if i686-pc-mingw32-gcc -std=gnu99 supports -fno-rtti -fno-exceptions...
 no
checking for i686-pc-mingw32-gcc -std=gnu99 option to produce PIC...
-DDLL_EXPORT -DPIC
checking if i686-pc-mingw32-gcc -std=gnu99 PIC flag -DDLL_EXPORT -DPIC works...
yes
checking if i686-pc-mingw32-gcc -std=gnu99 static flag -static works... yes
checking if i686-pc-mingw32-gcc -std=gnu99 supports -c -o file.o... yes
checking if i686-pc-mingw32-gcc -std=gnu99 supports -c -o file.o... (cached) yes

checking whether the i686-pc-mingw32-gcc -std=gnu99 linker (/usr/i686-pc-mingw32
/bin/ld.exe) supports shared libraries... yes
checking dynamic linker characteristics... Win32 ld.exe
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... no
checking whether to build static libraries... yes
checking for an ANSI C-conforming const... yes
checking for long long int... yes
checking for library containing ioperm... no
checking for library containing dlopen... no
checking sys/socket.h usability... no
checking sys/socket.h presence... no
checking for sys/socket.h... no
checking for arpa/inet.h... no
checking elf.h usability... no
checking elf.h presence... no
checking for elf.h... no
checking dirent.h usability... yes
checking dirent.h presence... yes
checking for dirent.h... yes
checking fcntl.h usability... yes
checking fcntl.h presence... yes
checking for fcntl.h... yes
checking for ifaddrs.h... no
checking malloc.h usability... yes
checking malloc.h presence... yes
checking for malloc.h... yes
checking netdb.h usability... no
checking netdb.h presence... no
checking for netdb.h... no
checking for netinet/in.h... no
checking for netinet/tcp.h... no
checking pthread.h usability... yes
checking pthread.h presence... yes
checking for pthread.h... yes
checking for strings.h... (cached) yes
checking sys/ioctl.h usability... no
checking sys/ioctl.h presence... no
checking for sys/ioctl.h... no
checking sys/param.h usability... yes
checking sys/param.h presence... yes
checking for sys/param.h... yes
checking sys/poll.h usability... no
checking sys/poll.h presence... no
checking for sys/poll.h... no
checking sys/select.h usability... no
checking sys/select.h presence... no
checking for sys/select.h... no
checking for sys/stat.h... (cached) yes
checking sys/time.h usability... yes
checking sys/time.h presence... yes
checking for sys/time.h... yes
checking for sys/types.h... (cached) yes
checking for unistd.h... (cached) yes
checking for net/if.h... no
checking whether to enable assertions... yes
checking for stdbool.h that conforms to C99... yes
checking for _Bool... yes
checking whether time.h and sys/time.h may both be included... yes
checking whether byte ordering is bigendian... no
checking for strndup... no
checking for strnlen... no
checking for gettimeofday... yes
checking for usleep... yes
checking for vasprintf... no
checking whether to build Doxygen as HTML... yes
checking whether to build Doxygen as PDF... no
checking whether to enable verbose JTAG I/O messages... no
checking whether to enable verbose USB I/O messages... no
checking whether to enable verbose USB communication messages... no
checking whether to enable malloc free space logging... no
checking whether to enable ZY1000 minidriver... no
checking whether to enable dummy minidriver... no
checking whether standard drivers can be built... yes
checking Build & Link with libftdi...... Skipping as we are cross-compiling
checking for libftdi highspeed device support... yes
checking usb.h usability... yes
checking usb.h presence... yes
checking for usb.h... yes
checking for environ in unistd.h and stdlib.h... yes
checking for a C compiler for build tools... checking for gcc... gcc
gcc
checking for suffix of executable build tools... .exe
configure: creating ./config.status
config.status: creating Makefile
config.status: creating src/Makefile
config.status: creating src/helper/Makefile
config.status: creating src/jtag/Makefile
config.status: creating src/jtag/drivers/Makefile
config.status: creating src/transport/Makefile
config.status: creating src/xsvf/Makefile
config.status: creating src/svf/Makefile
config.status: creating src/target/Makefile
config.status: creating src/rtos/Makefile
config.status: creating src/server/Makefile
config.status: creating src/flash/Makefile
config.status: creating src/flash/nor/Makefile
config.status: creating src/flash/nand/Makefile
config.status: creating src/pld/Makefile
config.status: creating doc/Makefile
config.status: creating config.h
config.status: config.h is unchanged
config.status: executing depfiles commands
config.status: executing libtool commands
=== configuring in jimtcl
(/cygdrive/d/work/openocd/openocd-0.5.0/build_mingw_cross/jimtcl)
configure: running /bin/sh ../../jimtcl/configure.gnu --disable-option-checking
'--prefix=/usr/local'  '--host=i686-pc-mingw32' '--build=i686-pc-cygwin' '--enab
le-jlink' '--enable-ft2232_libftdi' 'build_alias=i686-pc-cygwin' 'host_alias=i68
6-pc-mingw32' --cache-file=/dev/null --srcdir=../../jimtcl
No installed jimsh or tclsh, building local bootstrap jimsh0
Host System...i686-pc-mingw32
Build System...i686-pc-cygwin
C compiler... i686-pc-mingw32-gcc -g -O2
Checking for stdlib.h...ok
Checking for long long...ok
Checking for sys/socket.h...not found
Checking for netinet/in.h...not found
Checking for arpa/inet.h...not found
Checking for netdb.h...not found
Checking for sys/un.h...not found
Checking for dlfcn.h...not found
Checking for unistd.h...ok
Checking for crt_externs.h...not found
Checking for ualarm...not found
Checking for sysinfo...not found
Checking for lstat...not found
Checking for fork...not found
Checking for vfork...not found
Checking for system...ok
Checking for select...not found
Checking for backtrace...not found
Checking for geteuid...not found
Checking for mkstemp...not found
Checking for realpath...not found
Checking for strptime...not found
Checking for gettimeofday...ok
Checking for regcomp...not found
Checking for waitpid...not found
Checking for sigaction...not found
Checking for sys_signame...not found
Checking for sys_siglist...not found
Checking for syslog...not found
Checking for opendir...ok
Checking for readlink...not found
Checking for sleep...not found
Checking for usleep...ok
Checking for pipe...not found
Checking for inet_ntop...not found
Checking for getaddrinfo...not found
Checking for _NSGetEnviron...not found
Checking environ declared in unistd.h...no
Checking for sys/types.h...ok
Checking for sys/stat.h...ok
Checking for mkdir with one arg...yes
Enabling references
Building static library
Checking libs for socket...no
Extension aio...enabled (default)
Extension array...enabled (default)
Extension binary...not enabled
Extension clock...enabled (default)
Extension eventloop...enabled (default)
Extension exec...enabled (default)
Extension file...enabled (default)
Extension glob...enabled (default)
Checking libs for dlopen...no
Extension load...enabled (default)
Extension nvp...enabled
Extension oo...not enabled
Extension pack...not enabled
Extension package...enabled (default)
Extension posix...disabled (dependencies)
Extension readdir...enabled
Extension readline...not enabled
Extension regexp...enabled (default)
Extension rlprompt...not enabled
Extension signal...disabled (dependencies)
Extension sqlite...not enabled
Extension sqlite3...not enabled
Extension stdlib...enabled (default)
Extension syslog...disabled (dependencies)
Extension tclcompat...enabled (default)
Extension tree...not enabled
Extension win32...not enabled
Using built-in regexp
Jim static extensions: aio array clock eventloop exec file glob load nvp package
 readdir regexp stdlib tclcompat
Created jim-config.h
Created jimautoconf.h
Created Makefile from Makefile.in

D:\work\openocd\openocd-0.5.0\build_mingw_cross\src>openocd.exe -v
Open On-Chip Debugger 0.5.0 (2011-08-10-20:42)
Licensed under GNU GPL v2
For bug reports, read
        http://openocd.berlios.de/doc/doxygen/bugs.html

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

Reply via email to