[webkit-gtk] building webkit-gtk using gcc 4.7.2 : error: 'isnan' was not declared in this scope
Richard PALO
richard.palo at baou.fr
Sun Dec 30 23:31:22 PST 2012
Hi, hope I'm on the correct list...
Since passing from 1.8.3 to 1.10.* I can't seem to get webkit-gtk to
build. I use pkgsrc on an illumos platform...
I get the following type of errors:
GEN DerivedSources/JavaScriptCore/LLIntDesiredOffsets.h
offlineasm: Parsing
./Source/JavaScriptCore/llint/LowLevelInterpreter.asm and creating
offset extractor DerivedSources/JavaScriptCore/LLIntDesiredOffsets.h.
offlineasm: Including file
./Source/JavaScriptCore/llint/LowLevelInterpreter64.asm
offlineasm: Including file
./Source/JavaScriptCore/llint/LowLevelInterpreter32_64.asm
offlineasm: offset extractor
DerivedSources/JavaScriptCore/LLIntDesiredOffsets.h successfully generated.
CXX
Source/JavaScriptCore/llint/Programs_LLIntOffsetsExtractor-LLIntOffsetsExtractor.o
In file included from ./Source/JavaScriptCore/runtime/JSValue.h:33:0,
from
./Source/JavaScriptCore/runtime/CachedTranscendentalFunction.h:29,
from ./Source/JavaScriptCore/runtime/JSGlobalData.h:32,
from ./Source/JavaScriptCore/interpreter/CallFrame.h:27,
from ./Source/JavaScriptCore/runtime/ArgList.h:25,
from ./Source/JavaScriptCore/runtime/JSObject.h:26,
from ./Source/JavaScriptCore/runtime/JSArray.h:24,
from ./Source/JavaScriptCore/bytecode/ArrayProfile.h:29,
from
Source/JavaScriptCore/llint/LLIntOffsetsExtractor.cpp:28:
./Source/WTF/wtf/MathExtras.h: In function 'void doubleToInteger(double,
long long unsigned int&)':
./Source/WTF/wtf/MathExtras.h:349:16: error: 'isnan' was not declared in
this scope
./Source/WTF/wtf/MathExtras.h:349:16: note: suggested alternative:
In file included from ./Source/WTF/wtf/MathExtras.h:30:0,
from ./Source/JavaScriptCore/runtime/JSValue.h:33,
from
./Source/JavaScriptCore/runtime/CachedTranscendentalFunction.h:29,
from ./Source/JavaScriptCore/runtime/JSGlobalData.h:32,
from ./Source/JavaScriptCore/interpreter/CallFrame.h:27,
from ./Source/JavaScriptCore/runtime/ArgList.h:25,
from ./Source/JavaScriptCore/runtime/JSObject.h:26,
from ./Source/JavaScriptCore/runtime/JSArray.h:24,
from ./Source/JavaScriptCore/bytecode/ArrayProfile.h:29,
from
Source/JavaScriptCore/llint/LLIntOffsetsExtractor.cpp:28:
/opt/pkg/gcc47/include/c++/cmath:839:5: note: 'std::isnan'
gmake: ***
[Source/JavaScriptCore/llint/Programs_LLIntOffsetsExtractor-LLIntOffsetsExtractor.o]
Error 1
*** Error code 2
Stop.
bmake: stopped in /home/richard/src/pkgsrc/www/webkit-gtk3
*** Error code 1
Stop.
bmake: stopped in /home/richard/src/pkgsrc/www/webkit-gtk3
I found (at least in 1.10.1) this problem in the Source/JavaScriptCore,
WTF and WebCore directories... even after patching I get
CXX Source/JavaScriptCore/Programs_jsc_1-jsc.o
In file included from Source/JavaScriptCore/jsc.cpp:32:0:
Source/JavaScriptCore/JSCTypedArrayStubs.h: In member function 'void
JSC::JSInt8Array::finishCreation(JSC::JSGlobalData&)':
Source/JavaScriptCore/JSCTypedArrayStubs.h:194:1: error: invalid
conversion from 'signed char*' to 'int8_t* {aka char*}' [-fpermissive]
gmake[1]: *** [Source/JavaScriptCore/Programs_jsc_1-jsc.o] Error 1
gmake[1]: Leaving directory
`/tmp/pkgsrc/www/webkit-gtk/work/webkitgtk-1.10.1'
gmake: *** [all] Error 2
*** Error code 2
Is there a solution to building on this platform with gcc 4.7.2?
by the way, the pkgsrc gnats bug report is
http://gnats.netbsd.org/cgi-bin/query-pr-single.pl?number=47354
Thanks in advance
More information about the webkit-gtk
mailing list