weird sparc64/-current issue!? (p7zip)

Kris Kennaway kris at FreeBSD.org
Mon Sep 3 12:17:58 PDT 2007


Christian Weisgerber wrote:
> Juergen Lock <nox at jelal.kn-bremen.de> wrote:
> 
>>  alepulver made me aware of this,
>> 	http://pointyhat.freebsd.org/errorlogs/sparc64-7-latest-logs/mame-extras-0.114.log
>> -8624 CPU(s)? :)  It works on 6,
>> 	http://pointyhat.freebsd.org/errorlogs/sparc64-6-latest-logs/mame-extras-0.114.log
> 
> Does that machine really have 35 CPUs?

No, none of the build machines currently active have more than 4.

Kris

> 
>> 		UInt32 GetNumberOfProcessors() {
>> 		  		int nbcpu = 1;
>> 			size_t value;
>> 			size_t len = sizeof(value);
>> 			if (sysctlbyname("hw.ncpu", &value, &len, NULL, 0) == 0)
>> 				nbcpu = value;
>> 			return nbcpu;
>> 		}
> 
> Are you sure that value is of type size_t here?  I think it is an
> int.  (Remember, size_t is 64 bits on all our 64-bit platforms, int
> is 32 bits.)
> 



More information about the freebsd-sparc64 mailing list