On Fri, Aug 12, 2011 at 5:19 PM, Steve Bennett <ste...@workware.net.au> wrote: > On 13/08/2011, at 6:41 AM, Jie Zhang wrote: > >> The current HEAD cannot build with mingw32 >> >> libtool: link: i586-mingw32msvc-gcc -std=gnu99 -g -O2 >> -I/home/jie/installs/openocd/include -D__USE_MINGW_ANSI_STDIO -Wall >> -Wstrict-prototypes -Wformat-security -Wshadow -Wextra >> -Wno-unused-parameter -Wbad-function-cast -Wcast-align >> -Wredundant-decls -Werror -o openocd.exe main.o >> -L/home/jie/installs/openocd/lib ./.libs/libopenocd.a -lws2_32 >> ../jimtcl/libjim.a >> ./.libs/libopenocd.a(libhelper_la-command.o): In function >> `process_jim_events': >> /home/jie/sources/openocd/src/helper/command.c:1398: undefined >> reference to `_Jim_ProcessEvents' >> collect2: ld returned 1 exit status >> make[4]: *** [openocd.exe] Error 1 >> make[4]: Leaving directory `/home/jie/sources/openocd/src' >> >> Jim_ProcessEvents is defined in jimtcl/jim-eventloop.c. >> >> set needs(eventloop) {expr {[have-feature select] || [have-feature usleep]}} >> >> but >> >> Checking for select...not found >> Checking for usleep...not found > > Can you send me jimtcl/config.log > Attached.
> This is on Linux, right? > Yes. Debian testing AMD64. Jie
Invoked as: .././jimtcl/configure --with-jim-ext=nvp --disable-lineedit --disable-install-jim --disable-option-checking --prefix=/home/jie/installs/openocd --enable-maintainer-mode --host=i586-mingw32msvc host_alias=i586-mingw32msvc --cache-file=/dev/null --srcdir=. Failed: ccache i586-mingw32msvc-cc -g -O2 -c conftest__.c -o conftest__.o conftest__.c:1:24: error: sys/socket.h: No such file or directory child process exited abnormally ============ The failed code was: #include <sys/socket.h> int main(void) { return 0; } ============ Failed: ccache i586-mingw32msvc-cc -g -O2 -c conftest__.c -o conftest__.o conftest__.c:1:24: error: netinet/in.h: No such file or directory child process exited abnormally ============ The failed code was: #include <netinet/in.h> int main(void) { return 0; } ============ Failed: ccache i586-mingw32msvc-cc -g -O2 -c conftest__.c -o conftest__.o conftest__.c:1:23: error: arpa/inet.h: No such file or directory child process exited abnormally ============ The failed code was: #include <arpa/inet.h> int main(void) { return 0; } ============ Failed: ccache i586-mingw32msvc-cc -g -O2 -c conftest__.c -o conftest__.o conftest__.c:1:19: error: netdb.h: No such file or directory child process exited abnormally ============ The failed code was: #include <netdb.h> int main(void) { return 0; } ============ Failed: ccache i586-mingw32msvc-cc -g -O2 -c conftest__.c -o conftest__.o conftest__.c:1:20: error: sys/un.h: No such file or directory child process exited abnormally ============ The failed code was: #include <sys/un.h> int main(void) { return 0; } ============ Failed: ccache i586-mingw32msvc-cc -g -O2 -c conftest__.c -o conftest__.o conftest__.c:1:19: error: dlfcn.h: No such file or directory child process exited abnormally ============ The failed code was: #include <dlfcn.h> int main(void) { return 0; } ============ Failed: ccache i586-mingw32msvc-cc -g -O2 -c conftest__.c -o conftest__.o conftest__.c:1:25: error: crt_externs.h: No such file or directory child process exited abnormally ============ The failed code was: #include <crt_externs.h> int main(void) { return 0; } ============ Failed: ccache i586-mingw32msvc-cc -g -O2 conftest__.c -o conftest__.o /tmp/cca3kbgO.o: In function `main': /home/jie/sources/openocd/jimtcl/conftest__.c:3: undefined reference to `_ualarm' collect2: ld returned 1 exit status child process exited abnormally ============ The failed code was: extern void ualarm(void); int main(void) { ualarm(); return 0; } ============ Failed: ccache i586-mingw32msvc-cc -g -O2 conftest__.c -o conftest__.o /tmp/ccOSxm7T.o: In function `main': /home/jie/sources/openocd/jimtcl/conftest__.c:3: undefined reference to `_sysinfo' collect2: ld returned 1 exit status child process exited abnormally ============ The failed code was: extern void sysinfo(void); int main(void) { sysinfo(); return 0; } ============ Failed: ccache i586-mingw32msvc-cc -g -O2 conftest__.c -o conftest__.o /tmp/ccmzHPx4.o: In function `main': /home/jie/sources/openocd/jimtcl/conftest__.c:3: undefined reference to `_lstat' collect2: ld returned 1 exit status child process exited abnormally ============ The failed code was: extern void lstat(void); int main(void) { lstat(); return 0; } ============ Failed: ccache i586-mingw32msvc-cc -g -O2 conftest__.c -o conftest__.o conftest__.c:1: warning: conflicting types for built-in function 'fork' /tmp/cckd557b.o: In function `main': /home/jie/sources/openocd/jimtcl/conftest__.c:3: undefined reference to `_fork' collect2: ld returned 1 exit status child process exited abnormally ============ The failed code was: extern void fork(void); int main(void) { fork(); return 0; } ============ Failed: ccache i586-mingw32msvc-cc -g -O2 conftest__.c -o conftest__.o /tmp/ccQGyG3k.o: In function `main': /home/jie/sources/openocd/jimtcl/conftest__.c:3: undefined reference to `_vfork' collect2: ld returned 1 exit status child process exited abnormally ============ The failed code was: extern void vfork(void); int main(void) { vfork(); return 0; } ============ Failed: ccache i586-mingw32msvc-cc -g -O2 conftest__.c -o conftest__.o /tmp/cc0OXhOD.o: In function `main': /home/jie/sources/openocd/jimtcl/conftest__.c:3: undefined reference to `_select' collect2: ld returned 1 exit status child process exited abnormally ============ The failed code was: extern void select(void); int main(void) { select(); return 0; } ============ Failed: ccache i586-mingw32msvc-cc -g -O2 conftest__.c -o conftest__.o /tmp/cc49V0WM.o: In function `main': /home/jie/sources/openocd/jimtcl/conftest__.c:3: undefined reference to `_backtrace' collect2: ld returned 1 exit status child process exited abnormally ============ The failed code was: extern void backtrace(void); int main(void) { backtrace(); return 0; } ============ Failed: ccache i586-mingw32msvc-cc -g -O2 conftest__.c -o conftest__.o /tmp/cc00uPnZ.o: In function `main': /home/jie/sources/openocd/jimtcl/conftest__.c:3: undefined reference to `_geteuid' collect2: ld returned 1 exit status child process exited abnormally ============ The failed code was: extern void geteuid(void); int main(void) { geteuid(); return 0; } ============ Failed: ccache i586-mingw32msvc-cc -g -O2 conftest__.c -o conftest__.o /tmp/ccwS4Ye4.o: In function `main': /home/jie/sources/openocd/jimtcl/conftest__.c:3: undefined reference to `_mkstemp' collect2: ld returned 1 exit status child process exited abnormally ============ The failed code was: extern void mkstemp(void); int main(void) { mkstemp(); return 0; } ============ Failed: ccache i586-mingw32msvc-cc -g -O2 conftest__.c -o conftest__.o /tmp/ccCmnIZd.o: In function `main': /home/jie/sources/openocd/jimtcl/conftest__.c:3: undefined reference to `_realpath' collect2: ld returned 1 exit status child process exited abnormally ============ The failed code was: extern void realpath(void); int main(void) { realpath(); return 0; } ============ Failed: ccache i586-mingw32msvc-cc -g -O2 conftest__.c -o conftest__.o /tmp/ccGzN3bk.o: In function `main': /home/jie/sources/openocd/jimtcl/conftest__.c:3: undefined reference to `_strptime' collect2: ld returned 1 exit status child process exited abnormally ============ The failed code was: extern void strptime(void); int main(void) { strptime(); return 0; } ============ Failed: ccache i586-mingw32msvc-cc -g -O2 conftest__.c -o conftest__.o /tmp/ccmchQgd.o: In function `main': /home/jie/sources/openocd/jimtcl/conftest__.c:3: undefined reference to `_regcomp' collect2: ld returned 1 exit status child process exited abnormally ============ The failed code was: extern void regcomp(void); int main(void) { regcomp(); return 0; } ============ Failed: ccache i586-mingw32msvc-cc -g -O2 conftest__.c -o conftest__.o /tmp/ccsQhLTo.o: In function `main': /home/jie/sources/openocd/jimtcl/conftest__.c:3: undefined reference to `_waitpid' collect2: ld returned 1 exit status child process exited abnormally ============ The failed code was: extern void waitpid(void); int main(void) { waitpid(); return 0; } ============ Failed: ccache i586-mingw32msvc-cc -g -O2 conftest__.c -o conftest__.o /tmp/cckdLw0v.o: In function `main': /home/jie/sources/openocd/jimtcl/conftest__.c:3: undefined reference to `_sigaction' collect2: ld returned 1 exit status child process exited abnormally ============ The failed code was: extern void sigaction(void); int main(void) { sigaction(); return 0; } ============ Failed: ccache i586-mingw32msvc-cc -g -O2 conftest__.c -o conftest__.o /tmp/ccIGv2FA.o: In function `main': /home/jie/sources/openocd/jimtcl/conftest__.c:3: undefined reference to `_sys_signame' collect2: ld returned 1 exit status child process exited abnormally ============ The failed code was: extern void sys_signame(void); int main(void) { sys_signame(); return 0; } ============ Failed: ccache i586-mingw32msvc-cc -g -O2 conftest__.c -o conftest__.o /tmp/ccQ5JdPM.o: In function `main': /home/jie/sources/openocd/jimtcl/conftest__.c:3: undefined reference to `_sys_siglist' collect2: ld returned 1 exit status child process exited abnormally ============ The failed code was: extern void sys_siglist(void); int main(void) { sys_siglist(); return 0; } ============ Failed: ccache i586-mingw32msvc-cc -g -O2 conftest__.c -o conftest__.o /tmp/ccMSJGbQ.o: In function `main': /home/jie/sources/openocd/jimtcl/conftest__.c:3: undefined reference to `_syslog' collect2: ld returned 1 exit status child process exited abnormally ============ The failed code was: extern void syslog(void); int main(void) { syslog(); return 0; } ============ Failed: ccache i586-mingw32msvc-cc -g -O2 conftest__.c -o conftest__.o /tmp/cc0OMc9d.o: In function `main': /home/jie/sources/openocd/jimtcl/conftest__.c:3: undefined reference to `_readlink' collect2: ld returned 1 exit status child process exited abnormally ============ The failed code was: extern void readlink(void); int main(void) { readlink(); return 0; } ============ Failed: ccache i586-mingw32msvc-cc -g -O2 conftest__.c -o conftest__.o /tmp/ccizNXIm.o: In function `main': /home/jie/sources/openocd/jimtcl/conftest__.c:3: undefined reference to `_sleep' collect2: ld returned 1 exit status child process exited abnormally ============ The failed code was: extern void sleep(void); int main(void) { sleep(); return 0; } ============ Failed: ccache i586-mingw32msvc-cc -g -O2 conftest__.c -o conftest__.o /tmp/ccwGqKSy.o: In function `main': /home/jie/sources/openocd/jimtcl/conftest__.c:3: undefined reference to `_usleep' collect2: ld returned 1 exit status child process exited abnormally ============ The failed code was: extern void usleep(void); int main(void) { usleep(); return 0; } ============ Failed: ccache i586-mingw32msvc-cc -g -O2 conftest__.c -o conftest__.o /tmp/ccyfR7qK.o: In function `main': /home/jie/sources/openocd/jimtcl/conftest__.c:3: undefined reference to `_pipe' collect2: ld returned 1 exit status child process exited abnormally ============ The failed code was: extern void pipe(void); int main(void) { pipe(); return 0; } ============ Failed: ccache i586-mingw32msvc-cc -g -O2 conftest__.c -o conftest__.o /tmp/ccaxn9LS.o: In function `main': /home/jie/sources/openocd/jimtcl/conftest__.c:3: undefined reference to `_inet_ntop' collect2: ld returned 1 exit status child process exited abnormally ============ The failed code was: extern void inet_ntop(void); int main(void) { inet_ntop(); return 0; } ============ Failed: ccache i586-mingw32msvc-cc -g -O2 conftest__.c -o conftest__.o /tmp/cc0thi72.o: In function `main': /home/jie/sources/openocd/jimtcl/conftest__.c:3: undefined reference to `_getaddrinfo' collect2: ld returned 1 exit status child process exited abnormally ============ The failed code was: extern void getaddrinfo(void); int main(void) { getaddrinfo(); return 0; } ============ Failed: ccache i586-mingw32msvc-cc -g -O2 conftest__.c -o conftest__.o /tmp/ccE9fJwi.o: In function `main': /home/jie/sources/openocd/jimtcl/conftest__.c:3: undefined reference to `__NSGetEnviron' collect2: ld returned 1 exit status child process exited abnormally ============ The failed code was: extern void _NSGetEnviron(void); int main(void) { _NSGetEnviron(); return 0; } ============ Failed: ccache i586-mingw32msvc-cc -g -O2 -c -D_GNU_SOURCE conftest__.c -o conftest__.o conftest__.c: In function 'main': conftest__.c:3: error: 'environ' undeclared (first use in this function) conftest__.c:3: error: (Each undeclared identifier is reported only once conftest__.c:3: error: for each function it appears in.) child process exited abnormally ============ The failed code was: #include <unistd.h> int main(void) { char **ep = environ; return 0; } ============ Failed: ccache i586-mingw32msvc-cc -g -O2 conftest__.c -o conftest__.o /tmp/ccYhHoyo.o: In function `main': /home/jie/sources/openocd/jimtcl/conftest__.c:3: undefined reference to `_socket' collect2: ld returned 1 exit status child process exited abnormally ============ The failed code was: extern void socket(void); int main(void) { socket(); return 0; } ============ Failed: ccache i586-mingw32msvc-cc -g -O2 conftest__.c -o conftest__.o -lsocket /usr/lib/gcc/i586-mingw32msvc/4.2.1-sjlj/../../../../i586-mingw32msvc/bin/ld: cannot find -lsocket collect2: ld returned 1 exit status child process exited abnormally ============ The failed code was: extern void socket(void); int main(void) { socket(); return 0; } ============ Failed: ccache i586-mingw32msvc-cc -g -O2 conftest__.c -o conftest__.o /tmp/cc825M7z.o: In function `main': /home/jie/sources/openocd/jimtcl/conftest__.c:3: undefined reference to `_dlopen' collect2: ld returned 1 exit status child process exited abnormally ============ The failed code was: extern void dlopen(void); int main(void) { dlopen(); return 0; } ============ Failed: ccache i586-mingw32msvc-cc -g -O2 conftest__.c -o conftest__.o -ldl /usr/lib/gcc/i586-mingw32msvc/4.2.1-sjlj/../../../../i586-mingw32msvc/bin/ld: cannot find -ldl collect2: ld returned 1 exit status child process exited abnormally ============ The failed code was: extern void dlopen(void); int main(void) { dlopen(); return 0; } ============
_______________________________________________ Openocd-development mailing list Openocd-development@lists.berlios.de https://lists.berlios.de/mailman/listinfo/openocd-development