From owner-freebsd-toolchain@freebsd.org Fri Nov 20 22:18:12 2015 Return-Path: Delivered-To: freebsd-toolchain@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 335F7A347CE; Fri, 20 Nov 2015 22:18:12 +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 D97D815C8; Fri, 20 Nov 2015 22:18:11 +0000 (UTC) (envelope-from dim@FreeBSD.org) Received: from [IPv6:2001:7b8:3a7::454a:18fd:5b4d:d49] (unknown [IPv6:2001:7b8:3a7:0:454a:18fd:5b4d:d49]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by tensor.andric.com (Postfix) with ESMTPSA id AB2271CC27; Fri, 20 Nov 2015 23:18:09 +0100 (CET) Subject: Re: lang/ruby2* build failure on arm Mime-Version: 1.0 (Mac OS X Mail 9.1 \(3096.5\)) Content-Type: multipart/signed; boundary="Apple-Mail=_708D8047-CBEA-48C1-BAB2-B34E0AD72A98"; protocol="application/pgp-signature"; micalg=pgp-sha1 X-Pgp-Agent: GPGMail 2.6b2 From: Dimitry Andric In-Reply-To: <20151120220210.GC48644@darkthrone.kvedulv.de> Date: Fri, 20 Nov 2015 23:18:09 +0100 Cc: freebsd-arm@FreeBSD.org, freebsd-toolchain@FreeBSD.org Message-Id: <903D1E22-D3E4-4DDA-BBF3-F8DDFAE91B56@FreeBSD.org> References: <20151120165446.GB48644@darkthrone.kvedulv.de> <963F064D-2B30-40E4-9F09-31C9121CE80A@FreeBSD.org> <20151120220210.GC48644@darkthrone.kvedulv.de> To: Michael Moll X-Mailer: Apple Mail (2.3096.5) X-BeenThere: freebsd-toolchain@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Maintenance of FreeBSD's integrated toolchain List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 20 Nov 2015 22:18:12 -0000 --Apple-Mail=_708D8047-CBEA-48C1-BAB2-B34E0AD72A98 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii On 20 Nov 2015, at 23:02, Michael Moll wrote: >=20 > On Fri, Nov 20, 2015 at 06:04:53PM +0100, Dimitry Andric wrote: >>> In r384323 (ports) swills@ fixed the build of the lang/ruby2* ports, >>> however, on a recent CURRENT on armv6hf I'm getting: >>> checking for setjmp type... configure: error: _setjmp is not = available >>=20 >> Check the config.log file for further details. Why does the = configure >> script conclude that _setjmp is not available? >=20 > The whole file is available as = http://space.kvedulv.de/ruby_arm_config.log, the output > from the specific test is: >=20 > conftest.c:340:20: error: __builtin_longjmp is not supported for the = current target > void t(void) {__builtin_longjmp((void **) jb, 1);} > ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > conftest.c:341:29: error: __builtin_setjmp is not supported for the = current target > int jump(void) {(void)(__builtin_setjmp((void **) jb) ? 1 : = 0); return 0;} > ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Right, but that is not the real problem. Earlier on, the configure script is checking for the regular _setjmp(): configure:16921: checking for _setjmp configure:16921: cc -o conftest -O -pipe -fno-strict-aliasing = -I/usr/local/include -fstack-protector conftest.c -lcrypt -lm = -lpthread -L/usr/local/lib >&5 conftest.c:228:6: warning: declaration of built-in function '_setjmp' = requires inclusion of the header [-Wbuiltin-requires-header] char _setjmp (); ^ conftest.c:239:17: error: too few arguments to function call, expected = 1, have 0 return _setjmp (); ~~~~~~~~~^ 1 warning and 1 error generated. configure:16921: $? =3D 1 configure: failed program was: As to why GNU configure tries to call this without arguments, is beyond me. To work around its brokenness, I would set ac_cv_func__setjmp to yes before calling configure. Or attempt to unbreak autoconf, but that is a truly Herculean task. :-) -Dimitry --Apple-Mail=_708D8047-CBEA-48C1-BAB2-B34E0AD72A98 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.28 iEYEARECAAYFAlZPnCEACgkQsF6jCi4glqOOpwCeLdlgHZmDgIi9XZtNgnUIsQ20 LwYAoPqY3kVpscCXS1HDJ8JQcSDEXDmS =pAtY -----END PGP SIGNATURE----- --Apple-Mail=_708D8047-CBEA-48C1-BAB2-B34E0AD72A98--