[uClibc] printf problem & libgcc on target?

Manuel Novoa III mjn3 at codepoet.org
Fri Jan 16 01:07:53 UTC 2004


Hello,

On Fri, Jan 16, 2004 at 01:58:40PM +1300, Robin Gilks wrote:
> Manuel Novoa III wrote:
> >On Thu, Jan 15, 2004 at 02:38:54PM +1300, Robin Gilks wrote:
> >
> >>/ # eraseall /dev/mtd0
> >>2d %% complete.2d %% complete.2d %% complete.2d %% complete.2d %% 
> >>complete.2d %% complete.2d %% complete.2d %% complete.2d %% complete.2d 
> >>%% complete.2d %% complete.2d %% complete.2d %% complete.2d %% 
> >>complete.2d %% complete.2d %% complete.2d %% complete.2d %% complete.2d 
> >>%% complete.2d %% complete.2d %% complete.2d %% complete.2d %% 
> >>complete.2d %% complete.2d %% complete.2d %% complete.2d %% complete.2d 
> >>%% complete.2d %% complete.2d %% complete.2d %% complete.2d %% 
> >>complete.2d %% complete.2d %% complete.2d %% complete.2d %% complete.2d 
> >>%% complete.2d %% complete.2d %% complete.2d %% complete.2d %% 
> >>complete.2d %% complete.2d %% complete.2d %% complete.2d %% complete.2d 
> >>%% complete.2d %% complete.2d %% complete.
> >>
> >>The code snippet that generates it is as follows:
> >>
> >>if (!quiet) {
> >>     printf
> >>         ("\rErasing %d Kibyte @ %x -- %2d %% complete.",
> >>         meminfo.erasesize / 1024, erase.start,
> >>         erase.start * 100 / meminfo.size);
> >>}
> >>
> >>Any ideas?? It used to be OK :-))
> >
> >
> >What arch?  What uClibc configuration?  In particular, do you have
> >locale support enabled?
> >
> 
> I've updated to latest CVS buildroot to make sure I'm not chasing 
> phantoms but still experiencing the same problem. A point - why is WCHAR 
> support _always_ enabled? Drove me nuts trying to turn it off until I 
> found the makefile patching it back in again!!

I seem to recall Erik enabling it over a year ago so that gcc would build.
Never tried building without it enabled.

> Attached is my .config file for powerpc (mpc8xx). I'm assuming in my 
> config that the Linux kernel is providing a floating point emulator.

That's your problem.  The shared linker is currently broken for powerpc.
I know that staticly linked stuff runs fine.

Fixing it is on Erik's todo list.  Don't know how far down though...

Manuel




More information about the uClibc mailing list