Date: Thu, 1 May 2014 00:56:11 +0200 From: Torfinn Ingolfsen <torfinn.ingolfsen@getmail.no> To: freebsd-arm@FreeBSD.org Subject: crochet - why does it (try to) change files in /usr/src? Message-ID: <20140501005611.3401d271adf4db31cf8e9246@getmail.no>
next in thread | raw e-mail | index | archive | help
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 <torfinn.ingolfsen@getmail.no>
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20140501005611.3401d271adf4db31cf8e9246>