weird sparc64/-current issue!? (p7zip)

Juergen Lock nox at jelal.kn-bremen.de
Sat Sep 1 10:18:52 PDT 2007


Hi!

 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
altho that was using an earlier p7zip version...  The code that gets
the number of cpus seems to be in work/p7zip*/CPP/Windows/System.cpp
in the /usr/ports/archivers/p7zip dir (after make patch):

[...]
		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;
		}
[...]

 I don't have a sparc64 box, could this have something to do with 7z's
use of shared libs, like sparc64 now needs -fPIC like amd64 and ia64 too?
(just run 7z l and 7za l on some tarball, that should be enough to find out,
7za has its 7z libs linked statically.)

 If anyone has other insights/can debug this I'd be grateful too...

 Thanx,
	Juergen

PS: I'm not subscribed on -sparc64 so please Cc me if you remove
-current from the Cc.


More information about the freebsd-sparc64 mailing list