X-Original-To: alpine-devel@lists.alpinelinux.org Received: from sender163-mail.zoho.com (sender163-mail.zoho.com [74.201.84.163]) by lists.alpinelinux.org (Postfix) with ESMTP id 17C2B5C41BF for ; Mon, 25 Jul 2016 18:11:20 +0000 (GMT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1469470268; s=default; d=flatglobe.org; i=tmhoang@flatglobe.org; h=Date:From:To:Cc:Message-ID:In-Reply-To:References:Subject:MIME-Version:Content-Type:Content-Transfer-Encoding; l=2673; bh=/gtfdAnUSM1tCRIddT1YWX9gjvod8YgjLZuzddTjXP8=; b=eeNK5dXUrhuYMRo/ROLZ8/aGBnv39Jn0Z4YIgHBrJisy6yJ9Q+u8yuBXLjXExIqk YzjS03uYxNpkNTt5UGvRj/P2e3VulGp6ZqoPgdjY16xWwm7hwMn8SA/oGBt/cZXoTpB T5Qd2LRl252VdCKGIP5sDijhVF47X7bEljMv4rzA= Received: from mail.zoho.com by mx.zohomail.com with SMTP id 1469470268434562.5754329587561; Mon, 25 Jul 2016 11:11:08 -0700 (PDT) Date: Tue, 26 Jul 2016 01:11:08 +0700 From: "Tuan M. Hoang" To: "Timo Teras" Cc: "alpine-devel" Message-ID: <1562340dbde.12a594a5120275.3795912911296475631@flatglobe.org> In-Reply-To: <20160723092945.0680e7fd@vostro> References: <155a8e57d76.f37920c130996.6728092923369604578@flatglobe.org> <20160703225319.0ce46f62@vostro> <155b28d7dfa.ca28fe6d67425.5841089419777612642@flatglobe.org> <20160705172656.788ec089@vostro.util.wtbts.net> <20160706172836.74bab5d1@vostro> <155e6497a8e.11ad265cf269464.7355344611305011615@flatglobe.org> <155f440c618.129c9f0aa5155.5728200182511575692@flatglobe.org> <20160718084038.23773fca@vostro.util.wtbts.net> <1560fbd5a78.dbf5aa7b48820.4632348656468847927@flatglobe.org> <20160722084514.7c01123f@vostro.util.wtbts.net> <15614c77014.1200f0e697958.371787825394349914@flatglobe.org> <20160723092945.0680e7fd@vostro> Subject: Re: [alpine-devel] Porting Alpine scripts X-Mailinglist: alpine-devel Precedence: list List-Id: Alpine Development List-Unsubscribe: List-Post: List-Help: List-Subscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Priority: Medium User-Agent: Zoho Mail X-Mailer: Zoho Mail ---- On Sat, 23 Jul 2016 13:29:44 +0700 Timo Teras wrote ---- > Could you share what target triplet you are using? And what CARCH? I'll > be happy to push these to abuild early, even if everything is not > working. Target triplet : s390x-alpine-linux-musl CARCH : s390x (but for linux-headers, it is s390) Fortunately, I have successfully run crossbuild-bootstrap targeting s390x, but I need to remove paxmark lines in gcc's APKBUILD as it returns an unknown error (creat-cross runs just fine). AFAIK, it is about security concerns, not system's functionality, so for now I guess it is okay. What do you think? When I try either to (1) install newly cross-built packages into the sysroot-s390x-alpine-linux-musl/ in the build machine or (2) install Alpine in a chroot in the target device using packages from packages-s390x-alpine-linux-musl/main/s390x/ , they both generate following error: http://pastebin.com/WDJyCaxT. Any chance this thing comes from removing paxmark ? I try to pass --verbose to apk-build but cannot see any change. How did you manage to bootstrap on the real target device? > I just pushed few commits to abuild, that set CBUILD by default > properly. It also fixes dependency installation for host/target to not > run scripts, that would become error later on the build process too. > > Please try latest abuild git version if it helps. I am using it now. > > > Though, we are currently looking into improving the build system a > > > bit more to support cross-building better, including supporting it > > > directly from abuild command line and building things > > > automatically in chroot. This needs a bit of design, but is on the > > > way. > > > > That's really good to know. I would like to help in that process, or > > try it out and give feedback. > > I actually want first fix cross building to be supported properly. So > just doing "CHOST=aarch64 abuild -r" would to cross-compile aarch64 > version of package on any build system. > > I have first patch ready for this that makes all the cross-compile > script config entries built-in to abuild. > > The second patch is make abuild properly aware of subpkg's arch. This > is tricky since when make cross toolchain we are generating packages > for the host and the target. But I got this almost done. > > The above two will greatly simplify the bootstrap scripts, which I'll > probably dump to aports along with instructions. We've been getting lot > of questions for bootstrapping recently... > Hum.. That looks quite complicated. Will definitely come back to this afterwards. --- Unsubscribe: alpine-devel+unsubscribe@lists.alpinelinux.org Help: alpine-devel+help@lists.alpinelinux.org ---