Received: from list by lists.gnu.org with archive (Exim 4.90_1) id 1jHQOs-0005T9-JW for mharc-grub-devel@gnu.org; Thu, 26 Mar 2020 07:10:14 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:59577) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jHQOp-0005SA-B3 for grub-devel@gnu.org; Thu, 26 Mar 2020 07:10:13 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1jHQOm-0002jm-VS for grub-devel@gnu.org; Thu, 26 Mar 2020 07:10:11 -0400 Received: from mail-pj1-x1044.google.com ([2607:f8b0:4864:20::1044]:39679) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1jHQOm-0002jC-Oi for grub-devel@gnu.org; Thu, 26 Mar 2020 07:10:08 -0400 Received: by mail-pj1-x1044.google.com with SMTP id z3so1738682pjr.4 for ; Thu, 26 Mar 2020 04:10:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=reply-to:subject:to:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=DerZCgbobO9ZV9l8RQ8PQFfJ5RDMRD05bzqSDcpHgfg=; b=c0+/U8pgKVUkLkHGAB9wB5Jj8fzNIAVwH7K6jq4v6sVKMhS5kvUqYud1D87r/jGJA2 BwUT8/Y7lVWH97XajSOJEBuJB5RBDeFh5dhfwyYuXzSdkREJzXEcOEB/7Ce6CArFEsJZ Lm0Aun/YCkoX3QdgK0r+R+oQdXvD3H1XfRrkLzEEbNdXjG8PV1MOnx4Efe85KPhGE6cT d4/ToAUuBPfwPajmrY+PZ2ZdElXf4O3yfh74nXwfhh6bO4+lK0B3meKYCXTKxdcum8qv ZB/ryYylTwSFoEGfyH4JCuyA5oRBaOi9QMR+fZWJUczKN6A11wN3U21D32wMJGxz5TdO KD5w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:reply-to:subject:to:references:from:message-id :date:user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=DerZCgbobO9ZV9l8RQ8PQFfJ5RDMRD05bzqSDcpHgfg=; b=SrwLGJvHhSVftBbRl/1JGyrL2U9ITT5lvm/mDLxgvQzV14vO48YACkmX0jK843q//K tAmUxuY2Dbr2RCl1yiA2Glu8mVVpd7nn67Mhf37dMXutLfRSwFH/UlxAzkmntlsLZ+dk t1MhDbICxu5TcyVQ6Hoctw1ot+Htf4DLLbtXlyRblYpvWv2lMsHFVZwD7xKxIdk2ZqF0 FZIXt1MhDr30CZXtRs/FGeCVZNY7Fi1g+h69v3pMRkjU7riVKnlNy1zoK0gdm2gWfzM5 FxC99o0H4pvXE2YzfWbKENFj3jzKae71C3SWY5haCLaBc72jTnUIoKoU36SPrk7gkS0a 3NkQ== X-Gm-Message-State: ANhLgQ1O+Wsl28k5aMpVauxlGjoKV8tI/Ds0K4EJicnpWFt0EGqWaHPi wbew6p340G7wfrYVBMCZ0PA= X-Google-Smtp-Source: ADFU+vuLNX85ToxWcrX5gI3nCgucIuaTJNHqV4CSkN7toVy2ocvZi9fpnVTkOxfFtj0amF8WZja71A== X-Received: by 2002:a17:902:9890:: with SMTP id s16mr7398430plp.71.1585221007604; Thu, 26 Mar 2020 04:10:07 -0700 (PDT) Received: from mua.localhost (99-7-172-215.lightspeed.snmtca.sbcglobal.net. [99.7.172.215]) by smtp.gmail.com with ESMTPSA id w9sm1435806pfd.94.2020.03.26.04.10.06 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 26 Mar 2020 04:10:06 -0700 (PDT) Reply-To: pgnet.dev@gmail.com Subject: =?UTF-8?B?UmU6IGZzL250ZnNjb21wLmM6ODI6MTE6IGVycm9yOiDigJhmbGfigJkg?= =?UTF-8?Q?may_be_used_uninitialized_in_this_function_=5b-Werror=3dmaybe-uni?= =?UTF-8?Q?nitialized=5d?= To: Michael Chang , The development of GNU GRUB , pmenzel@molgen.mpg.de References: <67da1ace-cfc0-ac9d-5f65-5aac2ba38ca2@molgen.mpg.de> <20200326103901.GA31860@mercury> From: PGNet Dev Message-ID: <7c3d6f54-acd2-46a4-7f16-8a79a8309b47@gmail.com> Date: Thu, 26 Mar 2020 04:10:05 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.6.0 MIME-Version: 1.0 In-Reply-To: <20200326103901.GA31860@mercury> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:4864:20::1044 X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: The development of GNU GRUB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 26 Mar 2020 11:10:13 -0000 On 3/26/20 1:39 AM, Paul Menzel wrote: > I am unable to reproduce this with 1st sanity re-check: I _am_ able to reproduce this consistently, with same error. I've tested now on multiple machines; not identical, but all similarly opensuse + GCC10 dev envs ... > Here is the code in question: snip > Why is it complaining complaining in line 82 and not 78, where `flg` is already accessed? On 3/26/20 3:39 AM, Michael Chang wrote: > Looking into build log, the build option seems to have been overridden > with CFLAGS settings like this. > > CFLAGS="-O3 -Wall -fstack-protector-strong -funwind-tables > -fasynchronous-unwind-tables -fmessage-length=0 -grecord-gcc-switches > -march=native -mtune=native" > > I'm not sure if -O3 is considered as supported since that will result > in larger binaries we are striving to reduce all the time. Also the > optimization it brings would require careful review if we don't enable > it by default. > > In addition, -fstack-protector-strong breaks the build even harder with > a lot of __stack_chk_fail undefined symbol in the modules. > > If going with default build option, I also don't have this compliation > error. indeed. building with unset CC CPP + unset LD CFLAGS CPPFLAGS CXXFLAGS ./bootstrap ./autogen.sh ./configure \ --prefix=/usr/local/grub-build-test make V=1 completes without error, and installs, /usr/local/grub-build-test/bin/grub-mkrescue --version /usr/local/grub-build-test/bin/grub-mkrescue (GRUB) 2.05 which I can certainly manage easily enough for local build. > If going with default build option _is_ a 'clear' env expected/recommended/required for a grub2 build? if so, does this need to be handled at config time? in either case, this > Why is it complaining complaining in line 82 and not 78, where `flg` is already accessed? doesn't make sense to me; code looks straightforward enough. the -03 optimization sounds a good 1st guess. also, Michael, fyi, I _think_ this^ started for me with linked GCC10 builds of grub2 on opensuse OBS ... where, iirc, the builds 1st failed, and I started testing locally.