From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from list by lists.gnu.org with archive (Exim 4.71) id 1VfTyk-0006GV-5c for mharc-grub-devel@gnu.org; Sun, 10 Nov 2013 07:18:58 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:43469) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VfTye-0005tJ-3N for grub-devel@gnu.org; Sun, 10 Nov 2013 07:18:56 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VfTyY-0003HD-Qj for grub-devel@gnu.org; Sun, 10 Nov 2013 07:18:52 -0500 Received: from mail-ea0-x22d.google.com ([2a00:1450:4013:c01::22d]:58390) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VfTyY-0003Gw-F9 for grub-devel@gnu.org; Sun, 10 Nov 2013 07:18:46 -0500 Received: by mail-ea0-f173.google.com with SMTP id g10so2111817eak.32 for ; Sun, 10 Nov 2013 04:18:45 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:content-type; bh=sIXhtmsiWlLEZ8QakmiyCM4VuSjgWtpeO3wyusfkL7U=; b=L7Pe4AXlAicshpAgcwXRYIbIHl+OeTyDQGMdXK5AnBJZ6ANdx0gjzCS2bagrAsOL7Y mWAPSUmLT/VGlWf0N2l43gYriOCgclXtSFJ22rggV3PVql7Mqr15dtuLUxY8w42gJP8F VNvxVvdWliOzw+uE49U1MZbfzGbq25NE/sYsVpAwlWrjbAsARnWmrUYCqFb6hU7X3mVa mfXxPjQybXJkxgyrTu1AP/2PJBlX5AWsfBq2lr3kLHVop9sFiAHaX9Yf7P0RQ4zgc2DR WxvkVpJadISKeM6wkPeilB7Fw4Pv/yDvoWjvvV+6ElN6GePWcgsYhFFXFUuDJIQgk0qh YQ6w== X-Received: by 10.14.105.200 with SMTP id k48mr28349742eeg.1.1384085925386; Sun, 10 Nov 2013 04:18:45 -0800 (PST) Received: from [192.168.1.16] (31-249.1-85.cust.bluewin.ch. [85.1.249.31]) by mx.google.com with ESMTPSA id k7sm40382470eeg.13.2013.11.10.04.18.44 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sun, 10 Nov 2013 04:18:44 -0800 (PST) Message-ID: <527F79A1.1000405@gmail.com> Date: Sun, 10 Nov 2013 13:18:41 +0100 From: =?UTF-8?B?VmxhZGltaXIgJ8+GLWNvZGVyL3BoY29kZXInIFNlcmJpbmVua28=?= User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20131005 Icedove/17.0.9 MIME-Version: 1.0 To: grub-devel@gnu.org Subject: Re: __stack_chk_fail in regexp is not defined References: <20131108124231.3fa344de@crass-Ideapad-Z570> <527D3373.9020804@gmail.com> <20131108144243.79c1af39@crass-Ideapad-Z570> <20131109081158.2d933f37@opensuse.site> <527E1E64.4010601@gmail.com> <20131109230935.47ce1eaf@crass-Ideapad-Z570> <20131110093906.08e8c893@opensuse.site> <20131110113512.1dc916ef@opensuse.site> In-Reply-To: <20131110113512.1dc916ef@opensuse.site> X-Enigmail-Version: 1.5.1 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="----enig2CAMUPEBGDOHNWTBQLSVI" X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2a00:1450:4013:c01::22d 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 12:18:56 -0000 This is an OpenPGP/MIME signed message (RFC 4880 and 3156) ------enig2CAMUPEBGDOHNWTBQLSVI Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On 10.11.2013 08:35, Andrey Borzenkov wrote: > =D0=92 Sun, 10 Nov 2013 09:39:06 +0400 > Andrey Borzenkov =D0=BF=D0=B8=D1=88=D0=B5=D1=82: >=20 >> =D0=92 Sat, 9 Nov 2013 23:09:35 -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:= >>> >>>> 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: >>>>> >>>>>> On Fri, 08 Nov 2013 19:54:43 +0100 >>>>>> Vladimir '=CF=86-coder/phcoder' Serbinenko wro= te: >>>>>> >>>>>>> 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= =2E >>>>>> >>>>>> 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? >>>>> >>>>> It comes from using -fstack-protector GCC option. But configure >>>>> should have added -fno-stack-protector in this case. >>>>> >>>>> Could you check defaults using >>>>> >>>>> /path/to/your/gcc -Q --help=3Dcommon >>>>> >>>>> whether it is active by default? Also whether -fno-stack-protector >>>>> was used during compilation? >>>>> >>>> You're right. >>>> @Glenn: can you tell us exact version of GRUB (e.g. git commit) and >>>> attach config.log? >>> >>> The commit for these logs is 9612ebc00ef5f186e9084b60ceeb1606d34f1d23= =2E >>> >>> It looks like stack protector is disabled in gcc and I don't believe >>> that -fno-stack-protector is being used. >>> >> >> Check for -fstack-protector is broken (always fails). >=20 > The problem is this commit: >=20 > commit 24f4e57c4684471da088c504dec0380886eece0c > Author: Vladimir Serbinenko > Date: Thu Nov 7 03:17:37 2013 +0100 >=20 > * configure.ac: Prevent cflags leaking to subsequent tests by a= lways > resetting cflags to target_cflags in target tests. >=20 > It removed restoring of CFLAGS causing leakage of temporary CFLAGS into= > subsequent tests that do not explicitly reset CFLAGS. This is also brok= e efiemu tests: >=20 > efiemu runtime: No (cannot compile with -m64 -mcmodel=3Dlarge -mno-red-= zone -nostdlib) >=20 > And reason why all tests fail >=20 > gcc ... -march=3Di386 -m32 -mrtd -mregparm=3D3 -falign-jumps=3D1 > -falign-loops=3D1 -falign-functions=3D1 -freg-struct-return -mno-mmx -m= no-sse -mno-sse2 -mno-3dnow -fno-dwarf2-cfi-asm -fno-asynchronous-unwind-= tables -m64 -mcmodel=3Dlarge -mno-red-zone -nostdlib -Wall -W '-I$(top_sr= cdir)/include' '-I$(top_builddir)/include' -DGRUB_MACHINE_PCBIOS=3D1 -DGR= UB_MACHINE=3DI386_PC -DGRUB_TARGET_CPU_I386=3D1 conftest.c -S -fstack-pro= tector -o conftest.s > conftest.c:1:0: error: CPU you selected does not support x86-64 instruc= tion set > conftest.c:1:0: error: CPU you selected does not support x86-64 instruc= tion set > conftest.c:1:0: warning: -mregparm is ignored in 64-bit mode [enabled b= y default] >=20 > CFLAGS need to be preserved and restored around all compiler flag tests= ; or all tests need to explicitly set them. >=20 Fixed, thanks for spotting those tests. >=20 >=20 >=20 > _______________________________________________ > Grub-devel mailing list > Grub-devel@gnu.org > https://lists.gnu.org/mailman/listinfo/grub-devel >=20 ------enig2CAMUPEBGDOHNWTBQLSVI Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.15 (GNU/Linux) Comment: Using GnuPG with Icedove - http://www.enigmail.net/ iF4EAREKAAYFAlJ/eaIACgkQmBXlbbo5nOvK+wEAqK1TQU5yWJkE7WLxq6ji2Gqs TeSkRXxZKKRjAwPQP4MA/0a1R67s7bmQ3FJ5fjlHBWHV0uKbkyGol9j6gz0UoOg8 =gIMj -----END PGP SIGNATURE----- ------enig2CAMUPEBGDOHNWTBQLSVI--