When building from qmake generated Makefiles, and building the testkjs target in JavaScriptCore/kjs, a whole bunch of defines are lacking on the gcc command line, more specifically -DNDEBUG when not building debug builds, which, in turn, has the nice side effect of provoking a gcc internal compiler error on s390 because of the 0xbbadbeef pointer, which is another story. The following patch is enough to bring the defines in, though that might be too much diff --git a/JavaScriptCore/kjs/testkjs.pro b/JavaScriptCore/kjs/testkjs.pro index ab3016b..dcffabb 100644 --- a/JavaScriptCore/kjs/testkjs.pro +++ b/JavaScriptCore/kjs/testkjs.pro @@ -20,6 +20,7 @@ OBJECTS_DIR = tmp OBJECTS_DIR_WTR = $$OBJECTS_DIR/ win32-*: OBJECTS_DIR_WTR ~= s|/|\| include($$PWD/../JavaScriptCore.pri) +include($$PWD/../../WebKit.pri) # Hack! Fix this. SOURCES -= API/JSBase.cpp \
Resolving because none of this still exists. If this bug is in any way still valid (e.g. is testapi a descendant of testkjs) then please reopen with updated steps to reproduce. Thanks!