On Tue, Nov 20, 2012 at 8:29 PM, Freddie Chopin <[email protected]> wrote:
> Well, I've cloned the repo and built the binary this morning, so it's
> not that old (;
> I'll rebuild and report whatever you need, hoping that we're closer to
> the end [;

Here what happens for me with recent head of master branch:

% git clone git://repo.or.cz/openocd/libswd.git libswd2
Cloning into 'libswd2'...
remote: Counting objects: 43591, done.
remote: Compressing objects: 100% (8397/8397), done.
remote: Total 43591 (delta 35867), reused 42652 (delta 35064)
Receiving objects: 100% (43591/43591), 10.86 MiB | 132 KiB/s, done.
Resolving deltas: 100% (35867/35867), done.
% cd libswd2/
% ./bootstrap
+ aclocal
/usr/local/share/aclocal/smpeg.m4:13: warning: underquoted definition
of AM_PATH_SMPEG
/usr/local/share/aclocal/smpeg.m4:13:   run info Automake 'Extending aclocal'
/usr/local/share/aclocal/smpeg.m4:13:   or see
http://www.gnu.org/software/automake/manual/automake.html#Extending-aclocal
+ libtoolize --automake --copy
+ autoconf
+ autoheader
+ automake --gnu --add-missing --copy
configure.ac:21: installing './compile'
configure.ac:29: installing './config.guess'
configure.ac:29: installing './config.sub'
configure.ac:8: installing './install-sh'
configure.ac:8: installing './missing'
Makefile.am: installing './INSTALL'
doc/Makefile.am:1: installing 'doc/mdate-sh'
doc/Makefile.am:1: installing 'doc/texinfo.tex'
src/Makefile.am: installing './depcomp'
Setting up submodules
Submodule 'jimtcl' (http://repo.or.cz/r/jimtcl.git) registered for path 'jimtcl'
Submodule 'submodules/libswd'
(git://libswd.git.sourceforge.net/gitroot/libswd/libswd) registered
for path 'submodules/libswd'
Submodule 'tools/git2cl' (http://repo.or.cz/r/git2cl.git) registered
for path 'tools/git2cl'
Cloning into 'jimtcl'...
Submodule path 'jimtcl': checked out '43d0866133a899532fb459a35860060add504923'
Cloning into 'submodules/libswd'...
remote: Counting objects: 1385, done.
remote: Compressing objects: 100% (799/799), done.
remote: Total 1385 (delta 1017), reused 715 (delta 539)
Receiving objects: 100% (1385/1385), 3.78 MiB | 15 KiB/s, done.
Resolving deltas: 100% (1017/1017), done.
Submodule path 'submodules/libswd': checked out
'7a62dbdd7851a254c4caa1848cdbfe87b8d080dd'
Cloning into 'tools/git2cl'...
Submodule path 'tools/git2cl': checked out
'8373c9f74993e218a08819cbcdbab3f3564bbeba'
Info: submodules/libswd needs to be bootstrapped too...
autoreconf-2.69: Entering directory `.'
autoreconf-2.69: configure.ac: not using Gettext
autoreconf-2.69: running: aclocal --force -I m4
/usr/local/share/aclocal/smpeg.m4:13: warning: underquoted definition
of AM_PATH_SMPEG
/usr/local/share/aclocal/smpeg.m4:13:   run info Automake 'Extending aclocal'
/usr/local/share/aclocal/smpeg.m4:13:   or see
http://www.gnu.org/software/automake/manual/automake.html#Extending-aclocal
configure.ac:11: warning: LT_INIT was called before AM_PROG_AR
/usr/local/share/aclocal-1.12/ar-lib.m4:13: AM_PROG_AR is expanded from...
configure.ac:11: the top level
autoreconf-2.69: configure.ac: tracing
configure.ac:11: warning: LT_INIT was called before AM_PROG_AR
aclocal.m4:8656: AM_PROG_AR is expanded from...
configure.ac:11: the top level
autoreconf-2.69: configure.ac: creating directory build-aux
autoreconf-2.69: running: libtoolize --copy --force
libtoolize: putting auxiliary files in AC_CONFIG_AUX_DIR, `build-aux'.
libtoolize: copying file `build-aux/ltmain.sh'
libtoolize: putting macros in AC_CONFIG_MACRO_DIR, `m4'.
libtoolize: copying file `m4/libtool.m4'
libtoolize: copying file `m4/ltoptions.m4'
libtoolize: copying file `m4/ltsugar.m4'
libtoolize: copying file `m4/ltversion.m4'
libtoolize: copying file `m4/lt~obsolete.m4'
/usr/local/share/aclocal/smpeg.m4:13: warning: underquoted definition
of AM_PATH_SMPEG
/usr/local/share/aclocal/smpeg.m4:13:   run info Automake 'Extending aclocal'
/usr/local/share/aclocal/smpeg.m4:13:   or see
http://www.gnu.org/software/automake/manual/automake.html#Extending-aclocal
configure.ac:11: warning: LT_INIT was called before AM_PROG_AR
/usr/local/share/aclocal-1.12/ar-lib.m4:13: AM_PROG_AR is expanded from...
configure.ac:11: the top level
autoreconf-2.69: running: /usr/local/bin/autoconf-2.69 --force
configure.ac:11: warning: LT_INIT was called before AM_PROG_AR
aclocal.m4:69: AM_PROG_AR is expanded from...
configure.ac:11: the top level
autoreconf-2.69: running: /usr/local/bin/autoheader-2.69 --force
configure.ac:11: warning: LT_INIT was called before AM_PROG_AR
aclocal.m4:69: AM_PROG_AR is expanded from...
configure.ac:11: the top level
autoreconf-2.69: running: automake --add-missing --copy --force-missing
configure.ac:11: warning: LT_INIT was called before AM_PROG_AR
aclocal.m4:69: AM_PROG_AR is expanded from...
configure.ac:11: the top level
configure.ac:11: installing 'build-aux/ar-lib'
configure.ac:10: installing 'build-aux/config.guess'
configure.ac:10: installing 'build-aux/config.sub'
configure.ac:4: installing 'build-aux/install-sh'
configure.ac:4: installing 'build-aux/missing'
src/Makefile.am: installing 'build-aux/depcomp'
autoreconf-2.69: Leaving directory `.'

autoreconf done.

Bootstrap complete. Quick build instructions:
./configure --enable-maintainer-mode ....

% sh configure.sh
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... ./install-sh -c -d
checking for gawk... no
checking for mawk... no
checking for nawk... nawk
checking whether make sets $(MAKE)... yes
checking whether to enable maintainer-specific portions of Makefiles... yes
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking for style of include used by make... GNU
checking dependency style of gcc... gcc3
checking for gcc option to accept ISO C99... -std=gnu99
checking whether gcc -std=gnu99 and cc understand -c and -o together... yes
checking for ranlib... ranlib
checking build system type... amd64-unknown-freebsd9.1
checking host system type... amd64-unknown-freebsd9.1
checking how to print strings... printf
checking for a sed that does not truncate output... /usr/local/bin/gsed
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 gcc -std=gnu99... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B
checking the name lister (/usr/bin/nm -B) interface... BSD nm
checking whether ln -s works... yes
checking the maximum length of command line arguments... 196608
checking whether the shell understands some XSI constructs... yes
checking whether the shell understands "+="... no
checking how to convert amd64-unknown-freebsd9.1 file names to
amd64-unknown-freebsd9.1 format... func_convert_file_noop
checking how to convert amd64-unknown-freebsd9.1 file names to
toolchain format... func_convert_file_noop
checking for /usr/bin/ld option to reload object files... -r
checking for objdump... objdump
checking how to recognize dependent libraries... pass_all
checking for dlltool... no
checking how to associate runtime and link libraries... printf %s\n
checking for ar... ar
checking for archiver @FILE support... no
checking for strip... strip
checking for ranlib... (cached) ranlib
checking command to parse /usr/bin/nm -B output from gcc -std=gnu99 object... ok
checking for sysroot... no
checking for mt... mt
checking if mt is a manifest tool... no
checking how to run the C preprocessor... 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... yes
checking for objdir... .libs
checking if gcc -std=gnu99 supports -fno-rtti -fno-exceptions... no
checking for gcc -std=gnu99 option to produce PIC... -fPIC -DPIC
checking if gcc -std=gnu99 PIC flag -fPIC -DPIC works... yes
checking if gcc -std=gnu99 static flag -static works... yes
checking if gcc -std=gnu99 supports -c -o file.o... yes
checking if gcc -std=gnu99 supports -c -o file.o... (cached) yes
checking whether the gcc -std=gnu99 linker (/usr/bin/ld) supports
shared libraries... yes
checking dynamic linker characteristics... freebsd9.1 ld.so
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... none required
checking sys/socket.h usability... yes
checking sys/socket.h presence... yes
checking for sys/socket.h... yes
checking for arpa/inet.h... yes
checking elf.h usability... yes
checking elf.h presence... yes
checking for elf.h... yes
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... no
checking malloc.h presence... no
checking for malloc.h... no
checking netdb.h usability... yes
checking netdb.h presence... yes
checking for netdb.h... yes
checking for netinet/in.h... yes
checking for netinet/tcp.h... yes
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... yes
checking sys/ioctl.h presence... yes
checking for sys/ioctl.h... yes
checking sys/param.h usability... yes
checking sys/param.h presence... yes
checking for sys/param.h... yes
checking sys/poll.h usability... yes
checking sys/poll.h presence... yes
checking for sys/poll.h... yes
checking sys/select.h usability... yes
checking sys/select.h presence... yes
checking for sys/select.h... yes
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... yes
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... yes
checking for strnlen... yes
checking for gettimeofday... yes
checking for usleep... yes
checking for vasprintf... yes
checking whether to build a release... 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...... Success
checking for libftdi highspeed device support... yes
checking for libftdi FT232H device support... no
configure: WARNING: You need a newer libftdi version (0.20 or later).
checking for environ in unistd.h and stdlib.h... no
checking for extern environ... yes
checking for a C compiler for build tools... gcc -std=gnu99
checking for suffix of executable build tools...
checking that generated files are newer than configure... done
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/jtag/stlink/Makefile
config.status: creating src/transport/Makefile
config.status: creating src/interface/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: executing depfiles commands
config.status: executing libtool commands
=== configuring in jimtcl
(/mnt/stuff/cd/moje/prm/c/openocd/openocd-libswd/testing/libswd2/jimtcl)
configure: running /bin/sh ./configure.gnu --disable-option-checking
'--prefix=/tmp/openocd/target'  '--enable-maintainer-mode'
'--enable-ft2232-libftdi' 'CFLAGS=-g -L/usr/local/lib
-I/usr/local/include' --cache-file=/dev/null --srcdir=.
Host System...x86_64-unknown-freebsd9.1
Build System...x86_64-unknown-freebsd9.1
C compiler... cc -g -L/usr/local/lib -I/usr/local/include
C++ compiler... c++ -g -L/usr/local/lib -I/usr/local/include
Build C compiler...cc
Checking for stdlib.h...ok
Checking for long long...ok
Checking for sys/time.h...ok
Checking for sys/socket.h...ok
Checking for netinet/in.h...ok
Checking for arpa/inet.h...ok
Checking for netdb.h...ok
Checking for sys/un.h...ok
Checking for dlfcn.h...ok
Checking for unistd.h...ok
Checking for dirent.h...ok
Checking for crt_externs.h...not found
Checking libs for inet_ntop...none needed
Checking libs for socket...none needed
Checking for ualarm...ok
Checking for lstat...ok
Checking for fork...ok
Checking for vfork...ok
Checking for system...ok
Checking for select...ok
Checking for execvpe...not found
Checking for backtrace...not found
Checking for geteuid...ok
Checking for mkstemp...ok
Checking for realpath...ok
Checking for strptime...ok
Checking for regcomp...ok
Checking for waitpid...ok
Checking for sigaction...ok
Checking for sys_signame...ok
Checking for sys_siglist...ok
Checking for syslog...ok
Checking for opendir...ok
Checking for readlink...ok
Checking for sleep...ok
Checking for usleep...ok
Checking for pipe...ok
Checking for getaddrinfo...ok
Checking for utimes...ok
Checking for sysinfo...not found
Checking for _NSGetEnviron...not found
Checking environ declared in unistd.h...no
Checking for sys/types.h...(cached) ok
Checking for sys/stat.h...ok
Checking for mkdir with one arg...no
Checking for termios.h...ok
Checking for isatty...ok
Enabling line editing
Enabling references
Building static library
Extension aio...enabled
Extension array...enabled
Extension pack...enabled
Extension binary...enabled
Extension clock...enabled
Extension eventloop...enabled
Extension exec...enabled
Extension file...enabled
Extension readdir...enabled
Extension glob...enabled
Extension history...enabled
Checking libs for dlopen...none needed
Extension load...enabled
Extension nshelper...enabled
Extension namespace...enabled
Extension oo...enabled
Extension package...enabled
Extension posix...enabled
Extension regexp...enabled
Extension signal...enabled
Extension stdlib...enabled
Extension syslog...enabled
Extension tclcompat...enabled
Extension tclprefix...enabled
Extension tree...enabled
Using built-in regexp
Jim static extensions: aio array binary clock eventloop exec file glob
history load namespace nshelper oo pack package posix readdir regexp
signal stdlib syslog tclcompat tclprefix tree
Created jim-config.h
Created jimautoconf.h
Created Makefile from Makefile.in
Created build-jim-ext from build-jim-ext.in
=== configuring in submodules/libswd
(/mnt/stuff/cd/moje/prm/c/openocd/openocd-libswd/testing/libswd2/submodules/libswd)
configure: running /bin/sh ./configure --disable-option-checking
'--prefix=/tmp/openocd/target'  '--enable-maintainer-mode'
'--enable-ft2232-libftdi' 'CFLAGS=-g -L/usr/local/lib
-I/usr/local/include' --cache-file=/dev/null --srcdir=.
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... build-aux/install-sh -c -d
checking for gawk... no
checking for mawk... no
checking for nawk... nawk
checking whether make sets $(MAKE)... yes
checking for doxygen... /usr/local/bin/doxygen
checking for perl... /usr/bin/perl
checking for dot... /usr/local/bin/dot
checking for pdflatex... /usr/local/bin/pdflatex
checking for makeindex... /usr/local/bin/makeindex
checking for egrep... /usr/bin/egrep
checking build system type... amd64-unknown-freebsd9.1
checking host system type... amd64-unknown-freebsd9.1
checking how to print strings... printf
checking for style of include used by make... GNU
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking dependency style of gcc... gcc3
checking for a sed that does not truncate output... /usr/local/bin/gsed
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 gcc... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B
checking the name lister (/usr/bin/nm -B) interface... BSD nm
checking whether ln -s works... yes
checking the maximum length of command line arguments... 196608
checking whether the shell understands some XSI constructs... yes
checking whether the shell understands "+="... no
checking how to convert amd64-unknown-freebsd9.1 file names to
amd64-unknown-freebsd9.1 format... func_convert_file_noop
checking how to convert amd64-unknown-freebsd9.1 file names to
toolchain format... func_convert_file_noop
checking for /usr/bin/ld option to reload object files... -r
checking for objdump... objdump
checking how to recognize dependent libraries... pass_all
checking for dlltool... no
checking how to associate runtime and link libraries... printf %s\n
checking for ar... ar
checking for archiver @FILE support... no
checking for strip... strip
checking for ranlib... ranlib
checking command to parse /usr/bin/nm -B output from gcc object... ok
checking for sysroot... no
checking for mt... mt
checking if mt is a manifest tool... no
checking how to run the C preprocessor... gcc -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... yes
checking for objdir... .libs
checking if gcc supports -fno-rtti -fno-exceptions... no
checking for gcc option to produce PIC... -fPIC -DPIC
checking if gcc PIC flag -fPIC -DPIC works... yes
checking if gcc static flag -static works... yes
checking if gcc supports -c -o file.o... yes
checking if gcc supports -c -o file.o... (cached) yes
checking whether the gcc linker (/usr/bin/ld) supports shared libraries... yes
checking whether -lc should be explicitly linked in... no
checking dynamic linker characteristics... freebsd9.1 ld.so
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... yes
checking whether to build static libraries... yes
checking the archiver (ar) interface... ar
checking for gcc... (cached) gcc
checking whether we are using the GNU C compiler... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking for gcc option to accept ISO C89... (cached) none needed
checking dependency style of gcc... (cached) gcc3
checking that generated files are newer than configure... done
configure: creating ./config.status
config.status: creating Makefile
config.status: creating src/Makefile
config.status: creating config.h
config.status: executing depfiles commands
config.status: executing libtool commands

%gmake install
(...)

% /tmp/openocd/target/bin/openocd -c "source [find target/stm32f1x-swd.cfg]"
Open On-Chip Debugger 0.7.0-dev-g88134cb-dirty (2012-11-21-09:36)
Licensed under GNU GPL v2
For bug reports, read
        http://openocd.sourceforge.net/doc/doxygen/bugs.html
Info : Transport - autoselecting 'swd' as the only option for
'ft2232_swd' interface.
Info : Transport - interface 'ft2232_swd' defines its own
'oocd_feature_arm_dap' features.
Info : Transport - using 'oocd_feature_arm_dap' features of the
'ft2232_swd' interface...
Info : Interface signal - 'RnW' added.
Info : Interface signal - 'LED' added.
Info : Interface signal - 'SRST' added.
Info : Interface signal - 'SRSTin' added.
Info : Interface signal - 'CLK' added.
Info : Interface signal - 'MOSI' added.
Info : Interface signal - 'MISO' added.
Info : Interface signal - 'nSWDsel' added.
adapter speed: 1000 kHz
adapter_nsrst_delay: 100
cortex_m3 reset_config sysresetreq
Error: unable to open ftdi device: device not found
in procedure 'init'


Please note this is proper behavior with the current head. I dont have
hadrware connected at the moment, but as you can see features setup is
working well with ft2232_swd interface. Note that you can use
configure.shfor faster configuration - it will install binary into
/tmp/openocd/target/bin/openocd. Let me know if that works for you :-)

Info : Transport - autoselecting 'swd' as the only option for
'ft2232_swd' interface.
Info : Transport - interface 'ft2232_swd' defines its own
'oocd_feature_arm_dap' features.
Info : Transport - using 'oocd_feature_arm_dap' features of the
'ft2232_swd' interface...

Best regards :-)
Tomek

-- 
CeDeROM, SQ7MHZ, http://www.tomek.cedro.info

------------------------------------------------------------------------------
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

Reply via email to