Received: by 10.213.65.68 with SMTP id h4csp171755imn; Mon, 12 Mar 2018 10:08:28 -0700 (PDT) X-Google-Smtp-Source: AG47ELtTuIDFBR/cDuxN65nRafhP4Vgk8YAwOk3hJCH6/c5HWv0m5mDK7lmoIC3ucnto88umGyVy X-Received: by 10.98.77.194 with SMTP id a185mr8674339pfb.123.1520874508913; Mon, 12 Mar 2018 10:08:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1520874508; cv=none; d=google.com; s=arc-20160816; b=VrlZ5h2o5qtVhNB78hJCgxRPdKVVJwspZkXjtCRuCX6cVGy2MHpVTfsTXX2GE7v09E GDeWmZI+cpVSoURLQiQGwE7HTiMgPlyaxRfYXjGj4LqFUisRWM2tt1oLSM4tBaQQcrKT XJ+/oJVL5QeZy0TGi3ptgmMbPWuxUuXv/xvxQHznF9diwVjelyoLl2FT0r2otvaNCehA lOqs2rMqlsexY4AZrL1AhwktgeGvX+U/Hjox+HHCkZ+GzzP3YljBY2DLSOFMKnC6dbdD uWiIPgpwhsl5PJCnW7GkxydFrAUleE/tnevNK1ZtDc8S7jsxa4L3LdTjwmXoIZS0wl/o qV3Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :references:in-reply-to:mime-version:dkim-signature :arc-authentication-results; bh=Cutr3E4CjJZKLnLnZoGjc2HNoDIqTk8NpmjOTnJBAiw=; b=snAUbv2UssFnwGjGWMx1wyhFfHQY0fFYVazEVct1LZl4FokOtqJObCCRkrb3dBeURk ptmxVdGJxAsdio036dqmh0LxNzju2U/BVAXhMwXk+atPUevEp6F8zy6TFXMQOOnC2Htz uBjscOxtJpaFAeuiUrV8mcdlwPuGfpNzJXwyKXTHatQzcFkcFCCFm6OWvZzEpBDqqvQO ysuJtaFG2fRDxFHio2vlQ+/YtsUPcV90RSm2UEt+Ca3zHABAFZcZ9yiXOpLjsMFiVDPt pU0/wCUKsobAqRYjmMWn81N7iTIqD4tQ/aWvQQJjNPBlVR0b9T1TGTr7VvMZ+TShXUp7 QVlQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=OCKLr+ER; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id o33-v6si4632800plb.412.2018.03.12.10.08.14; Mon, 12 Mar 2018 10:08:28 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=OCKLr+ER; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932592AbeCLRHH (ORCPT + 99 others); Mon, 12 Mar 2018 13:07:07 -0400 Received: from mail-it0-f68.google.com ([209.85.214.68]:38604 "EHLO mail-it0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932570AbeCLRHE (ORCPT ); Mon, 12 Mar 2018 13:07:04 -0400 Received: by mail-it0-f68.google.com with SMTP id j7-v6so12428022ita.3 for ; Mon, 12 Mar 2018 10:07:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc; bh=Cutr3E4CjJZKLnLnZoGjc2HNoDIqTk8NpmjOTnJBAiw=; b=OCKLr+ERrCiS9fzRYRUeOJwZlzsQAjNk/zh8eiX15VMheGOHQDtLAtlJeB+bUONobh OxOtZUjWWubw/Vtqd4NPoa911eClRj/AYXPm3aTEw+vHC1dktdVNNl79j/qYsm0F/eqQ N3AndLf/coZd9pq+aJbb5PJZ+C++nOEqoLfeB63Rzdh+xM596ysoTVHVdAbNUYrr/K6P E5gVb3dddhKpDM0C0fNKMrLBn/DKokcn62A2PolnaBK4CQThwSDXi/iKMh2VE2vDmvs6 kp5ydReymXYuZrIRWuaZKGXPNz62+G1xmeG6n3z/2ckJodPDPhEFbSffMxbDYGpjaN8E +CBQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to:cc; bh=Cutr3E4CjJZKLnLnZoGjc2HNoDIqTk8NpmjOTnJBAiw=; b=HuvC6ZoGAC8Y+SA0HlE+b6owfUNRNQ/oKlD0cfTjd0bIRuavmUnIv0oRBoQiAP7SI5 cvW8v9ThBZZhK+Vn6O8ENSm+iaqhj+1S5dOsthzwem3NiKLr1sFX4GJbW2KhZx5S0qvA 1EG31yV+ygdkPlBQVGtfkh+fNATgQ01/ruJIh4vg8nR7dCIAyDbwz6+Z2n761p1OU4zw DucwieirADSKbq4M9NJoZIX4YhILtt+Xkp4B4rq6TduhTwk+fTjIoHlmK9gspviBYlEc M2ScFN9C8hp2MlGEvTT+gm2xiK6W2EgrfftZ6XFmH84cH31hCmNJZ12XhRYnbuBz5+iD i9MA== X-Gm-Message-State: AElRT7GNw+g/h6zH36vyb1GIghyEPkRHCk2Oq+BdjYvdE+Y/ryMGOHno JDf35Ox6kaQNxvXjOP4Q0+c8J+s25BZlK1oGjjU= X-Received: by 10.36.190.9 with SMTP id i9mr9098283itf.27.1520874423293; Mon, 12 Mar 2018 10:07:03 -0700 (PDT) MIME-Version: 1.0 Received: by 10.79.34.71 with HTTP; Mon, 12 Mar 2018 10:07:01 -0700 (PDT) In-Reply-To: References: <20180220215954.4092811-1-arnd@arndb.de> <20180220215954.4092811-2-arnd@arndb.de> From: Arnd Bergmann Date: Mon, 12 Mar 2018 18:07:01 +0100 X-Google-Sender-Auth: SxBxjuErwxwfvSUpAb866xyWf0s Message-ID: Subject: Re: [PATCH 1/7] ARM: disallow combining XIP and LTO To: Nicolas Pitre Cc: Andi Kleen , Linux ARM , Linux Kernel Mailing List Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Mar 12, 2018 at 6:00 PM, Nicolas Pitre wrote: > On Mon, 12 Mar 2018, Arnd Bergmann wrote: > >> On Mon, Mar 12, 2018 at 2:52 PM, Arnd Bergmann wrote: >> > On Mon, Mar 12, 2018 at 3:40 AM, Nicolas Pitre wrote: >> >> On Tue, 20 Feb 2018, Arnd Bergmann wrote: >> > >> >>> Obviously we want to make the combination work, no idea why it doesn't. >> >> >> >> Well, it does work regardless of the noise. Here the nm output is piped >> >> into sed, and the later exits early when it finds what it is looking >> >> for, causing nm to complain about the broken pipe. >> >> >> >> Here's a patch silencing this bogus error message and fixing other minor >> >> issues. >> >> >> >> ----- >8 >> >> Subject: [PATCH] ARM: deflate_xip_data.sh: minor fixes >> >> >> >> Send nm complaints about broken pipe (when sed exits early) to /dev/null. >> >> All errors should be printed to stderr. >> >> Don't trap on normal exit so the trap can return an error code. >> >> >> >> Signed-off-by: Nicolas Pitre >> > >> > Ah, that explains it, thanks! >> > >> > Tested-by: Arnd Bergmann >> >> >> Nevermind, I confused it with a different problem that I'm running into >> with randconfig builds: > > At least you no longer get the "broken pipe" warning as your initial > report showed, right? I don't know, my recent tests are all without the LTO patch series, so I don't get that one anyway. >> arm-linux-gnueabi-nm: 'arch/arm/boot/compressed/../../../../vmlinux': >> No such file > > That is weird. The Makefile has: > > cmd_mkxip = $(cmd_objcopy) && $(cmd_deflate_xip_data) > > $(obj)/xipImage: vmlinux FORCE > $(call if_changed,mkxip) > > So the objcopy must succeed at producing vmlinux for deflate_xip_data > (where nm is used) to be called. > > Do you have a .config for this issue? I only get it while doing randconfig builds with my scripts, maybe one out of three times, but don't ever get when rebuilding the configs later. I have never figured out how to reproduce it reliably other than with my randconfig script: #!/bin/bash RAND_DIR=build/rand LOG_DIR=rand PARALLEL="-j30" # number of CPUs on build system MAKE="make O=${RAND_DIR} -sk ${PARALLEL}" export CCACHE_DISABLE=1 # no point in ccache for random builds buildone() { mkdir -p ${RAND_DIR} ${LOG_DIR} eval `${MAKE} randconfig 2>&1 | grep KCONFIG_SEED=` export KCONFIG_SEED ${MAKE} allrandom.config > /dev/null rm -rf ${RAND_DIR}/arch/arm64/kernel/vdso ID=${KCONFIG_SEED} cp ${RAND_DIR}/.config ${LOG_DIR}/$ID-config if ${MAKE} > ${LOG_DIR}/$ID-output 2>&1 ; then mv ${LOG_DIR}/$ID-output ${LOG_DIR}/$ID-success echo $ID `date` success else mv ${LOG_DIR}/$ID-output ${LOG_DIR}/$ID-failure echo $ID `date` failed ${MAKE} fi ${MAKE} clean } buildone Arnd