Subject: Re: fluxbox and -funroll-loops
To: None <tech-pkg@NetBSD.org>
From: Johnny C. Lam <jlam@NetBSD.org>
List: tech-pkg
Date: 08/31/2004 06:32:58
On Tue, Aug 31, 2004 at 12:06:43AM +0200, Julio M. Merino Vidal wrote:
>
> I added -funroll-loops in my C{,XX}FLAGS and fluxbox doesn't compile. Well,
> in fact it compiles up to fluxbox.cc, but at that point gcc seems to hang
> (it has been running for more than eight minutes consuming cpu). Removing
> the flag lets it compile very fast.
>
> This is under NetBSD 2.0G, that is, with gcc 3.3.3nb3. Could anybody try
> to reproduce?
>
> Should we do anything here to prevent such problems hitting other people?
> For example, remove those flags from fluxbox's Makefile and add an entry
> in HACKS?
If this is reproducible under a certain set of conditions, then
committing a fix for this and adding a HACKS entry is appropriate.
I would recommend adding:
.if ...
BUILDLINK_TRANSFORM+= rm:-funroll-loops
.endif
to pkgsrc/wm/fluxbox/Makefile to enforce this restriction.
Cheers,
-- Johnny Lam <jlam@NetBSD.org>