Does gcc on cygwin support thread local storage with __declspec(thread)?

2006-08-25 Thread Wang Yiping
Dear Readers: Recently I am trying to compile mozilla on cygwin, the gcc gives me such warnings: ../../../dist/include/nspr/md/_winnt.h:507: warning: `thread' attribute directiv e ignored Does this mean it does not support TLS? then how to use Thread-local storage on cygwin? Best Regards An

Re: no message or dialog when a DLL is missing

2006-08-24 Thread Wang Yiping
Now, the analysis: according to strace, the spawning process (e.g., the shell) does receive the Windows exception C135 (a.k.a. STATUS_DLL_NOT_FOUND), handles it, and uses it to set exit code to 0x35. My guess is that neither cmd.exe nor the Windows launcher install a handler for the exception

Re: gcc-3.4.4 compile dietlibc error on cygwin

2006-08-21 Thread Wang Yiping
Dear Reads: In my first letter, I just tried to cross-compiled the dietlibc in cygwin. In order to cross-compile programs that depends on dietlibc such as nash, one must get a HOST diet execution from the dietlibc and then run diet some-arch-gcc yourfile.c. Although dietlibc supports cross-compi

Re: gcc-3.4.4 compile dietlibc error on cygwin

2006-08-10 Thread Wang Yiping
Hi, Brian: It's not really clear what you're trying to accomplish here. If you're trying to natively compile this lib then that's almost certainly going to fail, as dietlibc supports the linux kernel only. (Just like you can't just compile glibc for windows and run it -- if this were possibl

gcc-3.4.4 compile dietlibc error on cygwin

2006-08-10 Thread Wang Yiping
Dear Readers: I met a problem on compiling dietlibc on the lastest gcc-3.4.4 with error. I don't know if I can do this on cygwin. Thanks for your help! andy dietlibc-0.27 to 0.30 i386/start.S 68 .Lstart: 69.size_start,.Lstart-_start $ make gcc -I. -isystem include -pipe -nostdinc