Received: from list by lists.gnu.org with archive (Exim 4.71) id 1VfQ7N-00036s-6i for mharc-grub-devel@gnu.org; Sun, 10 Nov 2013 03:11:37 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:34354) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VfQ7G-000366-EI for grub-devel@gnu.org; Sun, 10 Nov 2013 03:11:35 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VfQ7B-0006aa-F3 for grub-devel@gnu.org; Sun, 10 Nov 2013 03:11:30 -0500 Received: from mail-bk0-f52.google.com ([209.85.214.52]:58437) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VfQ7B-0006aN-8D for grub-devel@gnu.org; Sun, 10 Nov 2013 03:11:25 -0500 Received: by mail-bk0-f52.google.com with SMTP id v10so1235261bkz.25 for ; Sun, 10 Nov 2013 00:11:24 -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=9sFvWzajmzhlQWzyK5U4L2bVZ6NtxkiysKsvSKxftiM=; b=TxCOLgeYS1XAk3SUjc7es8AbCVVXSAmoXH0JKgWjBa4sk6BF8L2qxRBaksm4GSTDFV +C4FR4zzU7WJsiJ3477JblqNOwKOkYDmpTUD7HHt7GJhgSQLq0bf2BNW52IFhriZ7xDx TSwZ4cfmJzOJ9YE9M4D5GJVj4eECuc73THrpCslw61A2g4dTeqgRQhlBzUMrhrQ8eTp0 9sMZt6ji3UMyoHx6tus35fM+IqVC0cz3Zh7y3WoWco8avO1k09B8CdNnDFVdtOilC0G/ vpkba9c/RMr4e54hXJf8aIM5ZI+Ydw7gs8w8SKxHxX3Fb1IojA62kyp46d+ZiTwTDhv4 Hwhg== X-Gm-Message-State: ALoCoQlZ6kPGXKXbjsQh3HtalKSF7su0XUK+Lx23HPchbp6E+sPtZUxPioNSWqStJgYEIW74FbJb X-Received: by 10.204.230.17 with SMTP id jk17mr17348685bkb.6.1384071084151; Sun, 10 Nov 2013 00:11:24 -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 no2sm10605064bkb.15.2013.11.10.00.11.23 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Sun, 10 Nov 2013 00:11:23 -0800 (PST) Date: Sun, 10 Nov 2013 02:11:15 -0600 From: Glenn Washburn To: grub-devel@gnu.org Subject: Re: __stack_chk_fail in regexp is not defined Message-ID: <20131110021115.38127ff0@crass-Ideapad-Z570> In-Reply-To: <20131110094058.285a04db@opensuse.site> 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> <20131110094058.285a04db@opensuse.site> 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_/Jumi_08n_e=IINvAfaOOZy_"; 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 08:11:35 -0000 --Sig_/Jumi_08n_e=IINvAfaOOZy_ Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On Sun, 10 Nov 2013 09:40:58 +0400 Andrey Borzenkov wrote: > =D0=92 Sat, 9 Nov 2013 23:33:54 -0600 > Glenn Washburn =D0=BF=D0=B8=D1=88=D0=B5=D1= =82: >=20 > > 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. >=20 > 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 ... You may have discovered already the problem, but I wanted to confirm that it was CFLAGS, not TARGET_CFLAGS, that I set to -fno-stack-protector. --Sig_/Jumi_08n_e=IINvAfaOOZy_ Content-Type: application/pgp-signature; name=signature.asc Content-Disposition: attachment; filename=signature.asc -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.12 (GNU/Linux) iQEcBAEBAgAGBQJSfz+jAAoJEEPj94mUXoYsWcoH/2f1X80yUZ8WJON8mGiV6vO3 yEI5fRsVIkcxw/OI8GMxSqOiL1nHsQD9D58dMYyJwfdLnSda6eTNmtqEO8XlMJtD 3r/LD8TMm/BrDnrEdqohVvpI8+hZNhsw63u1QWqV+h5saAeJuwTzMSswT/Sg1eS+ OF3cXPpvtPp9LViWf21llBOdHmwbmcE+FV70nTvDrCufyj+nEtlm0qPKMOW7TkdR DfP6Z+7UYR44O9rguhA7QjxZylhDSCvbmcKgPPC2ouXUPZSGL3uwHim59cllfoh6 o3AY+GldvO+Z0bOCzaMO6FhqkJqxHggAovCjoL5GMqp3grVyY5eUl5E9AjMUGaE= =2baQ -----END PGP SIGNATURE----- --Sig_/Jumi_08n_e=IINvAfaOOZy_--