Bug 140616

Summary: [GTK] Cannot compile 2.7.3 on PowerPC machines
Product: WebKit Reporter: Tomas Popela <tpopela>
Component: WebKitGTKAssignee: Nobody <webkit-unassigned>
Severity: Normal CC: berto, cgarcia, commit-queue, rob.mackinnon, spam, zan
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: Unspecified   
OS: Unspecified   
Description Flags
Patch ossy: review+, ossy: commit-queue-

Description Tomas Popela 2015-01-19 04:31:31 PST
Compiling GTK port with -DENABLE_JIT=OFF -DENABLE_LLINT_C_LOOP=ON and with -DENABLE_YARR_JIT=0 ends with:

/builddir/build/BUILD/webkitgtk-2.7.3/Source/JavaScriptCore/runtime/BasicBlockLocation.cpp: In member function 'WTF::Vector<std::pair<int, int> > JSC::BasicBlockLocation::getExecutedRanges() const':
/builddir/build/BUILD/webkitgtk-2.7.3/Source/JavaScriptCore/runtime/BasicBlockLocation.cpp:54:20: error: 'INT_MAX' was not declared in this scope
         Gap minGap(INT_MAX, 0);
/builddir/build/BUILD/webkitgtk-2.7.3/Source/JavaScriptCore/runtime/BasicBlockLocation.cpp: In member function 'void JSC::BasicBlockLocation::dumpData() const':
/builddir/build/BUILD/webkitgtk-2.7.3/Source/JavaScriptCore/runtime/BasicBlockLocation.cpp:76:117: error: 'dataLogF' was not declared in this scope
         dataLogF("\tBasicBlock: [%d, %d] hasExecuted: %s\n", gap.first, gap.second, hasExecuted() ? "true" : "false");

It also applies for trunk.
Comment 1 Tomas Popela 2015-01-19 04:34:14 PST
Created attachment 244896 [details]
Comment 2 WebKit Commit Bot 2015-01-19 04:36:00 PST
Attachment 244896 [details] did not pass style-queue:

ERROR: Source/JavaScriptCore/ChangeLog:6:  Line contains tab character.  [whitespace/tab] [5]
Total errors found: 1 in 2 files

If any of these errors are false positives, please file a bug against check-webkit-style.
Comment 3 Tomas Popela 2015-01-19 04:41:58 PST
Created attachment 244897 [details]
Comment 4 Alberto Garcia 2015-01-19 05:10:57 PST
lgtm, thanks
Comment 5 Csaba Osztrogon√°c 2015-01-20 05:55:07 PST
Comment on attachment 244897 [details]

View in context: https://bugs.webkit.org/attachment.cgi?id=244897&action=review

> Source/JavaScriptCore/runtime/BasicBlockLocation.cpp:34
>  #include "CCallHelpers.h"
> +#include <climits>
> +
> +#include <wtf/DataLog.h>

LGTM, but please remove the blank lines before landing.
Comment 6 Csaba Osztrogon√°c 2015-01-20 05:56:10 PST
Comment on attachment 244897 [details]

#include "config.h"
#include "BasicBlockLocation.h"

#include "CCallHelpers.h"
#include <climits>
#include <wtf/DataLog.h>
Comment 7 Carlos Garcia Campos 2015-01-20 06:01:36 PST
Committed r178708: <http://trac.webkit.org/changeset/178708>
Comment 8 Michael Catanzaro 2015-09-04 08:41:36 PDT
*** Bug 142511 has been marked as a duplicate of this bug. ***
Comment 9 Michael Catanzaro 2015-09-04 08:41:40 PDT
*** Bug 139588 has been marked as a duplicate of this bug. ***