From patchwork Sun Sep 29 23:55:02 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Armin Kuster X-Patchwork-Id: 174698 Delivered-To: patch@linaro.org Received: by 2002:a92:7e96:0:0:0:0:0 with SMTP id q22csp6444522ill; Sun, 29 Sep 2019 16:56:35 -0700 (PDT) X-Google-Smtp-Source: APXvYqzJir19zsJ1T/NC6ERKHTXn8AGfRl3XqhTSanJ2xY1scyKa+lKkuOLfkkDVfWBZZ3iU3TP1 X-Received: by 2002:a63:6b49:: with SMTP id g70mr20624851pgc.92.1569801394844; Sun, 29 Sep 2019 16:56:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1569801394; cv=none; d=google.com; s=arc-20160816; b=Len/LkWgPLQLx86kh+bH9fn+iPyv+z8JLtunwM3DrH+SIIEBz1R2yrGhMmw5ne3C6+ FEScKUIH0U0SyejvOm0+NY01UuDQC/b948G/XpvR8IDD7+Z0VOU1jPrWiyonx2EJ80JM og6031/2rH9Xa7kGdZH7CprVdVVv4JLfBMispyrylA2Og1qAhIOlELEQm/TMkzO6j2iD SRrc+ROUhylPbRyxXmWg4PUkSYTMjqDorhha4DWAtJtMiVKwBiwr6mdjD9uoN7DVslTk A6iNjfD+hneCnxLm90mNh+tLKTiO5exELczG4/qqxtRMJzBwUcEM6Jos4B/wQ/AKMpqK 72LQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=errors-to:sender:content-transfer-encoding:mime-version :list-subscribe:list-help:list-post:list-archive:list-unsubscribe :list-id:precedence:subject:references:in-reply-to:message-id:date :to:from:dkim-signature:delivered-to; bh=AZ3cc95ga9xAdA12vRCrQQEvtNrLxdjgtlyLRWKDrqw=; b=NayFZrf3fuJiSN4931wcZ55AodnSn5edvDdR1pHE7IxgphFfCQf7BP8h/o597WGgh9 NmjfzVldfxRWlBfk4l+YR3CRuymm/E39alML6JuZ3lBQeZ85tFSmgG60HTH2r3GRA3yE MbPrSHOGIUp80bf8Ps6+w5xLUNLmiP1bn4+uF1VjsHMDInK9xZJbx5zprbq6hBHZ7+Qd xLe47rkH3F9SFOoVVRvR2+JfGupiD9x0fo44TIjMIJ8A5r4IebS9jLhJ4uFoeX26gSMo Nw4VhhKrrB7sDHK2w87om4Cc4dGsYZH6OpUHoHLPsumBauAh+HTJihgVMZhqI1vgqnYB sRqQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@gmail.com header.s=20161025 header.b=RX6LsLAf; spf=pass (google.com: best guess record for domain of openembedded-devel-bounces@lists.openembedded.org designates 140.211.169.62 as permitted sender) smtp.mailfrom=openembedded-devel-bounces@lists.openembedded.org; dmarc=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from mail.openembedded.org (mail.openembedded.org. [140.211.169.62]) by mx.google.com with ESMTP id b12si12203614pgt.61.2019.09.29.16.56.34; Sun, 29 Sep 2019 16:56:34 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of openembedded-devel-bounces@lists.openembedded.org designates 140.211.169.62 as permitted sender) client-ip=140.211.169.62; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@gmail.com header.s=20161025 header.b=RX6LsLAf; spf=pass (google.com: best guess record for domain of openembedded-devel-bounces@lists.openembedded.org designates 140.211.169.62 as permitted sender) smtp.mailfrom=openembedded-devel-bounces@lists.openembedded.org; dmarc=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from ec2-34-214-78-129.us-west-2.compute.amazonaws.com (localhost [127.0.0.1]) by mail.openembedded.org (Postfix) with ESMTP id 546077F2DE; Sun, 29 Sep 2019 23:56:12 +0000 (UTC) X-Original-To: openembedded-devel@lists.openembedded.org Delivered-To: openembedded-devel@lists.openembedded.org Received: from mail-pf1-f174.google.com (mail-pf1-f174.google.com [209.85.210.174]) by mail.openembedded.org (Postfix) with ESMTP id A87807F273 for ; Sun, 29 Sep 2019 23:55:20 +0000 (UTC) Received: by mail-pf1-f174.google.com with SMTP id b128so4515847pfa.1 for ; Sun, 29 Sep 2019 16:55:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:subject:date:message-id:in-reply-to:references; bh=zhL90kITEdvR3O8Xziu0SXEcH4fCgbnJ3ng0fWMkiX8=; b=RX6LsLAftDVkTVAWNY7nou2v9CiYraHQxIKADmvWmX7JIWKhw9GXBcgeqSLDVXs4kX +L3epV2keE2sG8FKsjHke2SuFnfrsJ4lDW42JCqDKC9X87cucR8A/sXTh4T9QWtbogQe EKbQ+VZWNebvbLBOXvKUbiM3Vm0tz/jAg/5gXnsj/6TAwuChOMIA4iqRMDbVYB+3niLV uZEA7BLUmnx/11Z6ftvSsZ/ehr0rRWVYcOwfTXE5TjiBjrFmjdHgRrKqhOHn6NGl4zmJ kyhgb0NDrWJvP341kax4UWgJWVwr77c566a4gDUM3fGdeXcKj/0IghLDVzZwFEnaVgcJ j4Og== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id:in-reply-to :references; bh=zhL90kITEdvR3O8Xziu0SXEcH4fCgbnJ3ng0fWMkiX8=; b=M6Vp1H4H0t1FZy1UsXfZjwGZ8PA/Z5U9boXBsaR0W9mq3y1nuiYaAUBe0tnnvCjSnU 1gXXyHKgG0DortR2go5Wi3sUST4FaMSZEZdHWEwZTM+g5eSVZhUvepvb9OXQJ5Flh1I2 wSz+F8TU/z1+NHjfVsfal1l8HCIebqJeIgy3Fn+RQybFlq8GvsVUQfyRK4ZyNkPz38X/ 1xmYk4KFXvmQULdJG2/Ru9MxvuplHYX960PXtrTbnrEcIaQAhzGTupM81FlO+yRf/Rou FKmnCqidCzzN11wVfPf76nc0uZyu2Q8DPgIrmsiNi7ewmkxgqm5U/mpPzncCS2SHk5bq DY7w== X-Gm-Message-State: APjAAAXgsRD4x64phPMRxlEmPBMTXvAgNFzXAb4p97NUD1dRzF7fby1T AUHWPdZko4JgymkCjyLfiag8lC14994= X-Received: by 2002:a65:5043:: with SMTP id k3mr21950070pgo.406.1569801321553; Sun, 29 Sep 2019 16:55:21 -0700 (PDT) Received: from akuster-ThinkPad-T460s.hsd1.ca.comcast.net ([2601:202:4180:a5c0:edf9:811d:ad92:85c2]) by smtp.gmail.com with ESMTPSA id p190sm14474778pfb.160.2019.09.29.16.55.20 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sun, 29 Sep 2019 16:55:20 -0700 (PDT) From: Armin Kuster To: openembedded-devel@lists.openembedded.org Date: Sun, 29 Sep 2019 16:55:02 -0700 Message-Id: X-Mailer: git-send-email 2.7.4 In-Reply-To: References: Subject: [oe] [warrior-next 04/10] klibc: Pass -fno-builtin-bcmp with musl/clang combo X-BeenThere: openembedded-devel@lists.openembedded.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: Using the OpenEmbedded metadata to build Distributions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: openembedded-devel-bounces@lists.openembedded.org Errors-To: openembedded-devel-bounces@lists.openembedded.org From: Khem Raj clang would emit bcmp built-in for musl bases system but here we do not link in musl C library, so its best to disable it Fixes git/usr/klibc/memmem.c:38: undefined reference to `bcmp' Signed-off-by: Khem Raj Cc: Andrea Adami (cherry picked from commit 11bc2775af3e47399ac268a2e6fbd63185e478ef) Signed-off-by: Armin Kuster --- meta-initramfs/recipes-devtools/klibc/klibc.inc | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) -- 2.7.4 -- _______________________________________________ Openembedded-devel mailing list Openembedded-devel@lists.openembedded.org http://lists.openembedded.org/mailman/listinfo/openembedded-devel diff --git a/meta-initramfs/recipes-devtools/klibc/klibc.inc b/meta-initramfs/recipes-devtools/klibc/klibc.inc index 5805448..7faf0ca 100644 --- a/meta-initramfs/recipes-devtools/klibc/klibc.inc +++ b/meta-initramfs/recipes-devtools/klibc/klibc.inc @@ -33,6 +33,9 @@ ARMPATCHES_arm = "file://klibc-config-eabi.patch \ S = "${WORKDIR}/git" +OPTFLAGS = "${TUNE_CCARGS} -Os" +OPTFLAGS_append_libc-musl_toolchain-clang = " -fno-builtin-bcmp" + PARALLEL_MAKE = "" EXTRA_OEMAKE = "'KLIBCARCH=${KLIBC_ARCH}' \ 'CROSS_COMPILE=${TARGET_PREFIX}' \ @@ -43,7 +46,7 @@ EXTRA_OEMAKE = "'KLIBCARCH=${KLIBC_ARCH}' \ 'INSTALLDIR=${libdir}/klibc' \ 'SHLIBDIR=${libdir}' \ '${KLIBCTHUMB}' \ - 'KLIBCOPTFLAGS=${TUNE_CCARGS} -Os' \ + 'KLIBCOPTFLAGS=${OPTFLAGS}' \ V=1 \ "