[Python-Dev] --with-tsc compile fails (original) (raw)

"Martin v. Löwis" martin at v.loewis.de
Wed Sep 15 20:43:13 CEST 2004


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? Is it a define like the one you just put there? If so, why does the macro not expand?

Regards, Martin



More information about the Python-Dev mailing list