line / stellite

Stellite project is a client library and server application that offers an easy way to develop, build, and implement client/server running primarily over the QUIC protocol developed by Google as part of the Chromium project.
Apache License 2.0
475 stars 81 forks source link

BuildError on IOS 11 #66

Open stormcenter opened 6 years ago

stormcenter commented 6 years ago

Running: ninja -C /Users/zhangchi1213/develop/stellite/build_ios/src/out_ios_x86 stellite_http_client ninja: Entering directory `/Users/zhangchi1213/develop/stellite/build_ios/src/out_ios_x86' [8/1486] OBJCXX obj/base/base/critical_closure_internal_ios.o FAILED: obj/base/base/critical_closure_internal_ios.o ../third_party/llvm-build/Release+Asserts/bin/clang++ -MMD -MF obj/base/base/critical_closure_internal_ios.o.d -DSYSTEM_NATIVE_UTF8 -DV8_DEPRECATION_WARNINGS -DNO_TCMALLOC -DDISABLE_NACL -DCHROMIUM_BUILD -DFIELDTRIAL_TESTING_ENABLED -DCR_CLANG_REVISION=283753-1 -DCR_XCODE_VERSION=0941 -DSTDC_CONSTANT_MACROS -DSTDC_FORMAT_MACROS -D_FORTIFY_SOURCE=2 -DNDEBUG -DNVALGRIND -DDYNAMIC_ANNOTATIONS_ENABLED=0 -DBASE_IMPLEMENTATION -I.. -Igen -fno-strict-aliasing --param=ssp-buffer-size=4 -fstack-protector -fcolor-diagnostics -arch i386 -Wall -Werror -Wextra -Wno-missing-field-initializers -Wno-unused-parameter -Wno-c++11-narrowing -Wno-covered-switch-default -Wno-deprecated-register -Wno-unneeded-internal-declaration -Wno-inconsistent-missing-override -Wno-shift-negative-value -Wno-undefined-var-template -Wno-nonportable-include-path -Wno-address-of-packed-member -g0 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.4.sdk -stdlib=libc++ -mios-simulator-version-min=9.0 -fvisibility=hidden -Xclang -load -Xclang ../third_party/llvm-build/Release+Asserts/lib/libFindBadConstructs.dylib -Xclang -add-plugin -Xclang find-bad-constructs -Wheader-hygiene -Wstring-conversion -Wno-char-subscripts -Wexit-time-destructors -Wexit-time-destructors -O2 -fno-threadsafe-statics -fvisibility-inlines-hidden -std=c++11 -fobjc-call-cxx-cdtors -Wobjc-missing-property-synthesis -fno-rtti -fno-exceptions -c ../base/critical_closure_internal_ios.mm -o obj/base/base/critical_closure_internal_ios.o In file included from ../base/critical_closure_internal_ios.mm:7: In file included from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.4.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIKit.h:11: In file included from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.4.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIAccelerometer.h:8: In file included from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.4.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.h:128: /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.4.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSUUID.h:26:49: error: nullability specifier '_Nullable' cannot be applied to non-pointer type 'uuid_t' (aka 'unsigned char [16]')

I found build error on IOS 11 simulator. So is there any solution on this ?

stormcenter commented 6 years ago

https://chromium.googlesource.com/chromium/src/+/2d997d607b36eb4f5a7c5045919a6bae7907b9c1%5E%21/

I have found, it support xcode 8.0 on chromium 56.0.2894.0 , but when I enble clang = true ,it build failed.

How can I upgrade the chromium version on this project

haru398801 commented 6 years ago

@stormcenter Thank you for your comment.

I upgrade chromium version to 66.0.3359.181 at my personal repository, but, stellite code don't satisfy new chromium api.

If you upgrade chromium version, you must modify stellite code using chromium api, build dependency and other things.

I trying upgrade chromium tag, but chromium api was changed in 66.0.3359.181, It was so difficulty in this moment.

If I success upgrade chromium tag, I will create PR from my repository.

Thank you.