From owner-freebsd-ports@freebsd.org Mon May 23 04:39:38 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 091A3B46138 for ; Mon, 23 May 2016 04:39:38 +0000 (UTC) (envelope-from lists@opsec.eu) Received: from mailman.ysv.freebsd.org (unknown [127.0.1.3]) by mx1.freebsd.org (Postfix) with ESMTP id EDA381E5A for ; Mon, 23 May 2016 04:39:37 +0000 (UTC) (envelope-from lists@opsec.eu) Received: by mailman.ysv.freebsd.org (Postfix) id ECF19B46137; Mon, 23 May 2016 04:39:37 +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 EC965B46136 for ; Mon, 23 May 2016 04:39:37 +0000 (UTC) (envelope-from lists@opsec.eu) Received: from home.opsec.eu (home.opsec.eu [IPv6:2001:14f8:200::1]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id B27271E59; Mon, 23 May 2016 04:39:37 +0000 (UTC) (envelope-from lists@opsec.eu) Received: from pi by home.opsec.eu with local (Exim 4.87 (FreeBSD)) (envelope-from ) id 1b4heS-000DiL-3X; Mon, 23 May 2016 06:39:36 +0200 Date: Mon, 23 May 2016 06:39:36 +0200 From: Kurt Jaeger To: Jan Beich Cc: ports@freebsd.org, Sean Bruno Subject: Re: how to create a powerpc64 poudriere jail ? Message-ID: <20160523043936.GJ41922@home.opsec.eu> References: <20160522093001.GB41922@home.opsec.eu> <20160522093156.GC41922@home.opsec.eu> <20160522211938.GI41922@home.opsec.eu> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: 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: Mon, 23 May 2016 04:39:38 -0000 Hi! > > [00:00:08] ====>> Starting jail p64-default > > [00:00:08] ====>> Error: Unable to execute id(1) in jail. Emulation or ABI wrong. > > Check foreign ABI support by running a static binary. If you see something > like the following then --magic or --mask argument (for ELF header) is wrong. > > $ /poudriere/jails/head-powerpc64/rescue/ls > sh: /poudriere/jails/head-powerpc64/rescue/ls: Exec format error Yes, this happened. > but it may not help if dynamically linked binaries still fail > > [00:00:01] ====>> Starting jail head-powerpc64-default > Invalid data memory access: 0x000007ec00000000 > qemu: uncaught target signal 11 (Segmentation fault) - core dumped > Segmentation fault > [00:00:01] ====>> Error: Unable to execute id(1) in jail. Emulation or ABI wrong. > > > magic: 0x7f 0x45 0x4c 0x46 0x01 0x02 0x01 0x00 0x00 0x00 0x00 0x00 > ^^ > This byte looks wrong. After applying the attached patch run The source of that byte was: https://wiki.freebsd.org/QemuUserModeHowTo (now fixed). After fixing this: /pou/jails/p64/rescue/ls works. But: /pou/jails/p64/usr/bin/id Unable to load interpreter -- pi@opsec.eu +49 171 3101372 4 years to go !