NetBSD Problem Report #45429
From www@NetBSD.org Wed Oct 5 08:00:51 2011
Received: from mail.netbsd.org (mail.netbsd.org [22.214.171.124])
by www.NetBSD.org (Postfix) with ESMTP id 5226C63D48C
for <gnats-bugs@gnats.NetBSD.org>; Wed, 5 Oct 2011 08:00:51 +0000 (UTC)
Date: Wed, 5 Oct 2011 08:00:50 +0000 (UTC)
Subject: webkit-gtk does not compile on NetBSD 5.1/macppc
>Synopsis: webkit-gtk does not compile on NetBSD 5.1/macppc
>Arrival-Date: Wed Oct 05 08:05:00 +0000 2011
>Last-Modified: Wed Oct 12 03:40:02 +0000 2011
>Originator: Nikolay Hristov
NetBSD macppc 5.1 NetBSD 5.1 (G4) #5: Sat Nov 19 19:39:08 EET 2011 root@macppc:/usr/src/sys/arch/macppc/compile/G4 macppc
This is addition to bug report #40533
Simply webkit-gtk does not compile on NetBSD 5.1/macppc but since all errors are redirected to /dev/null the error is not displayed.
I've managed to see what exactly is the error and this seems to be gcc bug.:
If I try manually to edit GNUmakefile and replace all -O2 with -O0 webkit-gtk compiles nicely. However I don't know how to get build process to use only -O0.
Tried to add hacks.mk file which contains:
zsh 14 # cat hacks.mk
# $NetBSD: hacks.mk,v 1.1 2006/08/07 11:21:45 wiz Exp $
but still when generated GNUmakefile contains one -O2 that mess with -O0 and the error is again displayed.
as seen from generated GNUmakefile:
CFLAGS = -O0 -I/usr/pkg/include -I/usr/include -I/usr/X11R7/include/freetype2 -I/usr/X11R7/include -O2
CXXFLAGS = -O0 -I/usr/pkg/include -I/usr/include -I/usr/X11R7/include/freetype2 -I/usr/X11R7/include -O0 -O2
can't find where it adds this additional -O2 at the end of the line
try to build webkit-gtk on NetBSD 5.1/macppc
Quick and dirty solution is when configure process is finished and GNUmakefile is generated to stop the process and edit it by hand replacing all -O2 with -O0 strings and then use gmake again.
From: "David H. Gutteridge" <firstname.lastname@example.org>
Subject: Re: pkg/45429: webkit-gtk does not compile on NetBSD 5.1/macppc
Date: Tue, 11 Oct 2011 22:37:57 -0400
On Wed Oct 05, 2011, at 08:05:00, Nikolay Hristov wrote:
>If I try manually to edit GNUmakefile and replace all -O2 with -O0
>webkit-gtk compiles nicely. However I don't know how to get build
>process to use only -O0.
If you have a look at the hacks.mk file in lang/perl5, there's a
powerpc-specific segment that does what you're after, I believe.
$NetBSD: query-full-pr,v 1.39 2013/11/01 18:47:49 spz Exp $
$NetBSD: gnats_config.sh,v 1.8 2006/05/07 09:23:38 tsutsui Exp $
Copyright © 1994-2007
The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.