From: Thomas Petazzoni Date: Tue, 21 May 2019 09:15:51 +0200 Subject: [Buildroot] [PATCH] package/atop: fix BUG_85180 build timeout In-Reply-To: <20190520212723.63754-1-giulio.benetti@micronovasrl.com> References: <20190520212723.63754-1-giulio.benetti@micronovasrl.com> Message-ID: <20190521091551.384da8a1@windsurf.home> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: buildroot@busybox.net Hello, On Mon, 20 May 2019 23:27:23 +0200 Giulio Benetti wrote: > With Microblaze Gcc version < 8.x build hangs on compiling last files > before linking. This is due to bug 85180: > https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85180 > Bug shows up building atop with -g2 and -g3. > > If BR2_TOOLCHAIN_HAS_GCC_BUG_85180=y and BR2_ENABLE_DEBUG=y force using > -g1 passing it to CFLAGS. > > Fixes: > http://autobuild.buildroot.net/results/94a/94aa00f776b8a3491ac0b3212c95f5e666c5a29a/ > > Signed-off-by: Giulio Benetti I am a bit confused: the other instances of bug 85180 are worked around by passing -O0 (in glibmm, opus, chocolate-doom, jasper), but here you do the work around using -g1. Is it expected ? Can't we have the same work around in all situations ? Best regards, Thomas -- Thomas Petazzoni, CTO, Bootlin Embedded Linux and Kernel engineering https://bootlin.com