Mail Archives: cygwin/1998/02/03/18:56:45
Domenico De Seta <deseta AT fub DOT 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 AT cygnus DOT com
From: Mumit Khan <khan AT cygnus DOT 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 AT cygnus DOT com" with one line of text: "help".
- Raw text -