From owner-freebsd-arm@FreeBSD.ORG Tue Dec 23 22:29:08 2014 Return-Path: Delivered-To: freebsd-arm@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 4F6F92BE; Tue, 23 Dec 2014 22:29:08 +0000 (UTC) Received: from thebighonker.lerctr.org (thebighonker.lerctr.org [IPv6:2001:470:1f0f:3ad:223:7dff:fe9e:6e8a]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "thebighonker.lerctr.org", Issuer "COMODO RSA Domain Validation Secure Server CA" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 1F9E11BE9; Tue, 23 Dec 2014 22:29:08 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lerctr.org; s=lerami; h=Message-ID:References:In-Reply-To:Subject:Cc:To:From:Date:Content-Transfer-Encoding:Content-Type:MIME-Version; bh=kjgK3O0yqD0j8fpxhDt+fHgm4Jvik7PT0d9fGp8fD+c=; b=tywCMxl5XxdN55bjKQ9ZPRy6D6obT5G/dyjGWJ4Ee+8s+J8XnkH24S4Qig+43+hWwtVjuGLGLOVtx+W0VVgZDSW74hpFYNxkQfv+vWp3zLaAXgQLfBcI6fOVoElnP+/92gYGRXGob9tVqCO7SLUBBvN5RBK6GGglADaBu9E4RfQ=; Received: from thebighonker.lerctr.org ([2001:470:1f0f:3ad:223:7dff:fe9e:6e8a]:30648 helo=webmail.lerctr.org) by thebighonker.lerctr.org with esmtpsa (TLSv1.2:DHE-RSA-AES128-GCM-SHA256:128) (Exim 4.84 (FreeBSD)) (envelope-from ) id 1Y3Xwv-000HqC-Sw; Tue, 23 Dec 2014 16:29:07 -0600 Received: from 104-54-221-134.lightspeed.austtx.sbcglobal.net ([104.54.221.134]) by webmail.lerctr.org with HTTP (HTTP/1.1 POST); Tue, 23 Dec 2014 16:29:05 -0600 MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Date: Tue, 23 Dec 2014 16:29:05 -0600 From: Larry Rosenman To: Ian Lepore Subject: Re: lsof on FreeBSD/arm In-Reply-To: <1419367656.1018.142.camel@freebsd.org> References: <1419362189.1018.138.camel@freebsd.org> <1419367656.1018.142.camel@freebsd.org> Message-ID: <48ad36516ffbabbecf6ab3c53031bfb3@thebighonker.lerctr.org> X-Sender: ler@lerctr.org User-Agent: Roundcube Webmail/1.0.3 X-Spam-Score: -2.9 (--) X-LERCTR-Spam-Score: -2.9 (--) X-Spam-Report: SpamScore (-2.9/5.0) ALL_TRUSTED=-1, BAYES_00=-1.9, T_RP_MATCHES_RCVD=-0.01 X-LERCTR-Spam-Report: SpamScore (-2.9/5.0) ALL_TRUSTED=-1, BAYES_00=-1.9, T_RP_MATCHES_RCVD=-0.01 Cc: freebsd-arm@freebsd.org X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 23 Dec 2014 22:29:08 -0000 On 2014-12-23 14:47, Ian Lepore wrote: > On Tue, 2014-12-23 at 14:02 -0600, Larry Rosenman wrote: >> On 2014-12-23 13:16, Ian Lepore wrote: >> > On Tue, 2014-12-23 at 11:29 -0600, Larry Rosenman wrote: >> >> Greetings, >> >> I'm the maintainer of the sysutils/lsof port for FreeBSD. It's >> >> been >> >> reported to me that the port doesn't compile on arm. In investigating >> >> that, I found that some of the includes that lsof includes need a cpu >> >> type defined in order to compile (machine/cpuconf.h). >> >> >> >> Is there a reason that there is no "default" cpu defined either by the >> >> compiler or environment? >> >> >> >> Playing in a armv6 poudriere jail, I found I can get it to compile >> >> via: >> >> borg.lerctr.org /usr/local/etc/poudriere.d $ cat p110armv6-make.conf >> >> CFLAGS += -DCPU_ARM1136=1 >> >> borg.lerctr.org /usr/local/etc/poudriere.d $ >> >> >> >> However, I'm not sure if that's kosher for a port to just define. >> >> >> >> Can any of the arm experts help here? >> >> >> >> >> >> >> > >> > See if the attached patch helps. The specific type of cpu shouldn't >> > really matter outside the kernel (or even inside it except in a couple >> > places), what usually matters is the architecture, which we've >> > simplified to v4 versus v6 for most purposes. >> > >> > The attached patch will use the compiler's predefined values for arch >> > to >> > set our old-school symbols, which we really need to do a big cleanup >> > pass on, but hopefully this little hack will get you going until that >> > gets done. Let me know if this works and I'll commit it. >> > >> > -- Ian >> Thanks. I'm having a hard time convincing poudriere to apply this >> patch >> to the environment >> >> Any ideas? > > Hrm, I seem to have fumbled the cpuconf.h attachment on the last try. > > -- Ian still get: --- dproc.o --- In file included from ./dlsof.h:90: In file included from /usr/src/sys/sys/conf.h:44: In file included from /usr/src/sys/sys/eventhandler.h:34: In file included from /usr/src/sys/sys/mutex.h:40: In file included from /usr/src/sys/sys/pcpu.h:48: In file included from /usr/include/machine/pcpu.h:35: /usr/include/machine/cpuconf.h:180:2: error: ARM_NMMUS is 0 so we still need some more help here. -- Larry Rosenman http://www.lerctr.org/~ler Phone: +1 214-642-9640 E-Mail: ler@lerctr.org US Mail: 108 Turvey Cove, Hutto, TX 78634-5688