From patchwork Wed Jul 25 18:35:34 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Daniel_D=C3=ADaz?= X-Patchwork-Id: 142909 Delivered-To: patch@linaro.org Received: by 2002:a2e:9754:0:0:0:0:0 with SMTP id f20-v6csp1140289ljj; Wed, 25 Jul 2018 11:36:07 -0700 (PDT) X-Google-Smtp-Source: AAOMgpdp5v3LgIfkM1azcnxqssqvL63M4mtIdjNR1Jd2/u0v9dxnRzD+8qXtsfoB+hRbg+K+hv9o X-Received: by 2002:a62:c699:: with SMTP id x25-v6mr23679927pfk.16.1532543767731; Wed, 25 Jul 2018 11:36:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1532543767; cv=none; d=google.com; s=arc-20160816; b=C3Hrm4m46+Rfj9qntxyv0I4jLULy1ix9WGnsAOxows1BJMYLKF4hBeKCnSCJHHemvK 4372VE/hRXd2F2T7BTOAjwXVtHoocyidrLVN7KAjU+JEuaU1SUiNc8xZcXFh4LTWaym4 yffHOehh4j1i8uBTMWdiFA3FwG3lRe2GgTewAPbANu0/4M4C2O0EeOVOBQGzkTH05h5J bCmT00KceXITYwhY+fCryKtDVtBWsPSKlAMKQjjfJnUIVarLL/GP6463kIsPAQK+Sf1W 1dIYtGDAU9+1a1I2KkG/tjhkCRSa/KqcPMZOejpKP4Gq7zpuyFaMfpEKoEl2nY/fUMjr iKvg== 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 :arc-authentication-results; bh=1SGn1ItDWi8kgGuzK/YpAhSuQ04Q7wHYv0/jv3RVZ3g=; b=p1TVk5W+sBa+4/yLX3jdo0njBnLLAXSRJ8qAjUu5tf7JKMa4iAZEjDWs8/HziMbdgm 80/wocTZVtZtekMGLOwdkzOac9QGEHG/Et8hjTZyXxmiBPsL35VZ8bjWoPAU0w7jKxJZ Y+0sf+nVCDW/oQtukFTOaN60A6qMmr/mEfbBAhjZ+D5P/W/a1kP2C6kApaopXy7oB5zq 3jdWH6iyqmymBZ0qT5JXDXMKjGn3af5+C/uyznhqdgmVTpFmvV8Ob+1nCkAXQMJNu5b9 HYzronNAEuqxmMpZrO8tJvPBk7kW1OOKKfzcsLdErdXcyke5ULrDSKusTFm6Qg0H7Phs R7lw== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b="Vx/527kT"; spf=pass (google.com: best guess record for domain of openembedded-core-bounces@lists.openembedded.org designates 140.211.169.62 as permitted sender) smtp.mailfrom=openembedded-core-bounces@lists.openembedded.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from mail.openembedded.org (mail.openembedded.org. [140.211.169.62]) by mx.google.com with ESMTP id x186-v6si14003471pgd.259.2018.07.25.11.36.07; Wed, 25 Jul 2018 11:36:07 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of openembedded-core-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=@linaro.org header.s=google header.b="Vx/527kT"; spf=pass (google.com: best guess record for domain of openembedded-core-bounces@lists.openembedded.org designates 140.211.169.62 as permitted sender) smtp.mailfrom=openembedded-core-bounces@lists.openembedded.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from layers.openembedded.org (localhost [127.0.0.1]) by mail.openembedded.org (Postfix) with ESMTP id 260F97885C; Wed, 25 Jul 2018 18:36:03 +0000 (UTC) X-Original-To: openembedded-core@lists.openembedded.org Delivered-To: openembedded-core@lists.openembedded.org Received: from mail-oi0-f67.google.com (mail-oi0-f67.google.com [209.85.218.67]) by mail.openembedded.org (Postfix) with ESMTP id 53EEA744C5 for ; Wed, 25 Jul 2018 18:36:01 +0000 (UTC) Received: by mail-oi0-f67.google.com with SMTP id i12-v6so15686289oik.2 for ; Wed, 25 Jul 2018 11:36:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=SibXw9mm5Rj5zeMJe9aIF04VPYDC1X2FuZH7qH58mC4=; b=Vx/527kT+g0ZdkwmcrZ3YRzVY0HAMy+FSTYPwQVDKcLdXkNwaVAguvDrgWH8NS7UXB EQW1nTODguogMjNfbupVCDYVBmycwfG6TM+zkYORLFMp0pHv9bOBaeZbLb7LtfEQHo80 4lmZZyz/TEJMCEHIhmPua8IoxPdY1DQDUGUgA= 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=SibXw9mm5Rj5zeMJe9aIF04VPYDC1X2FuZH7qH58mC4=; b=gnRI+lIM+XF+S1PsYiwoB1PLKWA/ucBCuxlLQk0IVNplXFTpjg712QubMTYYINrHqo KC74GOBZegVCWv7o4rDl3xgL4b91IllG5UqZeedKcgpjfKTMVjOxdOIW4EqNaubc1NGu IL5wFh2YApq5jVmJy4U/LeJZRGepNLQ1gTevzPPusJY9lokikvKXmabrWPTd9Xqqx/+a lw3ZR4WQ6/C0FFEvpfD/1HNu9TSTMplFYPkO/IJsccpdHcmEZWBaImI2B6CvrAMjV1q7 FWgbTpxoPR++xpm8XGs2fiSlHEjHDp2FilmeuTlKuFt0sk8TQEoPjwDvZozHrhEcj9FU +vdQ== X-Gm-Message-State: AOUpUlHQuLViqw3Ox6Y8K9uqobMi7AV/N+oWQKowtiuCm2gnEG6ukMQg ffPTejTCcExIRw9SIhIArPPm1NJtKek= X-Received: by 2002:aca:ba57:: with SMTP id k84-v6mr4209048oif.10.1532543761830; Wed, 25 Jul 2018 11:36:01 -0700 (PDT) Received: from aura.cortijodelrio.net (CableLink-187-161-193-121.PCs.InterCable.net. [187.161.193.121]) by smtp.googlemail.com with ESMTPSA id y85-v6sm16327063oie.25.2018.07.25.11.36.00 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 25 Jul 2018 11:36:00 -0700 (PDT) From: =?utf-8?q?Daniel_D=C3=ADaz?= To: openembedded-core@lists.openembedded.org Date: Wed, 25 Jul 2018 13:35:34 -0500 Message-Id: <1532543734-17529-1-git-send-email-daniel.diaz@linaro.org> X-Mailer: git-send-email 2.7.4 MIME-Version: 1.0 Subject: [OE-core] [PATCH] glibc: Avoid multilibbing on wordsize.h 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: , Sender: openembedded-core-bounces@lists.openembedded.org Errors-To: openembedded-core-bounces@lists.openembedded.org Once another header #includes , there is a potential recursion going on because the multilib_header_wrapper.h #includes again! This should not happen because an __arm__ (32-bits) or an __aarch64__ (64-bits) environment guarantees that we will be getting the correct definition, but when building against a different target (like BPF), recursion is what happens. This can be seen, for instance, when building eBPF programs from the kernel with `clang -target bpf', such as the ones located in linux/tools/testing/selftests/bpf/. Signed-off-by: Daniel Díaz Signed-off-by: Aníbal Limón --- meta/recipes-core/glibc/glibc-package.inc | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/meta/recipes-core/glibc/glibc-package.inc b/meta/recipes-core/glibc/glibc-package.inc index ae3f2f6..a4f61f8 100644 --- a/meta/recipes-core/glibc/glibc-package.inc +++ b/meta/recipes-core/glibc/glibc-package.inc @@ -136,8 +136,7 @@ do_install_append_armeb () { } do_install_armmultilib () { - - oe_multilib_header bits/endian.h bits/fcntl.h bits/fenv.h bits/fp-fast.h bits/hwcap.h bits/ipc.h bits/link.h bits/wordsize.h + oe_multilib_header bits/endian.h bits/fcntl.h bits/fenv.h bits/fp-fast.h bits/hwcap.h bits/ipc.h bits/link.h oe_multilib_header bits/local_lim.h bits/mman.h bits/msq.h bits/pthreadtypes.h bits/pthreadtypes-arch.h bits/sem.h bits/semaphore.h bits/setjmp.h oe_multilib_header bits/shm.h bits/sigstack.h bits/stat.h bits/statfs.h bits/typesizes.h