Received: from list by lists.gnu.org with archive (Exim 4.71) id 1VfNf7-0005La-1L for mharc-grub-devel@gnu.org; Sun, 10 Nov 2013 00:34:17 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:42256) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VfNez-0005HI-W4 for grub-devel@gnu.org; Sun, 10 Nov 2013 00:34:15 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VfNev-0004FP-1X for grub-devel@gnu.org; Sun, 10 Nov 2013 00:34:09 -0500 Received: from mail-bk0-f52.google.com ([209.85.214.52]:57532) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VfNeu-0004F9-Qv for grub-devel@gnu.org; Sun, 10 Nov 2013 00:34:04 -0500 Received: by mail-bk0-f52.google.com with SMTP id v10so1267911bkz.11 for ; Sat, 09 Nov 2013 21:34:03 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:date:from:to:subject:message-id:in-reply-to :references:mime-version:content-type; bh=sloNhwrVTYha7cyM4AMOq1eCj8Gbte2gvxpfJxncJnw=; b=LHjMZjFo294AvNcGLuK06SNKzYUgeEvlj3Hw2haqaMItMMORi93tF1jcsqPH+VYdff eos+9qZYoMdPWTkPaZzaUnpEd6ao7kslG6Gnpsd/PSoqV3oQ+dp6YQt5SiPkLUfx3mVl 1dg7JGRiL1X5+QlTeGaM+qU7/QKEu757a//3pAsokPFX97V2vzeLGsCnBY5U1eSV1j+i pMT0F8wz3vGLYvxP12chQRj29TAkhXncWpo0adMSCJtlCIsp3uIppi8XLmYkMaOQDqmX sVs64dE5baHJEsVLm8JPDh2CyESQRFEp6FHzMMW1usV8LHJuzJIemOh+LTtAK1oGwiPy gDEA== X-Gm-Message-State: ALoCoQmgPdDIkKu3RooUR0ksfQuYqt9CP6XJJWOtLS66C+L3zOPtFmLQErlkb3Kbu8TGQghBw6e6 X-Received: by 10.204.69.12 with SMTP id x12mr16688888bki.12.1384061643405; Sat, 09 Nov 2013 21:34:03 -0800 (PST) Received: from crass-Ideapad-Z570 (pool-108-1-192-16.herntx.dsl-w.verizon.net. [108.1.192.16]) by mx.google.com with ESMTPSA id zl3sm10324092bkb.4.2013.11.09.21.34.02 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Sat, 09 Nov 2013 21:34:03 -0800 (PST) Date: Sat, 9 Nov 2013 23:33:54 -0600 From: Glenn Washburn To: grub-devel@gnu.org Subject: Re: __stack_chk_fail in regexp is not defined Message-ID: <20131109233354.1eeee984@crass-Ideapad-Z570> In-Reply-To: <527E1E64.4010601@gmail.com> References: <20131108124231.3fa344de@crass-Ideapad-Z570> <527D3373.9020804@gmail.com> <20131108144243.79c1af39@crass-Ideapad-Z570> <20131109081158.2d933f37@opensuse.site> <527E1E64.4010601@gmail.com> X-Mailer: Claws Mail 3.9.1 (GTK+ 2.24.17; x86_64-pc-linux-gnu) Mime-Version: 1.0 Content-Type: multipart/signed; micalg=PGP-SHA1; boundary="Sig_/5pKr/7kLqd_yYUi8l+8yRnM"; protocol="application/pgp-signature" X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 209.85.214.52 X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list Reply-To: The development of GNU GRUB List-Id: The development of GNU GRUB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 10 Nov 2013 05:34:15 -0000 --Sig_/5pKr/7kLqd_yYUi8l+8yRnM Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On Sat, 09 Nov 2013 12:37:08 +0100 Vladimir '=CF=86-coder/phcoder' Serbinenko wrote: > On 09.11.2013 05:11, Andrey Borzenkov wrote: > > =D0=92 Fri, 8 Nov 2013 14:42:43 -0600 > > Glenn Washburn =D0=BF=D0=B8=D1=88=D0=B5= =D1=82: > >=20 > >> On Fri, 08 Nov 2013 19:54:43 +0100 > >> Vladimir '=CF=86-coder/phcoder' Serbinenko wrote: > >> > >>> On 08.11.2013 19:42, Glenn Washburn wrote: > >>>> Now, I'm getting this error while building. Bug in the awk > >>>> script? > >>>> > >>>> cat syminfo.lst | sort | gawk > >>>> -f ./grub.git/grub-core/genmoddep.awk > >>>>> moddep.lst || (rm -f moddep.lst; exit 1) __stack_chk_fail in > >>>>> regexp is > >>>> not defined > >>>> > >>> What compiler do you use and which additional options did you > >>> pass to it? It inserted this function call. We need either to > >>> provide this function or inhibit compiler from emiting such calls. > >> > >> I'm using gcc 4.7 on Ubuntu from the ubuntu-toolchain-r/test ppa. > >> I do see a reference to __stack_chk_fail at > >> grub-core/efiemu/runtime/efiemu.c:192. It doesn't look like that > >> file is generated. Perhaps that function was accidentally added > >> to that file? > >=20 > > It comes from using -fstack-protector GCC option. But configure > > should have added -fno-stack-protector in this case. > >=20 > > Could you check defaults using > >=20 > > /path/to/your/gcc -Q --help=3Dcommon > >=20 > > whether it is active by default? Also whether -fno-stack-protector > > was used during compilation? > >=20 > You're right. > @Glenn: can you tell us exact version of GRUB (e.g. git commit) and > attach config.log? I can confirm that adding -fno-stack-protector to CFLAGS allows the compile to be successful. So it does indeed seem to be a problem with the configure script. --Sig_/5pKr/7kLqd_yYUi8l+8yRnM Content-Type: application/pgp-signature; name=signature.asc Content-Disposition: attachment; filename=signature.asc -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.12 (GNU/Linux) iQEcBAEBAgAGBQJSfxrCAAoJEEPj94mUXoYsTIkH/Az4SNVoGXQaSc6TxApxKjaT Bpm4B/8k83p6fZ71DnMtgoWWA3Ja0bLNMCW6tgzYdmFxfD99WlNz9pgQK8iYw+QY VfHkbDm1J05wFNiR0HP5LgGQ2FgAnL1PLl1NA1MyCAJZ021I+uSPjtaalDaLBtKo d/OnPrqih1GyhVyz7ClK7Fbf4ER1v69ZgDcOLgPVGdlD9fCe+Tr64Yu2PaG11sKq xr+2CJRObShqmokFa6Q9A61sIqUdMHUkwXMfW8xhgpeRJHWDgLXaw6i1eKRijx5C yJrzGbuVxvvh6dEI/aR/RgOP7gOmyl1BJP9GR4OHFifbeLNpPOie8h/BXwFxD+0= =cX7/ -----END PGP SIGNATURE----- --Sig_/5pKr/7kLqd_yYUi8l+8yRnM--