From owner-freebsd-ports@FreeBSD.ORG Thu Nov 14 11:03:25 2013 Return-Path: Delivered-To: freebsd-ports@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 4031184A; Thu, 14 Nov 2013 11:03:25 +0000 (UTC) Received: from mail-wg0-x230.google.com (mail-wg0-x230.google.com [IPv6:2a00:1450:400c:c00::230]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 3B1CC205B; Thu, 14 Nov 2013 11:03:24 +0000 (UTC) Received: by mail-wg0-f48.google.com with SMTP id n12so1721640wgh.15 for ; Thu, 14 Nov 2013 03:03:22 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type:content-transfer-encoding; bh=XHoaM9f63PH/Q3S6gn9Molc/DVe500s4L2f53Ol3B1M=; b=vdgSTFPPQ/4Xq4ozTxwjOcH1vDPr9r3pITU1F7Qg2kaXF4xgMFge4jYDtD/oplswA7 oup9xdSALrZd4cH7pfAddeCXuUaG5gql/q88Xkxkb7MGP8yBt0UvYiuFFAdh58vQ/iB5 4f4ZxoWOcss51gTkts/Pf4yoZ1cuWtwtZoVTcZzwieeyRQJTTs2vp71c/T5fGuwROKrl wF+N/zVwzuFg4RL/FuEqCg4hj4qgF7PxAZ76ZTBr5lgP7twb6HX0sol7xlsFVNJQxzC7 dYettw0eN3MI+5DZjj6Jl8yFmvHQK7hfs5HI/hP8qwkXVoeyYi2MBrWzuBnisxpe5mhg xuSw== X-Received: by 10.180.184.112 with SMTP id et16mr1878621wic.4.1384427002486; Thu, 14 Nov 2013 03:03:22 -0800 (PST) Received: from [128.141.43.169] (pb-d-128-141-43-169.cern.ch. [128.141.43.169]) by mx.google.com with ESMTPSA id bs15sm65420432wib.10.2013.11.14.03.03.21 for (version=SSLv3 cipher=RC4-SHA bits=128/128); Thu, 14 Nov 2013 03:03:21 -0800 (PST) Message-ID: <5284AD8A.2080409@gmail.com> Date: Thu, 14 Nov 2013 12:01:30 +0100 From: Auelien Martin <01aurelien@gmail.com> User-Agent: Mozilla/5.0 (X11; Linux i686; rv:24.0) Gecko/20100101 Thunderbird/24.0 MIME-Version: 1.0 To: "Christopher J. Ruwe" , freebsd-ports@freebsd.org, freebsd-arm@freebsd.org Subject: Re: cross-compiling for arm6 with poudriere - has anybody done that? References: <20131111220854.62f00133@dijkstra.cruwe.de> In-Reply-To: <20131111220854.62f00133@dijkstra.cruwe.de> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit Cc: crees@FreeBSD.org, yerenkow@gmail.com X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.16 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 14 Nov 2013 11:03:25 -0000 Hi Christopher, I wanted to do the same thing, but normally you can't cross compile package in poudriere as it said in the website. (line 4) https://fossil.etoilebsd.net/poudriere/doc/trunk/doc/index.wiki Apparently as discussed in freebsd-fr there are some patches to allow jail to reconize ARM binary, but it's complicated. The best way seems to use pouriere in qemu ARM box :) Cheers, Aurelien Le 11/11/2013 10:08 PM, Christopher J. Ruwe a écrit : > I am cc'ing the persons originally describing a solution for my > problem. > > I would like to cross-compile packages for FreeBSD on a Raspberry Pi > (arm6) on a stronger machine. > > Various web-sources describe how to cross-compile kernel and world for > arm6/RaspberryPi [1,2,3]. Roughly a year ago, reportedly, ports have > been build successfully in chrooted environments, but have failed in > poudriere jails [4,5]. > > I have not found any more recent information on that approach. From > [5] i gather the issue in [4] has been fixed, so I will try to employ > poudriere to build packages for my raspberry on a stronger machine. > > My idea is outlined as such: Build a 9.2-RELEASE jail, cross-compile a > arm6 obj tree in that jail and set poudriere make.conf options to > TARGET=arm TARGET_ARCH=armv6 TARGET_CPUARCH=armv6 > PATH=/usr/obj/arm.armv6/usr/src/tmp/usr/bin:${PATH} CONFIGURE_HOST=amd64 > STRIP_CMD=true > > Has anybody tried a similar approach or can comment on my idea? Should > that be pointless, I do not want to waste much time trying. > > > [1] crochet-freebsd: https://github.com/kientzle/crochet-freebsd > [2] FreeBSD developer's notebook: http://kernelnomicon.org/?p=275 > [3] How to install FreeBSD on a Raspberry Pi (or: How to cross compile > FreeBSD/arm): http://ogris.de/howtos/freebsd-raspberry.html > [4] yerenkow@gmail.com, Ports cross-compiling: > http://lists.freebsd.org/pipermail/freebsd-hackers/2012-September/040428.html > [5] crees@freebsd.org, Ports cross-compiling: > http://lists.freebsd.org/pipermail/freebsd-hackers/2012-November/041106.html > > > Many thanks,