Received: by 10.213.65.68 with SMTP id h4csp1138296imn; Wed, 4 Apr 2018 13:20:05 -0700 (PDT) X-Google-Smtp-Source: AIpwx4+LVjoZwijBZfpCh4rJcwXrEidV+N298qJqAWSqiw6ePmieoUJcTVJ0CnscKlW0JHL+mr9Q X-Received: by 10.99.109.72 with SMTP id i69mr13155947pgc.417.1522873205827; Wed, 04 Apr 2018 13:20:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1522873205; cv=none; d=google.com; s=arc-20160816; b=Xb6NWIAGuol2SxvmJRdvzVUNl5MsMkkBWRa2dKIomK/6PP5nVnosfj7LFwsaP6CgHh rxJrtwQLSO5ogyhKPVKS9vOVT8MEO40cZnVHfdkaRyDQqx82853jM18kZzjciu69OswZ BnjP1bBHHEMMqvy38vIbZvj+DusjH24tyXoQkTXuHqvsjX2NvL4yj7nd0ZgoMVEsmPZU dG71kQSr4E8Bsxzx0KGGzKJ9OuU8D9iuYixqmQLPi250HSQElRgpiDPbSI7eHXnvYELr BroGqR/E+xTMKhPbmQ2tPpl/IUpfoNqJKyXH2kqg67hULohuM0wnpfibucBTWCHrMEaV LQSQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:arc-authentication-results; bh=rKdGL89Bh7vZG462oJJu2H8qHMZ2T2thXL2WR48Bm6Y=; b=guqgVRpZ8M1AsMQznAc9WcvCpgSCWu1GECvBu9dCt/r6tNaNmdGpBY/S3IsOZXwk76 2VaFJ3VoW7ne/diclVkKFi11rrvZcc5gGpkPdr7DhCgyl+VGL+KVpza5VS5vtvakfZAs HdXnj2zOrSLYWcPexEtpS1NaIHjHJtQM9WbaoSJDFogqswuk1/gWnOK5TNY+/Po60H2O tFWX4CwBWbjDkQGuuuhwOral5Wg3Qw9EnuL0v33La8g5bbo0/TIn93c2Le0FzRxzWmaP QBdox490VBumAOV5Gr/QEwcQeJWHC8qRs/qfRL1qln15h6tKZwbENkV96pTWa9Vp62YI +04A== ARC-Authentication-Results: i=1; mx.google.com; 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 b13si2819882pfi.53.2018.04.04.13.19.51; Wed, 04 Apr 2018 13:20:05 -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; 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 S1751965AbeDDUSk (ORCPT + 99 others); Wed, 4 Apr 2018 16:18:40 -0400 Received: from atrey.karlin.mff.cuni.cz ([195.113.26.193]:53438 "EHLO atrey.karlin.mff.cuni.cz" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751516AbeDDUSj (ORCPT ); Wed, 4 Apr 2018 16:18:39 -0400 Received: by atrey.karlin.mff.cuni.cz (Postfix, from userid 512) id 9E9F68038F; Wed, 4 Apr 2018 22:18:37 +0200 (CEST) Date: Wed, 4 Apr 2018 22:18:37 +0200 From: Pavel Machek To: Tony Lindgren Cc: Stephen Rothwell , Linux-Next Mailing List , Linux Kernel Mailing List , pali.rohar@gmail.com, sre@kernel.org, linux-arm-kernel , linux-omap@vger.kernel.org, khilman@kernel.org, aaro.koskinen@iki.fi, ivo.g.dimitrov.75@gmail.com, patrikbachan@gmail.com, serge@hallyn.com, abcloriens@gmail.com, clayton@craftyguy.net, martijn@brixit.nl, sakari.ailus@linux.intel.com, Filip =?utf-8?Q?Matijevi=C4=87?= , jinb.park7@gmail.com, keescook@chromium.org, rmk+kernel@armlinux.org.uk Subject: FORTIFY_SOURCE breaks ARM compilation in -next -- was Re: ARM compile failure in Re: linux-next: Tree for Apr 4 Message-ID: <20180404201837.GA9710@amd> References: <20180404165559.4cd0c12c@canb.auug.org.au> <20180404074856.GA9342@amd> <20180404175852.GI5700@atomide.com> <20180404184622.GA8608@amd> <20180404195951.GJ5700@atomide.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="lrZ03NoBR/3+SXJZ" Content-Disposition: inline In-Reply-To: <20180404195951.GJ5700@atomide.com> User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --lrZ03NoBR/3+SXJZ Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed 2018-04-04 12:59:51, Tony Lindgren wrote: > * Pavel Machek [180404 18:47]: > > Hi! > >=20 > > > > When trying to build kernel for N900, I get: > > > >=20 > > > > CC lib/timerqueue.o > > > > CC lib/vsprintf.o > > > > lib/string.c: In function 'strstr': > > > > lib/string.c:478:8: error: inlining failed in call to > > > > always_inline 'strlen': function not inlinable > > > > lib/string.c:903:5: error: called from here > > > > lib/string.c:478:8: error: inlining failed in call to > > > > always_inline 'strlen': function not inlinable > > > > lib/string.c:906:5: error: called from here > > > > lib/string.c:855:15: error: inlining failed in call to > > > > always_inline 'memcmp': function not inlinable > > > > ... > > > > pavel@duo:/data/l/linux-next-n900$ git branch -l > > > > * (detached from next-20180403) > > > >=20 > > > > I'm using > > > >=20 > > > > eval ` eldk-switch.sh -r 5.4 armv7a` > > > >=20 > > > > for cross-compilation. > > >=20 > > > Hmm I'm not seeing build issues with next-20180404, did this somehow > > > already get sorted out? > >=20 > > It seems it is config-dependend. omap2plus_defconfig compiles ok for > > me. > >=20 > > Can you try with attached .config? >=20 > That still builds for me. This with plain gcc-7.3.0 binutils-2.30 > built with buildall script. Thanks. Ok, let me try to bisect it. Compile-problem should be easy... Hmm. And as it is compile-problem in single file, it should even be reasonably fast. I did not realize how easy it would be: #!/bin/bash set -e cp config.ok .config yes '' | ARCH=3Darm make lib/string.o And the winner is: ee333554fed55555a986a90bb097ac7f9d6f05bf is the first bad commit commit ee333554fed55555a986a90bb097ac7f9d6f05bf Author: Jinbum Park Date: Tue Mar 6 01:39:24 2018 +0100 ARM: 8749/1: Kconfig: Add ARCH_HAS_FORTIFY_SOURCE CONFIG_FORTIFY_SOURCE detects various overflows at compile-time. (6974f0c4555e ("include/linux/string.h: add the option of fortified string.h functions) =20 ARCH_HAS_FORTIFY_SOURCE means that the architecture can be built and run with CONFIG_FORTIFY_SOURCE. =20 Since ARM can be built and run with that flag like other architectures, select ARCH_HAS_FORTIFY_SOURCE as default. =20 Acked-by: Kees Cook Signed-off-by: Jinbum Park Signed-off-by: Russell King :040000 040000 2bff2f75ba36dd838a8ded3028b745d9f13f4c4a e61289e33a1fb71b1a6c05c442d45ea40bd5aba0 M arch bisect run success pavel@duo:/data/l/linux-next-n900$=20 Pavel --=20 (english) http://www.livejournal.com/~pavelmachek (cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blo= g.html --lrZ03NoBR/3+SXJZ Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iEYEARECAAYFAlrFMx0ACgkQMOfwapXb+vIr9QCbBhT4nZ8xYIgT15jzxo4EoP3J QiQAn0b+e+VyPD+fPDyBaC/BByfnmXhZ =vsoP -----END PGP SIGNATURE----- --lrZ03NoBR/3+SXJZ--