Re: Bug report. Clang sqrtl(-1) causes access violation

2019-05-10 Thread Sam Habiel
Wow I can't believe that The Agner Fog posted on the Cygwin mailing list! https://www.agner.org/ On Fri, May 10, 2019 at 8:58 AM Agner Fog wrote: > > Bug description: > > The sqrtl function under Clang causes an access violation when the > argument is negative. > > This error occurs only under

Re: Request for an example x68 assembler portable Hello World script

2019-04-29 Thread Sam Habiel
I frequently cannot contribute discussion to Cygwin topics, but due to my work porting a database (fis-gtm) to Cygwin, I can chime in here. This is a good article to give you an overview of the different calling conventions out there:

Re: 32 bit vs 64 bit Cygwin, followup

2019-02-04 Thread Sam Habiel
>That's not GCC fault. You're running varargs, written for the standard >stack layout of the MSABI target from a function with a stack laid out >in SYSV ABI. That can't work. I did some research to see how to write my own version of varargs (the code base is already instrumented to do different

Re: 32 bit vs 64 bit Cygwin, followup

2019-02-02 Thread Sam Habiel
On Sat, Feb 2, 2019 at 9:39 AM Sam Habiel wrote: > > On Thu, Nov 29, 2018 at 11:33 AM Corinna Vinschen > wrote: > > > > On Nov 29 10:18, Sam Habiel wrote: > > > On Thu, Nov 29, 2018 at 3:58 AM Corinna Vinschen wrote: > > > > On Nov 28 11:06, Sam Habiel w

Re: 32 bit vs 64 bit Cygwin, followup

2019-02-02 Thread Sam Habiel
On Thu, Nov 29, 2018 at 11:33 AM Corinna Vinschen wrote: > > On Nov 29 10:18, Sam Habiel wrote: > > On Thu, Nov 29, 2018 at 3:58 AM Corinna Vinschen wrote: > > > On Nov 28 11:06, Sam Habiel wrote: > > > > On Wed, Nov 28, 2018 at 11:01 AM Yaakov Selkowitz wrote: &

Re: 32 bit vs 64 bit Cygwin, followup

2018-11-29 Thread Sam Habiel
On Thu, Nov 29, 2018 at 3:58 AM Corinna Vinschen wrote: > > Please, no top-posting. > > On Nov 28 11:06, Sam Habiel wrote: > > Yaakov, > > > > On Wed, Nov 28, 2018 at 11:01 AM Yaakov Selkowitz > > wrote: > > > > > > On Mon, 2018-11-26 at

Re: 32 bit vs 64 bit Cygwin, followup

2018-11-28 Thread Sam Habiel
Yaakov, Are you telling me that gcc has a flag to support AMD ABI on Cygwin x64? The assembly code is not standalone; it gets called from C code and calls C code. --Sam On Wed, Nov 28, 2018 at 11:01 AM Yaakov Selkowitz wrote: > > On Mon, 2018-11-26 at 14:07 -0500, Sam Habiel wrote: >

32 bit vs 64 bit Cygwin, followup

2018-11-26 Thread Sam Habiel
Hello everybody, In this message (https://www.sourceware.org/ml/cygwin/2018-11/msg00190.html), Corinna (Hi Corinna!) says: "Don't do that. Use 64 bit Cygwin whenever possible. 32 bit is a lost cause." I would like to mention why I am still using 32 bit Cygwin. I maintain a port of a database

How can I troubleshoot this error: address space is already occupied?

2018-07-19 Thread Sam Habiel
A quick internet search didn't show me anything interesting. Any ideas on how I can troubleshoot this? 1 [main] mumps 7644 child_info_fork::abort: address space needed by 'cygz.dll' (0xB4) is already occupied --Sam -- Problem reports: http://cygwin.com/problems.html FAQ:

Re: Windows upgrade

2018-06-13 Thread Sam Habiel
Thank you Andrey. I use default settings on Gmail--that's the problem mainly. --Sam On Wed, Jun 13, 2018 at 8:53 AM, Andrey Repin wrote: > Greetings, Sam Habiel! > >> I use Cygwin 32-bit all the time on Windows 10 x64. > > 1. This is not a public census, mind you. &

Re: Windows upgrade

2018-06-12 Thread Sam Habiel
I use Cygwin 32-bit all the time on Windows 10 x64. --Sam On Tue, Jun 12, 2018 at 7:31 PM Alejandro Benitez < benitezalejandroe...@outlook.com> wrote: > Hi, > > I have a 32 bit cygwin installation of 8 years of age in an amd64 PC with > 2 GB of RAM with Windows 10. So far it's been so good. I

Re: Help with sgid into the Administrators group (or alternatives?)

2018-06-08 Thread Sam Habiel
I installed the LSA authentication package; but no difference in behavior was found. --Sam On Wed, Jun 6, 2018 at 9:20 AM, Sam Habiel wrote: > I am continuing to port GT.M to Cygwin > (https://www.fisglobal.com/solutions/banking-and-wealth/services/database-engine). > > The databas

Help with sgid into the Administrators group (or alternatives?)

2018-06-06 Thread Sam Habiel
I am continuing to port GT.M to Cygwin (https://www.fisglobal.com/solutions/banking-and-wealth/services/database-engine). The database has a suid program that is marked u+s (root suid) on the file permissions so that it can run as root whenever invoked. One of the first things it does is cd to

Re: Help with C clearenv and setenv

2018-06-06 Thread Sam Habiel
Eliot Moss, This worked perfectly: char *dummy = NULL; environ = Thank you so much. --Sam On Mon, Jun 4, 2018 at 4:22 PM, Sam Habiel wrote: > Thank you! > > On Mon, Jun 4, 2018 at 3:39 PM, Ken Brown wrote: >> On 5/31/2018 9:43 AM, Eric Blake wrote: >>> >>

Re: Help with C clearenv and setenv

2018-06-04 Thread Sam Habiel
Thank you! On Mon, Jun 4, 2018 at 3:39 PM, Ken Brown wrote: > On 5/31/2018 9:43 AM, Eric Blake wrote: >> >> On 05/30/2018 09:48 AM, Sam Habiel wrote: >>> >>> I have code for a database I am porting to Cygwin. >>> >>> Part of

Re: Help with C clearenv and setenv

2018-05-30 Thread Sam Habiel
nset, nothing is substituted, otherwise > the expansion of WORD is substituted. > (( lines deleted )) (( lines deleted )) (( lines deleted )) > > Keith > > On Wed, May 30, 2018 at 8:48 AM, Sam Habiel wrote: > > I have code for a database I am porting to Cygwin.

Help with C clearenv and setenv

2018-05-30 Thread Sam Habiel
I have code for a database I am porting to Cygwin. Part of that code is a clearenv() then a couple of setenvs. There is an ifdef for Cygwin, as it doesn't implement clearenv. It just sets environ = NULL. Well--that really breaks setenv! It returns a "Bad Poniter" error (-1). What is the correct

Re: Cygwin TCP slow

2016-11-29 Thread Sam Habiel
"Then we made a private build of Windows that ignores SO_RCVBUF and SO_SNDBUF and just always uses autotuning no matter what the app does." Out of curiosity, how did you do that? Do you work for Microsoft, or is there something fantastic I missed about building your own modified DLLs? On Tue,

cannot compile anything with gcc on cygwin32; missing cygisl-10.dll

2016-01-26 Thread Sam Habiel
http://stackoverflow.com/questions/32897685/cannot-compile-anything-with-gcc-on-cygwin32-missing-cygisl-10-dll That wasn't me; but I still observed the bug and did the same thing to fix it. How do I report this to the maintainer of gcc? -- Sam Habiel, Pharm.D. VISTA Expertise Network

First install on Win 7: cygwin1.dll is missing from your computer

2016-01-24 Thread Sam Habiel
I used the setup-x86.exe program to install Cygwin on a Windows 7 x64 box. I have tried several times and I get that error message. (Yes, I want the 32 bit version of Cygwin.) I can't find cygwin1.dll in the c:\cygwin\bin directory (I installed it in c:\cygwin). Is the installer broken? -- Sam

Problem with dlsym against libicu

2016-01-22 Thread Sam Habiel
$ gcc -Wall -otest.o test.c sam@horus ~/fis-gtm-cygwin $ ./test.o No such file or directory sam@horus ~/fis-gtm-cygwin $ PATH=/usr/lib:/usr/bin:/usr/local/bin:. ./test.o 0x6aa4 No such process sam@horus ~/fis-gtm-cygwin -- Sam Habiel, Pharm.D. VISTA Expertise Network -- Problem reports: