X-Original-To: alpine-devel@lists.alpinelinux.org Received: from mail-lf0-f68.google.com (mail-lf0-f68.google.com [209.85.215.68]) by lists.alpinelinux.org (Postfix) with ESMTP id C1A815C4168 for ; Sun, 3 Jul 2016 19:53:25 +0000 (GMT) Received: by mail-lf0-f68.google.com with SMTP id a2so15521909lfe.3 for ; Sun, 03 Jul 2016 12:53:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:date:from:to:cc:subject:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=1QYzUqSo8O+Nh4p3WDlccTPSg9UVwjriJcvzJY0bxC4=; b=FxLgZzclUl0+NmIbZP7dajXa0VeI3+VdrQIVSgoUFGoh7Rha2tieIjTau5diiCi74X ILaGrU7xHlzRI/WWNwMaX0s9ScSqYg1MkMAHQReKZ9DoVN5xRAziq6f3wT41ZdZeRLVq xHtWLvgPRsMtrXRALpxEOKFuyFZLrmZETZdTki63p/bNkVL9a+qaxNe21tQeC3ooz8zr DQKg28wPbXMdAega1Z3jXMllE9tKasgC93fHpgYBwVbghT6qIjudfyfjVi/tx8LI1zdj Qur/BVuthy/71aIQf8ODa5vWK1GgS5kKvAm2MVzc4pGeJyg1RfwD4irpYGQM+tL+zo3/ Lw5w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:sender:date:from:to:cc:subject:message-id :in-reply-to:references:mime-version:content-transfer-encoding; bh=1QYzUqSo8O+Nh4p3WDlccTPSg9UVwjriJcvzJY0bxC4=; b=RMLH7JwWlaRBZUdjkMuvhpW9+GQqsD/VB81pG5G+Rm9LNws7c/hKF5W/FSGO/gbW46 xtDidpio0DjPb6EjyMNu9TdeX1ybbqkcRKS0Vrfzot4GHxBSFW29iRbdH+JWtiFkvJug xUXe3njr7ebyHfD4BsZOMDrNXsFw4Hk/XjqZQjX3hgSRPdr10fl+1ph2y7p1leoAzjkc gSrFiV8FF4aQpo+/bZA8ov3QWrL/fi2Acvda8VvNT8ybmwhrYieTJOaA4clJdTcTMCmQ yk53kF9a4A4R7Pourytt0iNXg4SxUzFTbRIRH/eiBedK35EPNU5eWZEiLTnZbMQtCl1a d4Aw== X-Gm-Message-State: ALyK8tLku0IQGJ0wMgrkAzs30Lk2yz7IAeaJGKC7CqGvDYpHSMlHUpJl2vP614YxIh5Luw== X-Received: by 10.25.131.141 with SMTP id f135mr1559056lfd.42.1467575604470; Sun, 03 Jul 2016 12:53:24 -0700 (PDT) Received: from vostro ([83.145.235.201]) by smtp.gmail.com with ESMTPSA id 142sm4133386ljj.4.2016.07.03.12.53.23 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sun, 03 Jul 2016 12:53:24 -0700 (PDT) Sender: =?UTF-8?Q?Timo_Ter=C3=A4s?= Date: Sun, 3 Jul 2016 22:53:18 +0300 From: Timo Teras To: "Tuan M. Hoang" Cc: "alpine-devel" Subject: Re: [alpine-devel] Porting Alpine scripts Message-ID: <20160703225319.0ce46f62@vostro> In-Reply-To: <155a8e57d76.f37920c130996.6728092923369604578@flatglobe.org> References: <155a8e57d76.f37920c130996.6728092923369604578@flatglobe.org> X-Mailer: Claws Mail 3.13.2 (GTK+ 2.24.28; x86_64-alpine-linux-musl) 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=US-ASCII Content-Transfer-Encoding: 7bit On Sat, 02 Jul 2016 06:57:40 +0700 "Tuan M. Hoang" wrote: > 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) Sounds like your aports is from edge, but you are running 3.3 or 3.2 stable alpine. Then the gcc versions do not match, and you get this. > 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. It's probably ok for gcc/g++ part, but you are right, Ada might be problem for full bootstrap. As heads up: I'm currently looking at gcc 6.1; and also bootstrapping armv7. I have already some changes coming up for gcc/musl and some other packages for fixing bootstrapping. But seems there's been some bitrot since last bootstrap (for armhf some years ago) and the scripts need fixing. Cheers, Timo --- Unsubscribe: alpine-devel+unsubscribe@lists.alpinelinux.org Help: alpine-devel+help@lists.alpinelinux.org ---