From owner-freebsd-mips@FreeBSD.ORG Fri Apr 6 06:08:11 2012 Return-Path: Delivered-To: mips@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 1C98D106564A; Fri, 6 Apr 2012 06:08:11 +0000 (UTC) (envelope-from c.jayachandran@gmail.com) Received: from mail-wi0-f178.google.com (mail-wi0-f178.google.com [209.85.212.178]) by mx1.freebsd.org (Postfix) with ESMTP id D38428FC14; Fri, 6 Apr 2012 06:08:09 +0000 (UTC) Received: by wibhq7 with SMTP id hq7so212991wib.13 for ; Thu, 05 Apr 2012 23:08:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; bh=DkPWf3JR+uFyEhjbEGXctztM6RxPH62evQtXe4LWlZM=; b=y6qEkDo2IPWJ4aipFeA0s5X5+RbcD9nBG8cdNw4NndncINpp65wZfJeO9I3LTPK1j+ fOlwXo75JSKl2dbgehOGtXc6c9jRL7RdveE8GHJQXr0SeL2idengZ+9r1AE4PmFXVxLB qeaNigdDlTVIF2509gSeesF0fddEn78DB1Cf0j/ViJ4IOwE17Q+i0YXDkhV7XYScc2no ulB6NpJVgUcDBtLX4Xn8zawrI+c4E9ZPAPHWDGElLWJLl9yNl72R+ZzOOxGdO1jtr1UT 7fq/PnK7aDIfRie8PF2ZnXzczG080yjfQLRzHT1yzhfhe+/MQXKSoRMfnNanRXc1Nbb9 B59Q== MIME-Version: 1.0 Received: by 10.180.73.143 with SMTP id l15mr9277940wiv.11.1333692488061; Thu, 05 Apr 2012 23:08:08 -0700 (PDT) Received: by 10.216.62.81 with HTTP; Thu, 5 Apr 2012 23:08:07 -0700 (PDT) In-Reply-To: <20120405142423.90d48b27.stas@FreeBSD.org> References: <20120405142423.90d48b27.stas@FreeBSD.org> Date: Fri, 6 Apr 2012 11:38:07 +0530 Message-ID: From: "Jayachandran C." To: Stanislav Sedov Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: Doug Barton , mips@freebsd.org, current@freebsd.org, Garrett Cooper , FreeBSD Tinderbox Subject: Re: There is a known problem with MIPS tinderbox. X-BeenThere: freebsd-mips@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to MIPS List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 06 Apr 2012 06:08:11 -0000 On Fri, Apr 6, 2012 at 2:54 AM, Stanislav Sedov wrote: > On Thu, 5 Apr 2012 12:39:00 -0700 > Juli Mallett mentioned: > >> On Thu, Apr 5, 2012 at 12:28, Doug Barton wrote: >> > But as always, if someone comes up with an actual problem related to t= he >> > [BIND] update I'm happy to address it. >> >> The MIPS tinderbox build is currently broken. =A0This is related to a >> binutils bug for which a workaround was committed to head. =A0For some >> reason, the workaround seems to be sufficient for universe done >> independently, but not the tinderbox. >> >> There is a fix for binutils which is known, but the fix was made after >> the GPLv3 switch. =A0HJ Lu, who made the change, has been contacted >> about making the change available under GPLv2, but so far has not >> replied. =A0Independently, jchandra@ is investigating the problem in >> binutils and attempting to come up with a fix from scratch. >> > > What I still cannot understand is that why my workaround doesn't work > on tinderbox and for some people builds. =A0It should disable linking > agains libasn1 for libkafs5 completely on mips which is the source of > the problem in libkafs5. The issue is that two fields in the libkafs5 dynamic symbol table is un-initialized, whether the build crashes seem to depend on the value in fields, if you are lucky the field does not have values that crash the build. [ I'm still looking at this, here's the progress so far] The asn1 library has a export map containing 'global: *', this exports two symbols _fdata and _ftext versioned. When libkafs5 is linked, these symbols confuse the bfd code and the entries corresponding to theses (index 13, and 16) are left un-initialized. One workaround I see is to change the export 'global: *' in kerberos5/lib/libasn1 to the actual list of exported symbols. JC.