From owner-freebsd-arm@freebsd.org Sat Apr 9 16:05:02 2016 Return-Path: Delivered-To: freebsd-arm@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id C30F2B09B6F for ; Sat, 9 Apr 2016 16:05:02 +0000 (UTC) (envelope-from ian@freebsd.org) Received: from outbound1b.ore.mailhop.org (outbound1b.ore.mailhop.org [54.200.247.200]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id A93D01094 for ; Sat, 9 Apr 2016 16:05:02 +0000 (UTC) (envelope-from ian@freebsd.org) X-MHO-User: b999ced5-fe6c-11e5-b278-7d22021d92d7 X-Report-Abuse-To: https://support.duocircle.com/support/solutions/articles/5000540958-duocircle-standard-smtp-abuse-information X-Originating-IP: 73.34.117.227 X-Mail-Handler: DuoCircle Outbound SMTP Received: from ilsoft.org (unknown [73.34.117.227]) by outbound1.ore.mailhop.org (Halon Mail Gateway) with ESMTPSA; Sat, 9 Apr 2016 16:04:22 +0000 (UTC) Received: from rev (rev [172.22.42.240]) by ilsoft.org (8.15.2/8.14.9) with ESMTP id u39G3rjS009338; Sat, 9 Apr 2016 10:03:53 -0600 (MDT) (envelope-from ian@freebsd.org) Message-ID: <1460217833.1091.326.camel@freebsd.org> Subject: Re: Can't installworld for arm -- cc: not found From: Ian Lepore To: Russell Haley , Emb Aud Cc: freebsd-arm Date: Sat, 09 Apr 2016 10:03:53 -0600 In-Reply-To: References: Content-Type: text/plain; charset="us-ascii" X-Mailer: Evolution 3.16.5 FreeBSD GNOME Team Port Mime-Version: 1.0 Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 09 Apr 2016 16:05:02 -0000 On Fri, 2016-04-08 at 23:38 -0700, Russell Haley wrote: > I'm actually just studying this page myself right now! There seems to > be a discrepancy in the use of sudo. When you sudo the root user > doesn't have the MAKEOBJDIRPREFIX environment variable set. Using > sudo > with -E (preserves environment) fixed it for me (your results may > vary). > > Command Line: > sudo -E make installworld blah blah blah > > In the mk Script: > ... mk_sudo="sudo -E";; > > Hope that helps, > > Russ > I updated that wiki page to add the -E. Sometime soon I should also update it to mention that you can add a list of env vars to pass through using the sudoers config file. -- Ian > On Fri, Apr 8, 2016 at 7:46 PM, Emb Aud wrote: > > Hi Everyone. > > > > I would like to use FreeBSD as an embedded OS on the Xilinx Zynq > > ARM chip. > > At the moment I am targeting the Zybo board until our custom board > > is ready. > > > > I tried to follow the instructions here to build everything: > > https://wiki.freebsd.org/FreeBSD/arm/crossbuild > > > > buildworld runs just fine, but installworld fails immediately with > > an > > error: > > > > cc: not found. > > "/usr/home/~/projects/zynq/src/share/mk/bsd.compiler.mk" line 141: > > Unable > > to determine compiler type for cc . Consider setting > > COMPILER_TYPE. > > > > I think this may be due to a lack of a "src.conf" file. > > Unfortunately I > > have no idea what to put in that file. > > > > Can anyone give me a clue or two about how to get past this > > problem? > > > > My config for the mk utility (see the link above) is: > > > > mk_arch="armv6" > > mk_insdir="$(pwd)/nfsroot" > > mk_jobs="$(sysctl -n hw.ncpu)" > > mk_kernel="ZEDBOARD" > > mk_makeconf="$(pwd)/config/make.conf" > > mk_mkargs="" > > mk_nice="nice -10" > > mk_objdir="$(pwd)/obj" > > mk_srcconf="$(pwd)/config/src.conf" > > mk_srcdir="$(pwd)/src" > > mk_ubldraddr="0x0" > > > > Thank you! > > _______________________________________________ > > freebsd-arm@freebsd.org mailing list > > https://lists.freebsd.org/mailman/listinfo/freebsd-arm > > To unsubscribe, send any mail to " > > freebsd-arm-unsubscribe@freebsd.org" > _______________________________________________ > freebsd-arm@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-arm > To unsubscribe, send any mail to "freebsd-arm-unsubscribe@freebsd.org > "