From owner-freebsd-arm@FreeBSD.ORG Wed Apr 30 23:04:06 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 7E77EDB2 for ; Wed, 30 Apr 2014 23:04:06 +0000 (UTC) Received: from lamora.getmail.no (lamora.getmail.no [84.210.184.7]) by mx1.freebsd.org (Postfix) with ESMTP id 08D4012C0 for ; Wed, 30 Apr 2014 23:04:05 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by lamora.getmail.no (Postfix) with ESMTP id 068016CD33 for ; Thu, 1 May 2014 00:58:31 +0200 (CEST) Received: from lamora.getmail.no ([127.0.0.1]) by localhost (lamora.get.c.bitbit.net [127.0.0.1]) (amavisd-new, port 10032) with ESMTP id 5eu_l5MECW-6 for ; Thu, 1 May 2014 00:58:25 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by lamora.getmail.no (Postfix) with ESMTP id 109D46CE4A for ; Thu, 1 May 2014 00:57:25 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.8.4 lamora.getmail.no 109D46CE4A DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=getmail.no; s=8A9C8B4C-D727-11E2-8095-B6466E6B3FA2; t=1398898645; bh=hYfPMhVky7I2tlOyT18gnyecntb1O+E1rRdR/o7q2N8=; h=Date:From:To:Subject:Message-Id:Mime-Version:Content-Type: Content-Transfer-Encoding; b=FgmUXn2g5cpP0+lPtBR8uNwqjROC6oXw1/2rX3gU9oKF4Al0Imr+W9Jou6Kc2WC0W kLSdeAzJkw7TZ7oVbOdndN4MgQwscBiNeH3H+TKEfezWLfy1gHiwdw1/8U9v09g9aY 4a+0uMprYZOkySkIw7IrwIitqFo3xI/HHPF3CdLE= X-Virus-Scanned: amavisd-new at lamora.get.c.bitbit.net Received: from lamora.getmail.no ([127.0.0.1]) by localhost (lamora.get.c.bitbit.net [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id XmR9trstVeda for ; Thu, 1 May 2014 00:57:24 +0200 (CEST) Received: from kg-core1.kg4.no (cm-84.215.180.206.getinternet.no [84.215.180.206]) by lamora.getmail.no (Postfix) with ESMTPSA id 80EFA6D5A5 for ; Thu, 1 May 2014 00:56:15 +0200 (CEST) Date: Thu, 1 May 2014 00:56:11 +0200 From: Torfinn Ingolfsen To: freebsd-arm@FreeBSD.org Subject: crochet - why does it (try to) change files in /usr/src? Message-Id: <20140501005611.3401d271adf4db31cf8e9246@getmail.no> X-Mailer: Sylpheed 3.3.0 (GTK+ 2.24.22; amd64-portbld-freebsd8.4) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit 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: Wed, 30 Apr 2014 23:04:06 -0000 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