From owner-freebsd-ports@freebsd.org Sun May 22 19:58:23 2016 Return-Path: Delivered-To: freebsd-ports@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 0A3ECB46969 for ; Sun, 22 May 2016 19:58:23 +0000 (UTC) (envelope-from jbeich@vfemail.net) Received: from mailman.ysv.freebsd.org (unknown [127.0.1.3]) by mx1.freebsd.org (Postfix) with ESMTP id E8DE5114C for ; Sun, 22 May 2016 19:58:22 +0000 (UTC) (envelope-from jbeich@vfemail.net) Received: by mailman.ysv.freebsd.org (Postfix) id E8328B46968; Sun, 22 May 2016 19:58:22 +0000 (UTC) Delivered-To: ports@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id E7D39B46967 for ; Sun, 22 May 2016 19:58:22 +0000 (UTC) (envelope-from jbeich@vfemail.net) Received: from vfemail.net (onethreetwo.vfemail.net [199.16.11.132]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 90EFF114B for ; Sun, 22 May 2016 19:58:22 +0000 (UTC) (envelope-from jbeich@vfemail.net) Received: (qmail 80459 invoked by uid 89); 22 May 2016 19:58:20 -0000 Received: from localhost (HELO freequeue.vfemail.net) (127.0.0.1) by localhost with (DHE-RSA-AES256-SHA encrypted) SMTP; 22 May 2016 19:58:20 -0000 Received: (qmail 80438 invoked by uid 89); 22 May 2016 19:58:03 -0000 Received: by simscan 1.3.1 ppid: 80434, pid: 80436, t: 0.0023s scanners:none Received: from unknown (HELO smtp102-2.vfemail.net) (172.16.100.62) by FreeQueue with SMTP; 22 May 2016 19:58:03 -0000 Received: (qmail 32730 invoked by uid 89); 22 May 2016 19:58:03 -0000 Received: by simscan 1.4.0 ppid: 32713, pid: 32725, t: 0.7985s scanners:none Received: from unknown (HELO nil) (amJlaWNoQHZmZW1haWwubmV0@172.16.100.27) by mail.vfemail.net with ESMTPA; 22 May 2016 19:58:02 -0000 From: Jan Beich To: Kurt Jaeger Cc: ports@freebsd.org Subject: Re: how to create a powerpc64 poudriere jail ? References: <20160522093001.GB41922@home.opsec.eu> <20160522093156.GC41922@home.opsec.eu> Date: Sun, 22 May 2016 21:57:51 +0200 Message-ID: MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 22 May 2016 19:58:23 -0000 --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable Kurt Jaeger writes: > Hi! > >> What is the correct way to create a powerpc64 poudriere jail ? >>=20 >> I've tried several versions of >>=20 >> poudriere jail -c -j p64 -a -m svn+ssh -v head >>=20 >> with arch as powerpc, ppc64, powerpc64/powerpc, to no avail. > > Ah, one more thing: I added the binmiscctl environment for ppc64, as > described in > > https://wiki.freebsd.org/QemuUserModeHowTo > > The problem is the correct name for binmiscctl and the correct > for poudriere. That's what I'm missing. qemu-user-static support for powerpc64 seems to be incomplete but otherwise is supposed to work as follows. Only stuff represented on pkg-fallout@ is known to work. aarch64 is also in a good shape but needs devel/aarch64-binutils built with LDFLAGS+=3D-all-static copied inside jail. freebsd-ppc@ folks may have a clue how to cross-build powerpc64 packages without real hardware. If you're just looking for logs, see https://lists.freebsd.org/pipermail/freebsd-ports/2016-April/102952.html =2D- # run rc.d script that defines common targets for poudriere $ service qemu_user_static onestart # check desired target is defined $ binmiscctl list [...] name: powerpc64 interpreter: /usr/local/bin/qemu-ppc64-static flags: ENABLED USE_MASK magic size: 20 magic offset: 0 magic: 0x7f 0x45 0x4c 0x46 0x01 0x02 0x01 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x02 0x00 0x15 mask: 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0x00 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xfe 0xff 0xff [...] # get TARGET.TARGET_ARCH tuple for |-a| from the source $ make targets -C/usr/src | sed '1d; y,/,.,' | fgrep powerpc64 powerpc.powerpc64 # build a jail for the target $ poudriere jail -cj head-powerpc64 -a powerpc.powerpc64 -m svn+ssh -v head [...] [00:41:56] =3D=3D=3D=3D>> Recording filesystem state for clean... done [00:41:57] =3D=3D=3D=3D>> Jail head-powerpc64 head powerpc.powerpc64 is rea= dy to be used # check qemu-user-static can run target (static) binaries $ /poudriere/jails/head-powerpc64/rescue/ls /var/empty # start building various packages $ poudriere bulk -j head-powerpc64 devel/gmake = ~ --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQF8BAEBCgBmBQJXQg8/XxSAAAAAAC4AKGlzc3Vlci1mcHJAbm90YXRpb25zLm9w ZW5wZ3AuZmlmdGhob3JzZW1hbi5uZXREQjQ0MzY3NEM3RDIzNTc4NkUxNDkyQ0VF NEM3Nzg4MzQ3OURCRERCAAoJEOTHeINHnb3bX00IAIdunRB0hEdrx30OGoHW4Yne tOkZXjOrnVqa8JrOSruTedksh7xRa+e6/xtIT6jv9hO8Mm1ZFKBJ7sjROjnJhFU1 tWuUNCWwZJ5I5z6zcFC3JXksPOwIUj4tNyEkwTY/n/KPdH+FspcabdfBwb52567q dxjQBIlrBk/0aSU5P71g5uwQmmoqTEzqMQGjwNFktdaPnX94m9Cpo194JoBbPrkG bx3B9zZGAu9xNvwaKBrkt3/hAEoj34YbJNU8bPxTL/yK92QeiNOZHZCwmqveHhkx 3HBiUa0uJs4Hi72IfzvXrgMB/aM9BMY8ECqxj5xXHsUB8/6LdLku8TJ7qVEOhDk= =xiIK -----END PGP SIGNATURE----- --=-=-=--