public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug bootstrap/26055]  New: libgcc-math declaration of __isinf conflicts with system header, fails bootstrap
@ 2006-02-01  1:07 ssen at opendarwin dot org
  2006-02-01  1:09 ` [Bug bootstrap/26055] [4.2 Regression] " pinskia at gcc dot gnu dot org
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: ssen at opendarwin dot org @ 2006-02-01  1:07 UTC (permalink / raw)
  To: gcc-bugs

With gcc trunk, boostrap fails in stage3 with:
if /bin/sh ../libtool --mode=compile /Volumes/HD/ltmp/ssen/gcc-build/./gcc/xgcc
-B/Volumes/HD/ltmp/ssen/gcc-build/./gcc/
-B/usr/local/i386-apple-darwin8.4.2/bin/
-B/usr/local/i386-apple-darwin8.4.2/lib/ -isystem
/usr/local/i386-apple-darwin8.4.2/include -isystem
/usr/local/i386-apple-darwin8.4.2/sys-include -DPACKAGE_NAME=\"libgcc-math\"
-DPACKAGE_TARNAME=\"libgcc-math\" -DPACKAGE_VERSION=\"1.0\"
-DPACKAGE_STRING=\"libgcc-math\ 1.0\" -DPACKAGE_BUGREPORT=\"\"
-DPACKAGE=\"libgcc-math\" -DVERSION=\"1.0\" -DHAVE_HIDDEN_VISIBILITY=1  -I.
-I../../../../gcc/libgcc-math/i386   
-I../../../../gcc/libgcc-math/i386/../include -include
../../../../gcc/libgcc-math/i386/sse2.h -Wall -O2 -g -msse2 -msseregparm
-mfpmath=sse -march=pentium3 -fno-math-errno -fno-trapping-math
-ffinite-math-only -fno-rounding-math -fno-signaling-nans -D__NO_MATH_INLINES
-O2 -g -O2   -MT libsse2_la-s_isinf.lo -MD -MP -MF
".deps/libsse2_la-s_isinf.Tpo" -c -o libsse2_la-s_isinf.lo `test -f
'../../../../gcc/libgcc-math/i386/../dbl-64/s_isinf.c' || echo
'../../../../gcc/libgcc-math/i386/'`../../../../gcc/libgcc-math/i386/../dbl-64/s_isinf.c;
\
then mv -f ".deps/libsse2_la-s_isinf.Tpo" ".deps/libsse2_la-s_isinf.Plo"; else
rm -f ".deps/libsse2_la-s_isinf.Tpo"; exit 1; fi
/Volumes/HD/ltmp/ssen/gcc-build/./gcc/xgcc
-B/Volumes/HD/ltmp/ssen/gcc-build/./gcc/
-B/usr/local/i386-apple-darwin8.4.2/bin/
-B/usr/local/i386-apple-darwin8.4.2/lib/ -isystem
/usr/local/i386-apple-darwin8.4.2/include -isystem
/usr/local/i386-apple-darwin8.4.2/sys-include -DPACKAGE_NAME=\"libgcc-math\"
-DPACKAGE_TARNAME=\"libgcc-math\" -DPACKAGE_VERSION=\"1.0\"
"-DPACKAGE_STRING=\"libgcc-math 1.0\"" -DPACKAGE_BUGREPORT=\"\"
-DPACKAGE=\"libgcc-math\" -DVERSION=\"1.0\" -DHAVE_HIDDEN_VISIBILITY=1 -I.
-I../../../../gcc/libgcc-math/i386
-I../../../../gcc/libgcc-math/i386/../include -include
../../../../gcc/libgcc-math/i386/sse2.h -Wall -O2 -g -msse2 -msseregparm
-mfpmath=sse -march=pentium3 -fno-math-errno -fno-trapping-math
-ffinite-math-only -fno-rounding-math -fno-signaling-nans -D__NO_MATH_INLINES
-O2 -g -O2 -MT libsse2_la-s_isinf.lo -MD -MP -MF .deps/libsse2_la-s_isinf.Tpo
-c ../../../../gcc/libgcc-math/i386/../dbl-64/s_isinf.c  -fno-common -DPIC -o
.libs/libsse2_la-s_isinf.o
../../../../gcc/libgcc-math/i386/../dbl-64/s_isinf.c:21: error: conflicting
types for '__isinf'
/usr/include/architecture/i386/math.h:171: error: previous declaration of
'__isinf' was here
make[3]: *** [libsse2_la-s_isinf.lo] Error 1
make[2]: *** [all-recursive] Error 1
make[1]: *** [all-target-libgcc-math] Error 2
make: *** [all] Error 2


The system <math.h> eventually includes <architecture/i386/math.h>, which has:
#define isinf(x)        \
        (       sizeof (x) == sizeof(float )    ?       __isinff(x)     \
        :       sizeof (x) == sizeof(double)    ?       __isinfd(x)     \
                                                                               
:       __isinf (x))
...

extern int __isinff     (float      );
extern int __isinfd     (double     );
extern int __isinf      (long double);

libgcc-math's s_isinf.c, on the other hand, has:
int
__isinf (double x)
{
...


-- 
           Summary: libgcc-math declaration of __isinf conflicts with system
                    header, fails bootstrap
           Product: gcc
           Version: 4.2.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: bootstrap
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: ssen at opendarwin dot org
 GCC build triplet: i386-apple-darwin8.4.1
  GCC host triplet: i386-apple-darwin8.4.1
GCC target triplet: i386-apple-darwin8.4.1


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


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

* [Bug bootstrap/26055] [4.2 Regression] libgcc-math declaration of __isinf conflicts with system header, fails bootstrap
  2006-02-01  1:07 [Bug bootstrap/26055] New: libgcc-math declaration of __isinf conflicts with system header, fails bootstrap ssen at opendarwin dot org
@ 2006-02-01  1:09 ` pinskia at gcc dot gnu dot org
  2006-02-01  1:36 ` pinskia at gcc dot gnu dot org
                   ` (4 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2006-02-01  1:09 UTC (permalink / raw)
  To: gcc-bugs



-- 

pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Severity|normal                      |blocker
           Keywords|                            |build
            Summary|libgcc-math declaration of  |[4.2 Regression] libgcc-math
                   |__isinf conflicts with      |declaration of __isinf
                   |system header, fails        |conflicts with system
                   |bootstrap                   |header, fails bootstrap
   Target Milestone|---                         |4.2.0


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


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

* [Bug bootstrap/26055] [4.2 Regression] libgcc-math declaration of __isinf conflicts with system header, fails bootstrap
  2006-02-01  1:07 [Bug bootstrap/26055] New: libgcc-math declaration of __isinf conflicts with system header, fails bootstrap ssen at opendarwin dot org
  2006-02-01  1:09 ` [Bug bootstrap/26055] [4.2 Regression] " pinskia at gcc dot gnu dot org
@ 2006-02-01  1:36 ` pinskia at gcc dot gnu dot org
  2006-02-01 10:30 ` rguenth at gcc dot gnu dot org
                   ` (3 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2006-02-01  1:36 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #1 from pinskia at gcc dot gnu dot org  2006-02-01 01:36 -------
Why even include __isinf when it cannot be used?


-- 

pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|0                           |1
   Last reconfirmed|0000-00-00 00:00:00         |2006-02-01 01:36:30
               date|                            |


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


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

* [Bug bootstrap/26055] [4.2 Regression] libgcc-math declaration of __isinf conflicts with system header, fails bootstrap
  2006-02-01  1:07 [Bug bootstrap/26055] New: libgcc-math declaration of __isinf conflicts with system header, fails bootstrap ssen at opendarwin dot org
  2006-02-01  1:09 ` [Bug bootstrap/26055] [4.2 Regression] " pinskia at gcc dot gnu dot org
  2006-02-01  1:36 ` pinskia at gcc dot gnu dot org
@ 2006-02-01 10:30 ` rguenth at gcc dot gnu dot org
  2006-02-01 11:36 ` rguenth at gcc dot gnu dot org
                   ` (2 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2006-02-01 10:30 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #2 from rguenth at gcc dot gnu dot org  2006-02-01 10:30 -------
Subject: Bug 26055

Author: rguenth
Date: Wed Feb  1 10:30:43 2006
New Revision: 110469

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=110469
Log:
2006-02-01  Richard Guenther  <rguenther@suse.de>

        PR bootstrap/26055
        * configure.ac: Disable libgcc-math if we cannot mix
        declaration of __isinf and math.h inclusion.
        * configure: Re-generate.

Modified:
    trunk/libgcc-math/ChangeLog
    trunk/libgcc-math/configure
    trunk/libgcc-math/configure.ac


-- 


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


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

* [Bug bootstrap/26055] [4.2 Regression] libgcc-math declaration of __isinf conflicts with system header, fails bootstrap
  2006-02-01  1:07 [Bug bootstrap/26055] New: libgcc-math declaration of __isinf conflicts with system header, fails bootstrap ssen at opendarwin dot org
                   ` (2 preceding siblings ...)
  2006-02-01 10:30 ` rguenth at gcc dot gnu dot org
@ 2006-02-01 11:36 ` rguenth at gcc dot gnu dot org
  2006-02-28 11:29 ` rguenth at gcc dot gnu dot org
  2006-02-28 14:12 ` rguenth at gcc dot gnu dot org
  5 siblings, 0 replies; 7+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2006-02-01 11:36 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #3 from rguenth at gcc dot gnu dot org  2006-02-01 11:36 -------
This is fixed/worked around on the mainline.  A completer fix was posted here
http://gcc.gnu.org/ml/gcc-patches/2006-02/msg00026.html
for testing.


-- 

rguenth at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         AssignedTo|unassigned at gcc dot gnu   |rguenth at gcc dot gnu dot
                   |dot org                     |org
           Severity|blocker                     |normal
             Status|NEW                         |ASSIGNED
   Last reconfirmed|2006-02-01 01:36:30         |2006-02-01 11:36:08
               date|                            |


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


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

* [Bug bootstrap/26055] [4.2 Regression] libgcc-math declaration of __isinf conflicts with system header, fails bootstrap
  2006-02-01  1:07 [Bug bootstrap/26055] New: libgcc-math declaration of __isinf conflicts with system header, fails bootstrap ssen at opendarwin dot org
                   ` (3 preceding siblings ...)
  2006-02-01 11:36 ` rguenth at gcc dot gnu dot org
@ 2006-02-28 11:29 ` rguenth at gcc dot gnu dot org
  2006-02-28 14:12 ` rguenth at gcc dot gnu dot org
  5 siblings, 0 replies; 7+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2006-02-28 11:29 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #4 from rguenth at gcc dot gnu dot org  2006-02-28 11:29 -------
Subject: Bug 26055

Author: rguenth
Date: Tue Feb 28 11:29:41 2006
New Revision: 111563

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=111563
Log:
2006-02-28  Richard Guenther  <rguenther@suse.de>

        PR bootstrap/26055
        Revert
        * configure.ac: Disable libgcc-math if we cannot mix
        declaration of __isinf and math.h inclusion.
        * configure: Re-generate.

        * i386/Makefile.am: Use -std=c99, do not use -ffinite-math-only,
        do not define __NO_MATH_INLINES.
        * i386/Makefile.in: Re-generate.
        * include/math_private.h (__atanf): Declare.
        (__scalbnf): Likewise.
        (__floorf): Likewise.
        (__isinff): Likewise.
        (__scalbn): Likewise.
        (__floor): Likewise.
        (fabs): Likewise.
        (fabsf): Likewise.
        * flt-32/e_acosf.c: Do not include math.h
        * flt-32/s_isinff.c: Likewise.
        * flt-32/k_tanf.c: Likewise.
        * flt-32/e_sqrtf.c: Likewise.
        * flt-32/e_asinf.c: Likewise.
        * flt-32/k_cosf.c: Likewise.
        * flt-32/k_sinf.c: Likewise.
        * flt-32/s_floorf.c: Likewise.
        * flt-32/s_tanf.c: Likewise.
        * flt-32/s_atanf.c: Likewise.
        * flt-32/s_cosf.c: Likewise.
        * flt-32/e_atan2f.c: Likewise.
        * flt-32/e_powf.c: Likewise.
        * flt-32/s_sinf.c: Likewise.
        * flt-32/e_rem_pio2f.c: Likewise.
        * flt-32/s_scalbnf.c: Likewise.
        * flt-32/e_logf.c: Likewise.
        * flt-32/e_log10f.c: Likewise.
        * flt-32/k_rem_pio2f.c: Likewise.
        * flt-32/e_expf.c: Likewise.  Use __builtin_isless and
        __builtin_isgreater.
        * dbl-64/s_floor.c: Do not include math.h.
        * dbl-64/e_log10.c: Likewise.
        * dbl-64/k_rem_pio2.c: Likewise.
        * dbl-64/s_atan.c: Likewise.
        * dbl-64/s_scalbn.c: Likewise.
        * dbl-64/s_isinf.c: Likewise.
        * dbl-64/s_tan.c: Likewise.
        * dbl-64/e_rem_pio2.c: Likewise.  Avoid uninitialized variable
        warning.
        * dbl-64/mpa.c: Likewise.

Modified:
    trunk/libgcc-math/ChangeLog
    trunk/libgcc-math/configure
    trunk/libgcc-math/configure.ac
    trunk/libgcc-math/dbl-64/e_log10.c
    trunk/libgcc-math/dbl-64/e_rem_pio2.c
    trunk/libgcc-math/dbl-64/k_rem_pio2.c
    trunk/libgcc-math/dbl-64/mpa.c
    trunk/libgcc-math/dbl-64/s_atan.c
    trunk/libgcc-math/dbl-64/s_floor.c
    trunk/libgcc-math/dbl-64/s_isinf.c
    trunk/libgcc-math/dbl-64/s_scalbn.c
    trunk/libgcc-math/dbl-64/s_tan.c
    trunk/libgcc-math/flt-32/e_acosf.c
    trunk/libgcc-math/flt-32/e_asinf.c
    trunk/libgcc-math/flt-32/e_atan2f.c
    trunk/libgcc-math/flt-32/e_expf.c
    trunk/libgcc-math/flt-32/e_log10f.c
    trunk/libgcc-math/flt-32/e_logf.c
    trunk/libgcc-math/flt-32/e_powf.c
    trunk/libgcc-math/flt-32/e_rem_pio2f.c
    trunk/libgcc-math/flt-32/e_sqrtf.c
    trunk/libgcc-math/flt-32/k_cosf.c
    trunk/libgcc-math/flt-32/k_rem_pio2f.c
    trunk/libgcc-math/flt-32/k_sinf.c
    trunk/libgcc-math/flt-32/k_tanf.c
    trunk/libgcc-math/flt-32/s_atanf.c
    trunk/libgcc-math/flt-32/s_cosf.c
    trunk/libgcc-math/flt-32/s_floorf.c
    trunk/libgcc-math/flt-32/s_isinff.c
    trunk/libgcc-math/flt-32/s_scalbnf.c
    trunk/libgcc-math/flt-32/s_sinf.c
    trunk/libgcc-math/flt-32/s_tanf.c
    trunk/libgcc-math/i386/Makefile.am
    trunk/libgcc-math/i386/Makefile.in
    trunk/libgcc-math/include/math_private.h


-- 


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


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

* [Bug bootstrap/26055] [4.2 Regression] libgcc-math declaration of __isinf conflicts with system header, fails bootstrap
  2006-02-01  1:07 [Bug bootstrap/26055] New: libgcc-math declaration of __isinf conflicts with system header, fails bootstrap ssen at opendarwin dot org
                   ` (4 preceding siblings ...)
  2006-02-28 11:29 ` rguenth at gcc dot gnu dot org
@ 2006-02-28 14:12 ` rguenth at gcc dot gnu dot org
  5 siblings, 0 replies; 7+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2006-02-28 14:12 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #5 from rguenth at gcc dot gnu dot org  2006-02-28 14:07 -------
Fixed.


-- 

rguenth at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
         Resolution|                            |FIXED


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


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

end of thread, other threads:[~2006-02-28 14:07 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-02-01  1:07 [Bug bootstrap/26055] New: libgcc-math declaration of __isinf conflicts with system header, fails bootstrap ssen at opendarwin dot org
2006-02-01  1:09 ` [Bug bootstrap/26055] [4.2 Regression] " pinskia at gcc dot gnu dot org
2006-02-01  1:36 ` pinskia at gcc dot gnu dot org
2006-02-01 10:30 ` rguenth at gcc dot gnu dot org
2006-02-01 11:36 ` rguenth at gcc dot gnu dot org
2006-02-28 11:29 ` rguenth at gcc dot gnu dot org
2006-02-28 14:12 ` rguenth at gcc dot gnu dot 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).