From owner-freebsd-ports@freebsd.org Thu Sep 1 09:07:43 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 1846CBCB839 for ; Thu, 1 Sep 2016 09:07:43 +0000 (UTC) (envelope-from dim@FreeBSD.org) Received: from tensor.andric.com (tensor.andric.com [IPv6:2001:7b8:3a7:1:2d0:b7ff:fea0:8c26]) (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 D0989BE8; Thu, 1 Sep 2016 09:07:42 +0000 (UTC) (envelope-from dim@FreeBSD.org) Received: from [IPv6:2a03:fc02:2:1:999e:90b1:19a8:d87a] (unknown [IPv6:2a03:fc02:2:1:999e:90b1:19a8:d87a]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by tensor.andric.com (Postfix) with ESMTPSA id 2919914A5; Thu, 1 Sep 2016 11:07:39 +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=_A48568E9-BD4C-46AE-B4E2-312FFC2BF604"; protocol="application/pgp-signature"; micalg=pgp-sha1 X-Pgp-Agent: GPGMail 2.6.1 From: Dimitry Andric In-Reply-To: <02d2d44ad94044360e05d780ef3c1641@dougbarton.us> Date: Thu, 1 Sep 2016 11:07:25 +0200 Cc: Baptiste Daroussin , Bernard Spil , FreeBSD Ports Message-Id: References: <18b931f3-2b78-0fdf-c9ba-ba3c107a4f65@dougbarton.us> <02d2d44ad94044360e05d780ef3c1641@dougbarton.us> To: Doug Barton 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 09:07:43 -0000 --Apple-Mail=_A48568E9-BD4C-46AE-B4E2-312FFC2BF604 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii On 31 Aug 2016, at 19:03, Doug Barton wrote: >=20 > August 31, 2016 12:37 AM, "Bernard Spil" wrote: >> On 2016-08-30 17:45, Doug Barton wrote: >>=20 >>> Since the last commit to the mariadb10* ports the resulting binaries >>> dump core on 9.3-RELEASE-p43, even for a simple --help option. I am >>> assuming that is not the intended result .... >>> Doug >>=20 >> Hi Doug, >>=20 >> Nope, that is not intended. Assume this is the 10.0.27 update? I did = build them on 9.3 but have not >> checked the resulting binaries... Will need some time to investigate! >>=20 >> = https://brnrd.eu/poudriere/build.html?mastername=3D93amd64-svn&build=3D201= 6-08-29_20h14m28s >=20 > Thanks Bernard. >=20 > It turns out that the actual problem was binutils. I backed up several = revisions of mariadb, past the previous working version, and had the = same symptoms. Then I started on the deps that had changed at the same = time, and fortunately I guessed right on the first one. >=20 > Backing up to -r{2016-08-25} on binutils got mariadb working with the = latest version. 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. -Dimitry [1] = https://sourceware.org/git/gitweb.cgi?p=3Dbinutils-gdb.git;a=3Dcommit;h=3D= 26e3a0c9ba4a8376fdf9f898637919d144d8b1d8 --Apple-Mail=_A48568E9-BD4C-46AE-B4E2-312FFC2BF604 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 iEYEARECAAYFAlfH79sACgkQsF6jCi4glqM4WACfRXS2YCY4LXxBebTZ0IhBY+jX oU4An3chPvU/2DKzsxOSwKUJFbyJFtZJ =R0Ey -----END PGP SIGNATURE----- --Apple-Mail=_A48568E9-BD4C-46AE-B4E2-312FFC2BF604--