[Webkit-unassigned] [Bug 132542] New: There is no HW_AVAILCPU on FreeBSD, NetBSD, and OpenBSD

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Sat May 3 23:09:36 PDT 2014


https://bugs.webkit.org/show_bug.cgi?id=132542

           Summary: There is no HW_AVAILCPU on FreeBSD, NetBSD, and
                    OpenBSD
           Product: WebKit
           Version: 528+ (Nightly build)
          Platform: PC
        OS/Version: Other
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: Web Template Framework
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: lantw44 at gmail.com


Revision 167815 changes HW_NCPU to HW_AVAILCPU, which causes build failure on FreeBSD with the following message:

/home/lantw44/gnome/source/webkit-trunk/Source/WTF/wtf/NumberOfCores.cpp:56:13: error: use of undeclared identifier 'HW_AVAILCPU'
            HW_AVAILCPU
            ^
/home/lantw44/gnome/source/webkit-trunk/Source/WTF/wtf/NumberOfCores.cpp:58:43: error: invalid application of 'sizeof' to an incomplete type 'int []'
    int sysctlResult = sysctl(name, sizeof(name) / sizeof(int), &result, &length, 0, 0);
                                          ^~~~~~
2 errors generated.


I run `grep -r HW_AVAILCPU /usr/include` on FreeBSD, NetBSD, OpenBSD, and there is no HW_AVAILCPU.

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list