public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug bootstrap/26050]  New: Use of u_int32_t in libgcc-math breaks bootstrap on Solaris 10/x86
@ 2006-01-31 21:32 gcc-bugzilla at gcc dot gnu dot org
  2006-01-31 21:54 ` [Bug bootstrap/26050] [4.2 Regression] " pinskia at gcc dot gnu dot org
                   ` (9 more replies)
  0 siblings, 10 replies; 11+ messages in thread
From: gcc-bugzilla at gcc dot gnu dot org @ 2006-01-31 21:32 UTC (permalink / raw)
  To: gcc-bugs


Current mainline (as of 20060131) fails to bootstrap on Solaris 10/x86 in
libgcc-math:

/vol/gcc/obj/gcc-4.2.0-20060131/10-gcc/./gcc/xgcc
-B/vol/gcc/obj/gcc-4.2.0-20060131/10-gcc/./gcc/
-B/vol/gcc/share/i386-pc-solaris2.10/bin/
-B/vol/gcc/share/i386-pc-solaris2.10/lib/ -isystem
/vol/gcc/share/i386-pc-solaris2.10/include -isystem
/vol/gcc/share/i386-pc-solaris2.10/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/vol/gcc/src/gcc-dist/libgcc-math/i386
-I/vol/gcc/src/gcc-dist/libgcc-math/i386/../include -include
/vol/gcc/src/gcc-dist/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-e_acosf.lo -MD -MP -MF .deps/libsse2_la-e_acosf.Tpo
-c /vol/gcc/src/gcc-dist/libgcc-math/i386/../flt-32/e_ac!
 osf.c  -fPIC -DPIC -o .libs/libsse2_la-e_acosf.o
In file included from
/vol/gcc/src/gcc-dist/libgcc-math/i386/../flt-32/e_acosf.c:21:
/vol/gcc/src/gcc-dist/libgcc-math/i386/../include/math_private.h:58: error:
expected specifier-qualifier-list before 'u_int32_t'
/vol/gcc/src/gcc-dist/libgcc-math/i386/../include/math_private.h:129: error:
expected specifier-qualifier-list before 'u_int32_t'
/vol/gcc/src/gcc-dist/libgcc-math/i386/../flt-32/e_acosf.c: In function
'__libm_sse2_acosf':
/vol/gcc/src/gcc-dist/libgcc-math/i386/../flt-32/e_acosf.c:52: error:
'ieee_float_shape_type' has no member named 'word'
/vol/gcc/src/gcc-dist/libgcc-math/i386/../flt-32/e_acosf.c:80: error:
'ieee_float_shape_type' has no member named 'word'
/vol/gcc/src/gcc-dist/libgcc-math/i386/../flt-32/e_acosf.c:81: error:
'ieee_float_shape_type' has no member named 'word'
make[3]: *** [libsse2_la-e_acosf.lo] Error 1
make[3]: *** Waiting for unfinished jobs....

u_int32_t isn't declared anywhere, but is used in several files
unconditionally:

libgcc-math/dbl-64/e_log10.c
libgcc-math/dbl-64/e_rem_pio2.c
libgcc-math/dbl-64/s_floor.c
libgcc-math/flt-32/e_atan2f.c
libgcc-math/flt-32/e_log10f.c
libgcc-math/flt-32/e_powf.c
libgcc-math/flt-32/e_rem_pio2f.c
libgcc-math/flt-32/e_sqrtf.c
libgcc-math/flt-32/s_floorf.c
libgcc-math/include/math_private.h

Environment:
System: SunOS australien 5.10 Generic_118844-19 i86pc i386 i86pc
Architecture: i86pc


host: i386-pc-solaris2.10
build: i386-pc-solaris2.10
target: i386-pc-solaris2.10
configured with: /vol/gcc/src/gcc-dist/configure --prefix=/vol/gcc
--with-local-prefix=/vol/gcc --disable-nls --disable-multilib
--with-gmp-dir=/vol/gnu/obj/gmp-4.1.3
--with-mpfr-dir=/vol/gnu/obj/gmp-4.1.3/mpfr
--enable-languages=c,c++,fortran,java,objc,ada --disable-libmudflap

How-To-Repeat:
Bootstrap mainline as described above.


------- Comment #1 from ro at techfak dot uni-bielefeld dot de  2006-01-31 21:32 -------
Fix:
Either declare u_int32_t if missing (or, far better) use the ISO C uint32_t
type instead (and provide a definition if missing, cf. config/stdint.m4).

A trivial patch which globally uses uint32_t in libgcc-math allowed the
bootstrap to finish; test currently in progress.


-- 
           Summary: Use of u_int32_t in libgcc-math breaks bootstrap on
                    Solaris 10/x86
           Product: gcc
           Version: unknown
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: bootstrap
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: ro at techfak dot uni-bielefeld dot de
 GCC build triplet: i386-pc-solaris2.10
  GCC host triplet: i386-pc-solaris2.10
GCC target triplet: i386-pc-solaris2.10


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


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

* [Bug bootstrap/26050] [4.2 Regression] Use of u_int32_t in libgcc-math breaks bootstrap on Solaris 10/x86
  2006-01-31 21:32 [Bug bootstrap/26050] New: Use of u_int32_t in libgcc-math breaks bootstrap on Solaris 10/x86 gcc-bugzilla at gcc dot gnu dot org
@ 2006-01-31 21:54 ` pinskia at gcc dot gnu dot org
  2006-02-01  1:40 ` pinskia at gcc dot gnu dot org
                   ` (8 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2006-01-31 21:54 UTC (permalink / raw)
  To: gcc-bugs



-- 

pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |build
            Summary|Use of u_int32_t in libgcc- |[4.2 Regression] Use of
                   |math breaks bootstrap on    |u_int32_t in libgcc-math
                   |Solaris 10/x86              |breaks bootstrap on Solaris
                   |                            |10/x86
   Target Milestone|---                         |4.2.0
            Version|unknown                     |4.2.0


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


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

* [Bug bootstrap/26050] [4.2 Regression] Use of u_int32_t in libgcc-math breaks bootstrap on Solaris 10/x86
  2006-01-31 21:32 [Bug bootstrap/26050] New: Use of u_int32_t in libgcc-math breaks bootstrap on Solaris 10/x86 gcc-bugzilla at gcc dot gnu dot org
  2006-01-31 21:54 ` [Bug bootstrap/26050] [4.2 Regression] " pinskia at gcc dot gnu dot org
@ 2006-02-01  1:40 ` pinskia at gcc dot gnu dot org
  2006-02-01 11:38 ` rguenth at gcc dot gnu dot org
                   ` (7 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2006-02-01  1:40 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #2 from pinskia at gcc dot gnu dot org  2006-02-01 01:39 -------
Confirmd.


-- 

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:39:59
               date|                            |


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


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

* [Bug bootstrap/26050] [4.2 Regression] Use of u_int32_t in libgcc-math breaks bootstrap on Solaris 10/x86
  2006-01-31 21:32 [Bug bootstrap/26050] New: Use of u_int32_t in libgcc-math breaks bootstrap on Solaris 10/x86 gcc-bugzilla at gcc dot gnu dot org
  2006-01-31 21:54 ` [Bug bootstrap/26050] [4.2 Regression] " pinskia at gcc dot gnu dot org
  2006-02-01  1:40 ` pinskia at gcc dot gnu dot org
@ 2006-02-01 11:38 ` rguenth at gcc dot gnu dot org
  2006-02-01 12:18 ` ro at techfak dot uni-bielefeld dot de
                   ` (6 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2006-02-01 11:38 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #3 from rguenth at gcc dot gnu dot org  2006-02-01 11:38 -------
Can you provide the patch that fixed the issue for you?

Thanks,
Richard.


-- 

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
             Status|NEW                         |ASSIGNED
   Last reconfirmed|2006-02-01 01:39:59         |2006-02-01 11:38:01
               date|                            |


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


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

* [Bug bootstrap/26050] [4.2 Regression] Use of u_int32_t in libgcc-math breaks bootstrap on Solaris 10/x86
  2006-01-31 21:32 [Bug bootstrap/26050] New: Use of u_int32_t in libgcc-math breaks bootstrap on Solaris 10/x86 gcc-bugzilla at gcc dot gnu dot org
                   ` (2 preceding siblings ...)
  2006-02-01 11:38 ` rguenth at gcc dot gnu dot org
@ 2006-02-01 12:18 ` ro at techfak dot uni-bielefeld dot de
  2006-02-01 12:19 ` ro at gcc dot gnu dot org
                   ` (5 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: ro at techfak dot uni-bielefeld dot de @ 2006-02-01 12:18 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #4 from ro at techfak dot uni-bielefeld dot de  2006-02-01 12:18 -------
Subject: Re:  [4.2 Regression] Use of u_int32_t in libgcc-math breaks bootstrap
on Solaris 10/x86

rguenth at gcc dot gnu dot org writes:

> Can you provide the patch that fixed the issue for you?

Sure, but as I said, it's just a trivial global replacement of u_int32_t
with uint32_t.  I'll attach my patch (without a ChangeLog entry).

        Rainer


-- 


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


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

* [Bug bootstrap/26050] [4.2 Regression] Use of u_int32_t in libgcc-math breaks bootstrap on Solaris 10/x86
  2006-01-31 21:32 [Bug bootstrap/26050] New: Use of u_int32_t in libgcc-math breaks bootstrap on Solaris 10/x86 gcc-bugzilla at gcc dot gnu dot org
                   ` (3 preceding siblings ...)
  2006-02-01 12:18 ` ro at techfak dot uni-bielefeld dot de
@ 2006-02-01 12:19 ` ro at gcc dot gnu dot org
  2006-02-01 12:23 ` rguenth at gcc dot gnu dot org
                   ` (4 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: ro at gcc dot gnu dot org @ 2006-02-01 12:19 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #5 from ro at gcc dot gnu dot org  2006-02-01 12:19 -------
Created an attachment (id=10769)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=10769&action=view)
Trivial patch to avoid use non-standard u_int32_t


-- 


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


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

* [Bug bootstrap/26050] [4.2 Regression] Use of u_int32_t in libgcc-math breaks bootstrap on Solaris 10/x86
  2006-01-31 21:32 [Bug bootstrap/26050] New: Use of u_int32_t in libgcc-math breaks bootstrap on Solaris 10/x86 gcc-bugzilla at gcc dot gnu dot org
                   ` (4 preceding siblings ...)
  2006-02-01 12:19 ` ro at gcc dot gnu dot org
@ 2006-02-01 12:23 ` rguenth at gcc dot gnu dot org
  2006-02-01 12:31 ` ro at techfak dot uni-bielefeld dot de
                   ` (3 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2006-02-01 12:23 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #6 from rguenth at gcc dot gnu dot org  2006-02-01 12:23 -------
Oh, I thought you did the config/stdint.m4 fallback, too.  I'll take care of
that.
Thanks anyway.


-- 


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


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

* [Bug bootstrap/26050] [4.2 Regression] Use of u_int32_t in libgcc-math breaks bootstrap on Solaris 10/x86
  2006-01-31 21:32 [Bug bootstrap/26050] New: Use of u_int32_t in libgcc-math breaks bootstrap on Solaris 10/x86 gcc-bugzilla at gcc dot gnu dot org
                   ` (5 preceding siblings ...)
  2006-02-01 12:23 ` rguenth at gcc dot gnu dot org
@ 2006-02-01 12:31 ` ro at techfak dot uni-bielefeld dot de
  2006-02-01 14:27 ` rguenth at gcc dot gnu dot org
                   ` (2 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: ro at techfak dot uni-bielefeld dot de @ 2006-02-01 12:31 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #7 from ro at techfak dot uni-bielefeld dot de  2006-02-01 12:31 -------
Subject: Re:  [4.2 Regression] Use of u_int32_t in libgcc-math breaks bootstrap
on Solaris 10/x86

rguenth at gcc dot gnu dot org writes:

> Oh, I thought you did the config/stdint.m4 fallback, too.  I'll take care of
> that.

No, not at 2 o'clock in the night when my only intention was to quickly
restore bootstrap in order to test an unrelated fix ;-)

        Rainer


-- 


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


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

* [Bug bootstrap/26050] [4.2 Regression] Use of u_int32_t in libgcc-math breaks bootstrap on Solaris 10/x86
  2006-01-31 21:32 [Bug bootstrap/26050] New: Use of u_int32_t in libgcc-math breaks bootstrap on Solaris 10/x86 gcc-bugzilla at gcc dot gnu dot org
                   ` (6 preceding siblings ...)
  2006-02-01 12:31 ` ro at techfak dot uni-bielefeld dot de
@ 2006-02-01 14:27 ` rguenth at gcc dot gnu dot org
  2006-02-07 11:38 ` rguenth at gcc dot gnu dot org
  2006-02-07 15:40 ` rguenth at gcc dot gnu dot org
  9 siblings, 0 replies; 11+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2006-02-01 14:27 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #8 from rguenth at gcc dot gnu dot org  2006-02-01 14:27 -------
Patch posted that includes generating a fallback _stdint.h header.


-- 

rguenth at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                URL|                            |http://gcc.gnu.org/ml/gcc-
                   |                            |patches/2006-
                   |                            |02/msg00032.html
           Keywords|                            |patch


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


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

* [Bug bootstrap/26050] [4.2 Regression] Use of u_int32_t in libgcc-math breaks bootstrap on Solaris 10/x86
  2006-01-31 21:32 [Bug bootstrap/26050] New: Use of u_int32_t in libgcc-math breaks bootstrap on Solaris 10/x86 gcc-bugzilla at gcc dot gnu dot org
                   ` (7 preceding siblings ...)
  2006-02-01 14:27 ` rguenth at gcc dot gnu dot org
@ 2006-02-07 11:38 ` rguenth at gcc dot gnu dot org
  2006-02-07 15:40 ` rguenth at gcc dot gnu dot org
  9 siblings, 0 replies; 11+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2006-02-07 11:38 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #9 from rguenth at gcc dot gnu dot org  2006-02-07 11:37 -------
Subject: Bug 26050

Author: rguenth
Date: Tue Feb  7 11:37:15 2006
New Revision: 110694

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

        PR bootstrap/26050
        * configure.ac: Generate gstdint.h using GCC_HEADER_STDINT.
        * configure: Re-generate.
        * Makefile.in: Likewise. 
        * aclocal.m4: Likewise.
        * i386/Makefile.am: Adjust include path.
        * i386/Makefile.in: Re-generate.
        * include/math_private.h: Do not include sys/types.h.
        Include gstdint.h.  Use uint32_t instead of u_int32_t.
        * flt-32/e_expf.c: Do not include inttypes.h
        * flt-32/e_sqrtf.c: Use uint32_t instead of u_int32_t.
        * flt-32/s_floorf.c: Likewise.
        * flt-32/e_atan2f.c: Likewise.
        * flt-32/e_powf.c: Likewise.
        * flt-32/e_rem_pio2f.c: Likewise.
        * flt-32/e_log10f.c: Likewise.
        * dbl-64/s_floor.c: Likewise.
        * dbl-64/e_log10.c: Likewise.
        * dbl-64/e_rem_pio2.c: Likewise.

Modified:
    trunk/libgcc-math/ChangeLog
    trunk/libgcc-math/Makefile.in
    trunk/libgcc-math/aclocal.m4
    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/s_floor.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_powf.c
    trunk/libgcc-math/flt-32/e_rem_pio2f.c
    trunk/libgcc-math/flt-32/e_sqrtf.c
    trunk/libgcc-math/flt-32/s_floorf.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=26050


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

* [Bug bootstrap/26050] [4.2 Regression] Use of u_int32_t in libgcc-math breaks bootstrap on Solaris 10/x86
  2006-01-31 21:32 [Bug bootstrap/26050] New: Use of u_int32_t in libgcc-math breaks bootstrap on Solaris 10/x86 gcc-bugzilla at gcc dot gnu dot org
                   ` (8 preceding siblings ...)
  2006-02-07 11:38 ` rguenth at gcc dot gnu dot org
@ 2006-02-07 15:40 ` rguenth at gcc dot gnu dot org
  9 siblings, 0 replies; 11+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2006-02-07 15:40 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #10 from rguenth at gcc dot gnu dot org  2006-02-07 15:40 -------
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=26050


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

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

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-01-31 21:32 [Bug bootstrap/26050] New: Use of u_int32_t in libgcc-math breaks bootstrap on Solaris 10/x86 gcc-bugzilla at gcc dot gnu dot org
2006-01-31 21:54 ` [Bug bootstrap/26050] [4.2 Regression] " pinskia at gcc dot gnu dot org
2006-02-01  1:40 ` pinskia at gcc dot gnu dot org
2006-02-01 11:38 ` rguenth at gcc dot gnu dot org
2006-02-01 12:18 ` ro at techfak dot uni-bielefeld dot de
2006-02-01 12:19 ` ro at gcc dot gnu dot org
2006-02-01 12:23 ` rguenth at gcc dot gnu dot org
2006-02-01 12:31 ` ro at techfak dot uni-bielefeld dot de
2006-02-01 14:27 ` rguenth at gcc dot gnu dot org
2006-02-07 11:38 ` rguenth at gcc dot gnu dot org
2006-02-07 15:40 ` 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).