public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug libquadmath/55225] New: Fail to build lgammaq.c from trunk with mingw-w64
@ 2012-11-07  7:36 alexpux at gmail dot com
  2012-11-21  8:03 ` [Bug libquadmath/55225] " alexpux at gmail dot com
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: alexpux at gmail dot com @ 2012-11-07  7:36 UTC (permalink / raw)
  To: gcc-bugs


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: unassigned@gcc.gnu.org
        ReportedBy: alexpux@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'


^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Bug libquadmath/55225] Fail to build lgammaq.c from trunk with mingw-w64
  2012-11-07  7:36 [Bug libquadmath/55225] New: Fail to build lgammaq.c from trunk with mingw-w64 alexpux at gmail dot com
@ 2012-11-21  8:03 ` alexpux at gmail dot com
  2012-11-21  8:09 ` i.nixman at gmail dot com
                   ` (3 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: alexpux at gmail dot com @ 2012-11-21  8:03 UTC (permalink / raw)
  To: gcc-bugs


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

Alexey Pavlov <alexpux at gmail dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|                            |WONTFIX

--- Comment #1 from Alexey Pavlov <alexpux at gmail dot com> 2012-11-21 08:02:29 UTC ---
Fixed in mingw-w64 trunk


^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Bug libquadmath/55225] Fail to build lgammaq.c from trunk with mingw-w64
  2012-11-07  7:36 [Bug libquadmath/55225] New: Fail to build lgammaq.c from trunk with mingw-w64 alexpux at gmail dot com
  2012-11-21  8:03 ` [Bug libquadmath/55225] " alexpux at gmail dot com
@ 2012-11-21  8:09 ` i.nixman at gmail dot com
  2012-11-21 11:54 ` ktietz at gcc dot gnu.org
                   ` (2 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: i.nixman at gmail dot com @ 2012-11-21  8:09 UTC (permalink / raw)
  To: gcc-bugs


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

--- Comment #2 from niXman <i.nixman at gmail dot com> 2012-11-21 08:09:40 UTC ---
(In reply to comment #1)
> Fixed in mingw-w64 trunk

Strange that the mingw-w64 developers didn't report that the bug is fixed.


^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Bug libquadmath/55225] Fail to build lgammaq.c from trunk with mingw-w64
  2012-11-07  7:36 [Bug libquadmath/55225] New: Fail to build lgammaq.c from trunk with mingw-w64 alexpux at gmail dot com
  2012-11-21  8:03 ` [Bug libquadmath/55225] " alexpux at gmail dot com
  2012-11-21  8:09 ` i.nixman at gmail dot com
@ 2012-11-21 11:54 ` ktietz at gcc dot gnu.org
  2012-11-21 13:47 ` burnus at gcc dot gnu.org
  2012-11-21 13:49 ` burnus at gcc dot gnu.org
  4 siblings, 0 replies; 6+ messages in thread
From: ktietz at gcc dot gnu.org @ 2012-11-21 11:54 UTC (permalink / raw)
  To: gcc-bugs


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

Kai Tietz <ktietz at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |NEW
   Last reconfirmed|                            |2012-11-21
                 CC|                            |ktietz at gcc dot gnu.org
         Resolution|WONTFIX                     |
     Ever Confirmed|0                           |1

--- Comment #3 from Kai Tietz <ktietz at gcc dot gnu.org> 2012-11-21 11:53:53 UTC ---
(In reply to comment #2)
> Strange that the mingw-w64 developers didn't report that the bug is fixed.

It isn't fixed.  We added to mingw-w64's trunk the POSIX feature of signgam. 
By this reason things are working again, if you are using recent mingw-w64's
trunk version.
I re-open bug as there is actual a fix pending


^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Bug libquadmath/55225] Fail to build lgammaq.c from trunk with mingw-w64
  2012-11-07  7:36 [Bug libquadmath/55225] New: Fail to build lgammaq.c from trunk with mingw-w64 alexpux at gmail dot com
                   ` (2 preceding siblings ...)
  2012-11-21 11:54 ` ktietz at gcc dot gnu.org
@ 2012-11-21 13:47 ` burnus at gcc dot gnu.org
  2012-11-21 13:49 ` burnus at gcc dot gnu.org
  4 siblings, 0 replies; 6+ messages in thread
From: burnus at gcc dot gnu.org @ 2012-11-21 13:47 UTC (permalink / raw)
  To: gcc-bugs


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

--- Comment #4 from Tobias Burnus <burnus at gcc dot gnu.org> 2012-11-21 13:46:41 UTC ---
Author: burnus
Date: Wed Nov 21 13:46:34 2012
New Revision: 193695

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=193695
Log:
2012-11-21  Tobias Burnus  <burnus@net-b.de>

        PR libquadmath/55225
        * math/lgammaq.c (lgammaq): Use local variable if
        math.h does not provide signgam.
        * acinclude.m4 (LIBQUAD_CHECK_MATH_H_SIGNGAM): New check.
        * configure.ac: Use it.
        * configure: Regenerate.
        * config.h.in: Regenerate.


Modified:
    trunk/libquadmath/ChangeLog
    trunk/libquadmath/acinclude.m4
    trunk/libquadmath/config.h.in
    trunk/libquadmath/configure
    trunk/libquadmath/configure.ac
    trunk/libquadmath/math/lgammaq.c


^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Bug libquadmath/55225] Fail to build lgammaq.c from trunk with mingw-w64
  2012-11-07  7:36 [Bug libquadmath/55225] New: Fail to build lgammaq.c from trunk with mingw-w64 alexpux at gmail dot com
                   ` (3 preceding siblings ...)
  2012-11-21 13:47 ` burnus at gcc dot gnu.org
@ 2012-11-21 13:49 ` burnus at gcc dot gnu.org
  4 siblings, 0 replies; 6+ messages in thread
From: burnus at gcc dot gnu.org @ 2012-11-21 13:49 UTC (permalink / raw)
  To: gcc-bugs


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

Tobias Burnus <burnus at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |burnus at gcc dot gnu.org
         Resolution|                            |FIXED

--- Comment #5 from Tobias Burnus <burnus at gcc dot gnu.org> 2012-11-21 13:48:48 UTC ---
FIXED on the trunk (4.8), which was only affected.

While POSIX requires that signgam is used for lgamma and, hence, math.h
includes it. C99 doesn't have signgam.

Thus, even if MinGW-w64 now supports it, a configure check makes sense as other
systems might not (yet?) support it.


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2012-11-21 13:49 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-11-07  7:36 [Bug libquadmath/55225] New: Fail to build lgammaq.c from trunk with mingw-w64 alexpux at gmail dot com
2012-11-21  8:03 ` [Bug libquadmath/55225] " alexpux at gmail dot com
2012-11-21  8:09 ` i.nixman at gmail dot com
2012-11-21 11:54 ` ktietz at gcc dot gnu.org
2012-11-21 13:47 ` burnus at gcc dot gnu.org
2012-11-21 13:49 ` burnus at gcc dot gnu.org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).