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 B2CDC5C420F for ; Fri, 27 Jan 2017 07:01:16 +0000 (GMT) Received: by mail-lf0-f68.google.com with SMTP id h65so25212896lfi.3 for ; Thu, 26 Jan 2017 23:01:16 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:date:from:to:cc:subject:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=DfPyF7OAf/SFrd+L9EUeG+qnd4TsG9f/nMcXyG+wk/E=; b=LaNY/zZPe0gqKWc25DbYPMsuIVYWlv+mAh4hu6q3R9kpfmzIWBKQBMil+yTuUEy/sn zlbKNMVy1qTKbD+m951LIKOEXUIMmQjdQlEzXKRGNCXiG5ItNqF6Rzv/Tb7A8OOfS3I1 6f4/4xkkwuTugFcKBRHDqgunv43Icki+vw8ecthabuQaV1QDXGI4ynApQ6hXpVzKix0W OWXcuzMxZFVpVWvOSbPfnHop9XyGWgkozeFwd1hJYVEodmXmQyqLjKHugtxNKrfwiGOc eglOkEUhXsWsyuC7l1+mS/ocZ5BYilEgdw2t0dV4N1RIcltp743hrmUPzV7JBR0EHKIl HtXw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:date:from:to:cc:subject:message-id :in-reply-to:references:mime-version:content-transfer-encoding; bh=DfPyF7OAf/SFrd+L9EUeG+qnd4TsG9f/nMcXyG+wk/E=; b=G1g1GbZRLmJ1MWyycHMnAKnh0OyDA55dM+8HLrVcccHxZjxjwwmprCCmPjkc7taHHQ Zn7B1/MIKHwfw6nhnPv8NrbEDxtYRGYBS64HHVTxkftGerD9k3034SqpXdoYC2yqXJZ/ X6ymyLOZ/wmdqId3/9kFiOT0Rai0VwvhNVQT5DWIm3QQQUL2KCnC0oQvlHnKMaH/FvKE NZadbm5hGXx6umrXtnVfib5gq5tSWlYUk0l1j04R9emvJiFnWHPqCQ9KPo3S6VkJ902g zvd/hxgnIAKUC/BQtdbfOHWxvZ5KpXUUOz2+ZklLoN6W1xpf1EfdnqZ1GjPRqZHhGm6x 1qGg== X-Gm-Message-State: AIkVDXICf7O7EekkR/uEjgPj/xM+I/+hikue+w58P0voGMGYhKL/A0F9m9sbAfDlpJ6OAw== X-Received: by 10.25.130.147 with SMTP id e141mr2181243lfd.44.1485500475539; Thu, 26 Jan 2017 23:01:15 -0800 (PST) Received: from vostro.util.wtbts.net ([2001:1bc8:101:f402:e66f:13ff:fef3:8cd0]) by smtp.gmail.com with ESMTPSA id 25sm1066538ljt.11.2017.01.26.23.01.15 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 26 Jan 2017 23:01:15 -0800 (PST) Sender: =?UTF-8?Q?Timo_Ter=C3=A4s?= Date: Fri, 27 Jan 2017 09:00:54 +0200 From: Timo Teras To: "Tuan M. Hoang" Cc: "alpine-devel" Subject: Re: [alpine-devel] Porting Alpine scripts Message-ID: <20170127090054.5f6ba6ce@vostro.util.wtbts.net> In-Reply-To: <20170122184652.338e4344.tmhoang@flatglobe.org> References: <155a8e57d76.f37920c130996.6728092923369604578@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> <1562340dbde.12a594a5120275.3795912911296475631@flatglobe.org> <156260c81a5.f458ee7355285.6767768145040849925@flatglobe.org> <20160726194654.69b12731@vostro> <15635238f98.e963f442298215.3433654478481171006@flatglobe.org> <20161116023639.23b44cf1.tmhoang@flatglobe.org> <20161117082440.7f5e0fa0@vostro.util.wtbts.net> <20161119041548.765e6513.tmhoang@flatglobe.org> <20161119092109.13567a93@vostro> <20161121073927.2d0a9e65.tmhoang@flatglobe.org> <20161121105925.685761a2@vostro.util.wtbts.net> <20170122184652.338e4344.tmhoang@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 Sun, 22 Jan 2017 18:46:52 -0500 "Tuan M. Hoang" wrote: > I am currently having two issues, hope you can take some time to see > it. > > 1. I was running Alpine s390x in Docker with some essential > cross-compiled packages targeting s390x, in order to compile natively > the toolchains. It all boils down to missing perl package as > compile-time dependency. Perl cannot be cross-compiled, yet is needed > for native compile. When I try to compile perl natively (inside either > Docker or a chroot), I had segmentation fault on running fakeroot. Yes, we also native build perl. It's a pain to cross-compile. > Just wonder if this is the correct way you did and segmentation fault > is only my thing. If fakeroot segfaults you'll end up in trouble sooner or later. It'd be good to fix that. Do you have strace or gdb backtrace of the crash? > 2. I was having an error when building linux-vanilla-dev ( with above > kernel config ). When running $ make in dev() in APKBUILD, HOSTCC > compiles some scripts in "$srcdir"/linux-$_kernver/scripts directory > into host arch (x86_64) object/exec files. These files were later get > copied into "$subpkgdir"/usr/src/linux-headers-${_abi_release} > (aports/main/linux-vanilla/pkg/linux-vanilla-dev/usr/src/linux-headers-4.4.34). > Then libc.musl-x86_64.so.1 comes up in as a needed .so file in later > steps (scan_shared_objects() function). This happens for > linux-vanilla-dev package, while bootstraping both aarch64, and s390x > using aports master. This is tricky. Should the -dev package be built for the target or for the build host. When cross-compiling it should probably be built for the build host. Because it will probably be used to build the modules too. Maybe the following change in linux-vanilla will fix it: -subpackages="$pkgname-dev" +subpackages="$pkgname-dev::$CBUILD_ARCH" Cheers, Timo --- Unsubscribe: alpine-devel+unsubscribe@lists.alpinelinux.org Help: alpine-devel+help@lists.alpinelinux.org ---