X-Original-To: alpine-devel@lists.alpinelinux.org Received: from mail-wm0-f41.google.com (mail-wm0-f41.google.com [74.125.82.41]) by lists.alpinelinux.org (Postfix) with ESMTP id 79DFC5C414F for ; Sun, 3 Jul 2016 05:41:24 +0000 (GMT) Received: by mail-wm0-f41.google.com with SMTP id a66so76291882wme.0 for ; Sat, 02 Jul 2016 22:41:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=specialbusservice.com; s=google; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc; bh=ZeIQER7QK90epZevMmG4w9IRLbAO6Flp44XeG9HYzUY=; b=ZBblQrUopHe0AOiSHXMGN3ykD2eb19023k+/3bm4Sx/fQimP7Dhm09k60mLLEF1y1l k+0kV3DCDIO/0upk+fb5V4dUPDD4u7JI87Or4CTnTFFOWE4059BZ26JuXedVSfL8IJ8h A2Ndj3Ronu937e9yJzn/99W3G0PMKowHvgZhs= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc; bh=ZeIQER7QK90epZevMmG4w9IRLbAO6Flp44XeG9HYzUY=; b=a0k18HV0Kxyj/J5/r7k/NT7quJ8l4R9JuB00M8lpeiNy66CuaoDtCxQDsl2EHoqSNc 30I+xPOOUmFmpCJjKgd73LNmE0qZio4CECwqD3OP0o9lhbNoQHBcWkzaPEFtfZ8KlCPx M5IgjcOse91vqheyJCyBY2EG/uQoV/V1M9oVZhudhtc+t+Ps65Utf+HK0SDQ0PSxezXZ NlRKbr+d+PNGoK3TpZU0g5z/piksCRC/uussyY1Y+FBOfNnCiOsXJpsp+I3CJIiWSTzv ikb/ZWAQVpu5Ftr/mzP5h5PlDi8k0+K4eQjKsC00TTvbPZLqLP/zq5TcCWND6IOt7Rxq 8fdw== X-Gm-Message-State: ALyK8tL31Q7UqPF6xu38Rx/q/N0Q1dQ3G1zM4Y8kGbjCiP1hvMKOtOL1tRLvmqLRs/2b26gR1Xqe77Tatlr23A== X-Mailinglist: alpine-devel Precedence: list List-Id: Alpine Development List-Unsubscribe: List-Post: List-Help: List-Subscribe: MIME-Version: 1.0 X-Received: by 10.28.191.193 with SMTP id o62mr4734981wmi.64.1467524482006; Sat, 02 Jul 2016 22:41:22 -0700 (PDT) Received: by 10.28.209.70 with HTTP; Sat, 2 Jul 2016 22:41:20 -0700 (PDT) Received: by 10.28.209.70 with HTTP; Sat, 2 Jul 2016 22:41:20 -0700 (PDT) In-Reply-To: <155a8e57d76.f37920c130996.6728092923369604578@flatglobe.org> References: <155a8e57d76.f37920c130996.6728092923369604578@flatglobe.org> Date: Sat, 2 Jul 2016 22:41:20 -0700 Message-ID: Subject: Re: [alpine-devel] Porting Alpine scripts From: Justin Cormack To: "Tuan M. Hoang" Cc: Alpine Devel List Content-Type: multipart/alternative; boundary=001a114beb247313eb0536b4ab3a --001a114beb247313eb0536b4ab3a Content-Type: text/plain; charset=UTF-8 I was not aware of a Musl s390x port, is there one? Justin On 1 Jul 2016 4:57 p.m., "Tuan M. Hoang" wrote: > Hi, > > I am trying to create a Docker image of Alpine targeting s390x > architecture. > > Natanael suggested me Timo's previous work at : > http://dev.alpinelinux.org/~tteras/bootstrap/ to bootstrap Alpine on new > arch. > > I have 2 questions related to this, hope you could shed some light. > > Q1: > Running createcross-toolchain.sh, at step 5, building gcc pass 2 : > (experimenting with targeting x86) > > $ ABUILD_CONF=$ABUILD_CREATECROSS_CONF BOOTSTRAP=nolibc > CTARGET_LIBC=musl abuild -r || return 1 > (this makes sure --disable-shared is passed to configure script) > > Then at step 6, it introduces a conflict between host's gcc and newly > installed/built gcc-pass2-$CTARGET > > ERROR: unsatisfiable constraints: > gcc-5.3.0-r0: > conflicts: > gcc-pass2-i486-alpine-linux-musl-5.2.0-r0[so:libcc1.so.0=0.0.0] > satisfies: g++-5.3.0-r0[gcc=5.3.0-r0] build-base-0.4-r1[gcc] > gcc-pass2-i486-alpine-linux-musl-5.2.0-r0: > conflicts: gcc-5.3.0-r0[so:libcc1.so.0=0.0.0] > satisfies: world[gcc-pass2-i486-alpine-linux-musl] > > How could I solve this? Should I build gcc-pass-2 with different prefix > than /usr/ to avoid conflict dynamic libs? If I do so, will it be any > different than a manually/traditionally built cross-toolchain ? (mentioned > below) > > > Q2: > I have built a cross toolchains targeting s390x (gcc, musl, binutils, > busybox, apk-tools), based on Gregor Richards's musl-cross with some > patches. > If I specifies this cross toolchains in the crossbuild-alpine-bootstrap.sh > , rather than doing > ${SUDO_APK} --repository $REPODEST_HOST/main add gcc-$CTARGET > g++-$CTARGET gcc-gnat-$CTARGET || return 1 > > then will there be any differences ? I have not try this (havent have > cross-built gnat yet) and just want to know what you think about it. > > Thank you, > Tuan > > > > --- > Unsubscribe: alpine-devel+unsubscribe@lists.alpinelinux.org > Help: alpine-devel+help@lists.alpinelinux.org > --- > > --001a114beb247313eb0536b4ab3a Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable

I was not aware of a Musl s390x port, is there one?

Justin

On 1 Jul 2016 4:57 p.m., "Tuan M. Hoang&quo= t; <tmhoang@flatglobe.org&g= t; wrote:
Hi,

I am trying to create a Docker image of Alpine targeting s390x architecture= .

Natanael suggested me Timo's previous work at : htt= p://dev.alpinelinux.org/~tteras/bootstrap/ to bootstrap Alpine on new a= rch.

I have 2 questions related to this, hope you could shed some light.

Q1:
Running createcross-toolchain.sh, at step 5, building gcc pass 2 : (experim= enting with targeting x86)

=C2=A0 =C2=A0 $ ABUILD_CONF=3D$ABUILD_CREATECROSS_CONF BOOTSTRAP=3Dnolibc C= TARGET_LIBC=3Dmusl abuild -r || return 1
(this makes sure --disable-shared is passed to configure script)

Then at step 6, it introduces a conflict between host's gcc and newly i= nstalled/built gcc-pass2-$CTARGET

ERROR: unsatisfiable constraints:
=C2=A0 =C2=A0 gcc-5.3.0-r0:
=C2=A0 =C2=A0 =C2=A0 =C2=A0 conflicts: gcc-pass2-i486-alpine-linux-musl-5.2= .0-r0[so:libcc1.so.0=3D0.0.0]
=C2=A0 =C2=A0 =C2=A0 =C2=A0 satisfies: g++-5.3.0-r0[gcc=3D5.3.0-r0] build-b= ase-0.4-r1[gcc]
=C2=A0 =C2=A0 gcc-pass2-i486-alpine-linux-musl-5.2.0-r0:
=C2=A0 =C2=A0 =C2=A0 =C2=A0 conflicts: gcc-5.3.0-r0[so:libcc1.so.0=3D0.0.0]=
=C2=A0 =C2=A0 =C2=A0 =C2=A0 satisfies: world[gcc-pass2-i486-alpine-linux-mu= sl]

How could I solve this? Should I build gcc-pass-2 with different prefix tha= n /usr/ to avoid conflict dynamic libs? If I do so, will it be any differen= t than a manually/traditionally built cross-toolchain ? (mentioned below)

Q2:
I have built a cross toolchains targeting s390x (gcc, musl, binutils, busyb= ox, apk-tools), based on Gregor Richards's musl-cross with some patches= .
If I specifies this cross toolchains in the crossbuild-alpine-bootstrap.sh = , rather than doing
=C2=A0 =C2=A0 ${SUDO_APK} --repository $REPODEST_HOST/main add gcc-$CTARGET= g++-$CTARGET gcc-gnat-$CTARGET || return 1

then will there be any differences ? I have not try this (havent have cross= -built gnat yet) and just want to know what you think about it.

Thank you,
Tuan



---
Unsubscribe:=C2=A0 alpine-devel+unsubscribe@lists.alpinelinux.org
Help:=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0alpine-devel+help@lists.alpinelinux.org
---

--001a114beb247313eb0536b4ab3a-- --- Unsubscribe: alpine-devel+unsubscribe@lists.alpinelinux.org Help: alpine-devel+help@lists.alpinelinux.org ---