This is the mail archive of the cygwin@sourceware.cygnus.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

fix for missing signgam [Re: Problem with library "libm.a" using beta 18 under Windows95]


Domenico De Seta <deseta@fub.it> writes:
> I've got the following error compiling some C stuff:
> 
> gcc -O linpack.o ranlib.o com.o fft_rif.o fft_fgn.o -lm  -o fft_fgn
> C:\gnuwin32\b18\H-i386-cygwin32\lib\gcc-lib\i386-cygwin32\cygnus-2.7.2-970404
> \..
> 
> /../../../i386-cygwin32\lib/libm.a(w_lgamma.o)(.text+0x7):w_lgamma.c:
> undefined
> reference to `signgam'
> gcc: Internal compiler error: program ld got fatal signal 1
> 
> The simbol 'signgam' seems not to be defined in the gcc library.
> 
> Please, could you tell me if this is a bug of the gcc beta 18 release?
> 

Yes it is. I sent a bug report (and a fix) for b17, but never saw or
heard anything about it since. It's quite trivial to fix howerver. 

Here's my original message:

 -- using template mhl.format --
Date:    Mon, 12 May 1997 18:46:20 CDT
cc:      gnu-win32@cygnus.com

From:    Mumit Khan <khan@cygnus.com>
Subject: Missing signgam definition in libm [Re: problems with lgamma()]

For some reason, the file s_signgam.c, where signgam is defined, wasn't
included in the 'obj' variable in the Makefile (it is there in the 
src one) and hence left out of the library. You can fix it one of 2 
ways:
    
    1. Get the file cdk/newlib/libm/math/s_signgam.c, compile it and put
       in libm, or
    
    2. temporarily, include the following in your program somewhere in a
       file scope:

       #ifdef __CYGWIN32__
       int signgam = 0;
       #endif
    
       and rebuild.

In any case, the compiler shouldn't be dying with internal compiler error,
and that's a bug. The Linux cross-compiler, btw, doesn't die, and simply
reports the linker error.

Regards,
Mumit

-
For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request@cygnus.com" with one line of text: "help".


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]