* Re: glibc build problem...
2011-01-18 19:54 ` glibc build problem Matt Turner
@ 2011-01-19 9:05 ` Oliver Falk
2011-01-19 12:39 ` Oliver Falk
2011-01-25 14:29 ` Oliver Falk
1 sibling, 1 reply; 4+ messages in thread
From: Oliver Falk @ 2011-01-19 9:05 UTC (permalink / raw)
To: Matt Turner
Cc: Jay Estabrook, Michael Kronsteiner, Tero Huttunen, ink, rth, libc-ports
Hi Matt!
Am 18.01.2011 20:19, schrieb Matt Turner:
> On Tue, Jan 18, 2011 at 5:39 PM, Oliver Falk<oliver@linux-kernel.at> wrote:
>> Hi guys!
>>
>> Sorry for directly mailing you... But m/l don't work for me ATM.
>
> Added libc-ports@ for you. There's no reason not to mail it.
Merci.
>> stubs.c: In function '__setfpucw':
>> stubs.c:47: warning: implicit declaration of function '_FPU_SETCW'
>> stubs.c: In function '__setfpucw':
>> stubs.c:47: warning: implicit declaration of function '_FPU_SETCW'
>> /root/rpmbuild/BUILD/glibc-2.11.2/build-alpha-linuxnptl/glibc-compat/libNoVersion_pic.a(stubs.os):
>> In function `__setfpucw':
>> /data/work/rpmbuild/BUILD/glibc-2.11.2/glibc-compat/stubs.c:47: undefined
>> reference to `_FPU_SETCW'
>> /data/work/rpmbuild/BUILD/glibc-2.11.2/glibc-compat/stubs.c:47: undefined
>> reference to `_FPU_SETCW'
>> collect2: ld returned 1 exit status
>> make[2]: ***
>> [/root/rpmbuild/BUILD/glibc-2.11.2/build-alpha-linuxnptl/glibc-compat/libNoVersion.so]
>> Error 1
>>
>>
>> Ideas?
>>
>> On other archs it's defined as some __asm__ volatile code... Actually not
>> the stuff I'm able to do...
>>
>> -of
>>
>
> Lots of alpha patches went into glibc-2.12. Try that before you spend
> too much time trying to compile an older version.
OK. I'll have a look at it. Thanks for the pointer.
-of
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: glibc build problem...
2011-01-18 19:54 ` glibc build problem Matt Turner
2011-01-19 9:05 ` Oliver Falk
@ 2011-01-25 14:29 ` Oliver Falk
1 sibling, 0 replies; 4+ messages in thread
From: Oliver Falk @ 2011-01-25 14:29 UTC (permalink / raw)
To: Matt Turner
Cc: Jay Estabrook, Michael Kronsteiner, Tero Huttunen, ink, rth, libc-ports
On 01/18/2011 08:19 PM, Matt Turner wrote:
> On Tue, Jan 18, 2011 at 5:39 PM, Oliver Falk<oliver@linux-kernel.at> wrote:
>> Hi guys!
>>
>> Sorry for directly mailing you... But m/l don't work for me ATM.
>
> Added libc-ports@ for you. There's no reason not to mail it.
>
>> stubs.c: In function '__setfpucw':
>> stubs.c:47: warning: implicit declaration of function '_FPU_SETCW'
>> stubs.c: In function '__setfpucw':
>> stubs.c:47: warning: implicit declaration of function '_FPU_SETCW'
>> /root/rpmbuild/BUILD/glibc-2.11.2/build-alpha-linuxnptl/glibc-compat/libNoVersion_pic.a(stubs.os):
>> In function `__setfpucw':
>> /data/work/rpmbuild/BUILD/glibc-2.11.2/glibc-compat/stubs.c:47: undefined
>> reference to `_FPU_SETCW'
>> /data/work/rpmbuild/BUILD/glibc-2.11.2/glibc-compat/stubs.c:47: undefined
>> reference to `_FPU_SETCW'
>> collect2: ld returned 1 exit status
>> make[2]: ***
>> [/root/rpmbuild/BUILD/glibc-2.11.2/build-alpha-linuxnptl/glibc-compat/libNoVersion.so]
>> Error 1
>>
>>
>> Ideas?
>>
>> On other archs it's defined as some __asm__ volatile code... Actually not
>> the stuff I'm able to do...
>>
>> -of
>>
>
> Lots of alpha patches went into glibc-2.12. Try that before you spend
> too much time trying to compile an older version.
These defines - as already said - have not been introduced in one of the
later glibc versions.
However. I guess this does make sense (taken from
sysdeps/unix/sysv/linux/alpha/setfpucw.c):
sysdeps/alpha/fpu/fpu_control.h:
/* Macros for accessing the hardware control word. */
#define _FPU_GETCW(cw) __asm__ ("excb; mf_fpcr %0" : "=f"(cw));
#define _FPU_SETCW(cw) __asm__ volatile ("mt_fpcr %0; excb" : : "f"(cw));
Really, I have not much clue about asm :-) So if this is totally wrong,
feel free to correct me. If not, it would be great if this could be
included...
I'm not 100% sure if for _FPU_SETCW it is needed to also *save* FPCR. :-?
PLMK what you think.
-of
-of
^ permalink raw reply [flat|nested] 4+ messages in thread