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 C39215C422E for ; Wed, 1 Feb 2017 07:04:05 +0000 (GMT) Received: by mail-lf0-f66.google.com with SMTP id q89so35667433lfi.1 for ; Tue, 31 Jan 2017 23:04:05 -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=FKDnOr7bC0uwFl0/0VqNvm36cH6Q6R/SbihhkwDBShk=; b=Rnz6eRNvRCzhwPsYMpPWfxLJwX3FwnA/fp3aRh/00IxdSg9YCuvzqYlDXTzkLfmGDX u04MOw8mL9PwNjo+ixIVMAxKs+CuJBUnZOgpOh2g0SFIeeG10TEGnZ+BgqfYQ++kw6t9 l8Zg47G9t5KLezTtSMVlAELTm6rPrb1vzEJZksEHdzDo1Jj7058aymhXomhVqQNMwoIZ wIEGtZ9Hjp0uUU/w5EtwYvMNxbH8dtZBKcRmuPPlaKlK8FSNZGZT62l3QlECqphWv8UY DQYlIZCWhVQnaube7Auej/a2ARApFuz0q2pqBq2xPIAuYtE13AF1ZQ3TMYJ35uiZVOyC 5Oug== 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=FKDnOr7bC0uwFl0/0VqNvm36cH6Q6R/SbihhkwDBShk=; b=M66mwyCOCcwFMRuWaZ7JvfD7p95ODKYXFGBuTDuQfwKSdgV+D827753KW87Wi4kqt/ JAC72W8tjQH1HwXaQJnF0qGAojd3brFWsqx0dn7LlqUJWMCCkOO8RBg95180CH1rZWbB ws3iah9KDwa4pmP7nlUKNGLisjGHczcMkZKwPe/2+gt/TFp0cTqKxZDF4JvW1BytiKcA RdDfxIFMpSN/i20Q1VWSoso4XCB6n7Zyepp5iWtRjJQt2ICvSE/vkhfHUwQHs2N77MB7 9ypuN/mh5azx1nhHWQpscY4kj+fJbMcEvyRgDLjBH+i2+VuDCXB9714UKX5FwsZcEvm7 yVBA== X-Gm-Message-State: AIkVDXKLVru0BrKJ/R+/7i29rlVo94R9OQBg7/tvO+UzM8pynB0e6i7IEEkZwdlA8dtB/Q== X-Received: by 10.25.205.12 with SMTP id d12mr440369lfg.179.1485932644938; Tue, 31 Jan 2017 23:04:04 -0800 (PST) Received: from vostro.util.wtbts.net ([2001:1bc8:101:f402:e66f:13ff:fef3:8cd0]) by smtp.gmail.com with ESMTPSA id x78sm5396543lfb.44.2017.01.31.23.04.04 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 31 Jan 2017 23:04:04 -0800 (PST) Sender: =?UTF-8?Q?Timo_Ter=C3=A4s?= Date: Wed, 1 Feb 2017 09:03:59 +0200 From: Timo Teras To: "Tuan M. Hoang" Cc: "alpine-devel" Subject: Re: [alpine-devel] Porting Alpine scripts Message-ID: <20170201090359.25e84463@vostro.util.wtbts.net> In-Reply-To: <20170201014224.3842294c.tmhoang@flatglobe.org> References: <155a8e57d76.f37920c130996.6728092923369604578@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> <20170130132156.1ce001a8@vostro.util.wtbts.net> <20170201014224.3842294c.tmhoang@flatglobe.org> X-Mailer: Claws Mail 3.14.1 (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 Wed, 1 Feb 2017 01:42:24 -0500 "Tuan M. Hoang" wrote: > On Mon, 30 Jan 2017 13:21:56 +0200 > Timo Teras wrote: > > > > 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. > > Thanks, it's very neat. > > > > 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. > > Indeed. It was a musl bug, and with some patches, gdb is good now. Ok. Good, perhaps you can submit them upstream to musl? > Looks like /usr/lib/libfakeroot.so is the one causes the segfault. Is > there any option in abuild to build package with out being stripped? > I would like to do so then debug fakeroot better. Adding -DDEBUG or > -g in CFLAGS and CXXFLAGS in APKBUILD doesn't help. DEBUG=yes abuild or add "$pkgname-dbg" to subpackages, and a separate -dbg package is created with the debug information. > > > Here is the log of strace fakeroot : > > > http://pastebin.com/Pn7YUWRz > > > > Could you retry with "strace -f -s 1024" ? > > I am not sure the strace would be informative for you : > http://pastebin.com/4P0f5sDF Unfortunately, this does not immediately reveal anything additional. Getting gdb backtrace should help. Thanks, Timo --- Unsubscribe: alpine-devel+unsubscribe@lists.alpinelinux.org Help: alpine-devel+help@lists.alpinelinux.org ---