From owner-freebsd-ports@freebsd.org Thu Sep 1 20:50:29 2016 Return-Path: Delivered-To: freebsd-ports@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 668ADBCC87A for ; Thu, 1 Sep 2016 20:50:29 +0000 (UTC) (envelope-from dim@FreeBSD.org) Received: from tensor.andric.com (tensor.andric.com [87.251.56.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "tensor.andric.com", Issuer "COMODO RSA Domain Validation Secure Server CA" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id DE2C0E7E; Thu, 1 Sep 2016 20:50:28 +0000 (UTC) (envelope-from dim@FreeBSD.org) Received: from [IPv6:2001:7b8:3a7::98e3:68d4:ca50:7a51] (unknown [IPv6:2001:7b8:3a7:0:98e3:68d4:ca50:7a51]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by tensor.andric.com (Postfix) with ESMTPSA id BE06514F6; Thu, 1 Sep 2016 22:50:25 +0200 (CEST) Subject: Re: mariadb10* ports broken on 9.x since last commit Mime-Version: 1.0 (Mac OS X Mail 9.3 \(3124\)) Content-Type: multipart/signed; boundary="Apple-Mail=_EF92F6FC-6CB3-40E4-A30B-14E173A27417"; protocol="application/pgp-signature"; micalg=pgp-sha1 X-Pgp-Agent: GPGMail 2.6.1 From: Dimitry Andric In-Reply-To: Date: Thu, 1 Sep 2016 22:50:18 +0200 Cc: Baptiste Daroussin , Doug Barton , FreeBSD Ports , Konstantin Belousov Message-Id: <24C4A5AC-1EF1-49E0-A84A-86E630EE97D8@FreeBSD.org> References: <18b931f3-2b78-0fdf-c9ba-ba3c107a4f65@dougbarton.us> <02d2d44ad94044360e05d780ef3c1641@dougbarton.us> To: Bernard Spil X-Mailer: Apple Mail (2.3124) X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 01 Sep 2016 20:50:29 -0000 --Apple-Mail=_EF92F6FC-6CB3-40E4-A30B-14E173A27417 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=us-ascii On 01 Sep 2016, at 20:37, Bernard Spil wrote: > > On 2016-09-01 11:07, Dimitry Andric wrote: > > On 31 Aug 2016, at 19:03, Doug Barton wrote: ... > > Bisecting showed this was introduced in binutils commit 26e3a0c [1], > > which turns on .init_array/.fini_array support by default. It makes > > most C++ executables crash at startup, on 9.x, since support for this > > was not fully merged back to stable/9. > > > > I think Baptiste is working on a fix. It is probably best to configure > > binutils on 9.x with --disable-initfini-array. ... > Thanks for the explanation. I thought that it was fixed from your > earlier mail. Eh, which one? > So it is still broken at runtime on 9.x... > > Is there a PR on bugs.freebsd.org already documenting this? I don't know. I understood from Kostik that it would need r232832, but apparently this breaks the ABI? It is probably easier to work around this by configuring the binutils port so it does not emit .init_array/.fini_array sections. -Dimitry [1] https://svnweb.freebsd.org/base?view=revision&revision=232832 --Apple-Mail=_EF92F6FC-6CB3-40E4-A30B-14E173A27417 Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename=signature.asc Content-Type: application/pgp-signature; name=signature.asc Content-Description: Message signed with OpenPGP using GPGMail -----BEGIN PGP SIGNATURE----- Version: GnuPG/MacGPG2 v2.0.30 iEYEARECAAYFAlfIlJEACgkQsF6jCi4glqP7dgCfaJaMteyFOOmYbhnHPKzxG8NI m3MAn1mGBpDU7Pu+MeSB1/LlthQBSIV/ =utGC -----END PGP SIGNATURE----- --Apple-Mail=_EF92F6FC-6CB3-40E4-A30B-14E173A27417--