From owner-freebsd-sparc64@FreeBSD.ORG Sat Sep 1 17:18:52 2007 Return-Path: Delivered-To: freebsd-sparc64@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id CCB0716A420; Sat, 1 Sep 2007 17:18:52 +0000 (UTC) (envelope-from nox@saturn.kn-bremen.de) Received: from gwyn.kn-bremen.de (gwyn.kn-bremen.de [212.63.36.242]) by mx1.freebsd.org (Postfix) with ESMTP id 8E56813C469; Sat, 1 Sep 2007 17:18:52 +0000 (UTC) (envelope-from nox@saturn.kn-bremen.de) Received: by gwyn.kn-bremen.de (Postfix, from userid 10) id 0DA8F216FC1; Sat, 1 Sep 2007 19:00:27 +0200 (CEST) Received: from saturn.kn-bremen.de (nox@localhost [127.0.0.1]) by saturn.kn-bremen.de (8.13.8/8.13.6) with ESMTP id l81Gus5u039292; Sat, 1 Sep 2007 18:56:54 +0200 (CEST) (envelope-from nox@saturn.kn-bremen.de) Received: (from nox@localhost) by saturn.kn-bremen.de (8.13.8/8.13.6/Submit) id l81GusgE039291; Sat, 1 Sep 2007 18:56:54 +0200 (CEST) (envelope-from nox) From: Juergen Lock Date: Sat, 1 Sep 2007 18:56:53 +0200 To: freebsd-current@FreeBSD.org, freebsd-sparc64@FreeBSD.org Message-ID: <20070901165653.GA38448@saturn.kn-bremen.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.16 (2007-06-09) Cc: Subject: weird sparc64/-current issue!? (p7zip) X-BeenThere: freebsd-sparc64@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to the Sparc List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 01 Sep 2007 17:18:52 -0000 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.