pkgsrc-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

pkg/45429: webkit-gtk does not compile on NetBSD 5.1/macppc



>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:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Oct 05 08:05:00 +0000 2011
>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.



Home | Main Index | Thread Index | Old Index