From patchwork Mon Jan 18 20:38:40 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fabrice Fontaine X-Patchwork-Id: 1428304 Return-Path: X-Original-To: incoming-buildroot@patchwork.ozlabs.org Delivered-To: patchwork-incoming-buildroot@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=busybox.net (client-ip=140.211.166.138; helo=whitealder.osuosl.org; envelope-from=buildroot-bounces@busybox.net; receiver=) Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20161025 header.b=DQ6l1eD0; dkim-atps=neutral Received: from whitealder.osuosl.org (smtp1.osuosl.org [140.211.166.138]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4DKNvD08KNz9sWS for ; Tue, 19 Jan 2021 07:39:51 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id 5698C8643F; Mon, 18 Jan 2021 20:39:50 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from whitealder.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 8UfilcxbMv1q; Mon, 18 Jan 2021 20:39:48 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by whitealder.osuosl.org (Postfix) with ESMTP id 61D1586420; Mon, 18 Jan 2021 20:39:48 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from silver.osuosl.org (smtp3.osuosl.org [140.211.166.136]) by ash.osuosl.org (Postfix) with ESMTP id C396C1BF2F2 for ; Mon, 18 Jan 2021 20:39:43 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by silver.osuosl.org (Postfix) with ESMTP id BFA11204E9 for ; Mon, 18 Jan 2021 20:39:43 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from silver.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 1xARlgmcymlS for ; Mon, 18 Jan 2021 20:39:40 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-wm1-f50.google.com (mail-wm1-f50.google.com [209.85.128.50]) by silver.osuosl.org (Postfix) with ESMTPS id 452BB204E3 for ; Mon, 18 Jan 2021 20:39:40 +0000 (UTC) Received: by mail-wm1-f50.google.com with SMTP id r4so14839475wmh.5 for ; Mon, 18 Jan 2021 12:39:40 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=flYTYwUjo32LkXHVUm5ZLMoDyi90dXkUAJavtufmpu0=; b=DQ6l1eD0RzxGUQ2VPpuYvOHqK3W/y3JqEeWTXflfjeWHvI157679yuk/JR2Yfx2j5T NrvK3U9nBlm2S2npEVOMI1rwpazAoQiUuhYlz0cY06ONMklXaJwT0YhZU0gnetGCsX96 r6Wm/QOS0xEkqFyKxrjNVfNVJH38vg+S2suk7w9bOIxwWqRPxA6eVcAcTIzjxAoiT2zZ FC8CN8aL7G6Dv4kkomiy37YfYOuhUtBq4CrmoXuSEnue11dQnSgHp1yvDyREq9UqYL8g 75XxsD3ViawJCzlaiBzWE2vHa64RiNMwvchXY24xN+AdoUZDROjUEjAtLBMNywowySs0 1SLQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=flYTYwUjo32LkXHVUm5ZLMoDyi90dXkUAJavtufmpu0=; b=ZYfEAYa6QjVaIeIRQFVY3AY9wU5B/kC6NxY+/gW0TUx4WZZ/qpVldRLo76ykAXcrp7 YYmKPa2FNq9tyYk3wfhYOZkE8Xab285H0dF3z7jz41MMcgSST4Ye/8U67GxZW7+tuQvn nXxvyCCWZg+jMF1Eb3jBT2pvie0gfReZQ+LSlDE8vvg4sXPkg3T/8tKhLiSiy3WGKaIW VJzCa13yQAohX9VXws7nZ514OjkFzKrno25A9YVpAp0OIZUdLBi/mzkgvqYXjbhi3dr+ jCtJdJz0eE6QggOvJRH53w8JUpWJwf75zgZtWrqXomhHbTXCsjfL8u5TQlYDLeh+0o3F c4kQ== X-Gm-Message-State: AOAM5320A4QFK1A5tCrHdnrBWh+SlV5kOowpReXn5FHRL01wHIu25zzJ 963PqZ7TaLXNgq2wh3SBfPxA87Kx+GipdA== X-Google-Smtp-Source: ABdhPJznv5qvfZL6qDnuJNBQHJSWrH/ntDJ5fXN+w9nZouma1FhkBUNJOvwW9dOp17X3l+VsuuStKQ== X-Received: by 2002:a1c:998a:: with SMTP id b132mr1046252wme.40.1611002378555; Mon, 18 Jan 2021 12:39:38 -0800 (PST) Received: from kali.home (2a01cb0881b76d00c2afd0dfa851d2b9.ipv6.abo.wanadoo.fr. [2a01:cb08:81b7:6d00:c2af:d0df:a851:d2b9]) by smtp.gmail.com with ESMTPSA id n11sm36482069wra.9.2021.01.18.12.39.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 18 Jan 2021 12:39:37 -0800 (PST) From: Fabrice Fontaine To: buildroot@buildroot.org Date: Mon, 18 Jan 2021 21:38:40 +0100 Message-Id: <20210118203842.657013-1-fontaine.fabrice@gmail.com> X-Mailer: git-send-email 2.29.2 MIME-Version: 1.0 Subject: [Buildroot] [PATCH 1/3] Revert "package/coremark-pro: add dependency on threads" X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.29 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Chris Packham , Fabrice Fontaine Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" This reverts commit 6627cea610ee11cbc02649c9b12cbe0b2b8e83b6. Signed-off-by: Fabrice Fontaine --- package/coremark-pro/Config.in | 5 ----- 1 file changed, 5 deletions(-) diff --git a/package/coremark-pro/Config.in b/package/coremark-pro/Config.in index b0bf16f66f..dd6821056c 100644 --- a/package/coremark-pro/Config.in +++ b/package/coremark-pro/Config.in @@ -1,13 +1,8 @@ config BR2_PACKAGE_COREMARK_PRO bool "coremark-pro" depends on BR2_USE_MMU # perl uses fork() - depends on BR2_TOOLCHAIN_HAS_THREADS select BR2_PACKAGE_PERL help CoreMark-PRO is a comprehensive, advanced processor benchmark. https://www.eembc.org/coremark-pro/ - -comment "coremark-pro needs a toolchain w/ threads" - depends on BR2_USE_MMU - depends on !BR2_TOOLCHAIN_HAS_THREADS From patchwork Mon Jan 18 20:38:41 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fabrice Fontaine X-Patchwork-Id: 1428303 Return-Path: X-Original-To: incoming-buildroot@patchwork.ozlabs.org Delivered-To: patchwork-incoming-buildroot@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=busybox.net (client-ip=140.211.166.137; helo=fraxinus.osuosl.org; envelope-from=buildroot-bounces@busybox.net; receiver=) Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20161025 header.b=QGRk3F+G; dkim-atps=neutral Received: from fraxinus.osuosl.org (smtp4.osuosl.org [140.211.166.137]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4DKNv63rnZz9sVr for ; Tue, 19 Jan 2021 07:39:46 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by fraxinus.osuosl.org (Postfix) with ESMTP id DE69584403; Mon, 18 Jan 2021 20:39:44 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from fraxinus.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id OgA2sZ-kxJXk; Mon, 18 Jan 2021 20:39:44 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by fraxinus.osuosl.org (Postfix) with ESMTP id 38B2584465; Mon, 18 Jan 2021 20:39:44 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from hemlock.osuosl.org (smtp2.osuosl.org [140.211.166.133]) by ash.osuosl.org (Postfix) with ESMTP id 6C3251BF2F2 for ; Mon, 18 Jan 2021 20:39:42 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by hemlock.osuosl.org (Postfix) with ESMTP id 6487586F98 for ; Mon, 18 Jan 2021 20:39:42 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from hemlock.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Dycj20fEOtDg for ; Mon, 18 Jan 2021 20:39:42 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-wm1-f53.google.com (mail-wm1-f53.google.com [209.85.128.53]) by hemlock.osuosl.org (Postfix) with ESMTPS id ACA5486F90 for ; Mon, 18 Jan 2021 20:39:41 +0000 (UTC) Received: by mail-wm1-f53.google.com with SMTP id v184so10639704wma.1 for ; Mon, 18 Jan 2021 12:39:41 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=BGYfv8+igjwEGS9Xt4cXBzVUgaG5NyF2127BN5huNNc=; b=QGRk3F+G5Yzpu4R4qlDR8H6kYgSCtMAxbM5nIUt5m4lTt5hBQIt65MzTY9V+Bcofik OxVrd19WRU1f3hCKAUKJFjrtaVEXEOGTlCXC6opigH3Gz7V5bupTMULnWTG3ZglIh9Gq QsKb9nntrug8A3yGmS4M+E1PZ7s4LX5yreGChvvF++Y1VMF1OoqiNxo1y8+UULx8i7bE l0gh+9LTLYrm7hOezB93xNM4Vc0xkoLxTZ9c9YG8Ev9Q4O+CajYMs3Nn0zB3Ss79OHTP oIsUukperVR2Mn/V3PrQSdE4jmsiknlCuF+vtJtL5HBRYIHaHkZ4c60J42XPNEkTYZ0h kWnw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=BGYfv8+igjwEGS9Xt4cXBzVUgaG5NyF2127BN5huNNc=; b=s0B/J7SURssvYx1kXVlvT4sav1qkChTx7B/rAdURfAvvs1rCE/157BxNhNlbjdAGnf muXpttZwkWbZouPWRqsbmN5JO9Jzp31SHKF+gX13cMAH7+zxkNBDvYAGq0YImDGqnpLv BOSQaqRXhiN3p2wdvUw1RE9GpMFatixhFTTjTTWf94wLVposeuIy4PwJ5j/fgU5HnKmu hJILHx2dAg3uyZFfT1hQi92+o61XBv6V19Nwa3ruWGHo6tr2I0XP0z7aMo9B/T3ouvXz Uv+02rPRLt2Dnk8TTCnjMkTIXWOzDTICgjMZGsblqzQ8Jlakn/1XZBOEYG3Ul6hEAbPO fhnQ== X-Gm-Message-State: AOAM532s1tI7OKVChJkurvv07WsB8033isyG43KQKPJs8XuKOgSSfeft Ck8xQOuxzQnF4dPh2l6Le/NoRKQSpTpB6g== X-Google-Smtp-Source: ABdhPJzkuOiuQLESYP9tj1PnbKh+mt+/IOddmSib4EVBD5ycRfFX+KJ0CNXc/O9cisnvSnCp++Q36g== X-Received: by 2002:a1c:6484:: with SMTP id y126mr994415wmb.45.1611002379818; Mon, 18 Jan 2021 12:39:39 -0800 (PST) Received: from kali.home (2a01cb0881b76d00c2afd0dfa851d2b9.ipv6.abo.wanadoo.fr. [2a01:cb08:81b7:6d00:c2af:d0df:a851:d2b9]) by smtp.gmail.com with ESMTPSA id n11sm36482069wra.9.2021.01.18.12.39.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 18 Jan 2021 12:39:39 -0800 (PST) From: Fabrice Fontaine To: buildroot@buildroot.org Date: Mon, 18 Jan 2021 21:38:41 +0100 Message-Id: <20210118203842.657013-2-fontaine.fabrice@gmail.com> X-Mailer: git-send-email 2.29.2 In-Reply-To: <20210118203842.657013-1-fontaine.fabrice@gmail.com> References: <20210118203842.657013-1-fontaine.fabrice@gmail.com> MIME-Version: 1.0 Subject: [Buildroot] [PATCH 2/3] package/coremark-pro: fix build without threads X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.29 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Chris Packham , Fabrice Fontaine Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" Signed-off-by: Fabrice Fontaine --- package/coremark-pro/coremark-pro.mk | 23 +++++++++++++++++++++-- 1 file changed, 21 insertions(+), 2 deletions(-) diff --git a/package/coremark-pro/coremark-pro.mk b/package/coremark-pro/coremark-pro.mk index fdcfda33e8..f69279d5cd 100644 --- a/package/coremark-pro/coremark-pro.mk +++ b/package/coremark-pro/coremark-pro.mk @@ -10,13 +10,32 @@ COREMARK_PRO_LICENSE = Apache-2.0 COREMARK_PRO_LICENSE_FILES = LICENSE.md COREMARK_PRO_DEPENDENCIES = perl +COREMARK_PRO_LDFLAGS = -lm + ifeq ($(BR2_ENDIAN),"BIG") -COREMARK_PRO_MAKE_OPTS += PLATFORM_DEFINES='EE_BIG_ENDIAN=1 EE_LITTLE_ENDIAN=0' +COREMARK_PRO_DEFINES += \ + EE_BIG_ENDIAN=1 \ + EE_LITTLE_ENDIAN=0 +else +COREMARK_PRO_DEFINES += \ + EE_BIG_ENDIAN=0 \ + EE_LITTLE_ENDIAN=1 +endif + +ifeq ($(BR2_TOOLCHAIN_HAS_THREADS),y) +COREMARK_PRO_DEFINES += \ + USE_NATIVE_PTHREAD=1 \ + USE_SINGLE_CONTEXT=0 +COREMARK_PRO_LDFLAGS += -lpthread else -COREMARK_PRO_MAKE_OPTS += PLATFORM_DEFINES='EE_BIG_ENDIAN=0 EE_LITTLE_ENDIAN=1' +COREMARK_PRO_DEFINES += \ + USE_NATIVE_PTHREAD=0 \ + USE_SINGLE_CONTEXT=1 endif COREMARK_PRO_MAKE_OPTS += \ + LINKER_LAST="$(COREMARK_PRO_LDFLAGS)" \ + PLATFORM_DEFINES="$(COREMARK_PRO_DEFINES)" \ TARGET=linux$(if $(BR2_ARCH_IS_64),64) \ EXE= From patchwork Mon Jan 18 20:38:42 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fabrice Fontaine X-Patchwork-Id: 1428305 Return-Path: X-Original-To: incoming-buildroot@patchwork.ozlabs.org Delivered-To: patchwork-incoming-buildroot@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=busybox.net (client-ip=140.211.166.133; helo=hemlock.osuosl.org; envelope-from=buildroot-bounces@busybox.net; receiver=) Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20161025 header.b=Jtsuq7nU; dkim-atps=neutral Received: from hemlock.osuosl.org (smtp2.osuosl.org [140.211.166.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4DKNvG02Qmz9sWL for ; Tue, 19 Jan 2021 07:39:53 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by hemlock.osuosl.org (Postfix) with ESMTP id 7F87386F85; Mon, 18 Jan 2021 20:39:51 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from hemlock.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 3cJY0d8rPfLn; Mon, 18 Jan 2021 20:39:49 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by hemlock.osuosl.org (Postfix) with ESMTP id 6F50686F90; Mon, 18 Jan 2021 20:39:49 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from whitealder.osuosl.org (smtp1.osuosl.org [140.211.166.138]) by ash.osuosl.org (Postfix) with ESMTP id 4E6991BF2F2 for ; Mon, 18 Jan 2021 20:39:45 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id 4B0D386418 for ; Mon, 18 Jan 2021 20:39:45 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from whitealder.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id m1YdBCWNV3X3 for ; Mon, 18 Jan 2021 20:39:43 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-wm1-f52.google.com (mail-wm1-f52.google.com [209.85.128.52]) by whitealder.osuosl.org (Postfix) with ESMTPS id E41B686420 for ; Mon, 18 Jan 2021 20:39:42 +0000 (UTC) Received: by mail-wm1-f52.google.com with SMTP id r4so14839560wmh.5 for ; Mon, 18 Jan 2021 12:39:42 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=UUAPKOP+cF41B/dzloH7H+QM5shRVdqAPAISj9WqAHQ=; b=Jtsuq7nUaztR+uSQUse/E3/cCj30yiHh4wLNmHI/rRFJcdEB/cmOp6J7oQfe8o81Vz C5tRa3St5KILXyCMEc075IkJLvzrknOsYLYXfZT2HoBhml/Pogt9nlTqVqCcVSI1Azgm 4qSIJ0xPiqj5EgT37Z6t2PTr1WiKwm33za5Ghq/dqd6InfWYj8US+HSvihhKi8ddZPds bTZqkH9WwUzTIGKErXd9zStH7lFFay9rprrJcQ53iS/YNoWhSiOvELvXLcsJgj1sfvmq 1zB8f9I3KHtWGKlnLOt14kobOPxJ9D1e4ub3yQpVAeQn1tcHe55hBZmhmATJRF4bfy3M jmxQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=UUAPKOP+cF41B/dzloH7H+QM5shRVdqAPAISj9WqAHQ=; b=Sz3aWEN7abCGTs6y8PTs5RsH/1KWOM9OcS1MbywZdgjPixwVH92O8DD95x+kdXEYmT miH3/Dwdrc7vDXYtJwzObn+y6z1bAxe7zskol11QUK8Etg/TxrzzYabCSp4IioTNbtHA iYMqL7rqhGptwsroCzMpmp/tG7UrJ0hZMGpThGPPPQq1QkxiDIC3dIaZjzrvxur+ynVT pYmCgmtcVWPeIoZ2LxncHL3cfKz4Ic8LGYU88Lyj2Q9XWYnMHs9NYuEZ0rHGvjU5RtvQ PlDUPxek8tttaER28aIzQCs5Tb5tHbtLdnYp27GTcyFrvRSsul0NL27AVGqmSlaIlN3S 8aaQ== X-Gm-Message-State: AOAM530yxbGNmUGv492LSUcals3cJsW0YjX1n4FzRn5tdYpabNGwoG/s ZKp41uK/TAEwo6KpgbL2ML2AJVQsjiM8Lg== X-Google-Smtp-Source: ABdhPJxWTuSndgM93TRYl/2AP+be4VhoCyxDYyHj8rXi52M3S7F+UMxZLScnT5bt7ys+TG659uRbzg== X-Received: by 2002:a1c:2945:: with SMTP id p66mr1024650wmp.110.1611002381083; Mon, 18 Jan 2021 12:39:41 -0800 (PST) Received: from kali.home (2a01cb0881b76d00c2afd0dfa851d2b9.ipv6.abo.wanadoo.fr. [2a01:cb08:81b7:6d00:c2af:d0df:a851:d2b9]) by smtp.gmail.com with ESMTPSA id n11sm36482069wra.9.2021.01.18.12.39.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 18 Jan 2021 12:39:40 -0800 (PST) From: Fabrice Fontaine To: buildroot@buildroot.org Date: Mon, 18 Jan 2021 21:38:42 +0100 Message-Id: <20210118203842.657013-3-fontaine.fabrice@gmail.com> X-Mailer: git-send-email 2.29.2 In-Reply-To: <20210118203842.657013-1-fontaine.fabrice@gmail.com> References: <20210118203842.657013-1-fontaine.fabrice@gmail.com> MIME-Version: 1.0 Subject: [Buildroot] [PATCH 3/3] package/coremark-pro: fix build with uclibc-ng X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.29 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Chris Packham , Fabrice Fontaine Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" Fix the following linking error with uClibc-ng: /nvme/rc-buildroot-test/scripts/instance-1/output-1/host/bin/arc-buildroot-linux-uclibc-gcc -o/nvme/rc-buildroot-test/scripts/instance-1/output-1/build/coremark-pro-1.1.2743/builds/linux/gcc/bin/cjpeg-rose7-preset cjpeg-rose7-preset.o /nvme/rc-buildroot-test/scripts/instance-1/output-1/build/coremark-pro-1.1.2743/builds/linux/gcc/obj/bench/consumer_v2/cjpeg/*.o /nvme/rc-buildroot-test/scripts/instance-1/output-1/build/coremark-pro-1.1.2743/builds/linux/gcc/obj/mith.a -lm -lpthread -lrt /nvme/rc-buildroot-test/scripts/instance-1/output-1/host/lib/gcc/arc-buildroot-linux-uclibc/10.2.0/../../../../arc-buildroot-linux-uclibc/bin/ld: /nvme/rc-buildroot-test/scripts/instance-1/output-1/host/lib/gcc/arc-buildroot-linux-uclibc/10.2.0/libgcc.a(unwind-dw2-fde-dip.o): in function `_Unwind_Find_FDE': /nvme/rc-buildroot-test/scripts/instance-1/output-1/build/host-gcc-final-arc-2020.09-release/build/arc-buildroot-linux-uclibc/libgcc/../../../libgcc/unwind-dw2-fde-dip.c:469: undefined reference to `dl_iterate_phdr' /nvme/rc-buildroot-test/scripts/instance-1/output-1/host/lib/gcc/arc-buildroot-linux-uclibc/10.2.0/../../../../arc-buildroot-linux-uclibc/bin/ld: /nvme/rc-buildroot-test/scripts/instance-1/output-1/build/host-gcc-final-arc-2020.09-release/build/arc-buildroot-linux-uclibc/libgcc/../../../libgcc/unwind-dw2-fde-dip.c:469: undefined reference to `dl_iterate_phdr' /nvme/rc-buildroot-test/scripts/instance-1/output-1/host/lib/gcc/arc-buildroot-linux-uclibc/10.2.0/../../../../arc-buildroot-linux-uclibc/bin/ld: GOT and PLT relocations cannot be fixed with a non dynamic linker /nvme/rc-buildroot-test/scripts/instance-1/output-1/host/lib/gcc/arc-buildroot-linux-uclibc/10.2.0/../../../../arc-buildroot-linux-uclibc/bin/ld: final link failed: bad value collect2: error: ld returned 1 exit status /nvme/rc-buildroot-test/scripts/instance-1/output-1/build/coremark-pro-1.1.2743/workloads/cjpeg-rose7-preset//Makefile:65: recipe for target '/nvme/rc-buildroot-test/scripts/instance-1/output-1/build/coremark-pro-1.1.2743/builds/linux/gcc/bin/cjpeg-rose7-preset' failed Since uClibc-ng 1.0.18 a circular dependency between libc and libgcc exist, when static linking is used. It can be resolved by the compiler when -static is correctly passed in the linking step. So use TARGET_LDFLAGS to pass LDFLAGS Fixes: - http://autobuild.buildroot.org/results/ca86624b09fed961d2b9086fee8b2029845746ea Signed-off-by: Fabrice Fontaine --- package/coremark-pro/coremark-pro.mk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package/coremark-pro/coremark-pro.mk b/package/coremark-pro/coremark-pro.mk index f69279d5cd..515b8eafbd 100644 --- a/package/coremark-pro/coremark-pro.mk +++ b/package/coremark-pro/coremark-pro.mk @@ -10,7 +10,7 @@ COREMARK_PRO_LICENSE = Apache-2.0 COREMARK_PRO_LICENSE_FILES = LICENSE.md COREMARK_PRO_DEPENDENCIES = perl -COREMARK_PRO_LDFLAGS = -lm +COREMARK_PRO_LDFLAGS = $(TARGET_LDFLAGS) -lm ifeq ($(BR2_ENDIAN),"BIG") COREMARK_PRO_DEFINES += \