From owner-freebsd-arm@freebsd.org Sun Apr 10 03:13:24 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 37772B0A3D4 for ; Sun, 10 Apr 2016 03:13:24 +0000 (UTC) (envelope-from embaudarm@gmail.com) Received: from mail-yw0-x244.google.com (mail-yw0-x244.google.com [IPv6:2607:f8b0:4002:c05::244]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id E41621681 for ; Sun, 10 Apr 2016 03:13:23 +0000 (UTC) (envelope-from embaudarm@gmail.com) Received: by mail-yw0-x244.google.com with SMTP id h6so17973101ywc.1 for ; Sat, 09 Apr 2016 20:13:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc; bh=yxJWrhjyGwXpqgBU3L5S9pITn6xmlzaaRFnjkBYBq2g=; b=kq7KZgSwSt0Adw3PFN+pvozGNUOi+ts+XHbeJIa0vCJwiE5GWbV9nxeI5MOLS/F+/U fVlHkak+y5bYIAmc4q+4MkKoa3qnvK9DTWttmW+saRcZ+LZH9GkfNQDGOsVwz+iPJfwP 0BeXjxMajkM222bf3MpGApUE50zglFonGfRigCAIYz0XNpgDavtv6kKGNMY2qO6cks3D b7Q0F3koI90pj1VUJyygIP8+Jp2qnNmtkBaFcbFkppB4HBDkwqNkfSU0ciF2K51mXqIs thyAISEKN2pE/z03lx53hL8q0Xy3Vh5WcbU/2d8RuZZyJbM9I+r+p3Tf9aXSbJuYmYS3 N2Ng== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc; bh=yxJWrhjyGwXpqgBU3L5S9pITn6xmlzaaRFnjkBYBq2g=; b=avYvpm/yXtkNmV9MGo/h6AmdM9F1QH9n+PJYfexVh3UoAfOu7t4c+fSH8y5xXZCWR/ LQspPQlZVWWAv+MoKEoid0KwJ7geFGZxmWo+lY0t4xw/qwdOdOTaQlbw0mipwdtK5mIb E44bhpNVhgfrxC/3MAh3BNt3Aj54lPmy7nxi+qlXplMbk06OouyCPNuFQoD/i41PfYM2 6XuyfW9qD6GWT6gNkBhfbp7xbPFaKZM90+kFbyeI6TzMM1ziFUvqvJ6ZnEH4rEl9i2BW 5Oop8qqQQVgyZgyqR2uPe8gKp3kgWwb8ts2OVZrUxFvhDJ6/U6OOP4xpdME3ujB/9+1k B+VQ== X-Gm-Message-State: AD7BkJKqZ0wqS/bRIAZu4pUo8sJ2GAlojS2pwK/g4InrPNq7umQJQappyzygAbOwPUWfyQliqmd1jm1ADdnu7w== MIME-Version: 1.0 X-Received: by 10.37.6.139 with SMTP id 133mr7973218ybg.46.1460258003233; Sat, 09 Apr 2016 20:13:23 -0700 (PDT) Received: by 10.83.35.151 with HTTP; Sat, 9 Apr 2016 20:13:23 -0700 (PDT) In-Reply-To: References: Date: Sat, 9 Apr 2016 23:13:23 -0400 Message-ID: Subject: Re: Can't installworld for arm -- cc: not found From: Emb Aud To: Russell Haley Cc: freebsd-arm Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.21 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: Sun, 10 Apr 2016 03:13:24 -0000 Thanks Russ, I'll give that a try on Monday. I actually saw your thread on the same subject as well, after I posted my own question. Oops On Sat, Apr 9, 2016 at 2:38 AM, 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 > > 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" >