WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
167555
Check USE(APPLE_INTERNAL_SDK) instead of specific headers when importing from WebKitAdditions
https://bugs.webkit.org/show_bug.cgi?id=167555
Summary
Check USE(APPLE_INTERNAL_SDK) instead of specific headers when importing from...
Wenson Hsieh
Reported
2017-01-28 11:52:10 PST
Check USE(APPLE_INTERNAL_SDK) instead of specific headers when importing WebKitAdditions
Attachments
Patch
(7.74 KB, patch)
2017-01-28 11:56 PST
,
Wenson Hsieh
no flags
Details
Formatted Diff
Diff
View All
Add attachment
proposed patch, testcase, etc.
Wenson Hsieh
Comment 1
2017-01-28 11:56:24 PST
Created
attachment 300046
[details]
Patch
Wenson Hsieh
Comment 2
2017-01-28 14:48:44 PST
Comment on
attachment 300046
[details]
Patch Thanks Dan!
WebKit Commit Bot
Comment 3
2017-01-28 15:14:39 PST
Comment on
attachment 300046
[details]
Patch Clearing flags on attachment: 300046 Committed
r211342
: <
http://trac.webkit.org/changeset/211342
>
WebKit Commit Bot
Comment 4
2017-01-28 15:14:45 PST
All reviewed patches have been landed. Closing bug.
JF Bastien
Comment 5
2017-01-30 13:48:34 PST
This seems to break the cmake build: FAILED: Source/WTF/wtf/CMakeFiles/WTF.dir/Atomics.cpp.o /Applications/Xcode.app/Contents/Developer/Toolchains/OSX10.12.xctoolchain/usr/bin/c++ -DBUILDING_WITH_CMAKE=1 -DBUILDING_WTF -DHAVE_CONFIG_H=1 -I../Source/bmalloc -I../Source/WTF -I../Source/WTF/wtf -I../Source/WTF/wtf/dtoa -I../Source/WTF/wtf/persistence -I../Source/WTF/wtf/text -I../Source/WTF/wtf/text/icu -I../Source/WTF/wtf/threads -I../Source/WTF/wtf/unicode -I../Source/ThirdParty -I. -IDerivedSources -I../Source/WTF/wtf/spi/darwin -I../Source/WTF/icu -std=c++1y -fcolor-diagnostics -Qunused-arguments -O3 -DNDEBUG -fno-exceptions -fno-strict-aliasing -fno-rtti -Wall -Wextra -Wcast-align -Wformat-security -Wmissing-format-attribute -Wpointer-arith -Wundef -Wwrite-strings -Wno-parentheses-equality -fPIC -MD -MT Source/WTF/wtf/CMakeFiles/WTF.dir/Atomics.cpp.o -MF Source/WTF/wtf/CMakeFiles/WTF.dir/Atomics.cpp.o.d -o Source/WTF/wtf/CMakeFiles/WTF.dir/Atomics.cpp.o -c ../Source/WTF/wtf/Atomics.cpp In file included from ../Source/WTF/wtf/Atomics.cpp:26: In file included from ../Source/WTF/config.h:26: ../Source/WTF/wtf/Platform.h:673:10: fatal error: 'WebKitAdditions/AdditionalFeatureDefines.h' file not found #include <WebKitAdditions/AdditionalFeatureDefines.h> ^ Repro with: xcrun cmake -Wno-dev .. -G Ninja \ -DCMAKE_BUILD_TYPE="Release" \ -DPORT=Mac ninja jsc
mitz
Comment 6
2017-01-30 15:48:26 PST
(In reply to
comment #5
)
> This seems to break the cmake build: > > FAILED: Source/WTF/wtf/CMakeFiles/WTF.dir/Atomics.cpp.o > /Applications/Xcode.app/Contents/Developer/Toolchains/OSX10.12.xctoolchain/ > usr/bin/c++ -DBUILDING_WITH_CMAKE=1 -DBUILDING_WTF -DHAVE_CONFIG_H=1 > -I../Source/bmalloc -I../Source/WTF -I../Source/WTF/wtf > -I../Source/WTF/wtf/dtoa -I../Source/WTF/wtf/persistence > -I../Source/WTF/wtf/text -I../Source/WTF/wtf/text/icu > -I../Source/WTF/wtf/threads -I../Source/WTF/wtf/unicode > -I../Source/ThirdParty -I. -IDerivedSources -I../Source/WTF/wtf/spi/darwin > -I../Source/WTF/icu -std=c++1y -fcolor-diagnostics -Qunused-arguments -O3 > -DNDEBUG -fno-exceptions -fno-strict-aliasing -fno-rtti -Wall -Wextra > -Wcast-align -Wformat-security -Wmissing-format-attribute -Wpointer-arith > -Wundef -Wwrite-strings -Wno-parentheses-equality -fPIC -MD -MT > Source/WTF/wtf/CMakeFiles/WTF.dir/Atomics.cpp.o -MF > Source/WTF/wtf/CMakeFiles/WTF.dir/Atomics.cpp.o.d -o > Source/WTF/wtf/CMakeFiles/WTF.dir/Atomics.cpp.o -c > ../Source/WTF/wtf/Atomics.cpp > In file included from ../Source/WTF/wtf/Atomics.cpp:26: > In file included from ../Source/WTF/config.h:26: > ../Source/WTF/wtf/Platform.h:673:10: fatal error: > 'WebKitAdditions/AdditionalFeatureDefines.h' file not found > #include <WebKitAdditions/AdditionalFeatureDefines.h> > ^ > > > Repro with: > > xcrun cmake -Wno-dev .. -G Ninja \ > -DCMAKE_BUILD_TYPE="Release" \ > -DPORT=Mac > ninja jsc
Are you building with the Apple Internal SDK? If so, and if your Apple Internal SDK or build directory doesn’t contain AdditionalFeatureDefines.h, then please use Apple-internal channels to resolve it. If you are not building with the Apple Internal SDK, then it’s a bug in the cmake build system that USE(APPLE_INTERNAL_SDK) is true when you build, and a cmake-build-system expert would need to fix that.
JF Bastien
Comment 7
2017-01-30 16:57:00 PST
> Are you building with the Apple Internal SDK? If so, and if your Apple > Internal SDK or build directory doesn’t contain AdditionalFeatureDefines.h, > then please use Apple-internal channels to resolve it. > > If you are not building with the Apple Internal SDK, then it’s a bug in the > cmake build system that USE(APPLE_INTERNAL_SDK) is true when you build, and > a cmake-build-system expert would need to fix that.
Sorry, I had an in-person chat with Wenson and should have sent an update here. The problem is: #if PLATFORM(COCOA) #if defined __has_include && __has_include(<CoreFoundation/CFPriv.h>) #define USE_APPLE_INTERNAL_SDK 1 #endif #endif Some internal headers are found in cmake's /DerivedSources/ForwardingHeaders/WebCore/, including CFPriv.h, but new ones aren't found. I was building jsc only, so some part of the build cmake process is missing a dependency. Maybe that bug only affects Apple employees using the cmake build. Wenson said he'd look into it.
mitz
Comment 8
2017-01-30 17:53:29 PST
(In reply to
comment #7
)
> > Are you building with the Apple Internal SDK? If so, and if your Apple > > Internal SDK or build directory doesn’t contain AdditionalFeatureDefines.h, > > then please use Apple-internal channels to resolve it. > > > > If you are not building with the Apple Internal SDK, then it’s a bug in the > > cmake build system that USE(APPLE_INTERNAL_SDK) is true when you build, and > > a cmake-build-system expert would need to fix that. > > Sorry, I had an in-person chat with Wenson and should have sent an update > here. > > The problem is: > > #if PLATFORM(COCOA) > #if defined __has_include && __has_include(<CoreFoundation/CFPriv.h>) > #define USE_APPLE_INTERNAL_SDK 1 > #endif > #endif
Yeah, that code isn’t great (I reviewed it!). USE_APPLE_INTERNAL_SDK should be passed by the build system so that it matches up with the USE_INTERNAL_SDK build setting (normally defined in Base.xcconfig).
Daniel Bates
Comment 9
2017-01-31 03:57:55 PST
(In reply to
comment #8
)
> > [...] > > Sorry, I had an in-person chat with Wenson and should have sent an update > > here. > > > > The problem is: > > > > #if PLATFORM(COCOA) > > #if defined __has_include && __has_include(<CoreFoundation/CFPriv.h>) > > #define USE_APPLE_INTERNAL_SDK 1 > > #endif > > #endif > > Yeah, that code isn’t great (I reviewed it!). USE_APPLE_INTERNAL_SDK should > be passed by the build system so that it matches up with the > USE_INTERNAL_SDK build setting (normally defined in Base.xcconfig).
The disagreement of the macro define and Xcode build variable is tracked in
bug #141947
.
Saam Barati
Comment 10
2017-01-31 11:24:06 PST
This also builds "./Tools/Scripts/build-jsc --release" for Apple employees. It would be nice to fix this.
Saam Barati
Comment 11
2017-01-31 11:25:09 PST
(In reply to
comment #10
)
> This also builds "./Tools/Scripts/build-jsc --release" for Apple employees. > It would be nice to fix this.
Typo: "This also builds" => "This also breaks"
Alexey Proskuryakov
Comment 12
2017-02-01 09:44:45 PST
This also caused
rdar://problem/30308635
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug