Re: nacl and CPU frequency.

2012-09-23 Thread Bastian Blank
On Sat, Sep 22, 2012 at 03:28:50PM +0100, peter green wrote: In order to build successfully nacl needs to determine the CPU frequency (the CPU frequency determined at build time is not used in the final binaries afaict but if it's not determined then the build will fail as it will consider the

Re: nacl and CPU frequency.

2012-09-23 Thread Thomas Preud'homme
Le dimanche 23 septembre 2012 01:42:01, Ben Hutchings a écrit : So the build process is trying to determine which method will work? Then what if it settles on some method that is available on the build machine's kernel, but not the target distribution's kernel? I think you need to either

Re: nacl and CPU frequency.

2012-09-23 Thread Tollef Fog Heen
]] Thomas Preud'homme If I understood correctly he is ready to patch the build system to use a specific method for this precise reason but is asking which method would work on all Debian system. Detect it at runtime and choose the appropriate method then? (Not that CPU frequency is

Re: nacl and CPU frequency.

2012-09-23 Thread Russell Coker
On Sun, 23 Sep 2012, Thomas Preud'homme robo...@celest.fr wrote: Le dimanche 23 septembre 2012 01:42:01, Ben Hutchings a écrit : So the build process is trying to determine which method will work? Then what if it settles on some method that is available on the build machine's kernel, but

Re: nacl and CPU frequency.

2012-09-23 Thread Craig Small
On Sat, Sep 22, 2012 at 05:29:45PM +0100, peter green wrote: I therefore conclude that if it's not returning elapsed times in true CPU cycles it probablly doesn't matter much if the supposed CPU speed and the real CPU speed are not exactly the same. As such unless someone objects I plan to

nacl and CPU frequency.

2012-09-22 Thread peter green
but if others know the answer I wouldn't mind them asking it) Is there a portable way of determining CPU frequency in debian? Do you known how important it is to have an accurate CPU frequency determination for nacl. e.g. if true CPU frequency can't be determined would it be ok to use bogomips instead

Re: nacl and CPU frequency.

2012-09-22 Thread David Given
broken and if it can't find any non-broken implementations it won't build). [...] Do you known how important it is to have an accurate CPU frequency determination for nacl. e.g. if true CPU frequency can't be determined would it be ok to use bogomips instead? I can't imagine why it would want

Re: nacl and CPU frequency.

2012-09-22 Thread Colin Tuckley
On 22/09/12 15:28, peter green wrote: I'm trying to get nacl built on more architectures in debian, in particular I want to see it build on arm*. In order to build successfully nacl needs to determine the CPU frequency I think you need to analyse what it's doing with the CPU frequency,

Re: nacl and CPU frequency.

2012-09-22 Thread Russell Coker
On Sun, 23 Sep 2012, peter green plugw...@p10link.net wrote: In order to build successfully nacl needs to determine the CPU frequency (the CPU frequency determined at build time is not used in the final binaries afaict but if it's not determined then the build will fail as it will consider

Re: nacl and CPU frequency.

2012-09-22 Thread peter green
Russell Coker wrote: On Sun, 23 Sep 2012, peter green plugw...@p10link.net wrote: In order to build successfully nacl needs to determine the CPU frequency (the CPU frequency determined at build time is not used in the final binaries afaict but if it's not determined then the build will fail

Re: nacl and CPU frequency.

2012-09-22 Thread peter green
On 22/09/12 15:28, peter green wrote: I'm trying to get nacl built on more architectures in debian, in particular I want to see it build on arm*. In order to build successfully nacl needs to determine the CPU frequency I think you need to analyse what it's doing with the CPU frequency,

Re: nacl and CPU frequency.

2012-09-22 Thread Konstantin Khomoutov
On Sat, Sep 22, 2012 at 05:20:05PM +0100, peter green wrote: In order to build successfully nacl needs to determine the CPU frequency (the CPU frequency determined at build time is not used in the final binaries afaict but if it's not determined then the build will fail as it will consider

Re: nacl and CPU frequency.

2012-09-22 Thread Ben Hutchings
On Sat, 2012-09-22 at 17:20 +0100, peter green wrote: Russell Coker wrote: On Sun, 23 Sep 2012, peter green plugw...@p10link.net wrote: In order to build successfully nacl needs to determine the CPU frequency (the CPU frequency determined at build time is not used in the final