From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dan.rpsys.net (5751f4a1.skybroadband.com [87.81.244.161]) by mail.openembedded.org (Postfix) with ESMTP id E626D72A49 for ; Tue, 7 Apr 2015 14:53:18 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by dan.rpsys.net (8.14.4/8.14.4/Debian-4.1ubuntu1) with ESMTP id t37ErFYU017740; Tue, 7 Apr 2015 15:53:18 +0100 Received: from dan.rpsys.net ([127.0.0.1]) by localhost (dan.rpsys.net [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 0f2AKlzUpx09; Tue, 7 Apr 2015 15:53:18 +0100 (BST) Received: from [192.168.3.10] ([192.168.3.10]) (authenticated bits=0) by dan.rpsys.net (8.14.4/8.14.4/Debian-4.1ubuntu1) with ESMTP id t37Er41o017711 (version=TLSv1/SSLv3 cipher=AES128-GCM-SHA256 bits=128 verify=NOT); Tue, 7 Apr 2015 15:53:16 +0100 Message-ID: <1428418384.14020.468.camel@linuxfoundation.org> From: Richard Purdie To: openembedded-core Date: Tue, 07 Apr 2015 15:53:04 +0100 X-Mailer: Evolution 3.12.10-0ubuntu1~14.10.1 Mime-Version: 1.0 Subject: [RFC PATCH] libunwind: Build with gold to avoid build failures X-BeenThere: openembedded-core@lists.openembedded.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: Patches and discussions about the oe-core layer List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 07 Apr 2015 14:53:19 -0000 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit The library fails to build with binutils 2.25 and standard ld. This issue is fixed in gcc 5 with no plans to backport to gcc 4. Easiest workaround for now is to use gold as the linker for the library since gold does not have the issue. The bug is x86 only. Signed-off-by: Richard Purdie diff --git a/meta/recipes-support/libunwind/libunwind.inc b/meta/recipes-support/libunwind/libunwind.inc index 2a65631..74afba1 100644 --- a/meta/recipes-support/libunwind/libunwind.inc +++ b/meta/recipes-support/libunwind/libunwind.inc @@ -23,6 +23,9 @@ LIBATOMICS_armv5 = "-latomic_ops" LIBATOMICS_armv4 = "-latomic_ops" LIBATOMICS ?= "" +LDFLAGS_append_x86 = " -fuse-ld=gold" +LDFLAGS_append_x86-64 = " -fuse-ld=gold" + DEPENDS += "${DEPLIBATOMICS}" DEPLIBATOMICS_armv5 = "libatomics-ops" DEPLIBATOMICS_armv4 = "libatomics-ops"