From owner-freebsd-questions@FreeBSD.ORG Fri Dec 20 01:46:13 2013 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id D760B776 for ; Fri, 20 Dec 2013 01:46:13 +0000 (UTC) Received: from mx02.qsc.de (mx02.qsc.de [213.148.130.14]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 9A2591DB4 for ; Fri, 20 Dec 2013 01:46:13 +0000 (UTC) Received: from r56.edvax.de (port-92-195-127-162.dynamic.qsc.de [92.195.127.162]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx02.qsc.de (Postfix) with ESMTPS id B7CD22764E; Fri, 20 Dec 2013 02:46:04 +0100 (CET) Received: from r56.edvax.de (localhost [127.0.0.1]) by r56.edvax.de (8.14.5/8.14.5) with SMTP id rBK1jjr4010382; Fri, 20 Dec 2013 02:45:45 +0100 (CET) (envelope-from freebsd@edvax.de) Date: Fri, 20 Dec 2013 02:45:45 +0100 From: Polytropon To: Julien Cigar Subject: Re: make release memstick Message-Id: <20131220024545.31f423c3.freebsd@edvax.de> In-Reply-To: <20131219224754.GD51116@mordor.lan> References: <20131219093122.GF40836@mordor.lan> <20131219224754.GD51116@mordor.lan> Organization: EDVAX X-Mailer: Sylpheed 3.1.1 (GTK+ 2.24.5; i386-portbld-freebsd8.2) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: freebsd-questions@freebsd.org X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list Reply-To: Polytropon List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 20 Dec 2013 01:46:13 -0000 On Thu, 19 Dec 2013 23:47:54 +0100, Julien Cigar wrote: > On Thu, Dec 19, 2013 at 10:31:22AM +0100, Julien Cigar wrote: > > Hello, > > > > I'm trying to build a custom FreeBSD memstick for my Soekris box. > > Everything runs fine except when I'm doing the $> make memstick target > > with sudo, I'v put the logs here: https://dpaste.de/TOOU > > > > Any idea why does it fails..? > > No one on this .. ? YAFIYGI. :-) > Should I submit a bug report ? >From the messages at https://dpaste.de/TOOU/raw (better readability this way) I would conclude that you're running into a problem with make's -C parameter and the ~ interpretation because the path names look mangled: mkdir /home/mage/soekris10dst//usr/home/mage/soekris10obj/usr/home/mage/soekris10/release/dist/doc Also an earlier command executed by make looks wrong: cd /usr/home/mage/soekris10/release/.. && make TARGET_ARCH=amd64 TARGET=amd64 distributeworld DISTDIR=/usr/home/mage/soekris10obj/usr/home/mage/soekris10/release/dist The path is "doubled" here, whereas the the upper example shows a "concatenation" (notice the "//"). Maybe sudo is also involved here, because "make -j 3 -C ~/soekris10 buildworld buildkernel" didn't seem to get any problems. How about trying su instead of sudo? I cannot explain this entirely, but I assume this is the result of too many variable resolutions (the environmental settings, the command line parameters) and probably a strange kind of precedence... -- Polytropon Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ...