From patchwork Wed Aug 7 04:03:21 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Khem Raj X-Patchwork-Id: 170687 Delivered-To: patch@linaro.org Received: by 2002:a92:512:0:0:0:0:0 with SMTP id q18csp6572132ile; Tue, 6 Aug 2019 21:03:39 -0700 (PDT) X-Google-Smtp-Source: APXvYqyGj+OEL3EUA6A/O/Q++DtVkSZ290DVfGpZJ88NkueQQPiosAvXgJebTB49i+l/nHnvMf1c X-Received: by 2002:a17:90a:29c5:: with SMTP id h63mr6178817pjd.83.1565150619185; Tue, 06 Aug 2019 21:03:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1565150619; cv=none; d=google.com; s=arc-20160816; b=aAON5eFWvpBDvJpf7MppcNowRA8YQjNSCMoDh+tkOEQavPMjz7hv0uhSzVrTUBBaq7 AhSDJHaO/oWtBLEJEPlX4CwhurB5MwxyhvL5oSI9WY+dhPu0+P+z4AlihFVtDS7/PIhU 4n6ZNFUxJ/2okHO8qk+JIsnFj/FOolc6OdyJuf9DhYZ0MbrZ+FhhogR29gThPj41WmYU x4d6Y8Ixk1+Ozq1XkFhQl3h4whZnW9Rd/snlyC1Fv/QX56vVN4EZdLFuUzymECqX+Azl LcS66bK9+13ZdJ1rC38XHmp57DaUwm4jKBUmfkkY3kdK+S22HLm2X6Y7KmteFjuetqYH r1+A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=errors-to:sender:content-transfer-encoding:list-subscribe:list-help :list-post:list-archive:list-unsubscribe:list-id:precedence:subject :mime-version:message-id:date:to:from:dkim-signature:delivered-to; bh=lGJn1+gYg9lW6iB59oNnVp0beMNyn5ojuyRi9NtJtgQ=; b=ISdGWLrxCwYLTRUzvnV/YbXD1ybrikFRv2ii5dEch1mL/ITgz45uq207eCEZq/lbLb ELYKCTrsxyA7H2EA+duYyXrXRvJHiK6jq4ENGgbvNII5RmffbTjxHTmy1COk7k1JNMZB iQl7doYXPSJaUAlcakO84n0h6hpdVMiSXxUJUFHXXX96ZCVI0eFwy8xPNUsMw/61Jbxl pNt+JBi21YjYUjN4wKGEaZNFSadNI0VJmc4deaRsR8BO3gnDG9gufTffzlqcOX3WhkaU WtmKaT5WqTXFlMWM4uhigqmgEkhDyzwl5rw/FbkuDd+aynPB5cI3gzVgCmFHkj7dUpNG J9Fw== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@gmail.com header.s=20161025 header.b=oxizJCDz; 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 h67si717396plb.196.2019.08.06.21.03.38; Tue, 06 Aug 2019 21:03:39 -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=oxizJCDz; 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 DD13C7F436; Wed, 7 Aug 2019 04:03:32 +0000 (UTC) X-Original-To: openembedded-devel@lists.openembedded.org Delivered-To: openembedded-devel@lists.openembedded.org Received: from mail-pf1-f181.google.com (mail-pf1-f181.google.com [209.85.210.181]) by mail.openembedded.org (Postfix) with ESMTP id 337187EFB8 for ; Wed, 7 Aug 2019 04:03:31 +0000 (UTC) Received: by mail-pf1-f181.google.com with SMTP id r7so42699092pfl.3 for ; Tue, 06 Aug 2019 21:03:32 -0700 (PDT) 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=HJ2ycZI4SSAd/JW67bqWoq0EUrGAcwwK+mMhYPS1yKE=; b=oxizJCDz/ZP6FZ0A+e7pu8qR9Yyd7umCAG1mh0R8KpF82X33Vt0EJnGkiB5QDfo+ct l1sD26lfNMwd1jJLM2n9+Xqnro4ze0Zy618TmYS1oox9lPzmmzWR/agsnD32L9pIddhr d99yl1URS9lx+/EarblNt+tSduV4DpchBwPsoG4VipcjM72jzE4KBbH52BTvCD8xqZdH KQB3heT0dbwC5nwPsKXPLv0sLMitj0EAAaSM6b8GA9KSkLSttnzneAaI/6gGT6L3GrgA q3b8//FLegWRDgwhheqrTPxVcWKGeyf4AKXbEL7ODurOce8S02Iv5HWxDtD6rRtis9Vz 88sA== 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=HJ2ycZI4SSAd/JW67bqWoq0EUrGAcwwK+mMhYPS1yKE=; b=luGC+rPc0hjySIDeM2lpx2WBFraeu3zxebYhhK5/PjorVBkPQHEh/q80MLl2Ue2J9I rpTlD95NjuiaNvi9JSQuT7Zs5l+j8SOEfszWGkv3FewKFBZirVSepefghgmpPLm/DaBs QJkXZ2VRzCbc3MMNQC3/yehtM00MtNi9RC6/J+tVBO/a4pOB2mWNduGzwoWs03XYRFfa 4Aam8/XI6ZtKvv2w0IrBiynplVXMAzbz7aIaB9VIwosdRhnHrLuqWP12XUWIPpnPWnzE YeXiuNMi4x4xM+JvHEKWyGdSdAnu4HeGEizqi7NiegvxmuhgmpXuBHaRTBDJgw1RF/3a +lAw== X-Gm-Message-State: APjAAAU7l00Mn6Q1WQkyWjF5WALDs5PB/8WlQMqrdIHDPb4tQTRbRK+T yI9EM2i2uzACXif7Dv7a2ZzuoJLyIvA= X-Received: by 2002:a17:90a:fa12:: with SMTP id cm18mr6415349pjb.137.1565150611631; Tue, 06 Aug 2019 21:03:31 -0700 (PDT) Received: from apollo.hsd1.ca.comcast.net (c-73-71-176-3.hsd1.ca.comcast.net. [73.71.176.3]) by smtp.gmail.com with ESMTPSA id p27sm133054061pfq.136.2019.08.06.21.03.30 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Tue, 06 Aug 2019 21:03:31 -0700 (PDT) From: Khem Raj To: openembedded-devel@lists.openembedded.org Date: Tue, 6 Aug 2019 21:03:21 -0700 Message-Id: <20190807040323.17521-1-raj.khem@gmail.com> X-Mailer: git-send-email 2.22.0 MIME-Version: 1.0 Subject: [oe] [meta-initramfs][PATCH 1/3] 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: , Sender: openembedded-devel-bounces@lists.openembedded.org Errors-To: openembedded-devel-bounces@lists.openembedded.org 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 --- meta-initramfs/recipes-devtools/klibc/klibc.inc | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) -- 2.22.0 -- _______________________________________________ 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 5805448671..7faf0cabbf 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 \ "