NetBSD Problem Report #45429
From www@NetBSD.org Wed Oct 5 08:00:51 2011
Return-Path: <www@NetBSD.org>
Received: from mail.netbsd.org (mail.netbsd.org [204.152.190.11])
by www.NetBSD.org (Postfix) with ESMTP id 5226C63D48C
for <gnats-bugs@gnats.NetBSD.org>; Wed, 5 Oct 2011 08:00:51 +0000 (UTC)
Message-Id: <20111005080050.8E97F63B86C@www.NetBSD.org>
Date: Wed, 5 Oct 2011 08:00:50 +0000 (UTC)
From: devane@gmail.com
Reply-To: devane@gmail.com
To: gnats-bugs@NetBSD.org
Subject: webkit-gtk does not compile on NetBSD 5.1/macppc
X-Send-Pr-Version: www-1.0
>Number: 45429
>Category: pkg
>Synopsis: webkit-gtk does not compile on NetBSD 5.1/macppc
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: pkg-manager
>State: closed
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Wed Oct 05 08:05:00 +0000 2011
>Closed-Date: Wed Nov 21 09:20:35 +0000 2018
>Last-Modified: Wed Nov 21 09:20:35 +0000 2018
>Originator: Nikolay Hristov
>Release: 5.1
>Organization:
>Environment:
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
>Description:
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.:
...
...
./Source/JavaScriptCore/wtf/FastMalloc.cpp:1142: instantiated from here
./Source/JavaScriptCore/wtf/FastMalloc.cpp:1039: warning: cast from 'char*' to 'void**' increases required alignment of target type
./Source/JavaScriptCore/wtf/FastMalloc.cpp: In member function 'T* WTF::PageHeapAllocator::New() [with T = WTF::TCMalloc_ThreadCache]':
./Source/JavaScriptCore/wtf/FastMalloc.cpp:3045: instantiated from here
./Source/JavaScriptCore/wtf/FastMalloc.cpp:1039: warning: cast from 'char*' to 'void**' increases required alignment of target type
./Source/JavaScriptCore/wtf/TCSpinLock.h: In member function 'void WTF::TCMalloc_ThreadCache::PickNextSample(size_t)':
./Source/JavaScriptCore/wtf/TCSpinLock.h:113: error: 'asm' operand requires impossible reload
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 $
.include "../../mk/compiler.mk"
CFLAGS+= -O0
CXXFLAGS+= -O0
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
>How-To-Repeat:
try to build webkit-gtk on NetBSD 5.1/macppc
>Fix:
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.
>Release-Note:
>Audit-Trail:
From: "David H. Gutteridge" <dhgutteridge@sympatico.ca>
To: gnats-bugs@netbsd.org
Cc:
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.
Regards,
Dave
State-Changed-From-To: open->closed
State-Changed-By: maya@NetBSD.org
State-Changed-When: Wed, 21 Nov 2018 09:20:35 +0000
State-Changed-Why:
stale bug report: webkit-gtk on powerpc is currently failing due to the lack of 64bit atomics.
(For supported versions of netbsd)
>Unformatted:
(Contact us)
$NetBSD: query-full-pr,v 1.43 2018/01/16 07:36:43 maya Exp $
$NetBSD: gnats_config.sh,v 1.9 2014/08/02 14:16:04 spz Exp $
Copyright © 1994-2017
The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.