From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from list by lists.gnu.org with archive (Exim 4.71) id 1VfNlo-0006fJ-Iq for mharc-grub-devel@gnu.org; Sun, 10 Nov 2013 00:41:12 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:42902) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VfNlj-0006fA-AH for grub-devel@gnu.org; Sun, 10 Nov 2013 00:41:11 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VfNld-0006AF-Da for grub-devel@gnu.org; Sun, 10 Nov 2013 00:41:07 -0500 Received: from mail-lb0-x231.google.com ([2a00:1450:4010:c04::231]:64013) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VfNld-0006A3-5P for grub-devel@gnu.org; Sun, 10 Nov 2013 00:41:01 -0500 Received: by mail-lb0-f177.google.com with SMTP id u14so2420356lbd.8 for ; Sat, 09 Nov 2013 21:41:00 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=date:from:to:subject:message-id:in-reply-to:references:mime-version :content-type; bh=wXwLRmo7XI3mLiLdVcDMkz3dd2qcFN/xmLBl+5gCiZg=; b=lPszxWJ7Ga+IPgrd0ifx0lQushdNCqGn0rIUwOsw4ocFBhE8/8cm1Y1fJm6iD6RZaI vvpIu7j5rt9AZbn5t3wSYGV06EMCrBygwZ/vDHM7ZMdTIxaMjQwj8GXJzgos6aXHqqvK kGELWUz/oFZWcSMFYNxct/6ykbN4O2V6B2WXM/7QYm/faOQ+bCR99z0RB1OF2x4ZjEVT oB+kcMWi2rtTB1RSubwoRUj2iJX7QAb7IVsnISqSE8ftVjZDbZdzoTckJm/4yAWNr/O1 TJ4xrwxIxixjXQBOs76UfkAhIhVaBGxsuP9WJlUBdFx5jc70/BWQz15GA9qfkiBUYYGZ vzPg== X-Received: by 10.112.134.3 with SMTP id pg3mr16921677lbb.11.1384062060050; Sat, 09 Nov 2013 21:41:00 -0800 (PST) Received: from opensuse.site (ppp91-76-174-89.pppoe.mtu-net.ru. [91.76.174.89]) by mx.google.com with ESMTPSA id x7sm16440869lad.7.2013.11.09.21.40.59 for (version=SSLv3 cipher=RC4-SHA bits=128/128); Sat, 09 Nov 2013 21:40:59 -0800 (PST) Date: Sun, 10 Nov 2013 09:40:58 +0400 From: Andrey Borzenkov To: grub-devel@gnu.org Subject: Re: __stack_chk_fail in regexp is not defined Message-ID: <20131110094058.285a04db@opensuse.site> In-Reply-To: <20131109233354.1eeee984@crass-Ideapad-Z570> References: <20131108124231.3fa344de@crass-Ideapad-Z570> <527D3373.9020804@gmail.com> <20131108144243.79c1af39@crass-Ideapad-Z570> <20131109081158.2d933f37@opensuse.site> <527E1E64.4010601@gmail.com> <20131109233354.1eeee984@crass-Ideapad-Z570> X-Mailer: Claws Mail 3.9.2 (GTK+ 2.24.18; x86_64-suse-linux-gnu) Mime-Version: 1.0 Content-Type: multipart/signed; micalg=PGP-SHA1; boundary="Sig_/2elO36nd1QaE.BM768c7OV_"; protocol="application/pgp-signature" X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2a00:1450:4010:c04::231 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:41:11 -0000 --Sig_/2elO36nd1QaE.BM768c7OV_ Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable =D0=92 Sat, 9 Nov 2013 23:33:54 -0600 Glenn Washburn =D0=BF=D0=B8=D1=88=D0=B5=D1=82: > On Sat, 09 Nov 2013 12:37:08 +0100 > Vladimir '=CF=86-coder/phcoder' Serbinenko wrote: >=20 > > 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? >=20 > 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. CFLAGS or TARGET_CFLAGS? CFLAGS should not be a problem, it is host tools which should work. It is TARGET_CFLAGS that are needed. If it is fixed by changing CFLAGS, we have another problem ... --Sig_/2elO36nd1QaE.BM768c7OV_ Content-Type: application/pgp-signature; name=signature.asc Content-Disposition: attachment; filename=signature.asc -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.19 (GNU/Linux) iEYEARECAAYFAlJ/HGoACgkQR6LMutpd94xOfQCgmwvYHGaTGCa/QKXBq84qyp1H TnAAoIlwI7/ZtL/aizj2xs2tnfTi5tO3 =J/UB -----END PGP SIGNATURE----- --Sig_/2elO36nd1QaE.BM768c7OV_--