> 
> No, I still have the same problem with r1776.
> 
> there are some uint32_t uses in replacement.h which are not recognized
> - I don't have an elf.h system include.
> 
> export CPPFLAGS="-IC:/libusb-win32-device-bin-0.1.12.1/include"
> export LDFLAGS=-LC:/libusb-win32-device-bin-0.1.12.1/lib/gcc
> export CC=mingw32-gcc
> 
> ./bootstrap
> ./configure  --enable-ft2232-ftd2xx --enable-jlink
> --with-ftd2xx-win32-zipdir=c:/ftdi-2.04.06 --enable-maintainer-mode
> 
> 
> gives :
> 
> $ mingw32-make
> cd . && C:/cygwin/bin/sh.exe /Workspace-1/openocd/missing 
> --run autoheader rm -f stamp-h1 touch config.h.in cd . && 
> C:/cygwin/bin/sh.exe ./config.status config.h
> config.status: creating config.h
> config.status: config.h is unchanged
> c:/MinGW/bin/mingw32-make  all-recursive
> mingw32-make[1]: Entering directory `c:/Workspace-1/openocd'
> Making all in src
> mingw32-make[2]: Entering directory `c:/Workspace-1/openocd/src'
> Making all in helper
> mingw32-make[3]: Entering directory 
> `c:/Workspace-1/openocd/src/helper'
> C:/cygwin/bin/sh.exe ../../libtool --tag=CC   --mode=compile
> mingw32-gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I../..  
> -I../../src/server -I../../ src/target 
> -DPKGDATADIR=\"/usr/local/share/openocd\"
> -DPKGLIBDIR=\"/usr/local/lib/openocd\"
> -IC:/libusb-win32-device-bin-0.1.12.1/include -W 
> no-sign-compare -g -O2 -Ic:/ftdi-2.04.06 -Wall 
> -Wstrict-prototypes -Wformat-security -Wextra 
> -Wno-unused-parameter -Wbad-function-cast -Wcas t-align 
> -Wredundant-decls -Werror -MT libhelper_la-binarybuffer.lo 
> -MD -MP -MF .deps/libhelper_la-binarybuffer.Tpo -c -o 
> libhelper_la-binary buffer.lo `test -f 'binarybuffer.c' || 
> echo './'`binarybuffer.c
> libtool: compile:  mingw32-gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I../..
> -I../../src/server -I../../src/target 
> "-DPKGDATADIR=\\/usr/local/share /openocd\\ 
> -DPKGLIBDIR=\\/usr/local/lib/openocd\\
> -IC:/libusb-win32-device-bin-0.1.12.1/include" -Wno-sign-compare -g
> -O2 -Ic:/ftdi-2.04.06
> -Wall -Wstrict-prototypes -Wformat-security -Wextra 
> -Wno-unused-parameter -Wbad-function-cast -Wcast-align 
> -Wredundant-decls -Werror -MT lib helper_la-binarybuffer.lo 
> -MD -MP -MF .deps/libhelper_la-binarybuffer.Tpo -c 
> binarybuffer.c  -DDLL_EXPORT -DPIC -o 
> .libs/libhelper_la-binary buffer.o In file included from 
> ../../config.h:271,
>                  from binarybuffer.c:24:
> ./replacements.h:213: erreur: expected '=', ',', ';', 'asm' 
> or '__attribute__' before 'Elf32_Addr'
> ./replacements.h:214: erreur: expected '=', ',', ';', 'asm' 
> or '__attribute__' before 'Elf32_Half'
> ./replacements.h:215: erreur: expected '=', ',', ';', 'asm' 
> or '__attribute__' before 'Elf32_Off'
> ./replacements.h:216: erreur: expected '=', ',', ';', 'asm' 
> or '__attribute__' before 'Elf32_Sword'
> ./replacements.h:217: erreur: expected '=', ',', ';', 'asm' 
> or '__attribute__' before 'Elf32_Word'
> ./replacements.h:218: erreur: expected '=', ',', ';', 'asm' 
> or '__attribute__' before 'Elf32_Size'
> ./replacements.h:219: erreur: expected '=', ',', ';', 'asm' 
> or '__attribute__' before 'Elf32_Hashelt'
> ./replacements.h:224: erreur: expected 
> specifier-qualifier-list before 'Elf32_Half'
> ./replacements.h:252: erreur: expected 
> specifier-qualifier-list before 'Elf32_Word'
> mingw32-make[3]: *** [libhelper_la-binarybuffer.lo] Error 1
> mingw32-make[3]: Leaving directory `c:/Workspace-1/openocd/src/helper'
> mingw32-make[2]: *** [all-recursive] Error 1
> mingw32-make[2]: Leaving directory `c:/Workspace-1/openocd/src'
> mingw32-make[1]: *** [all-recursive] Error 1
> mingw32-make[1]: Leaving directory `c:/Workspace-1/openocd'
> mingw32-make: *** [all] Error 2
> 

I think this is more related to your setup then openocd.
mingw32-make uses win32 paths, cygwin sh does not.

If you have got a working cygwin then just use the following to build native
win32 from a cygwin shell.
./configure --enable-maintainer-mode --enable-parport --enable-jlink
--enable-rlink --enable-ft2232_ftd2xx CC="gcc -mno-cygwin"
then make

or the other option is to use msys amd the msys make not mingw32-make.

Cheers
Spen
_______________________________________________
Openocd-development mailing list
[email protected]
https://lists.berlios.de/mailman/listinfo/openocd-development

Reply via email to