http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55225



             Bug #: 55225

           Summary: Fail to build lgammaq.c from trunk with mingw-w64

    Classification: Unclassified

           Product: gcc

           Version: unknown

            Status: UNCONFIRMED

          Severity: normal

          Priority: P3

         Component: libquadmath

        AssignedTo: unassig...@gcc.gnu.org

        ReportedBy: alex...@gmail.com





Mingw-w64 doesn't have declared signgam in <math.h> that leads to an error:



depbase=`echo math/lgammaq.lo | sed 's|[^/]*$|.deps/&|;s|\.lo$||'`;\

    /bin/sh ./libtool --tag=CC   --mode=compile

/temp/x64-trunk-snapshot-posix-seh-rev0/build/gcc-trunk/./gcc/xgcc

-B/temp/x64-trunk-snapshot-posix-seh-rev0/build/gcc-trunk/./gcc/

-L/temp/x64-trunk-snapshot-posix-seh-rev0/prefix/x86_64-w64-mingw32/lib

-L/temp/x64-trunk-snapshot-posix-seh-rev0/prefix/mingw/lib -isystem

/temp/x64-trunk-snapshot-posix-seh-rev0/prefix/x86_64-w64-mingw32/include

-isystem /temp/x64-trunk-snapshot-posix-seh-rev0/prefix/mingw/include

-B/temp/x64-trunk-snapshot-posix-seh-rev0/prefix/x86_64-w64-mingw32/bin/

-B/temp/x64-trunk-snapshot-posix-seh-rev0/prefix/x86_64-w64-mingw32/lib/

-isystem

/temp/x64-trunk-snapshot-posix-seh-rev0/prefix/x86_64-w64-mingw32/include

-isystem

/temp/x64-trunk-snapshot-posix-seh-rev0/prefix/x86_64-w64-mingw32/sys-include  

 -DHAVE_CONFIG_H -I. -I../../../../../mingw-sources/gcc-trunk/libquadmath    

-g -O2 -pipe -fomit-frame-pointer

-I/temp/x64-trunk-snapshot-posix-seh-rev0/libs/include

-I/temp/mingw-prereq/x86_64-w64-mingw32-static/include -MT math/lgammaq.lo -MD

-MP -MF $depbase.Tpo -c -o math/lgammaq.lo

../../../../../mingw-sources/gcc-trunk/libquadmath/math/lgammaq.c &&\

    mv -f $depbase.Tpo $depbase.Plo

libtool: compile: 

/temp/x64-trunk-snapshot-posix-seh-rev0/build/gcc-trunk/./gcc/xgcc

-B/temp/x64-trunk-snapshot-posix-seh-rev0/build/gcc-trunk/./gcc/

-L/temp/x64-trunk-snapshot-posix-seh-rev0/prefix/x86_64-w64-mingw32/lib

-L/temp/x64-trunk-snapshot-posix-seh-rev0/prefix/mingw/lib -isystem

/temp/x64-trunk-snapshot-posix-seh-rev0/prefix/x86_64-w64-mingw32/include

-isystem /temp/x64-trunk-snapshot-posix-seh-rev0/prefix/mingw/include

-B/temp/x64-trunk-snapshot-posix-seh-rev0/prefix/x86_64-w64-mingw32/bin/

-B/temp/x64-trunk-snapshot-posix-seh-rev0/prefix/x86_64-w64-mingw32/lib/

-isystem

/temp/x64-trunk-snapshot-posix-seh-rev0/prefix/x86_64-w64-mingw32/include

-isystem

/temp/x64-trunk-snapshot-posix-seh-rev0/prefix/x86_64-w64-mingw32/sys-include

-DHAVE_CONFIG_H -I. -I../../../../../mingw-sources/gcc-trunk/libquadmath -g -O2

-pipe -fomit-frame-pointer

-I/temp/x64-trunk-snapshot-posix-seh-rev0/libs/include

-I/temp/mingw-prereq/x86_64-w64-mingw32-static/include -MT math/lgammaq.lo -MD

-MP -MF math/.deps/lgammaq.Tpo -c

../../../../../mingw-sources/gcc-trunk/libquadmath/math/lgammaq.c  -DDLL_EXPORT

-DPIC -o math/.libs/lgammaq.o

../../../../../mingw-sources/gcc-trunk/libquadmath/math/lgammaq.c: In function

'lgammaq':

../../../../../mingw-sources/gcc-trunk/libquadmath/math/lgammaq.c:763:3: error:

'signgam' undeclared (first use in this function)

   signgam = 1;

   ^

../../../../../mingw-sources/gcc-trunk/libquadmath/math/lgammaq.c:763:3: note:

each undeclared identifier is reported only once for each function it appears

in

make[3]: *** [math/lgammaq.lo] Error 1

make[3]: Leaving directory

`/temp/x64-trunk-snapshot-posix-seh-rev0/build/gcc-trunk/x86_64-w64-mingw32/libquadmath'

Reply via email to