public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug libstdc++/14939] New: libstdc++ doesn't compile with uclibc headers
@ 2004-04-13 14:22 bero at arklinux dot org
  2004-04-13 16:49 ` [Bug target/14939] " pinskia at gcc dot gnu dot org
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: bero at arklinux dot org @ 2004-04-13 14:22 UTC (permalink / raw)
  To: gcc-bugs

The problem is that uclibc uses __ctype_touplow_t for its ctype stuff - it's 
typedef'ed to int16_t in uclibc headers. 
 
The error: 
 
In file included from ../../../../libstdc++-v3/src/ctype.cc:76: 
/usr/src/ark/BUILD/gcc-3.4.0-20040411/obj-arm-ark-linuxuclibc/arm-ark-linuxuclibc/libstdc++-v3/include/arm-ark-linuxuclibc/bits/ctype_noninline.h: 
In constructor `std::ctype<char>::ctype(int*, const short unsigned int*, bool, 
size_t)': 
/usr/src/ark/BUILD/gcc-3.4.0-20040411/obj-arm-ark-linuxuclibc/arm-ark-linuxuclibc/libstdc++-v3/include/arm-ark-linuxuclibc/bits/ctype_noninline.h:85: 
error: cannot convert `const __ctype_touplow_t*' to `const int*' in assignment 
/usr/src/ark/BUILD/gcc-3.4.0-20040411/obj-arm-ark-linuxuclibc/arm-ark-linuxuclibc/libstdc++-v3/include/arm-ark-linuxuclibc/bits/ctype_noninline.h:86: 
error: cannot convert `const __ctype_touplow_t*' to `const int*' in assignment 
/usr/src/ark/BUILD/gcc-3.4.0-20040411/obj-arm-ark-linuxuclibc/arm-ark-linuxuclibc/libstdc++-v3/include/arm-ark-linuxuclibc/bits/ctype_noninline.h: 
In constructor `std::ctype<char>::ctype(const short unsigned int*, bool, 
size_t)': 
/usr/src/ark/BUILD/gcc-3.4.0-20040411/obj-arm-ark-linuxuclibc/arm-ark-linuxuclibc/libstdc++-v3/include/arm-ark-linuxuclibc/bits/ctype_noninline.h:123: 
error: cannot convert `const __ctype_touplow_t*' to `const int*' in assignment 
/usr/src/ark/BUILD/gcc-3.4.0-20040411/obj-arm-ark-linuxuclibc/arm-ark-linuxuclibc/libstdc++-v3/include/arm-ark-linuxuclibc/bits/ctype_noninline.h:124: 
error: cannot convert `const __ctype_touplow_t*' to `const int*' in assignment 
make[3]: *** [ctype.lo] Error 1

-- 
           Summary: libstdc++ doesn't compile with uclibc headers
           Product: gcc
           Version: 3.4.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: libstdc++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: bero at arklinux dot org
                CC: gcc-bugs at gcc dot gnu dot org
 GCC build triplet: i586-ark-linux-gnu
  GCC host triplet: i586-ark-linux-gnu
GCC target triplet: arm-ark-linuxuclibc


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


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

* [Bug target/14939] libstdc++ doesn't compile with uclibc headers
  2004-04-13 14:22 [Bug libstdc++/14939] New: libstdc++ doesn't compile with uclibc headers bero at arklinux dot org
@ 2004-04-13 16:49 ` pinskia at gcc dot gnu dot org
  2004-05-25 14:45 ` [Bug libstdc++/14939] " bkoz at gcc dot gnu dot org
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 5+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-04-13 16:49 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2004-04-13 15:37 -------
Confirmed, the problem is that libstdc++ is using the glibc's version of ctype_noninline.h instead of its 
own or the generic one.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
           Severity|normal                      |enhancement
             Status|UNCONFIRMED                 |NEW
          Component|libstdc++                   |target
     Ever Confirmed|                            |1
   Last reconfirmed|0000-00-00 00:00:00         |2004-04-13 15:37:31
               date|                            |


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


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

* [Bug libstdc++/14939] libstdc++ doesn't compile with uclibc headers
  2004-04-13 14:22 [Bug libstdc++/14939] New: libstdc++ doesn't compile with uclibc headers bero at arklinux dot org
  2004-04-13 16:49 ` [Bug target/14939] " pinskia at gcc dot gnu dot org
@ 2004-05-25 14:45 ` bkoz at gcc dot gnu dot org
  2004-07-26 21:03 ` bkoz at gcc dot gnu dot org
  2004-10-25  0:48 ` pinskia at gcc dot gnu dot org
  3 siblings, 0 replies; 5+ messages in thread
From: bkoz at gcc dot gnu dot org @ 2004-05-25 14:45 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From bkoz at gcc dot gnu dot org  2004-05-24 18:13 -------

Hmmm. I'd prefer it if you could just add a new config/os/uclib directory, and
populate it with the bits you need.

Either that, or take the uclib defines out of the generic header, via some
unspecified method.

-benjamin

-- 


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


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

* [Bug libstdc++/14939] libstdc++ doesn't compile with uclibc headers
  2004-04-13 14:22 [Bug libstdc++/14939] New: libstdc++ doesn't compile with uclibc headers bero at arklinux dot org
  2004-04-13 16:49 ` [Bug target/14939] " pinskia at gcc dot gnu dot org
  2004-05-25 14:45 ` [Bug libstdc++/14939] " bkoz at gcc dot gnu dot org
@ 2004-07-26 21:03 ` bkoz at gcc dot gnu dot org
  2004-10-25  0:48 ` pinskia at gcc dot gnu dot org
  3 siblings, 0 replies; 5+ messages in thread
From: bkoz at gcc dot gnu dot org @ 2004-07-26 21:03 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From bkoz at gcc dot gnu dot org  2004-07-26 21:03 -------

Can you please comment on this proposed patch? 

-benjamin

-- 


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


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

* [Bug libstdc++/14939] libstdc++ doesn't compile with uclibc headers
  2004-04-13 14:22 [Bug libstdc++/14939] New: libstdc++ doesn't compile with uclibc headers bero at arklinux dot org
                   ` (2 preceding siblings ...)
  2004-07-26 21:03 ` bkoz at gcc dot gnu dot org
@ 2004-10-25  0:48 ` pinskia at gcc dot gnu dot org
  3 siblings, 0 replies; 5+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-10-25  0:48 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2004-10-25 00:48 -------
Can you tell us if this patch works?

-- 


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


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

end of thread, other threads:[~2004-10-25  0:48 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-04-13 14:22 [Bug libstdc++/14939] New: libstdc++ doesn't compile with uclibc headers bero at arklinux dot org
2004-04-13 16:49 ` [Bug target/14939] " pinskia at gcc dot gnu dot org
2004-05-25 14:45 ` [Bug libstdc++/14939] " bkoz at gcc dot gnu dot org
2004-07-26 21:03 ` bkoz at gcc dot gnu dot org
2004-10-25  0:48 ` pinskia 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).