on my gentoo 1.3b-r1 (gcc 3.1) the fcpci-ebuild produces us __udivdi3. the definite solution is simply to replace the tools.c.diff with mine. it really works :)
Created attachment 2949 [details, diff] replaces glibc-routine (imho) please dont patch anything with this, just replace
euhm.. what's that? should i save your attachment in place of the current tools.c.diff?
lot of stress here... eehm. yeah, just replace the current files/tools.c.diff with my attachment. i hope i did not confuse you too much (was it the name of the attachment :-?).
I've just had a look on the new patch. I think this includes a risk of an overflow. And I can't believe that gcc 3.1 does not include support for type long long.
Hm... Want to adjust the patch so it works pretty please? We have +- 4 days until i'll make the iso's, and this prog should go on them :o) Thanks!
Just as explaining what I mean: in the new patch j*1000/HZ is replaced with j*(1000/HZ)+(j*(1000%HZ))/HZ. I don't know the range for jiffies (j) or HZ but for example if HZ is 600 than jiffies would be multiplied by 400 in the second term. Couldn't that __udivdi3 problem solved on another way? I think I've read somthing about that problem with gcc 3.x in another (totally different) thread. But I can't test it, because I'm only running 2.9x.
sorry, but i dont have the time to work further on this the next four weeks. so holler, plz arbeite dran. btw i think its the kernel that does not support long long, not gcc3.1 (imho).
I can't work on that problem, because I don't have it. So if the missing routine should be part of the kernel, please tell us what kernel you are using. I've send an e-mail to AVM telling them your problem and patch. That's all I can do.
I've got response from AVM, they say the following should work for 3.x: > unsigned long os_msec (void) { > > return jiffies * (1000 / HZ); > } /* os_msec */ But they didn't say if that do it with 2.9x too. Maybe a #ifdef GCC_3 (I don't know the correct name) would be the best. Alexander
BTW: I'm not good as maintainer, I've no access to cvs.
I think this has been adjusted in glibc AFAIK. Azarah, can you confirm this?
Should be for x86 and ppc (sys-libs/glibc-2.2.5-r7 as of current for ppc).
never change a running system, especially if it is the only way to connect to the internet. it works for me with the new glibc, and because i was the bad guy opening the bug i will close it now.
closed
Its an issue with gcc3, but we did patch glibc a while back already.