W dniu 2012-11-21 15:51, CeDeROM pisze: > I have made a build on a Linux and it works fine, so the issue seems > to be Windows related.. please tell me the exact build environment, or > send the binary so I can debug it :-)
Below is the link to unstripped binary (32- and 64-bit version, whichever you prefer): https://www.dropbox.com/s/yp6xwsrols3b53n/openocd-swd.7z The behavior with these new binaries is the same... > cd@bt:~/work/openocd-libswd/libswd$ gcc -v > Using built-in specs. > Target: x86_64-linux-gnu > Configured with: ../src/configure -v --with-pkgversion='Ubuntu > 4.4.3-4ubuntu5.1' > --with-bugurl=file:///usr/share/doc/gcc-4.4/README.Bugs > --enable-languages=c,c++,fortran,objc,obj-c++ --prefix=/usr > --enable-shared --enable-multiarch --enable-linker-build-id > --with-system-zlib --libexecdir=/usr/lib --without-included-gettext > --enable-threads=posix --with-gxx-include-dir=/usr/include/c++/4.4 > --program-suffix=-4.4 --enable-nls --enable-clocale=gnu > --enable-libstdcxx-debug --enable-plugin --enable-objc-gc > --disable-werror --with-arch-32=i486 --with-tune=generic > --enable-checking=release --build=x86_64-linux-gnu > --host=x86_64-linux-gnu --target=x86_64-linux-gnu > Thread model: posix > gcc version 4.4.3 (Ubuntu 4.4.3-4ubuntu5.1) In here: > [freddie@arch libswd]$ x86_64-w64-mingw32-gcc -v > Using built-in specs. > COLLECT_GCC=x86_64-w64-mingw32-gcc > COLLECT_LTO_WRAPPER=/usr/local/w64/bin/../libexec/gcc/x86_64-w64-mingw32/4.7.2/lto-wrapper > Target: x86_64-w64-mingw32 > Configured with: /home/ruben/mingw-w64/src/gcc/configure > --host=x86_64-linux-gnu --build=x86_64-linux-gnu --target=x86_64-w64-mingw32 > --with-sysroot=/home/ruben/mingw-w64/linux64mingw64/mingw64 > --prefix=/home/ruben/mingw-w64/linux64mingw64/mingw64 > --with-gmp=/home/ruben/mingw-w64/prereq/x86_64-linux-gnu/install > --with-mpfr=/home/ruben/mingw-w64/prereq/x86_64-linux-gnu/install > --with-mpc=/home/ruben/mingw-w64/prereq/x86_64-linux-gnu/install > --with-ppl=/home/ruben/mingw-w64/prereq/x86_64-linux-gnu/install > --with-cloog=/home/ruben/mingw-w64/prereq/x86_64-linux-gnu/install > --disable-ppl-version-check --disable-cloog-version-check > --enable-cloog-backend=isl --with-host-libstdcxx='-static -lstdc++ -lm' > --enable-shared --enable-static --enable-threads=win32 --enable-plugins > --disable-multilib --enable-languages=c,lto,c++,objc,obj-c++,fortran,java > --enable-libgomp --enable-fully-dynamic-string --enable-libstdcxx-time > --disable-nls --disable-werror --enable-checking=release --with-g nu-as - -with-gnu-ld --with-pkgversion=rubenvb-4.7.2-release [email protected] CC= CFLAGS='-O2 -march=nocona -mtune=core2 -fomit-frame-pointer -momit-leaf-frame-pointer' LDFLAGS= > Thread model: win32 > gcc version 4.7.2 (rubenvb-4.7.2-release) > [freddie@arch libswd]$ i686-w64-mingw32-gcc -v > Using built-in specs. > COLLECT_GCC=i686-w64-mingw32-gcc > COLLECT_LTO_WRAPPER=/usr/local/w32/bin/../libexec/gcc/i686-w64-mingw32/4.7.2/lto-wrapper > Target: i686-w64-mingw32 > Configured with: /home/ruben/mingw-w64/src/gcc/configure > --host=x86_64-linux-gnu --build=x86_64-linux-gnu --target=i686-w64-mingw32 > --with-sysroot=/home/ruben/mingw-w64/linux64mingw32/mingw32 > --prefix=/home/ruben/mingw-w64/linux64mingw32/mingw32 > --with-gmp=/home/ruben/mingw-w64/prereq/x86_64-linux-gnu/install > --with-mpfr=/home/ruben/mingw-w64/prereq/x86_64-linux-gnu/install > --with-mpc=/home/ruben/mingw-w64/prereq/x86_64-linux-gnu/install > --with-ppl=/home/ruben/mingw-w64/prereq/x86_64-linux-gnu/install > --with-cloog=/home/ruben/mingw-w64/prereq/x86_64-linux-gnu/install > --disable-ppl-version-check --disable-cloog-version-check > --enable-cloog-backend=isl --with-host-libstdcxx='-static -lstdc++ -lm' > --enable-shared --enable-static --enable-threads=win32 --enable-plugins > --disable-multilib --enable-languages=c,lto,c++,objc,obj-c++,fortran,java > --enable-libgomp --disable-dw2-exceptions --enable-sjlj-exceptions > --enable-fully-dynamic-string --enable-libstdcxx-time --disable-nls --d isable- werror --enable-checking=release --with-gnu-as --with-gnu-ld --with-pkgversion=rubenvb-4.7.2-release [email protected] CC= CFLAGS='-O2 -march=nocona -mtune=core2 -fomit-frame-pointer -momit-leaf-frame-pointer' LDFLAGS= > Thread model: win32 > gcc version 4.7.2 (rubenvb-4.7.2-release) The first one is 64-bit, second one is 32-bit. > cd@bt:~/work/openocd-libswd/libswd$ uname -a > Linux bt 3.2.6 #1 SMP Fri Feb 17 10:34:20 EST 2012 x86_64 GNU/Linux In here: > [freddie@arch libswd]$ uname -a > Linux arch 3.6.6-1-ARCH #1 SMP PREEMPT Mon Nov 5 11:57:22 CET 2012 x86_64 > GNU/Linux Exact compile commands: 1. ./bootstrap 2. ../configure --host=i686-w64-mingw32 --enable-ft2232_libftdi --enable-maintainer-mode --disable-werror 3. make 4. ../configure --host=x86_64-w64-mingw32 --enable-ft2232_libftdi --enable-maintainer-mode --disable-werror 5. make I had to add --disable-werror as there are some problems (warnings) during the build (or there were?). If you did not see them I can check for them again and post details... I'm not sure whether the warnings were there with these exact configure options or maybe with "full blown build" only, with everything enabled. Thx for your work and your help! 4\/3!! ------------------------------------------------------------------------------ Monitor your physical, virtual and cloud infrastructure from a single web console. Get in-depth insight into apps, servers, databases, vmware, SAP, cloud infrastructure, etc. Download 30-day Free Trial. Pricing starts from $795 for 25 servers or applications! http://p.sf.net/sfu/zoho_dev2dev_nov _______________________________________________ OpenOCD-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/openocd-devel
