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