|
2012-09-27
| ||
| 21:24 | • Closed ticket [3572362fff]: platform-3.1 CPU ID on Windows/UNIX FAILED plus ... artifact: 4c24eb7d43 user: matzek | |
| 21:24 | • Ticket [3572362fff]: 4 changes artifact: 304c35f4ce user: matzek | |
| 19:32 | • Ticket [3572362fff]: 4 changes artifact: 4c38811e4f user: nijtmans | |
| 19:02 | • Ticket [3572362fff]: 4 changes artifact: 7af8723dbf user: matzek | |
| 17:26 | • Ticket [3572362fff]: 4 changes artifact: 6c00778ab2 user: nijtmans | |
| 16:32 | • Ticket [3572362fff]: 4 changes artifact: e08957ea43 user: matzek | |
| 16:27 | • Ticket [3572362fff]: 1 change artifact: 5c40901f39 user: dkf | |
| 16:24 | • Ticket [3572362fff]: 4 changes artifact: fbc1012e07 user: matzek | |
| 16:24 | • Add attachment kstat.log to ticket [3572362fff] artifact: 15df8e1bcf user: matzek | |
| 16:22 | • Ticket [3572362fff] platform-3.1 CPU ID on Windows/UNIX FAILED status still ... artifact: d30373b429 user: matzek | |
| 16:13 | • Ticket [3572362fff]: 4 changes artifact: afd4a8f1da user: nijtmans | |
| 16:11 | • Ticket [3572362fff]: 1 change artifact: ce5d0e1046 user: nijtmans | |
| 09:09 | • New ticket [3572362fff]. artifact: a1d929ab6f user: matzek | |
platform-3.1 CPU ID on Windows/UNIX FAILED
Closed / Invalid3572362fffffffffffffffffffffffffffffffffCreated 14 years agoUpdated 14 years ago
Descriptionplain2012-09-27 09:09:37
Tcl: 8.5.12
OS: Solaris 5.10 on AMD64
Doing a
$ sh .../tcl8.5/unix/configure --enable-64bit --prefix=`pwd`/..
$ make test
gives one failing test case:
==== platform-3.1 CPU ID on Windows/UNIX FAILED
==== Contents of test case:
set cpudata [testcpuid 0]
binary format iii [lindex $cpudata 1] [lindex $cpudata 3] [lindex $cpudata 2]
---- Result was:
�� )D
---- Result should have been (regexp matching):
^(?:AuthenticAMD|CentaurHauls|CyrixInstead|GenuineIntel)$
==== platform-3.1 FAILED
nijtmans Ticket [3572362fff]: 1 change
[History diff]2012-09-27 16:11:53
nijtmansplain2012-09-27 16:13:24
Interesting. Exactly what processor does this machine have?
matzekplain2012-09-27 16:22:21
Forgot to mention that the expected result should have been "AuthenticAMD" (according to kstat)!
matzekplain2012-09-27 16:24:54
File Added - 453932: kstat.log
dkf Ticket [3572362fff]: 1 change
[History diff]2012-09-27 16:27:20
matzekplain2012-09-27 16:32:21
Is the attached kstat-output enough, or do you want something else?
nijtmansplain2012-09-27 17:26:13
According to what I can find, I would expect "AuthenticAMD" as well.
See:
<http://support.amd.com/us/Embedded_TechDocs/25481.pdf>
matzekplain2012-09-27 19:02:43
I looked into a library I have here and found a comment to the cpuid manual page for Solaris. The comment basically says that the Linux way isn't going to work on Solaris. http://docs.oracle.com/cd/E19082-01/819-2254/6n4iaouu6/index.html
nijtmansplain2012-09-27 19:32:46
> http://docs.oracle.com/cd/E19082-01/819-2254/6n4iaouu6/index.html That page is about the cpuid device, not about the cpuid assembler instruction. Part of this page: >The device is useful to enable low-level configuration information to > be extracted from the CPU without having to write any assembler code > to invoke the cpuid instruction directly. Well, Tcl now contains the assembler code which invokes the cpuid instruction directly, so it should simply work.. It will need some debugging. The assembler code is borrowed from: <http://en.wikipedia.org/wiki/CPUID> and can be found in unix/tclUnixCompat.c:990-995.
matzekplain2012-09-27 21:24:22
After some further searching in the net and talking with a fellow developer, I used a different compiler. And see ... it works there. So Studio 12 isn't a good choice to use here, Studio 12.1 works, however. So it can be closed. Sorry for any inconvenience.
matzekplain2012-09-27 21:24:23
allow_comments - 1
Log in (anonymous is fine) to add a comment.
Attachments:
- kstat.log [download] added by matzek on 2012-09-27 16:24:54. [details]