From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id B1135389683B; Thu, 22 Apr 2021 15:27:20 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org B1135389683B From: "sujay1844 at protonmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug jit/100207] -Werror=format-security error in AUR build of libgccjit Date: Thu, 22 Apr 2021 15:27:20 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: jit X-Bugzilla-Version: 10.2.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: sujay1844 at protonmail dot com X-Bugzilla-Status: RESOLVED X-Bugzilla-Resolution: FIXED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: dmalcolm at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: gcc-bugs@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-bugs mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 22 Apr 2021 15:27:20 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D100207 --- Comment #15 from sujay1844 at protonmail dot com --- I did some digging and found this:- I checked my timeshift snapshot (which I took just after installation). The etc/makepkg.conf is that goes like so:- #-- Compiler and Linker Flags CPPFLAGS=3D"-D_FORTIFY_SOURCE=3D2" CFLAGS=3D"-march=3Dx86-64 -mtune=3Dgeneric -O2 -pipe -fno-plt" CXXFLAGS=3D"-march=3Dx86-64 -mtune=3Dgeneric -O2 -pipe -fno-plt" LDFLAGS=3D"-Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now" #RUSTFLAGS=3D"-C opt-level=3D2" #-- Make Flags: change this for DistCC/SMP systems #MAKEFLAGS=3D"-j2" #-- Debugging flags DEBUG_CFLAGS=3D"-g -fvar-tracking-assignments" DEBUG_CXXFLAGS=3D"-g -fvar-tracking-assignments" #DEBUG_RUSTFLAGS=3D"-C debuginfo=3D2" To be sure that this is safe, I installed Manjaro in a virtual machine. (Clearly, the guys at Manjaro know more about security than me) The /etc/makepkg.conf had the same thing as in my timeshift snapshot. So I conc= lude that removing those unwanted flags are safe. I also checked the ArchWiki article on makepkg and made some tweaks to improve performance and this is = my current /etc/makepkg.conf looks like:- #-- Compiler and Linker Flags CPPFLAGS=3D"-D_FORTIFY_SOURCE=3D2" CFLAGS=3D"-march=3Dx86-64 -mtune=3Dgeneric -O2 -pipe -fno-plt" CXXFLAGS=3D"-march=3Dx86-64 -mtune=3Dgeneric -O2 -pipe -fno-plt" LDFLAGS=3D"-Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now" #RUSTFLAGS=3D"-C opt-level=3D2" #-- Make Flags: change this for DistCC/SMP systems #MAKEFLAGS=3D"-j2" #-- Debugging flags DEBUG_CFLAGS=3D"-g -fvar-tracking-assignments" DEBUG_CXXFLAGS=3D"-g -fvar-tracking-assignments" #DEBUG_RUSTFLAGS=3D"-C debuginfo=3D2" Thank you for your valuable time!! Please give any suggestions if any. And you can close this bug.=