| Anonymous | Login | Signup for a new account | 11-10-2008 11:08 PST |
| Main | My View | View Issues | Change Log | Docs |
| Viewing Issue Simple Details [ Jump to Notes ] | [ View Advanced ] [ Issue History ] [ Print ] | |||||||||||
| ID | Category | Severity | Reproducibility | Date Submitted | Last Update | |||||||
| 0001090 | [buildroot] Architecture Specific | major | always | 11-14-06 00:01 | 08-25-08 05:32 | |||||||
| Reporter | GJanak | View Status | public | |||||||||
| Assigned To | buildroot | |||||||||||
| Priority | normal | Resolution | open | |||||||||
| Status | assigned | Product Version | ||||||||||
| Summary | 0001090: stdlibc++ fails putting a double in a stream. | |||||||||||
| Description |
The problem was: putting a double in a stream: cout << 10.5 ; Produce an empty string, or some garbage characters. I could resolve the error down to some wired Code combination between uclibc and libstdc++ |
|||||||||||
| Additional Information |
GCC 4.1.1 uclibc 0.9.27 and snapshot and Current subversion different binutils... powerpc Platform. wchar or without wchar (patched Makefile) no difference. Background: in buildroot/toolchain_build_powerpc/gcc-4.1.1-final/powerpc-linux-uclibc/libstdc++-v3; in include/bits/locale_facets.tcc line 1099 (and others) (because _GLIBCXX_USE_C99 dont seems to be defined) int __len = std::__convert_from_v(__cs, 0, ... is called. But the uclibc implementation of __convert_from_v uses the size /second parameter) for an snprintf. Solution: replace the zero with cs_size, calculated some lines above for allocation. Doesnt hurt anyone. Please write comment, if i'm was wrong... |
|||||||||||
| Attached Files |
|
|||||||||||
|
|
||||||||||||
| Copyright © 2000 - 2006 Mantis Group |