From owner-freebsd-arm@FreeBSD.ORG Thu May 1 01:56:42 2014 Return-Path: Delivered-To: freebsd-arm@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id DF8D0EE8 for ; Thu, 1 May 2014 01:56:42 +0000 (UTC) Received: from mail-oa0-f44.google.com (mail-oa0-f44.google.com [209.85.219.44]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id A70A11180 for ; Thu, 1 May 2014 01:56:42 +0000 (UTC) Received: by mail-oa0-f44.google.com with SMTP id n16so3016634oag.31 for ; Wed, 30 Apr 2014 18:56:41 -0700 (PDT) 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:content-type; bh=WwizDnZ38HBiKfm8YnRFgHcXAytBsSoz4NrBOe4U6HY=; b=dQvUW60BhZf9e4ER9P+/PEx/vyM7QtsPvH61fGy8wFcc83ZOSR+PYgFil1Zpm+sxpM CJed7AUBdRp70vTfD9HmHoXbeNEw1opcFluwiNhm0BPnRtM7m0aZIT64UcVodEiEsuI6 t5DJPIFefecO7ARCAkRhxiWuwE73sTVrpg6VfwgSvJ5XYSBiLf5oCOHhhTLU3yVPgdOi raE7H4W+vaGd/Y2A1DbllfyiI8dr2PlTlUS3m7tjqIqZTgYpbyef1uJgDvdy2WIDyyID ABwVcdW0gxdVLWVrIzB46SMXWJjku1HJOEnFFh/3PlI6BQugsNCFQXTv7nTxdmWNUeLh ulTQ== X-Gm-Message-State: ALoCoQk95OdGdwk8eTuXI3TMP13/RAqlldWaxrEXFApHadOdin2vKvs70/Q7eYJdv3MT+/KsyChi MIME-Version: 1.0 X-Received: by 10.60.62.34 with SMTP id v2mr8394325oer.37.1398909401600; Wed, 30 Apr 2014 18:56:41 -0700 (PDT) Received: by 10.182.246.135 with HTTP; Wed, 30 Apr 2014 18:56:41 -0700 (PDT) In-Reply-To: <20140501005611.3401d271adf4db31cf8e9246@getmail.no> References: <20140501005611.3401d271adf4db31cf8e9246@getmail.no> Date: Wed, 30 Apr 2014 19:56:41 -0600 Message-ID: Subject: Re: crochet - why does it (try to) change files in /usr/src? From: Tom Everett To: Torfinn Ingolfsen Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.17 Cc: "freebsd-arm@freebsd.org" X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 01 May 2014 01:56:42 -0000 The one place that comes to mind where crochet changes the source tree is that in some cases, such as SOEKRIS, it copies a custom kernel config onto the source tree. On Wed, Apr 30, 2014 at 4:56 PM, Torfinn Ingolfsen < torfinn.ingolfsen@getmail.no> wrote: > I'm (finally) trying crochet today. Ultimate goal is to try and build for > Cubieboard, but I'm starting with something easy first - RaspberryPi. > > First I had to get all the pieces (the script does a very nice job of > explaining what what is missing. One possible refinement for a future > version would be to list all missing pieces, not just the first one). > Next I discovered that my world build failed. Lookiing at the log file > work/_.buildworld.armv6.log I can see this: > ===> lib/libexpat (cleandir) > rm -f bsdxml.h bsdxml_external.h libbsdxml.3.gz libbsdxml.3.cat.gz > rm: bsdxml.h: Permission denied > rm: bsdxml_external.h: Permission denied > *** Error code 1 > > Stop. > make[4]: stopped in /usr/src/lib/libexpat > (I wasn't running crochet as root, and I suspect it is the reason for > failure) > > Question 1: it look to me like the script is trying to remove stuff > (files) from /usr/src. Why is it doing that? > > Question 2: why does crochet need root? > - all prerequisites (that needs root) are already installed > - the script is installed in ~/work/crochet-freebsd and all building takes > place there > so why does it need root? > > Details: > build machine runs FreeBSD 10.0-release: > $ uname -a > FreeBSD kg-v7.kg4.no 10.0-RELEASE FreeBSD 10.0-RELEASE #0 r260789: Thu > Jan 16 22:34:59 UTC 2014 > root@snap.freebsd.org:/usr/obj/usr/src/sys/GENERIC amd64 > > build details: > $ sh crochet.sh -b RaspberryPi > Starting at Thu May 1 00:18:36 CEST 2014 > Board: RaspberryPi > Source version is: r265148 > Building FreeBSD version: 10.0 > Image name is: > > /usr/home/tingo/work/crochet-freebsd/work/FreeBSD-armv6-10.0-RPI-B-r265148.img > Building FreeBSD version: 10.0 > Object files are at: > /usr/home/tingo/work/crochet-freebsd/work/obj/arm.armv6/usr/src > Found suitable FreeBSD source tree in: > /usr/src > Found FreeBSD xdev tools for armv6 > Found U-Boot sources in: > /usr/home/tingo/work/crochet-freebsd/u-boot-rpi > Building FreeBSD armv6 world at Thu May 1 00:18:36 CEST 2014 > (Logging to > /usr/home/tingo/work/crochet-freebsd/work/_.buildworld.armv6.log) > Failed to build FreeBSD armv6 world. > Log in /usr/home/tingo/work/crochet-freebsd/work/_.buildworld.armv6.log > > Stop. > make[2]: stopped in /usr/src > *** Error code 1 > > Stop. > make[1]: stopped in /usr/src > *** Error code 1 > > Stop. > make: stopped in /usr/src > -- > Torfinn Ingolfsen > _______________________________________________ > freebsd-arm@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-arm > To unsubscribe, send any mail to "freebsd-arm-unsubscribe@freebsd.org" > -- A better world shall emerge based on faith and understanding - Douglas MacArthur