Date: Sat, 1 Sep 2007 18:56:53 +0200 From: Juergen Lock <nox@jelal.kn-bremen.de> To: freebsd-current@FreeBSD.org, freebsd-sparc64@FreeBSD.org Subject: weird sparc64/-current issue!? (p7zip) Message-ID: <20070901165653.GA38448@saturn.kn-bremen.de>
next in thread | raw e-mail | index | archive | help
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.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20070901165653.GA38448>