buiding OpenOCD errors

It seems everyone does not have any problem with buiding OpenOCD but me. I use both the Linux OS and cygwin to build it. However, neither works. Anyone can help me?

Here are the errors, Is there something wrong with my Linux OS.

make all-recursive

make[1]: Entering directory `/home/kelvinzhu/OpenOCD’

Making all in src

make[2]: Entering directory `/home/kelvinzhu/OpenOCD/src’

Making all in helper

make[3]: Entering directory `/home/kelvinzhu/OpenOCD/src/helper’

if gcc -DHAVE_CONFIG_H -I. -I. -I…/… -g -O2 -MT binarybuffer.o -MD -MP -MF “.deps/binarybuffer.Tpo” -c -o binarybuffer.o binarybuffer.c; \

then mv -f “.deps/binarybuffer.Tpo” “.deps/binarybuffer.Po”; else rm -f “.deps/binarybuffer.Tpo”; exit 1; fi

if gcc -DHAVE_CONFIG_H -I. -I. -I…/… -g -O2 -MT configuration.o -MD -MP -MF “.deps/configuration.Tpo” -c -o configuration.o configuration.c; \

then mv -f “.deps/configuration.Tpo” “.deps/configuration.Po”; else rm -f “.deps/configuration.Tpo”; exit 1; fi

if gcc -DHAVE_CONFIG_H -I. -I. -I…/… -g -O2 -MT log.o -MD -MP -MF “.deps/log.Tpo” -c -o log.o log.c; \

then mv -f “.deps/log.Tpo” “.deps/log.Po”; else rm -f “.deps/log.Tpo”; exit 1; fi

if gcc -DHAVE_CONFIG_H -I. -I. -I…/… -g -O2 -MT interpreter.o -MD -MP -MF “.deps/interpreter.Tpo” -c -o interpreter.o interpreter.c; \

then mv -f “.deps/interpreter.Tpo” “.deps/interpreter.Po”; else rm -f “.deps/interpreter.Tpo”; exit 1; fi

if gcc -DHAVE_CONFIG_H -I. -I. -I…/… -g -O2 -MT command.o -MD -MP -MF “.deps/command.Tpo” -c -o command.o command.c; \

then mv -f “.deps/command.Tpo” “.deps/command.Po”; else rm -f “.deps/command.Tpo”; exit 1; fi

rm -f libhelper.a

ar cru libhelper.a binarybuffer.o configuration.o log.o interpreter.o command.o

ranlib libhelper.a

make[3]: Leaving directory `/home/kelvinzhu/OpenOCD/src/helper’

Making all in jtag

make[3]: Entering directory `/home/kelvinzhu/OpenOCD/src/jtag’

if gcc -DHAVE_CONFIG_H -I. -I. -I…/… -I…/…/src/helper -g -O2 -MT jtag.o -MD -MP -MF “.deps/jtag.Tpo” -c -o jtag.o jtag.c; \

then mv -f “.deps/jtag.Tpo” “.deps/jtag.Po”; else rm -f “.deps/jtag.Tpo”; exit 1; fi

if gcc -DHAVE_CONFIG_H -I. -I. -I…/… -I…/…/src/helper -g -O2 -MT bitbang.o -MD -MP -MF “.deps/bitbang.Tpo” -c -o bitbang.o bitbang.c; \

then mv -f “.deps/bitbang.Tpo” “.deps/bitbang.Po”; else rm -f “.deps/bitbang.Tpo”; exit 1; fi

if gcc -DHAVE_CONFIG_H -I. -I. -I…/… -I…/…/src/helper -g -O2 -MT parport.o -MD -MP -MF “.deps/parport.Tpo” -c -o parport.o parport.c; \

then mv -f “.deps/parport.Tpo” “.deps/parport.Po”; else rm -f “.deps/parport.Tpo”; exit 1; fi

In file included from fcntl.h:1,

from fcntl.h:1,

from fcntl.h:1,

from fcntl.h:1,

from fcntl.h:1,

from fcntl.h:1,

from fcntl.h:1,

from fcntl.h:1,

from fcntl.h:1,

from fcntl.h:1,

from fcntl.h:1,

from fcntl.h:1,

from fcntl.h:1,

from fcntl.h:1,

from fcntl.h:1,

from fcntl.h:1,

from fcntl.h:1,

from fcntl.h:1,

from fcntl.h:1,

from fcntl.h:1,

from fcntl.h:1,

from fcntl.h:1,

from fcntl.h:1,

from fcntl.h:1,

from fcntl.h:1,

from fcntl.h:1,

from fcntl.h:1,

from fcntl.h:1,

from fcntl.h:1,

from fcntl.h:1,

from fcntl.h:1,

from fcntl.h:1,

from fcntl.h:1,

from fcntl.h:1,

from fcntl.h:1,

from fcntl.h:1,

from fcntl.h:1,

from fcntl.h:1,

from fcntl.h:1,

from fcntl.h:1,

from fcntl.h:1,

from fcntl.h:1,

from fcntl.h:1,

from fcntl.h:1,

from fcntl.h:1,

from fcntl.h:1,

from fcntl.h:1,

from fcntl.h:1,

from fcntl.h:1,

from fcntl.h:1,

from fcntl.h:1,

from fcntl.h:1,

from fcntl.h:1,

from fcntl.h:1,

from fcntl.h:1,

from fcntl.h:1,

from fcntl.h:1,

from fcntl.h:1,

from fcntl.h:1,

from fcntl.h:1,

from fcntl.h:1,

from fcntl.h:1,

from fcntl.h:1,

from fcntl.h:1,

from fcntl.h:1,

from fcntl.h:1,

from fcntl.h:1,

from fcntl.h:1,

from fcntl.h:1,

from fcntl.h:1,

from fcntl.h:1,

from fcntl.h:1,

from fcntl.h:1,

from fcntl.h:1,

from fcntl.h:1,

from fcntl.h:1,

from fcntl.h:1,

from fcntl.h:1,

from fcntl.h:1,

from fcntl.h:1,

from fcntl.h:1,

from fcntl.h:1,

from fcntl.h:1,

from fcntl.h:1,

from fcntl.h:1,

from fcntl.h:1,

from fcntl.h:1,

from fcntl.h:1,

from fcntl.h:1,

from fcntl.h:1,

from fcntl.h:1,

from fcntl.h:1,

from fcntl.h:1,

from fcntl.h:1,

from fcntl.h:1,

from fcntl.h:1,

from fcntl.h:1,

from fcntl.h:1,

from fcntl.h:1,

from fcntl.h:1,

from fcntl.h:1,

from fcntl.h:1,

from fcntl.h:1,

from fcntl.h:1,

from fcntl.h:1,

from fcntl.h:1,

from fcntl.h:1,

from fcntl.h:1,

from fcntl.h:1,

from fcntl.h:1,

from fcntl.h:1,

from fcntl.h:1,

from fcntl.h:1,

from fcntl.h:1,

from fcntl.h:1,

from fcntl.h:1,

from fcntl.h:1,

from fcntl.h:1,

from fcntl.h:1,

from fcntl.h:1,

from fcntl.h:1,

from fcntl.h:1,

from fcntl.h:1,

from fcntl.h:1,

from fcntl.h:1,

from fcntl.h:1,

from fcntl.h:1,

from fcntl.h:1,

from fcntl.h:1,

from fcntl.h:1,

from fcntl.h:1,

from fcntl.h:1,

from fcntl.h:1,

from fcntl.h:1,

from fcntl.h:1,

from fcntl.h:1,

from fcntl.h:1,

from fcntl.h:1,

from fcntl.h:1,

from fcntl.h:1,

from fcntl.h:1,

from fcntl.h:1,

from fcntl.h:1,

from fcntl.h:1,

from fcntl.h:1,

from fcntl.h:1,

from fcntl.h:1,

from fcntl.h:1,

from fcntl.h:1,

from fcntl.h:1,

from fcntl.h:1,

from fcntl.h:1,

from fcntl.h:1,

from fcntl.h:1,

from fcntl.h:1,

from fcntl.h:1,

from fcntl.h:1,

from fcntl.h:1,

from fcntl.h:1,

from fcntl.h:1,

from fcntl.h:1,

from fcntl.h:1,

from fcntl.h:1,

from fcntl.h:1,

from fcntl.h:1,

from fcntl.h:1,

from fcntl.h:1,

from fcntl.h:1,

from fcntl.h:1,

from fcntl.h:1,

from fcntl.h:1,

from fcntl.h:1,

from fcntl.h:1,

from fcntl.h:1,

from fcntl.h:1,

from fcntl.h:1,

from fcntl.h:1,

from fcntl.h:1,

from fcntl.h:1,

from fcntl.h:1,

from fcntl.h:1,

from fcntl.h:1,

from fcntl.h:1,

from fcntl.h:1,

from fcntl.h:1,

from fcntl.h:1,

from fcntl.h:1,

from fcntl.h:1,

from fcntl.h:1,

from fcntl.h:1,

from fcntl.h:1,

from fcntl.h:1,

from fcntl.h:1,

from fcntl.h:1,

from fcntl.h:1,

from fcntl.h:1,

from fcntl.h:1,

from fcntl.h:1,

from parport.c:34:

fcntl.h:1:10: #include nested too deeply

parport.c: In function `parport_init’:

parport.c:245: error: `O_WRONLY’ undeclared (first use in this function)

parport.c:245: error: (Each undeclared identifier is reported only once

parport.c:245: error: for each function it appears in.)

make[3]: *** [parport.o] Error 1

make[3]: Leaving directory `/home/kelvinzhu/OpenOCD/src/jtag’

make[2]: *** [all-recursive] Error 1

make[2]: Leaving directory `/home/kelvinzhu/OpenOCD/src’

make[1]: *** [all-recursive] Error 1

make[1]: Leaving directory `/home/kelvinzhu/OpenOCD’

make: *** [all] Error 2

[kelvinzhu@localhost OpenOCD]$

Hi,

what distribution are you using? The OpenOCD only includes “fcntl.h”, which is meant to be included. “fcntl.h” then includes “bits/fcntl.h”, but that’s it. I can’t see why on your system fcntl.h seems to be included recursively, especially since on my installation, it is guarded by an #ifndef _FCNTL_H.

Regards,

Dominic

Hi,

I am using the r93. I have tried both on the Linux OS and Cygwin. And the same problem happened.

Regards,

Kevin

It seems it could not find the headfiles parport.h and ppdev.h, so I added them to the current directory manually. Then the above problem happened. However, if I did not add them, it said it could not find parport.h and ppdev.h in directory linux. But I did found them here C:\cygwin\usr\local\arm\linux\include\linux. Is there something wrong with the path or my cygwin?

Thanks!

Kevin

Hi,

I dowloaded the latest version and tried to build it. Problem still existed, but it’s a different type. It said “src/jtag/Makefile.am:58: warning: automake does not support conditional definition of FT2232FILES in libjtag_a_SOURCES”(repeat many times). And it did not generate the configure file. And I have read the tutorial on how to build the OpenOCD. It said

Please note that the ftdi2232 variant (using libftdi) isn’t supported under Cygwin. You have to use the ftd2xx variant (using FTDI’s D2XX) on Cygwin.

Maybe that’s the reason, but I don’t know what to do?

Regards,

Kevin

volunteer:
It seems it could not find the headfiles parport.h and ppdev.h, so I added them to the current directory manually. Then the above problem happened. However, if I did not add them, it said it could not find parport.h and ppdev.h in directory linux. But I did found them here C:\cygwin\usr\local\arm\linux\include\linux. Is there something wrong with the path or my cygwin?Kevin

I think you need to fix that by providing the proper option to ./configure (see ./configure --help) instead of manually adding stuff.

Hi, bertrik

I have tried many options, but it can not find these two files yet.

ftd2xx.c:32:20: ftd2xx.h: No such file or directory

ftd2xx.c:68: error: parse error before “ftdih”

ftd2xx.c:68: warning: initialization makes integer from pointer without a cast

ftd2xx.c:68: warning: data definition has no type or storage class

ftd2xx.c: In function `ftd2xx_speed’:

ftd2xx.c:96: error: `FT_STATUS’ undeclared (first use in this function)

ftd2xx.c:96: error: (Each undeclared identifier is reported only once

ftd2xx.c:96: error: for each function it appears in.)

ftd2xx.c:96: error: parse error before “status”

ftd2xx.c:97: error: `DWORD’ undeclared (first use in this function)

ftd2xx.c:104: error: `status’ undeclared (first use in this function)

ftd2xx.c:104: error: `bytes_written’ undeclared (first use in this function)

ftd2xx.c:104: error: `FT_OK’ undeclared (first use in this function)

ftd2xx.c: In function `ftd2xx_send_and_recv’:

ftd2xx.c:175: error: `FT_STATUS’ undeclared (first use in this function)

ftd2xx.c:175: error: parse error before “status”

ftd2xx.c:176: error: `DWORD’ undeclared (first use in this function)

ftd2xx.c:192: error: `status’ undeclared (first use in this function)

ftd2xx.c:192: error: `bytes_written’ undeclared (first use in this function)

ftd2xx.c:192: error: `FT_OK’ undeclared (first use in this function)

ftd2xx.c:222: error: `bytes_read’ undeclared (first use in this function)

ftd2xx.c: In function `ftd2xx_init’:

ftd2xx.c:590: error: `FT_STATUS’ undeclared (first use in this function)

ftd2xx.c:590: error: parse error before “status”

ftd2xx.c:591: error: `DWORD’ undeclared (first use in this function)

ftd2xx.c:599: error: `status’ undeclared (first use in this function)

ftd2xx.c:599: error: `FT_OPEN_BY_DESCRIPTION’ undeclared (first use in this function)

ftd2xx.c:599: error: `FT_OK’ undeclared (first use in this function)

ftd2xx.c:636: error: `bytes_written’ undeclared (first use in this function)

ftd2xx.c:644: error: `FT_PURGE_RX’ undeclared (first use in this function)

ftd2xx.c:644: error: `FT_PURGE_TX’ undeclared (first use in this function)

ftd2xx.c: In function `ftd2xx_quit’:

ftd2xx.c:655: error: `FT_STATUS’ undeclared (first use in this function)

ftd2xx.c:655: error: parse error before “status”

ftd2xx.c:657: error: `status’ undeclared (first use in this function)

make[3]: *** [ftd2xx.o] Error 1

make[3]: Leaving directory `/cygdrive/e/Linux/OpenOCD/src/jtag’

make[2]: *** [all-recursive] Error 1

make[2]: Leaving directory `/cygdrive/e/Linux/OpenOCD/src’

make[1]: *** [all-recursive] Error 1

make[1]: Leaving directory `/cygdrive/e/Linux/OpenOCD’

make: *** [all] Error 2

kevinzhu@kevinzhu /cygdrive/e/Linux/OpenOCD

$ ./configure --disable-ftdi2232 --disable-ftd2xx

checking for gcc… gcc

checking for C compiler default output file name… a.exe

checking whether the C compiler works… yes

checking whether we are cross compiling… no

checking for suffix of executables… .exe

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 ANSI C… none needed

checking for library containing ioperm… -lioperm

checking for a BSD-compatible install… ./install-sh -c

checking whether build environment is sane… yes

checking for gawk… gawk

checking whether make sets $(MAKE)… yes

checking for style of include used by make… GNU

checking dependency style of gcc… gcc3

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 ANSI C… (cached) none needed

checking for ranlib… ranlib

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/xsvf/Makefile

config.status: creating src/target/Makefile

config.status: creating src/server/Makefile

config.status: creating src/flash/Makefile

config.status: creating config.h

config.status: executing depfiles commands

kevinzhu@kevinzhu /cygdrive/e/Linux/OpenOCD

$ make

make all-recursive

make[1]: Entering directory `/cygdrive/e/Linux/OpenOCD’

Making all in src

make[2]: Entering directory `/cygdrive/e/Linux/OpenOCD/src’

Making all in helper

make[3]: Entering directory `/cygdrive/e/Linux/OpenOCD/src/helper’

if gcc -DHAVE_CONFIG_H -I. -I. -I…/… -g -O2 -MT configuration.o -MD -MP -MF “.deps/configuration.Tpo” -c -o configuration.o configuration.c; \

then mv -f “.deps/configuration.Tpo” “.deps/configuration.Po”; else rm -f “.deps/configuration.Tpo”; exit 1; fi

rm -f libhelper.a

ar cru libhelper.a binarybuffer.o configuration.o log.o interpreter.o command.o

ranlib libhelper.a

make[3]: Leaving directory `/cygdrive/e/Linux/OpenOCD/src/helper’

Making all in jtag

make[3]: Entering directory `/cygdrive/e/Linux/OpenOCD/src/jtag’

if gcc -DHAVE_CONFIG_H -I. -I. -I…/… -I…/…/src/helper -g -O2 -MT jtag.o -MD -MP -MF “.deps/jtag.Tpo” -c -o jtag.o jtag.c; \

then mv -f “.deps/jtag.Tpo” “.deps/jtag.Po”; else rm -f “.deps/jtag.Tpo”; exit 1; fi

if gcc -DHAVE_CONFIG_H -I. -I. -I…/… -I…/…/src/helper -g -O2 -MT parport.o -MD -MP -MF “.deps/parport.Tpo” -c -o parport.o parport.c; \

then mv -f “.deps/parport.Tpo” “.deps/parport.Po”; else rm -f “.deps/parport.Tpo”; exit 1; fi

if gcc -DHAVE_CONFIG_H -I. -I. -I…/… -I…/…/src/helper -g -O2 -MT amt_jtagaccel.o -MD -MP -MF “.deps/amt_jtagaccel.Tpo” -c -o amt_jtagaccel.o amt_jtagaccel.c; \

then mv -f “.deps/amt_jtagaccel.Tpo” “.deps/amt_jtagaccel.Po”; else rm -f “.deps/amt_jtagaccel.Tpo”; exit 1; fi

amt_jtagaccel.c:36:27: linux/parport.h: No such file or directory

amt_jtagaccel.c:37:25: linux/ppdev.h: No such file or directory

amt_jtagaccel.c:56: error: `IEEE1284_MODE_EPP’ undeclared here (not in a function)

amt_jtagaccel.c:56: error: `IEEE1284_ADDR’ undeclared here (not in a function)

amt_jtagaccel.c:57: error: `IEEE1284_DATA’ undeclared here (not in a function)

amt_jtagaccel.c: In function `amt_jtagaccel_reset’:

amt_jtagaccel.c:133: error: `PPSETMODE’ undeclared (first use in this function)

amt_jtagaccel.c:133: error: (Each undeclared identifier is reported only once

amt_jtagaccel.c:133: error: for each function it appears in.)

amt_jtagaccel.c: In function `amt_jtagaccel_speed’:

amt_jtagaccel.c:140: error: `PPSETMODE’ undeclared (first use in this function)

amt_jtagaccel.c: In function `amt_wait_scan_busy’:

amt_jtagaccel.c:161: error: `PPSETMODE’ undeclared (first use in this function)

amt_jtagaccel.c: In function `amt_jtagaccel_state_move’:

amt_jtagaccel.c:181: error: `PPSETMODE’ undeclared (first use in this function)

amt_jtagaccel.c: In function `amt_jtagaccel_runtest’:

amt_jtagaccel.c:214: error: `PPSETMODE’ undeclared (first use in this function)

amt_jtagaccel.c: In function `amt_jtagaccel_scan’:

amt_jtagaccel.c:252: error: `PPSETMODE’ undeclared (first use in this function)

amt_jtagaccel.c: In function `amt_jtagaccel_init’:

amt_jtagaccel.c:418: error: `PPCLAIM’ undeclared (first use in this function)

amt_jtagaccel.c:426: error: `PPSETMODE’ undeclared (first use in this function)

amt_jtagaccel.c:434: error: `PPWCONTROL’ undeclared (first use in this function)

amt_jtagaccel.c: In function `amt_jtagaccel_handle_rtck_command’:

amt_jtagaccel.c:505: error: `PPSETMODE’ undeclared (first use in this function)

make[3]: *** [amt_jtagaccel.o] Error 1

make[3]: Leaving directory `/cygdrive/e/Linux/OpenOCD/src/jtag’

make[2]: *** [all-recursive] Error 1

make[2]: Leaving directory `/cygdrive/e/Linux/OpenOCD/src’

make[1]: *** [all-recursive] Error 1

make[1]: Leaving directory `/cygdrive/e/Linux/OpenOCD’

make: *** [all] Error 2

kevinzhu@kevinzhu /cygdrive/e/Linux/OpenOCD

$ ./configure --disable-ftdi2232 --disable-ftd2xx --disable-parport

checking for gcc… gcc

checking for C compiler default output file name… a.exe

checking whether the C compiler works… yes

checking whether we are cross compiling… no

checking for suffix of executables… .exe

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 ANSI C… none needed

checking for library containing ioperm… -lioperm

checking for a BSD-compatible install… ./install-sh -c

checking whether build environment is sane… yes

checking for gawk… gawk

checking whether make sets $(MAKE)… yes

checking for style of include used by make… GNU

checking dependency style of gcc… gcc3

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 ANSI C… (cached) none needed

checking for ranlib… ranlib

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/xsvf/Makefile

config.status: creating src/target/Makefile

config.status: creating src/server/Makefile

config.status: creating src/flash/Makefile

config.status: creating config.h

config.status: executing depfiles commands

kevinzhu@kevinzhu /cygdrive/e/Linux/OpenOCD

$ make

make all-recursive

make[1]: Entering directory `/cygdrive/e/Linux/OpenOCD’

Making all in src

make[2]: Entering directory `/cygdrive/e/Linux/OpenOCD/src’

Making all in helper

make[3]: Entering directory `/cygdrive/e/Linux/OpenOCD/src/helper’

if gcc -DHAVE_CONFIG_H -I. -I. -I…/… -g -O2 -MT configuration.o -MD -MP -MF “.deps/configuration.Tpo” -c -o configuration.o configuration.c; \

then mv -f “.deps/configuration.Tpo” “.deps/configuration.Po”; else rm -f “.deps/configuration.Tpo”; exit 1; fi

rm -f libhelper.a

ar cru libhelper.a binarybuffer.o configuration.o log.o interpreter.o command.o

ranlib libhelper.a

make[3]: Leaving directory `/cygdrive/e/Linux/OpenOCD/src/helper’

Making all in jtag

make[3]: Entering directory `/cygdrive/e/Linux/OpenOCD/src/jtag’

if gcc -DHAVE_CONFIG_H -I. -I. -I…/… -I…/…/src/helper -g -O2 -MT jtag.o -MD -MP -MF “.deps/jtag.Tpo” -c -o jtag.o jtag.c; \

then mv -f “.deps/jtag.Tpo” “.deps/jtag.Po”; else rm -f “.deps/jtag.Tpo”; exit 1; fi

if gcc -DHAVE_CONFIG_H -I. -I. -I…/… -I…/…/src/helper -g -O2 -MT amt_jtagaccel.o -MD -MP -MF “.deps/amt_jtagaccel.Tpo” -c -o amt_jtagaccel.o amt_jtagaccel.c; \

then mv -f “.deps/amt_jtagaccel.Tpo” “.deps/amt_jtagaccel.Po”; else rm -f “.deps/amt_jtagaccel.Tpo”; exit 1; fi

amt_jtagaccel.c:36:27: linux/parport.h: No such file or directory

amt_jtagaccel.c:37:25: linux/ppdev.h: No such file or directory

amt_jtagaccel.c:56: error: `IEEE1284_MODE_EPP’ undeclared here (not in a function)

amt_jtagaccel.c:56: error: `IEEE1284_ADDR’ undeclared here (not in a function)

amt_jtagaccel.c:57: error: `IEEE1284_DATA’ undeclared here (not in a function)

amt_jtagaccel.c: In function `amt_jtagaccel_reset’:

amt_jtagaccel.c:133: error: `PPSETMODE’ undeclared (first use in this function)

amt_jtagaccel.c:133: error: (Each undeclared identifier is reported only once

amt_jtagaccel.c:133: error: for each function it appears in.)

amt_jtagaccel.c: In function `amt_jtagaccel_speed’:

amt_jtagaccel.c:140: error: `PPSETMODE’ undeclared (first use in this function)

amt_jtagaccel.c: In function `amt_wait_scan_busy’:

amt_jtagaccel.c:161: error: `PPSETMODE’ undeclared (first use in this function)

amt_jtagaccel.c: In function `amt_jtagaccel_state_move’:

amt_jtagaccel.c:181: error: `PPSETMODE’ undeclared (first use in this function)

amt_jtagaccel.c: In function `amt_jtagaccel_runtest’:

amt_jtagaccel.c:214: error: `PPSETMODE’ undeclared (first use in this function)

amt_jtagaccel.c: In function `amt_jtagaccel_scan’:

amt_jtagaccel.c:252: error: `PPSETMODE’ undeclared (first use in this function)

amt_jtagaccel.c: In function `amt_jtagaccel_init’:

amt_jtagaccel.c:418: error: `PPCLAIM’ undeclared (first use in this function)

amt_jtagaccel.c:426: error: `PPSETMODE’ undeclared (first use in this function)

amt_jtagaccel.c:434: error: `PPWCONTROL’ undeclared (first use in this function)

amt_jtagaccel.c: In function `amt_jtagaccel_handle_rtck_command’:

amt_jtagaccel.c:505: error: `PPSETMODE’ undeclared (first use in this function)

make[3]: *** [amt_jtagaccel.o] Error 1

make[3]: Leaving directory `/cygdrive/e/Linux/OpenOCD/src/jtag’

make[2]: *** [all-recursive] Error 1

make[2]: Leaving directory `/cygdrive/e/Linux/OpenOCD/src’

make[1]: *** [all-recursive] Error 1

make[1]: Leaving directory `/cygdrive/e/Linux/OpenOCD’

make: *** [all] Error 2

kevinzhu@kevinzhu /cygdrive/e/Linux/OpenOCD

$

Hello Kevin.

have you take a look here:

http://openfacts.berlios.de/index-en.ph … ng_OpenOCD

Here you can find the steps you needed.

bootstrap, configure, make

Have you forgotten the bootstrap?

Regards,

Michael

Hi, Michael

I followed exactly the steps given by the website you mentioned. However, it did not work. I don’t know what’s the problem. Now, I use another Linux Version to build it, and it seems it works. It now has generated the executable file: openocd. However, I can not run it in cygwin. Whenever I tried to run it, it always said:" can not run binary file." Is there anything else I should do after generating the openocd executable file.

Here are the commands I used the build the openocd.

./bootstrap

./configure --prefix=$home --disable-ftdi2232 --disabel-ftd2xx

make

Regards,

Kevin

Dear All,

I am sorry to tell you that the reason I could not build the openocd is some virus has caused some damages to my cygwin and also other fatal damages to the windows OS. I don’t know what it is. It seems my anti-virus software does not work very well, and I have to re-install my OS.

wasting me so much time.

Now it works quite well. Thank you all of you.

Regards,

Kevin