From owner-freebsd-arm@FreeBSD.ORG Mon Dec 2 06:55:59 2013 Return-Path: Delivered-To: freebsd-arm@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 190CC6EE for ; Mon, 2 Dec 2013 06:55:59 +0000 (UTC) Received: from mail-wi0-x229.google.com (mail-wi0-x229.google.com [IPv6:2a00:1450:400c:c05::229]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id A81BC165A for ; Mon, 2 Dec 2013 06:55:58 +0000 (UTC) Received: by mail-wi0-f169.google.com with SMTP id hm6so4246811wib.0 for ; Sun, 01 Dec 2013 22:55:55 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type:content-transfer-encoding; bh=Gir67w433uac4DlezZoRqG/opBzmFL98Gxhzj2EYvvo=; b=SJQtfbuGxRoiExyKDU929fh1mis72ClaxpIfj3yfpve2dHQk1jdZl3nknw5ib2Es33 +p5fw263wkbc1dGAQX78c56QW5buBwlhMmCfMY3X34X0+uk0XixYsH3nL8dba7fLJnYV TokWTOVAVcgubbzmGp0g9rEA/Yx/Bcx5zoaQo+/Mm8JZpj5r2veJwvTx559mY210QDqy Cy4zBgfmRt1XPb+6WlPwNFZCThshIZzy0lP0oSTA43ChlGF75YEKgCWMDdJ52pSAulEV YXkY5WuI4V0hohmYssK8zMU3yNaABkPWZ5QeJmb5IbFwjeLMQqNO7LlAnHl+ei7ATyE3 C/Xg== X-Received: by 10.180.75.202 with SMTP id e10mr16470911wiw.8.1385967355565; Sun, 01 Dec 2013 22:55:55 -0800 (PST) MIME-Version: 1.0 Received: by 10.227.129.138 with HTTP; Sun, 1 Dec 2013 22:55:25 -0800 (PST) In-Reply-To: <882FBAB9-A491-48DA-B24D-BAA79FCE3B2D@me.com> References: <882FBAB9-A491-48DA-B24D-BAA79FCE3B2D@me.com> From: Jia-Shiun Li Date: Mon, 2 Dec 2013 14:55:25 +0800 Message-ID: Subject: Re: package building in arm To: Jeremy Boy Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Cc: "freebsd-arm@freebsd.org" X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.16 Precedence: list List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 02 Dec 2013 06:55:59 -0000 On Sun, Dec 1, 2013 at 9:03 AM, Jeremy Boy wrote: > I can=E2=80=99t find a related issue on github. Feel free to contribute w= hat you figured out at https://github.com/freebsd/pkg. I will write some li= nes about this in the next few days, too. > looks like _ThreadRuneLocale is not properly initialized on ARM? Not sure if pkg 1.2 version bump has anything to have triggered this. The following was produced with binary compiled with stock GCC and behavior remained the same. (gdb) bt #0 0x003178d0 in __getCurrentRuneLocale () at runetype.h:96 #1 0x00317850 in __sbtolower (_c=3D121) at _ctype.h:153 #2 0x00318104 in ucl_maybe_parse_boolean (obj=3D0x20c0f400, start=3D0x20c17090 "yes", len=3D3) at ucl_internal.h:215 #3 0x00317e54 in ucl_object_fromstring_common (str=3D0x20c170b0 "yes", len=3D3, flags=3DUCL_STRING_PARSE_BOOLEAN) at src/ucl_util.c:846 #4 0x000b09e0 in add_repo (obj=3D0x20c0f250, r=3D0x0, rname=3D0x20c17080 "FreeBSD") at pkg_config.c:714 #5 0x000b0e24 in walk_repo_obj (obj=3D0x20c0f220) at pkg_config.c:815 #6 0x000b1008 in load_repo_file (repofile=3D0xbfffe448 "/etc/pkg//FreeBSD.conf") at pkg_config.c:873 #7 0x000b10ec in load_repo_files (repodir=3D0x20c04070 "/etc/pkg/") at pkg_config.c:897 #8 0x000b1264 in load_repositories (repodir=3D0x0) at pkg_config.c:937 #9 0x000b73ec in $a () at pkg_config.c:1166 #10 0x000b73ec in $a () at pkg_config.c:1166 (gdb) f 0 #0 0x003178d0 in __getCurrentRuneLocale () at runetype.h:96 96 if (_ThreadRuneLocale) (gdb) p _ThreadRuneLocale Error accessing memory address 0x2c: Bad address. (gdb) Regards, Jia-Shiun