X-Original-To: alpine-devel@lists.alpinelinux.org Received: from mail-lf0-f66.google.com (mail-lf0-f66.google.com [209.85.215.66]) by lists.alpinelinux.org (Postfix) with ESMTP id 8487C5C49C5 for ; Mon, 30 Jan 2017 11:22:00 +0000 (GMT) Received: by mail-lf0-f66.google.com with SMTP id x1so31167969lff.0 for ; Mon, 30 Jan 2017 03:22:00 -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=obHnDcA0aHtTUMmdua12wjHW/+Aa5OMxPTztlz2j84I=; b=nL7AAYhrBMX9zdF7gCXXSU9OxqPK5KA7t6rL3PzGrYkMwJ9hafu/qrtJOOCIT7dem2 w1g/fq5G9yUZxSeBpthyjh0CKGeetT5YfqHYejBq9fhzvg9m+SLGTqHYH+R/Gz10V/nd TFCgR2Bv7NgVOeTpRAAdUqcowxwZo5DVt8EPKQSVJWLPtBayXoP05QEKb7b2dl9VpkB4 8rZc2pBV5ANWnpkgcQa1ojCH115w9hw/y3dk6wsirL9IbI411mKcdMT6BqdpMnEJNudR 8QjGQuIZZZh0fgj5yta6Oc8NTMbVGaVw2PbuAx3mRS06Lmnqnq6RABR4vAttt1AgBbE6 /mrw== 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=obHnDcA0aHtTUMmdua12wjHW/+Aa5OMxPTztlz2j84I=; b=DeOdfNZCrVLWZViJUHj5sbEABwy18TgBbrvTJZRLz4smr0dg1F8rKkx2A5NAjPa4V0 RelbkrU+Dtfcm/Slr4LpJ6cZYYgfKz05+wB4Ih/oW1MFfWjiPNqvFJnQwwqNNGx/Zbeb emOg+tIDmwp4mYFCkDstTuLBF2+MGBHgaP0VoF3dVsxKEEwNTyNRrGKrr9ZjXlCAezIa iU3asyoykTyVF3KLX3/12oqH3uVWENPXD2DTHZmuTtvaevi3lRBYAPr9LYWa7kuVCeN3 5Z9GES2a+xXh9w2gd/K5Y3GmQ1earpz4sHZ+EhxEU9xCmcSF2lDfs18jrY6+hCnjCWq0 BYhQ== X-Gm-Message-State: AIkVDXIwiX22m1o2Wxgbg6yny07Z7uwN8tOe2aEFYy+5hxUFVtpMs8Oh6yUbUsAZHmw8TA== X-Received: by 10.25.195.144 with SMTP id t138mr5899717lff.78.1485775319369; Mon, 30 Jan 2017 03:21:59 -0800 (PST) Received: from vostro.util.wtbts.net ([2001:1bc8:101:f402:e66f:13ff:fef3:8cd0]) by smtp.gmail.com with ESMTPSA id s20sm3651616lfe.41.2017.01.30.03.21.58 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 30 Jan 2017 03:21:59 -0800 (PST) Sender: =?UTF-8?Q?Timo_Ter=C3=A4s?= Date: Mon, 30 Jan 2017 13:21:56 +0200 From: Timo Teras To: "Tuan M. Hoang" Cc: "alpine-devel" Subject: Re: [alpine-devel] Porting Alpine scripts Message-ID: <20170130132156.1ce001a8@vostro.util.wtbts.net> In-Reply-To: <20170128200029.271b0fcf.tmhoang@flatglobe.org> References: <155a8e57d76.f37920c130996.6728092923369604578@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> <20170127090054.5f6ba6ce@vostro.util.wtbts.net> <20170128200029.271b0fcf.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 Sat, 28 Jan 2017 20:00:29 -0500 "Tuan M. Hoang" wrote: > On Fri, 27 Jan 2017 09:00:54 +0200 > Timo Teras wrote: > > > > 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? > > Cross-compiling strace and gdb requires 'linux-headers' > installed in $CBUILDROOT. strace is cool but gdb still fails Should fix strace APKBUILD to support cross-compilation using the makedepends_host as used in other cross-compile enabled packages. > for me with following errors : > > In file included from gregset.h:26:0, > from s390-linux-nat.c:28: > nm.h:23:24: error: 'elf_gregset_t' does not name a type > #define GDB_GREGSET_T elf_gregset_t > ^ > gregset.h:36:9: note: in expansion of macro 'GDB_GREGSET_T' > typedef GDB_GREGSET_T gdb_gregset_t; > ^~~~~~~~~~~~~ > nm.h:24:24: error: 'elf_fpregset_t' does not name a type > #define GDB_FPREGSET_T elf_fpregset_t > ^ > gregset.h:37:9: note: in expansion of macro 'GDB_FPREGSET_T' > typedef GDB_FPREGSET_T gdb_fpregset_t; > ^~~~~~~~~~~~~~ > In file included from s390-linux-nat.c:28:0: > gregset.h:52:14: error: 'gdb_gregset_t' does not name a type > const gdb_gregset_t *gregs); > ^~~~~~~~~~~~~ > gregset.h:54:15: error: 'gdb_fpregset_t' does not name a type > const gdb_fpregset_t *fpregs); > ^~~~~~~~~~~~~~ > gregset.h:61:6: error: 'gdb_gregset_t' has not been declared > gdb_gregset_t *gregs, int regno); > ^~~~~~~~~~~~~ > gregset.h:63:7: error: 'gdb_fpregset_t' has not been declared > gdb_fpregset_t *fpregs, int regno); > ^~~~~~~~~~~~~~ > > elf_gregset_t and elf_fpregset_t were supposed to be defined in > https://github.com/torvalds/linux/blob/master/arch/s390/include/asm/elf.h > and I think it should be built in 'linux-headers', but no trace of > them. Strange. Sounds like a bug somewhere. > Here is the log of strace fakeroot : http://pastebin.com/Pn7YUWRz Could you retry with "strace -f -s 1024" ? > > > 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" > > > This indeed fixes it and makes linux-vanilla-dev a HOST's package. Ok, I'll probably commit that to the relevant kernel packages then. Thanks. --- Unsubscribe: alpine-devel+unsubscribe@lists.alpinelinux.org Help: alpine-devel+help@lists.alpinelinux.org ---