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 152315C4177 for ; Tue, 5 Jul 2016 14:27:01 +0000 (GMT) Received: by mail-lf0-f68.google.com with SMTP id l188so19903532lfe.0 for ; Tue, 05 Jul 2016 07:27:01 -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=QY/LQz9N7Gq7PLGoTjXUCRqcWoT7M0m/2Ou+ymsjTAA=; b=aV3zyPqOkXRbaHcMxn3+h+lU9j2ejK39s9eua/JALty1b3Sr4wRwjxce6xBoVGw4Xj WA9onRDblRe4WCDPFFWTf1aCHyJJnnka0BKLuFsVBqncfadTBBJ4vmC8aemMkL0cFV4f xHoJlCjdfdKjlZcIWzve1yJ5L0jocBKZII/evbslLk6CDe7K2yUK8/X/LgDyDVBZE+oJ eN5yBZx9VnBaw1vs00d7Koml/IxKo7YuOs2eoRphtHDhCvJc/Nb2xMKO0iMbFTS2PA+f ZoWPaVAIzJ7ppqWqYRjrq/+cmDgtdJKIzOUPpplgJhUzCAdUBedYNbGQCQXvsQUTRbq7 Q1Ew== 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=QY/LQz9N7Gq7PLGoTjXUCRqcWoT7M0m/2Ou+ymsjTAA=; b=VUViE6e/70aVW6qM1wgH3y+RMkvBxGa5Isww9o5HEs2p8RXY5wjHh8a1UN3W0NEvpy g1qWQMoVRWjNTlwFk8jI/k3+xhcxJKfx96Egr5QIyo0bDkm1Auh2BixG02uIPNAGM9wK hDdBE7/ocySC+Rg2mozvnQyUz6+thKCVjGEe6lVbRDfV//HWmL7Hi/mlVlTXiU+KZ94d QngU6iWd8/LEP702H+xt66Sefn1Mbu/xGWGyUFxUymNLgUQBKm7gVax6urqk6A6WkThu Y5U9hN3mv5tAozvpxGYS65vfTWBOBJrle08PcX1MCmBlXaOXDUY/zGhg/6/5pT0HEhcp HMCw== X-Gm-Message-State: ALyK8tJQheaNYhwTENJUe+3ysKbfWBIQCuKXTdsK5vlMmdbpt558MOInLunRlH+rou8PmQ== X-Received: by 10.25.27.203 with SMTP id b194mr3600553lfb.172.1467728820965; Tue, 05 Jul 2016 07:27:00 -0700 (PDT) Received: from vostro.util.wtbts.net ([2001:1bc8:101:f402:e66f:13ff:fef3:8cd0]) by smtp.gmail.com with ESMTPSA id j12sm5600697lfb.37.2016.07.05.07.27.00 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 05 Jul 2016 07:27:00 -0700 (PDT) Sender: =?UTF-8?Q?Timo_Ter=C3=A4s?= Date: Tue, 5 Jul 2016 17:26:56 +0300 From: Timo Teras To: "Tuan M. Hoang" Cc: "alpine-devel" Subject: Re: [alpine-devel] Porting Alpine scripts Message-ID: <20160705172656.788ec089@vostro.util.wtbts.net> In-Reply-To: <155b28d7dfa.ca28fe6d67425.5841089419777612642@flatglobe.org> References: <155a8e57d76.f37920c130996.6728092923369604578@flatglobe.org> <20160703225319.0ce46f62@vostro> <155b28d7dfa.ca28fe6d67425.5841089419777612642@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 Mon, 04 Jul 2016 03:57:45 +0700 "Tuan M. Hoang" wrote: > ---- On Mon, 04 Jul 2016 02:53:18 +0700 Timo Teras > wrote ---- > > > 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. > > I am on v3.4 with gcc5.3-r0. Tried gcc5.3-r0 APKBUILD file but the > same problem. > From what I understand your gcc-pass-2 and gcc-final are actually > gcc-pass-1 and gcc-pass-2 in traditional way : > 1. build gcc-pass-1 and binutils using host (x86_64) 's gcc+libc > targeting new target (x86). > 2. use that gcc-pass-1 to build new target's libc. > 3. build gcc-pass-2 using new libc (please correct me if I am wrong) Well, upon in the beginning it was 3 pass. You need pass 1 to build gcc without libc. Then you could build glibc headers. Then you build gcc pass 2 with glibc headers so it targets right c-library, and you can build full glibc. Finally you can build the final gcc as pass 3. Maybe this was simplified too. > So, after building gcc-pass-2 (step 1 above) in the script, we > install it in the host system then use it to build musl targeting new > target (step 2 above). But if you install gcc-pass-2 in the host > system at /usr/, it will produce my conflicts problem. In the > traditional way, we just pass something like > CROSS_COMPILE=i486-linux-musl- when running musl's configure script. > This is why I suggested install gcc-pass-2 into different prefix so > it won't conflict with the host's gcc. Just wonder how did you do > last time. > I did try to delete host's gcc to install only gcc-pass-2 but > building musl requires build-base package and in turn requires host's > gcc). Seems there was bitrot in the cross building support. abuild was improved, and upstream packaged changed. I made same fixes to various places now. And will push all aports changes today/tomorrow. After gcc 6.1 is done. I'm playing with armv7 target, and got: - full cross complier done (createcross-toolchain.sh runs) - cross building boot image works up to building openssl; seems something changed upstream and needs fixing I hope to get the scripts / aports' minimal cross-building support to the point that bootstrapping works again. /Timo --- Unsubscribe: alpine-devel+unsubscribe@lists.alpinelinux.org Help: alpine-devel+help@lists.alpinelinux.org ---