Bug 44093 - Mac compilation errors
Summary: Mac compilation errors
Status: RESOLVED WORKSFORME
Alias: None
Product: WebKit
Classification: Unclassified
Component: New Bugs (show other bugs)
Version: 528+ (Nightly build)
Hardware: PC OS X 10.5
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-08-17 00:16 PDT by Zoltan Herczeg
Modified: 2014-10-11 11:09 PDT (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Zoltan Herczeg 2010-08-17 00:16:10 PDT
The strange thing is, these compilation fails are appear only on our mac:

FEGaussianBlur.cpp:24 (for alex@igalia.com)
static const float gGaussianKernelFactor = (3 * sqrtf(2 * piFloat) / 4.f);

ERROR: FEGaussianBlur.o has one or more global initializers in it! (/Users/hzoli/WebKitHZ/WebKitBuild/WebCore.build/Release/WebCore.build/Objects-normal/i386/FEGaussianBlur.o), near WebCore::FEGaussianBlur::FEGaussianBlur(WebCore::FilterEffect*, float const&, float const&)
** BUILD FAILED **

The problem is: sqrtf is a function call, cannot be evaluated in compile time.

ResourceHandleMac.mm:1065 (for ap@webkit.org)
m_error = [error copy];

/Users/hzoli/WebKitHZ/WebCore/platform/network/mac/ResourceHandleMac.mm:1065: warning: invalid receiver type 'ResourceError'

These are quite annyoing when you compile on mac. Do you have any idea?
Comment 1 Alexey Proskuryakov 2010-08-17 00:48:28 PDT
Do you have the latest Xcode installed? What version of Mac OS X do you have?

These warnings are easy to work around, but at least the latter one doesn't seem correct to me.
Comment 2 Zoltan Herczeg 2010-08-17 01:00:16 PDT
Mac OS X 10.5.8
XCode: version 3.0

I know, I am just tired of working around all the time after an svn revert.
Comment 3 Alexey Proskuryakov 2010-08-17 01:15:53 PDT
> XCode: version 3.0

I think 3.2.3 is the latest version.
Comment 4 Alexey Proskuryakov 2014-10-11 11:09:34 PDT
This hasn't been heard of since 2010.