public inbox for libc-ports@sourceware.org
 help / color / mirror / Atom feed
* Re: glibc build problem...
       [not found]                   ` <4D35D03C.2040008@linux-kernel.at>
@ 2011-01-18 19:54                     ` Matt Turner
  2011-01-19  9:05                       ` Oliver Falk
  2011-01-25 14:29                       ` Oliver Falk
  0 siblings, 2 replies; 4+ messages in thread
From: Matt Turner @ 2011-01-18 19:54 UTC (permalink / raw)
  To: Oliver Falk
  Cc: Jay Estabrook, Michael Kronsteiner, Tero Huttunen, ink, rth, libc-ports

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.

Matt

^ 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-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-19  9:05                       ` Oliver Falk
@ 2011-01-19 12:39                         ` Oliver Falk
  0 siblings, 0 replies; 4+ messages in thread
From: Oliver Falk @ 2011-01-19 12:39 UTC (permalink / raw)
  To: Matt Turner
  Cc: Jay Estabrook, Michael Kronsteiner, Tero Huttunen, ink, rth, libc-ports

On 01/18/2011 08:53 PM, Oliver Falk wrote:
[ ... ]
>> 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.

Had a look. But didn't find a defined SETCW in fpu_control.h for alpha :-/

I guess this is something that someone who knows alpha architecture and 
asm can do in 15 minutes... But I'm not that guy. :-(

Maybe it's just setting the fpcr register correctly or such stuff!?

I would really appreciate if someone could do this!

-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

end of thread, other threads:[~2011-01-25 12:20 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <4D2D66CF.5000802@linux-kernel.at>
     [not found] ` <4D2D698B.5000505@linux-kernel.at>
     [not found]   ` <4D2DC92B.3040907@gmail.com>
     [not found]     ` <4D2EBC86.70501@linux-kernel.at>
     [not found]       ` <1294910422.2305.15.camel@localhost>
     [not found]         ` <4D2ECC0D.3010600@linux-kernel.at>
     [not found]           ` <AANLkTi=gO95eLu5n9QE_d_hDYRxG4wL==rheAARmBbev@mail.gmail.com>
     [not found]             ` <4D2EFBFB.6090406@linux-kernel.at>
     [not found]               ` <AANLkTimfjM8htzu6=SKBNa-E-qZCBn3Yxh3DBNMOYD5L@mail.gmail.com>
     [not found]                 ` <4D2F2262.8010800@gmail.com>
     [not found]                   ` <4D35D03C.2040008@linux-kernel.at>
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

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).