[Python-Dev] --with-tsc compile fails

Michael Hudson mwh at python.net
Thu Sep 16 13:56:38 CEST 2004

"Martin v. Löwis" <martin at v.loewis.de> writes:

> Michael Hudson wrote:
>> Well, it failed like that for me both before and after my PPC changes.
>> I'm fairly sure I didn't mess this up.  Maybe there's some
>> kernel-headers package that's necessary.
>> OTOH, I think one could replace the include by
>> #define rdtscll(val) \
>>      __asm__ __volatile__("rdtsc" : "=A" (val))
>> if my limited googling is anything to go by.  It also seems
>> asm/msr.h
>> is a "kernel internal header with absolutely no stable API
>> properties...." (Redhat bugzilla).
> I'ld still like to understand why it fails for your system (it works
> fine on mine). Do you have a definition for rdtscll in
> /usr/include/asm/msr.h?

I don't *have* asm/msr.h!  And the impression I get is that we
shouldn't be going near it with the proverbial bargepole.


  (ps: don't feed the lawyers: they just lose their fear of humans)
                                         -- Peter Wood, comp.lang.lisp

More information about the Python-Dev mailing list