From owner-freebsd-arm@FreeBSD.ORG Thu Jun 14 12:34:49 2012 Return-Path: Delivered-To: freebsd-arm@freebsd.org Received: from mx1.freebsd.org (unknown [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id F14B21065672; Thu, 14 Jun 2012 12:34:49 +0000 (UTC) (envelope-from kostikbel@gmail.com) Received: from mail.zoral.com.ua (mx0.zoral.com.ua [91.193.166.200]) by mx1.freebsd.org (Postfix) with ESMTP id 6A5038FC08; Thu, 14 Jun 2012 12:34:49 +0000 (UTC) Received: from skuns.kiev.zoral.com.ua (localhost [127.0.0.1]) by mail.zoral.com.ua (8.14.2/8.14.2) with ESMTP id q5ECYX82062827; Thu, 14 Jun 2012 15:34:33 +0300 (EEST) (envelope-from kostikbel@gmail.com) Received: from deviant.kiev.zoral.com.ua (kostik@localhost [127.0.0.1]) by deviant.kiev.zoral.com.ua (8.14.5/8.14.5) with ESMTP id q5ECYXq6032541; Thu, 14 Jun 2012 15:34:33 +0300 (EEST) (envelope-from kostikbel@gmail.com) Received: (from kostik@localhost) by deviant.kiev.zoral.com.ua (8.14.5/8.14.5/Submit) id q5ECYWXs032540; Thu, 14 Jun 2012 15:34:32 +0300 (EEST) (envelope-from kostikbel@gmail.com) X-Authentication-Warning: deviant.kiev.zoral.com.ua: kostik set sender to kostikbel@gmail.com using -f Date: Thu, 14 Jun 2012 15:34:32 +0300 From: Konstantin Belousov To: Tim Kientzle Message-ID: <20120614123432.GB2337@deviant.kiev.zoral.com.ua> References: <4FCE211D.10204@semihalf.com> <0FE5C5BF-FADE-49BA-BF38-00018A752F14@kientzle.com> <4FD6FB72.10900@semihalf.com> <20120612084917.GL2337@deviant.kiev.zoral.com.ua> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="zUOaI4FcYSvHUUu9" Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4.2.3i X-Virus-Scanned: clamav-milter 0.95.2 at skuns.kiev.zoral.com.ua X-Virus-Status: Clean X-Spam-Status: No, score=-4.0 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00 autolearn=ham version=3.2.5 X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on skuns.kiev.zoral.com.ua Cc: freebsd-arm@freebsd.org, freebsd-current@freebsd.org Subject: Re: Possible fix for Perl failing with ../lib/auto/POSIX/POSIX.so: Undefined symbol "__flt_rounds" on ARM X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to the StrongARM Processor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 14 Jun 2012 12:34:50 -0000 --zUOaI4FcYSvHUUu9 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Jun 13, 2012 at 08:32:19PM -0700, Tim Kientzle wrote: > On Jun 12, 2012, at 1:49 AM, Konstantin Belousov wrote: > >>>=20 > >>> On Jun 5, 2012, at 8:09 AM, Jan Sieka wrote: > >>>>=20 > >>>>=20 > >>>> After investigating the issue it appeared that __flt_rounds symbol is > >>>> not exported by libc. Applying the following patch, recompilling wor= ld > >>>> and Perl fixed the problem and allowed to use Perl on SheevaPlug: > >>>>=20 > >>>> diff --git a/lib/libc/arm/Symbol.map b/lib/libc/arm/Symbol.map > >>>> index e8c7f1d..8cdcdaf 100644 > >>>> --- a/lib/libc/arm/Symbol.map > >>>> +++ b/lib/libc/arm/Symbol.map > >>>> @@ -70,6 +70,7 @@ FBSDprivate_1.0 { > >>>> __divdf3; > >>>> __floatsisf; > >>>> __floatsidf; > >>>> + __flt_rounds; > >>>> __fixsfsi; > >>>> __fixdfsi; > >>>> __fixunssfsi; >=20 >=20 > > If the symbols are used by normal programs, that I think > > we should indeed guarantee ABI stability for them, and FBSD_1.3 > > namespace is the right namespace to use. >=20 > Why 1.3? >=20 > This is a common function across every architecture except MIPS right > now (and that's probably easily remedied), so why would it be in > a different section for different architectures? The libc.so built as a result is architecture-specific, so it shall follow the ABI and ABI history of that architecture. By the project policy, a symbol added during the lifetime of CURRENT-10, goes into FBSD_1.3 version namespace. What other arches do there is irrelevant. --zUOaI4FcYSvHUUu9 Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.12 (FreeBSD) iEYEARECAAYFAk/Z2lcACgkQC3+MBN1Mb4j1wQCgui/jL5mTE5ZMIZNY669NHaHg YcMAoLBSxh8hPyn2TcF7GKvuWi9nt9SA =iVWx -----END PGP SIGNATURE----- --zUOaI4FcYSvHUUu9--