Issues while installing Diaspora in Windows - eventmachine

I am trying to install diaspora in windows and when I run my bundle install, It throws an error when installing eventmachine. Then I came to know that the lastest version of eventmachine is not supported in windows with ruby 1.9.2. Eventmachine gem is not in the
gemfile, hence must be a dependent gem. How can I run diaspora in my local windows machine?
Installing eventmachine (0.12.10) with native extensions D:/Program_Files/Ruby192/lib/ruby/site_ruby/1.9.1/rubygems/inst
aller.rb:529:in `rescue in block in build_extensions': ERROR: Failed to build gem native extension. (Gem::Installer::Ext
ensionBuildError)
D:/Program_Files/Ruby192/bin/ruby.exe extconf.rb
checking for rb_trap_immediate in ruby.h,rubysig.h... no
checking for rb_thread_blocking_region()... yes
checking for inotify_init() in sys/inotify.h... no
checking for __NR_inotify_init in sys/syscall.h... no
checking for writev() in sys/uio.h... no
checking for rb_thread_check_ints()... yes
checking for rb_time_new()... yes
checking for windows.h... yes
checking for winsock.h... yes
checking for main() in -lkernel32... yes
checking for main() in -lrpcrt4... yes
checking for main() in -lgdi32... yes
checking for main() in -lssl... no
creating Makefile
make
g++ -I. -ID:/Program_Files/Ruby192/include/ruby-1.9.1/i386-mingw32 -I/D/Program_Files/Ruby192/include/ruby-1.9.1/ruby/ba
ckward -I/D/Program_Files/Ruby192/include/ruby-1.9.1 -I. -DBUILD_FOR_RUBY -DHAVE_RB_THREAD_BLOCKING_REGION -DHAVE_TBR -D
HAVE_RB_THREAD_CHECK_INTS -DHAVE_RB_TIME_NEW -DOS_WIN32 -DHAVE_WINDOWS_H -DHAVE_WINSOCK_H -DWITHOUT_SSL -DHAVE_MAKE_PAIR
-O3 -g -Wextra -Wno-unused-parameter -Wno-parentheses -Wpointer-arith -Wwrite-strings -Wno-missing-field-initializer
s -Wno-long-long -o binder.o -c binder.cpp
In file included from project.h:137:0,
from binder.cpp:20:
binder.h:35:34: warning: type qualifiers ignored on function return type
In file included from project.h:138:0,
from binder.cpp:20:
em.h:91:47: warning: type qualifiers ignored on function return type
em.h:92:76: warning: type qualifiers ignored on function return type
em.h:93:56: warning: type qualifiers ignored on function return type
em.h:95:57: warning: type qualifiers ignored on function return type
em.h:96:60: warning: type qualifiers ignored on function return type
em.h:97:58: warning: type qualifiers ignored on function return type
em.h:98:55: warning: type qualifiers ignored on function return type
em.h:99:36: warning: type qualifiers ignored on function return type
em.h:101:47: warning: type qualifiers ignored on function return type
em.h:106:42: warning: type qualifiers ignored on function return type
em.h:123:45: warning: type qualifiers ignored on function return type
em.h:132:36: warning: type qualifiers ignored on function return type
In file included from project.h:145:0,
from binder.cpp:20:
eventmachine.h:45:61: warning: type qualifiers ignored on function return type
eventmachine.h:46:112: warning: type qualifiers ignored on function return type
eventmachine.h:47:69: warning: type qualifiers ignored on function return type
eventmachine.h:49:73: warning: type qualifiers ignored on function return type
eventmachine.h:62:75: warning: type qualifiers ignored on function return type
eventmachine.h:63:74: warning: type qualifiers ignored on function return type
eventmachine.h:64:77: warning: type qualifiers ignored on function return type
eventmachine.h:65:41: warning: type qualifiers ignored on function return type
In file included from project.h:145:0,
from binder.cpp:20:
eventmachine.h:99:60: warning: type qualifiers ignored on function return type
eventmachine.h:100:58: warning: type qualifiers ignored on function return type
eventmachine.h:102:60: warning: type qualifiers ignored on function return type
eventmachine.h:105:41: warning: type qualifiers ignored on function return type
g++ -I. -ID:/Program_Files/Ruby192/include/ruby-1.9.1/i386-mingw32 -I/D/Program_Files/Ruby192/include/ruby-1.9.1/ruby/ba
ckward -I/D/Program_Files/Ruby192/include/ruby-1.9.1 -I. -DBUILD_FOR_RUBY -DHAVE_RB_THREAD_BLOCKING_REGION -DHAVE_TBR -D
HAVE_RB_THREAD_CHECK_INTS -DHAVE_RB_TIME_NEW -DOS_WIN32 -DHAVE_WINDOWS_H -DHAVE_WINSOCK_H -DWITHOUT_SSL -DHAVE_MAKE_PAIR
-O3 -g -Wextra -Wno-unused-parameter -Wno-parentheses -Wpointer-arith -Wwrite-strings -Wno-missing-field-initializer
s -Wno-long-long -o cmain.o -c cmain.cpp
In file included from project.h:137:0,
from cmain.cpp:20:
binder.h:35:34: warning: type qualifiers ignored on function return type
In file included from project.h:138:0,
from cmain.cpp:20:
em.h:91:47: warning: type qualifiers ignored on function return type
em.h:92:76: warning: type qualifiers ignored on function return type
em.h:93:56: warning: type qualifiers ignored on function return type
em.h:95:57: warning: type qualifiers ignored on function return type
em.h:96:60: warning: type qualifiers ignored on function return type
em.h:97:58: warning: type qualifiers ignored on function return type
em.h:98:55: warning: type qualifiers ignored on function return type
em.h:99:36: warning: type qualifiers ignored on function return type
em.h:101:47: warning: type qualifiers ignored on function return type
em.h:106:42: warning: type qualifiers ignored on function return type
em.h:123:45: warning: type qualifiers ignored on function return type
em.h:132:36: warning: type qualifiers ignored on function return type
In file included from project.h:145:0,
from cmain.cpp:20:
eventmachine.h:45:61: warning: type qualifiers ignored on function return type
eventmachine.h:46:112: warning: type qualifiers ignored on function return type
eventmachine.h:47:69: warning: type qualifiers ignored on function return type
eventmachine.h:49:73: warning: type qualifiers ignored on function return type
eventmachine.h:62:75: warning: type qualifiers ignored on function return type
eventmachine.h:63:74: warning: type qualifiers ignored on function return type
eventmachine.h:64:77: warning: type qualifiers ignored on function return type
eventmachine.h:65:41: warning: type qualifiers ignored on function return type
In file included from project.h:145:0,
from cmain.cpp:20:
eventmachine.h:99:60: warning: type qualifiers ignored on function return type
eventmachine.h:100:58: warning: type qualifiers ignored on function return type
eventmachine.h:102:60: warning: type qualifiers ignored on function return type
eventmachine.h:105:41: warning: type qualifiers ignored on function return type
cmain.cpp:98:71: warning: type qualifiers ignored on function return type
cmain.cpp:109:122: warning: type qualifiers ignored on function return type
cmain.cpp:119:79: warning: type qualifiers ignored on function return type
cmain.cpp:129:83: warning: type qualifiers ignored on function return type
cmain.cpp:260:85: warning: type qualifiers ignored on function return type
cmain.cpp:270:84: warning: type qualifiers ignored on function return type
cmain.cpp:280:88: warning: type qualifiers ignored on function return type
cmain.cpp:290:51: warning: type qualifiers ignored on function return type
cmain.cpp:300:70: warning: type qualifiers ignored on function return type
cmain.cpp:320:55: warning: type qualifiers ignored on function return type
cmain.cpp:546:70: warning: type qualifiers ignored on function return type
cmain.cpp:669:68: warning: type qualifiers ignored on function return type
cmain.cpp: In function 'int evma_send_file_data_to_connection(long unsigned int, const char*)':
cmain.cpp:752:6: error: cannot convert 'stat*' to '_stati64*' for argument '2' to 'int _fstati64(int, _stati64*)'
make: *** [cmain.o] Error 1
Gem files will remain installed in D:/Program_Files/Ruby192/lib/ruby/gems/1.9.1/gems/eventmachine-0.12.10 for inspection
.
Results logged to D:/Program_Files/Ruby192/lib/ruby/gems/1.9.1/gems/eventmachine-0.12.10/ext/gem_make.out
from D:/Program_Files/Ruby192/lib/ruby/site_ruby/1.9.1/rubygems/installer.rb:507:in `block in build_extensions'
from D:/Program_Files/Ruby192/lib/ruby/site_ruby/1.9.1/rubygems/installer.rb:482:in `each'
from D:/Program_Files/Ruby192/lib/ruby/site_ruby/1.9.1/rubygems/installer.rb:482:in `build_extensions'
from D:/Program_Files/Ruby192/lib/ruby/site_ruby/1.9.1/rubygems/installer.rb:156:in `install'
from D:/Program_Files/Ruby192/lib/ruby/gems/1.9.1/gems/bundler-1.0.15/lib/bundler/source.rb:101:in `block in ins
tall'
from D:/Program_Files/Ruby192/lib/ruby/gems/1.9.1/gems/bundler-1.0.15/lib/bundler/rubygems_integration.rb:78:in
`preserve_paths'
from D:/Program_Files/Ruby192/lib/ruby/gems/1.9.1/gems/bundler-1.0.15/lib/bundler/source.rb:91:in `install'
from D:/Program_Files/Ruby192/lib/ruby/gems/1.9.1/gems/bundler-1.0.15/lib/bundler/installer.rb:58:in `block (2 l
evels) in run'
from D:/Program_Files/Ruby192/lib/ruby/gems/1.9.1/gems/bundler-1.0.15/lib/bundler/rubygems_integration.rb:93:in
`with_build_args'
from D:/Program_Files/Ruby192/lib/ruby/gems/1.9.1/gems/bundler-1.0.15/lib/bundler/installer.rb:57:in `block in r
un'
from D:/Program_Files/Ruby192/lib/ruby/gems/1.9.1/gems/bundler-1.0.15/lib/bundler/spec_set.rb:12:in `block in ea
ch'
from D:/Program_Files/Ruby192/lib/ruby/gems/1.9.1/gems/bundler-1.0.15/lib/bundler/spec_set.rb:12:in `each'
from D:/Program_Files/Ruby192/lib/ruby/gems/1.9.1/gems/bundler-1.0.15/lib/bundler/spec_set.rb:12:in `each'
from D:/Program_Files/Ruby192/lib/ruby/gems/1.9.1/gems/bundler-1.0.15/lib/bundler/installer.rb:49:in `run'
from D:/Program_Files/Ruby192/lib/ruby/gems/1.9.1/gems/bundler-1.0.15/lib/bundler/installer.rb:8:in `install'
from D:/Program_Files/Ruby192/lib/ruby/gems/1.9.1/gems/bundler-1.0.15/lib/bundler/cli.rb:222:in `install'
from D:/Program_Files/Ruby192/lib/ruby/gems/1.9.1/gems/bundler-1.0.15/lib/bundler/vendor/thor/task.rb:22:in `run
'
from D:/Program_Files/Ruby192/lib/ruby/gems/1.9.1/gems/bundler-1.0.15/lib/bundler/vendor/thor/invocation.rb:118:
in `invoke_task'
from D:/Program_Files/Ruby192/lib/ruby/gems/1.9.1/gems/bundler-1.0.15/lib/bundler/vendor/thor.rb:246:in `dispatc
h'
from D:/Program_Files/Ruby192/lib/ruby/gems/1.9.1/gems/bundler-1.0.15/lib/bundler/vendor/thor/base.rb:389:in `st
art'
from D:/Program_Files/Ruby192/lib/ruby/gems/1.9.1/gems/bundler-1.0.15/bin/bundle:13:in `<top (required)>'
from D:/Program_Files/Ruby192/bin/bundle:19:in `load'
from D:/Program_Files/Ruby192/bin/bundle:19:in `<main>'

Do you know RVM for Linux? There is a similar tool for windows called pik, check it out here: http://www.ruby-on-rails-outsourcing.com/2010/07/28/ruby-version-manager-for-windows/

As of April 2012 I installed eventmachine on Windows 7 using:
gem install --pre eventmachine
This install eventmachine 1.0.0 beta 4 mingw.
(Note I have mingw installed).

First, add the following line to your GemFile:
gem 'eventmachine', '~> 1.0.0.rc.4'
Second, update eventmachine in the bundle with:
bundle update eventmachine

Related

Fixing a dependencies problem in Flutter. Says build failed because of something related to Apple Watch but I am not using Apple Watch

I am running into a problem when trying to build my Flutter app. I am using VS Code and the latest versions of Flutter and Dart. I think I have a problem with dependencies, but not sure. I have the following dependencies in my pubspec.yaml file:
http: ^0.13.4
youtube_player_flutter: ^8.0.0
percent_indicator: ^3.4.0
endless: ^1.6.0
flutter_staggered_grid_view: ^0.6.1
transparent_image:
accordion: ^2.2.3
like_button: ^2.0.4
easy_firebase_auth: ^3.2.0
flutter_inappwebview: ^5.4.3+7
webview_flutter: ^3.0.4
firebase_core: ^1.6.0
cloud_firestore: ^2.5.1
url_launcher: ^6.1.2
geocoding: ^2.0.4
sign_in_with_apple: ^3.3.0
I run into a problem when I do a flutter build. I get the following error messages:
2022-05-17 01:32:19.580 xcodebuild[26038:192413] Requested but did not find extension point with identifier
Xcode.IDEKit.ExtensionSentinelHostApplications for extension Xcode.DebuggerFoundation.AppExtensionHosts.watchOS of
plug-in com.apple.dt.IDEWatchSupportCore
2022-05-17 01:32:19.580 xcodebuild[26038:192413] Requested but did not find extension point with identifier
Xcode.IDEKit.ExtensionPointIdentifierToBundleIdentifier for extension
Xcode.DebuggerFoundation.AppExtensionToBundleIdentifierMap.watchOS of plug-in com.apple.dt.IDEWatchSupportCore
** BUILD FAILED **
Xcode's output:
↳
Writing result bundle at path:
/var/folders/xp/fl30w5315b33hw_npc3wykb40000gn/T/flutter_tools.vcek1g/flutter_ios_build_temp_dirjbPPUe/temporary_
xcresult_bundle
/Users/gregoryew/flutter_apps/flutter/.pub-cache/hosted/pub.dartlang.org/geocoding-2.0.4/ios/Classes/Extensions/CL
PlacemarkExtensions.m:22:18: warning: 'addressDictionary' is deprecated: first deprecated in iOS 11.0 - Use
#properties [-Wdeprecated-declarations]
if (self.addressDictionary != nil) {
^
In module 'CoreLocation' imported from
/Users/gregoryew/flutter_apps/flutter/.pub-cache/hosted/pub.dartlang.org/geocoding-2.0.4/ios/Classes/Extensions/CL
PlacemarkExtensions.h:10:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS15.5.sdk/System/Libr
ary/Frameworks/CoreLocation.framework/Headers/CLPlacemark.h:73:63: note: 'addressDictionary' has been explicitly
marked deprecated here
#property (nonatomic, readonly, copy, nullable) NSDictionary *addressDictionary API_DEPRECATED("Use #properties",
macos(10.8, 10.13), ios(5.0, 11.0), watchos(1.0, 4.0));
^
/Users/gregoryew/flutter_apps/flutter/.pub-cache/hosted/pub.dartlang.org/geocoding-2.0.4/ios/Classes/Extensions/CL
PlacemarkExtensions.m:23:29: warning: 'addressDictionary' is deprecated: first deprecated in iOS 11.0 - Use
#properties [-Wdeprecated-declarations]
street = [[self addressDictionary] objectForKey:(NSString *)kABPersonAddressStreetKey];
^
In module 'CoreLocation' imported from
/Users/gregoryew/flutter_apps/flutter/.pub-cache/hosted/pub.dartlang.org/geocoding-2.0.4/ios/Classes/Extensions/CL
PlacemarkExtensions.h:10:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS15.5.sdk/System/Libr
ary/Frameworks/CoreLocation.framework/Headers/CLPlacemark.h:73:63: note: property 'addressDictionary' is declared
deprecated here
#property (nonatomic, readonly, copy, nullable) NSDictionary *addressDictionary API_DEPRECATED("Use #properties",
macos(10.8, 10.13), ios(5.0, 11.0), watchos(1.0, 4.0));
^
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS15.5.sdk/System/Libr
ary/Frameworks/CoreLocation.framework/Headers/CLPlacemark.h:73:63: note: 'addressDictionary' has been explicitly
marked deprecated here
/Users/gregoryew/flutter_apps/flutter/.pub-cache/hosted/pub.dartlang.org/geocoding-2.0.4/ios/Classes/Extensions/CL
PlacemarkExtensions.m:23:73: warning: 'kABPersonAddressStreetKey' is deprecated: first deprecated in iOS 9.0 - use
CNPostalAddress.street [-Wdeprecated-declarations]
street = [[self addressDictionary] objectForKey:(NSString *)kABPersonAddressStreetKey];
^
In module 'AddressBook' imported from
/Users/gregoryew/flutter_apps/flutter/.pub-cache/hosted/pub.dartlang.org/geocoding-2.0.4/ios/Classes/Extensions/CL
PlacemarkExtensions.m:8:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS15.5.sdk/System/Libr
ary/Frameworks/AddressBook.framework/Headers/ABPerson.h:113:29: note: 'kABPersonAddressStreetKey' has been
explicitly marked deprecated here
AB_EXTERN const CFStringRef kABPersonAddressStreetKey AB_DEPRECATED("use CNPostalAddress.street");
^
3 warnings generated.
/Users/gregoryew/flutter_apps/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_inappwebview-5.4.3+7/ios/Classes/
Types/URLCredential.swift:14:25: warning: comparing non-optional value of type '[Any]' to 'nil' always returns
true
if certificates != nil {
~~~~~~~~~~~~ ^ ~~~
/Users/gregoryew/flutter_apps/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_inappwebview-5.4.3+7/ios/Classes/
InAppBrowser/InAppBrowserWebViewController.swift:561:13: warning: setter for 'statusBarStyle' was deprecated in
iOS 9.0: Use -[UIViewController preferredStatusBarStyle]
UIApplication.shared.statusBarStyle = UIStatusBarStyle(rawValue: previousStatusBarStyle)!
^
/Users/gregoryew/flutter_apps/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_inappwebview-5.4.3+7/ios/Classes/
Util.swift:86:25: warning: 'spotlightSuggestion' was deprecated in iOS 10.0: renamed to
'WKDataDetectorTypes.lookupSuggestion'
return .spotlightSuggestion
^
/Users/gregoryew/flutter_apps/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_inappwebview-5.4.3+7/ios/Classes/
Util.swift:86:25: note: use 'WKDataDetectorTypes.lookupSuggestion' instead
return .spotlightSuggestion
^~~~~~~~~~~~~~~~~~~
WKDataDetectorTypes.lookupSuggestion
/Users/gregoryew/flutter_apps/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_inappwebview-5.4.3+7/ios/Classes/
Util.swift:121:31: warning: 'spotlightSuggestion' was deprecated in iOS 10.0: renamed to
'WKDataDetectorTypes.lookupSuggestion'
if type.contains(.spotlightSuggestion) {
^
/Users/gregoryew/flutter_apps/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_inappwebview-5.4.3+7/ios/Classes/
Util.swift:121:31: note: use 'WKDataDetectorTypes.lookupSuggestion' instead
if type.contains(.spotlightSuggestion) {
^~~~~~~~~~~~~~~~~~~
WKDataDetectorTypes.lookupSuggestion
/Users/gregoryew/flutter_apps/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_inappwebview-5.4.3+7/ios/Classes/
Util.swift:216:21: warning: immutable value 'j' was never used; consider replacing with '_' or removing it
for j in ipv6.count...8 {
^
_
/* com.apple.ibtool.document.warnings */
/Users/gregoryew/flutter_apps/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_inappwebview-5.4.3+7/ios/Storyboa
rds/WebView.storyboard:global: warning: This file is set to build for a version older than the deployment target.
Functionality may be limited. [9]
../../flutter/packages/flutter/lib/src/material/animated_icons.dart:25:6: Error: Error when reading
'../../flutter/packages/flutter/lib/src/material/animated_icons/data/add_event.g.dart': No such file or directory
part 'animated_icons/data/add_event.g.dart';
^
../../flutter/packages/flutter/lib/src/material/animated_icons.dart:26:6: Error: Error when reading
'../../flutter/packages/flutter/lib/src/material/animated_icons/data/arrow_menu.g.dart': No such file or directory
part 'animated_icons/data/arrow_menu.g.dart';
^
../../flutter/packages/flutter/lib/src/material/animated_icons.dart:27:6: Error: Error when reading
'../../flutter/packages/flutter/lib/src/material/animated_icons/data/close_menu.g.dart': No such file or directory
part 'animated_icons/data/close_menu.g.dart';
^
../../flutter/packages/flutter/lib/src/material/animated_icons.dart:28:6: Error: Error when reading
'../../flutter/packages/flutter/lib/src/material/animated_icons/data/ellipsis_search.g.dart': No such file or
directory
part 'animated_icons/data/ellipsis_search.g.dart';
^
../../flutter/packages/flutter/lib/src/material/animated_icons.dart:29:6: Error: Error when reading
'../../flutter/packages/flutter/lib/src/material/animated_icons/data/event_add.g.dart': No such file or directory
part 'animated_icons/data/event_add.g.dart';
^
../../flutter/packages/flutter/lib/src/material/animated_icons.dart:30:6: Error: Error when reading
'../../flutter/packages/flutter/lib/src/material/animated_icons/data/home_menu.g.dart': No such file or directory
part 'animated_icons/data/home_menu.g.dart';
^
../../flutter/packages/flutter/lib/src/material/animated_icons.dart:31:6: Error: Error when reading
'../../flutter/packages/flutter/lib/src/material/animated_icons/data/list_view.g.dart': No such file or directory
part 'animated_icons/data/list_view.g.dart';
^
../../flutter/packages/flutter/lib/src/material/animated_icons.dart:32:6: Error: Error when reading
'../../flutter/packages/flutter/lib/src/material/animated_icons/data/menu_arrow.g.dart': No such file or directory
part 'animated_icons/data/menu_arrow.g.dart';
^
../../flutter/packages/flutter/lib/src/material/animated_icons.dart:33:6: Error: Error when reading
'../../flutter/packages/flutter/lib/src/material/animated_icons/data/menu_close.g.dart': No such file or directory
part 'animated_icons/data/menu_close.g.dart';
^
../../flutter/packages/flutter/lib/src/material/animated_icons.dart:34:6: Error: Error when reading
'../../flutter/packages/flutter/lib/src/material/animated_icons/data/menu_home.g.dart': No such file or directory
part 'animated_icons/data/menu_home.g.dart';
^
../../flutter/packages/flutter/lib/src/material/animated_icons.dart:35:6: Error: Error when reading
'../../flutter/packages/flutter/lib/src/material/animated_icons/data/pause_play.g.dart': No such file or directory
part 'animated_icons/data/pause_play.g.dart';
^
../../flutter/packages/flutter/lib/src/material/animated_icons.dart:36:6: Error: Error when reading
'../../flutter/packages/flutter/lib/src/material/animated_icons/data/play_pause.g.dart': No such file or directory
part 'animated_icons/data/play_pause.g.dart';
^
../../flutter/packages/flutter/lib/src/material/animated_icons.dart:37:6: Error: Error when reading
'../../flutter/packages/flutter/lib/src/material/animated_icons/data/search_ellipsis.g.dart': No such file or
directory
part 'animated_icons/data/search_ellipsis.g.dart';
^
../../flutter/packages/flutter/lib/src/material/animated_icons.dart:38:6: Error: Error when reading
'../../flutter/packages/flutter/lib/src/material/animated_icons/data/view_list.g.dart': No such file or directory
part 'animated_icons/data/view_list.g.dart';
^
../../flutter/packages/flutter/lib/src/material/animated_icons.dart:25:6: Error: Can't use
'../../flutter/packages/flutter/lib/src/material/animated_icons/data/add_event.g.dart' as a part, because it has
no 'part of' declaration.
part 'animated_icons/data/add_event.g.dart';
^
../../flutter/packages/flutter/lib/src/material/animated_icons.dart:26:6: Error: Can't use
'../../flutter/packages/flutter/lib/src/material/animated_icons/data/arrow_menu.g.dart' as a part, because it has
no 'part of' declaration.
part 'animated_icons/data/arrow_menu.g.dart';
^
../../flutter/packages/flutter/lib/src/material/animated_icons.dart:27:6: Error: Can't use
'../../flutter/packages/flutter/lib/src/material/animated_icons/data/close_menu.g.dart' as a part, because it has
no 'part of' declaration.
part 'animated_icons/data/close_menu.g.dart';
^
../../flutter/packages/flutter/lib/src/material/animated_icons.dart:28:6: Error: Can't use
'../../flutter/packages/flutter/lib/src/material/animated_icons/data/ellipsis_search.g.dart' as a part, because it
has no 'part of' declaration.
part 'animated_icons/data/ellipsis_search.g.dart';
^
../../flutter/packages/flutter/lib/src/material/animated_icons.dart:29:6: Error: Can't use
'../../flutter/packages/flutter/lib/src/material/animated_icons/data/event_add.g.dart' as a part, because it has
no 'part of' declaration.
part 'animated_icons/data/event_add.g.dart';
^
../../flutter/packages/flutter/lib/src/material/animated_icons.dart:30:6: Error: Can't use
'../../flutter/packages/flutter/lib/src/material/animated_icons/data/home_menu.g.dart' as a part, because it has
no 'part of' declaration.
part 'animated_icons/data/home_menu.g.dart';
^
../../flutter/packages/flutter/lib/src/material/animated_icons.dart:31:6: Error: Can't use
'../../flutter/packages/flutter/lib/src/material/animated_icons/data/list_view.g.dart' as a part, because it has
no 'part of' declaration.
part 'animated_icons/data/list_view.g.dart';
^
../../flutter/packages/flutter/lib/src/material/animated_icons.dart:32:6: Error: Can't use
'../../flutter/packages/flutter/lib/src/material/animated_icons/data/menu_arrow.g.dart' as a part, because it has
no 'part of' declaration.
part 'animated_icons/data/menu_arrow.g.dart';
^
../../flutter/packages/flutter/lib/src/material/animated_icons.dart:33:6: Error: Can't use
'../../flutter/packages/flutter/lib/src/material/animated_icons/data/menu_close.g.dart' as a part, because it has
no 'part of' declaration.
part 'animated_icons/data/menu_close.g.dart';
^
../../flutter/packages/flutter/lib/src/material/animated_icons.dart:34:6: Error: Can't use
'../../flutter/packages/flutter/lib/src/material/animated_icons/data/menu_home.g.dart' as a part, because it has
no 'part of' declaration.
part 'animated_icons/data/menu_home.g.dart';
^
../../flutter/packages/flutter/lib/src/material/animated_icons.dart:35:6: Error: Can't use
'../../flutter/packages/flutter/lib/src/material/animated_icons/data/pause_play.g.dart' as a part, because it has
no 'part of' declaration.
part 'animated_icons/data/pause_play.g.dart';
^
../../flutter/packages/flutter/lib/src/material/animated_icons.dart:36:6: Error: Can't use
'../../flutter/packages/flutter/lib/src/material/animated_icons/data/play_pause.g.dart' as a part, because it has
no 'part of' declaration.
part 'animated_icons/data/play_pause.g.dart';
^
../../flutter/packages/flutter/lib/src/material/animated_icons.dart:37:6: Error: Can't use
'../../flutter/packages/flutter/lib/src/material/animated_icons/data/search_ellipsis.g.dart' as a part, because it
has no 'part of' declaration.
part 'animated_icons/data/search_ellipsis.g.dart';
^
../../flutter/packages/flutter/lib/src/material/animated_icons.dart:38:6: Error: Can't use
'../../flutter/packages/flutter/lib/src/material/animated_icons/data/view_list.g.dart' as a part, because it has
no 'part of' declaration.
part 'animated_icons/data/view_list.g.dart';
^
../../flutter/packages/flutter/lib/src/material/animated_icons/animated_icons_data.dart:19:45: Error: Undefined
name '_$add_event'.
static const AnimatedIconData add_event = _$add_event;
^^^^^^^^^^^
../../flutter/packages/flutter/lib/src/material/animated_icons/animated_icons_data.dart:22:46: Error: Undefined
name '_$arrow_menu'.
static const AnimatedIconData arrow_menu = _$arrow_menu;
^^^^^^^^^^^^
../../flutter/packages/flutter/lib/src/material/animated_icons/animated_icons_data.dart:25:46: Error: Undefined
name '_$close_menu'.
static const AnimatedIconData close_menu = _$close_menu;
^^^^^^^^^^^^
../../flutter/packages/flutter/lib/src/material/animated_icons/animated_icons_data.dart:28:51: Error: Undefined
name '_$ellipsis_search'.
static const AnimatedIconData ellipsis_search = _$ellipsis_search;
^^^^^^^^^^^^^^^^^
../../flutter/packages/flutter/lib/src/material/animated_icons/animated_icons_data.dart:31:45: Error: Undefined
name '_$event_add'.
static const AnimatedIconData event_add = _$event_add;
^^^^^^^^^^^
../../flutter/packages/flutter/lib/src/material/animated_icons/animated_icons_data.dart:34:45: Error: Undefined
name '_$home_menu'.
static const AnimatedIconData home_menu = _$home_menu;
^^^^^^^^^^^
../../flutter/packages/flutter/lib/src/material/animated_icons/animated_icons_data.dart:37:45: Error: Undefined
name '_$list_view'.
static const AnimatedIconData list_view = _$list_view;
^^^^^^^^^^^
../../flutter/packages/flutter/lib/src/material/animated_icons/animated_icons_data.dart:40:46: Error: Undefined
name '_$menu_arrow'.
static const AnimatedIconData menu_arrow = _$menu_arrow;
^^^^^^^^^^^^
../../flutter/packages/flutter/lib/src/material/animated_icons/animated_icons_data.dart:43:46: Error: Undefined
name '_$menu_close'.
static const AnimatedIconData menu_close = _$menu_close;
^^^^^^^^^^^^
../../flutter/packages/flutter/lib/src/material/animated_icons/animated_icons_data.dart:46:45: Error: Undefined
name '_$menu_home'.
static const AnimatedIconData menu_home = _$menu_home;
^^^^^^^^^^^
../../flutter/packages/flutter/lib/src/material/animated_icons/animated_icons_data.dart:49:46: Error: Undefined
name '_$pause_play'.
static const AnimatedIconData pause_play = _$pause_play;
^^^^^^^^^^^^
../../flutter/packages/flutter/lib/src/material/animated_icons/animated_icons_data.dart:52:46: Error: Undefined
name '_$play_pause'.
static const AnimatedIconData play_pause = _$play_pause;
^^^^^^^^^^^^
../../flutter/packages/flutter/lib/src/material/animated_icons/animated_icons_data.dart:55:51: Error: Undefined
name '_$search_ellipsis'.
static const AnimatedIconData search_ellipsis = _$search_ellipsis;
^^^^^^^^^^^^^^^^^
../../flutter/packages/flutter/lib/src/material/animated_icons/animated_icons_data.dart:58:45: Error: Undefined
name '_$view_list'.
static const AnimatedIconData view_list = _$view_list;
^^^^^^^^^^^
lib/main.dart:58:10: Error: A non-null value must be returned since the return type 'Widget' doesn't allow null.
- 'Widget' is from 'package:flutter/src/widgets/framework.dart'
('../../flutter/packages/flutter/lib/src/widgets/framework.dart').
Widget build(BuildContext context) {
^
../../flutter/.pub-cache/hosted/pub.dartlang.org/provider-5.0.0/lib/src/inherited_provider.dart:391:26: Warning:
Operand of null-aware operation '!' has type 'SchedulerBinding' which excludes null.
- 'SchedulerBinding' is from 'package:flutter/src/scheduler/binding.dart'
('../../flutter/packages/flutter/lib/src/scheduler/binding.dart').
SchedulerBinding.instance!.addPostFrameCallback((_) {
^
../../flutter/.pub-cache/hosted/pub.dartlang.org/percent_indicator-3.4.0/lib/linear_percent_indicator.dart:156:20:
Warning: Operand of null-aware operation '?.' has type 'WidgetsBinding' which excludes null.
- 'WidgetsBinding' is from 'package:flutter/src/widgets/binding.dart'
('../../flutter/packages/flutter/lib/src/widgets/binding.dart').
WidgetsBinding.instance?.addPostFrameCallback((_) {
^
Failed to package /Users/gregoryew/flutter_apps/FelineFinder/feline_finder.
Command PhaseScriptExecution failed with a nonzero exit code
note: Using new build system
note: Planning
note: Build preparation complete
note: Building targets in dependency order
/Users/gregoryew/flutter_apps/FelineFinder/feline_finder/ios/Pods/Pods.xcodeproj: warning: The iOS deployment
target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 8.0, but the range of supported deployment target versions is 9.0 to
15.5.99. (in target 'leveldb-library' from project 'Pods')
/Users/gregoryew/flutter_apps/FelineFinder/feline_finder/ios/Pods/Pods.xcodeproj: warning: The iOS deployment
target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 8.0, but the range of supported deployment target versions is 9.0 to
15.5.99. (in target 'OrderedSet' from project 'Pods')
/Users/gregoryew/flutter_apps/FelineFinder/feline_finder/ios/Pods/Pods.xcodeproj: warning: The iOS deployment
target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 8.0, but the range of supported deployment target versions is 9.0 to
15.5.99. (in target 'AppAuth' from project 'Pods')
/Users/gregoryew/flutter_apps/FelineFinder/feline_finder/ios/Pods/Pods.xcodeproj: warning: The iOS deployment
target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 8.0, but the range of supported deployment target versions is 9.0 to
15.5.99. (in target 'GoogleSignIn' from project 'Pods')
Result bundle written to path:
/var/folders/xp/fl30w5315b33hw_npc3wykb40000gn/T/flutter_tools.vcek1g/flutter_ios_build_temp_dirjbPPUe/temporary_
xcresult_bundle
Could not build the precompiled application for the device.
Error launching application on iPhone.
I tried deleting *.g.dart and running all the solutions I could find for similar problems but nothing works. It all seemed to occur after I added the following to my info.plist but not sure if this is related or not.
<key>LSApplicationQueriesSchemes</key>
<array>
<string>comgooglemaps</string>
</array>
Also getting the following when I do a flutter run in vs code's output window but not sure if it is related:
Running "flutter pub get" in example...
Null check operator used on a null value
package:pub/src/entrypoint.dart 157:60 Entrypoint.lockFilePath
package:pub/src/entrypoint.dart 100:21 Entrypoint._loadLockFile
package:pub/src/entrypoint.dart 97:42 Entrypoint.lockFile
package:pub/src/entrypoint.dart 286:21 Entrypoint.acquireDependencies.<fn>
package:pub/src/entrypoint.dart 280:68 Entrypoint.acquireDependencies.<fn>
package:pub/src/log.dart 428:18 progress
package:pub/src/entrypoint.dart 280:26 Entrypoint.acquireDependencies
package:pub/src/command/get.dart 52:22 GetCommand.runProtected
package:pub/src/command.dart 183:45 PubCommand.run.<fn>
package:pub/src/command.dart 183:33 PubCommand.run.<fn>
dart:async new Future.sync
package:pub/src/utils.dart 109:12 captureErrors.wrappedCallback
dart:async runZonedGuarded
package:pub/src/utils.dart 126:5 captureErrors
package:pub/src/command.dart 183:13 PubCommand.run
package:args/command_runner.dart 209:27 CommandRunner.runCommand
package:pub/src/command_runner.dart 174:24 PubCommandRunner.runCommand
package:pub/src/command_runner.dart 159:20 PubCommandRunner.run
package:dartdev/dartdev.dart 45:56 runDartdev
/opt/s/w/ir/cache/builder/sdk/pkg/dartdev/bin/dartdev.dart 11:9 main
This is an unexpected error. The full log and other details are collected in:
/Users/gregoryew/flutter_apps/flutter/.pub-cache/log/pub_log.txt
Consider creating an issue on https://github.com/dart-lang/pub/issues/new
and attaching the relevant parts of that log file.
.
pub get failed (255; .)
exit code 255
I am pretty new to Flutter & Dart. What can I try?
I have similar error and after many tries I solved in this way:
Update MacOS
Update Xcode and command lines tools
Run flutter pub upgrade, flutter pub get in the project folder
Delete podfile.lock in ios folder of the project
Run cd ios, pod repo update, pod install in the project folder
Delete Runner.xcworkspace,Podfile.lock
then follow these steps
Error when trying to run my Flutter App with my m1 mac

Flutter AdMob works on Android but not on iOS

I have a Flutter project that uses AdMob. This works fine in Android and I'm able to view the test ads. But when I try to build for iOS, the build fails. I've googled for this and tried out various suggestions I found online but nothing helped. Hope someone can help with this issue.
snippets from my pub spec.yaml file
environment:
sdk: ">=2.7.0 <3.0.0"
firebase_core: ^0.7.0
firebase_admob: ^0.11.0+1
In ios/Flutter/AppFrameworkInfo.plist MinimumOSVersion is set to 10.1. And finally here are my build errors
Xcode's output:
↳
In file included from /Users/lk/programs/flutter/.pub-cache/hosted/pub.dartlang.org/firebase_admob-0.11.0+1/ios/Classes/FLTFirebaseAdMobPlugin.m:5:
/Users/lk/programs/flutter/.pub-cache/hosted/pub.dartlang.org/firebase_admob-0.11.0+1/ios/Classes/FLTFirebaseAdMobPlugin.h:28:4: error: expected a type
- (GADUnifiedNativeAdView *)createNativeAd:(GADUnifiedNativeAd *)nativeAd
^
/Users/lk/programs/flutter/.pub-cache/hosted/pub.dartlang.org/firebase_admob-0.11.0+1/ios/Classes/FLTFirebaseAdMobPlugin.h:28:45: error: expected a type
- (GADUnifiedNativeAdView *)createNativeAd:(GADUnifiedNativeAd *)nativeAd
^
In file included from /Users/lk/programs/flutter/.pub-cache/hosted/pub.dartlang.org/firebase_admob-0.11.0+1/ios/Classes/FLTFirebaseAdMobPlugin.m:9:
/Users/lk/programs/flutter/.pub-cache/hosted/pub.dartlang.org/firebase_admob-0.11.0+1/ios/Classes/FLTMobileAd.h:39:45: error: no type or protocol named 'GADInterstitialDelegate'
#interface FLTInterstitialAd : FLTMobileAd <GADInterstitialDelegate>
^
/Users/lk/programs/flutter/.pub-cache/hosted/pub.dartlang.org/firebase_admob-0.11.0+1/ios/Classes/FLTMobileAd.h:44:28: error: no type or protocol named 'GADUnifiedNativeAdLoaderDelegate'
: FLTMobileAdWithView <GADUnifiedNativeAdLoaderDelegate, GADUnifiedNativeAdDelegate>
^
/Users/lk/programs/flutter/.pub-cache/hosted/pub.dartlang.org/firebase_admob-0.11.0+1/ios/Classes/FLTFirebaseAdMobPlugin.m:138:16: warning: 'kGADAdSizeSmartBannerPortrait' is deprecated: Use GADPortraitAnchoredAdaptiveBannerAdSizeWithWidth. [-Wdeprecated-declarations]
adSize = kGADAdSizeSmartBannerPortrait;
^
In module 'GoogleMobileAds' imported from /Users/lk/files/projects/flutter/vocab_master/ios/Pods/Headers/Public/Firebase/Firebase.h:125:
/Users/lk/files/projects/flutter/vocab_master/build/ios/Debug-iphonesimulator/XCFrameworkIntermediates/GoogleMobileAds/GoogleMobileAds.framework/Headers/GADAdSize.h:126:5: note: 'kGADAdSizeSmartBannerPortrait' has been explicitly marked deprecated here
GAD_DEPRECATED_MSG_ATTRIBUTE("Use GADPortraitAnchoredAdaptiveBannerAdSizeWithWidth.");
^
In module 'GoogleMobileAds' imported from /Users/lk/files/projects/flutter/vocab_master/ios/Pods/Headers/Public/Firebase/Firebase.h:125:
/Users/lk/files/projects/flutter/vocab_master/build/ios/Debug-iphonesimulator/XCFrameworkIntermediates/GoogleMobileAds/GoogleMobileAds.framework/Headers/GoogleMobileAdsDefines.h:25:56: note: expanded from macro 'GAD_DEPRECATED_MSG_ATTRIBUTE'
#define GAD_DEPRECATED_MSG_ATTRIBUTE(s) __attribute__((deprecated(s)))
^
/Users/lk/programs/flutter/.pub-cache/hosted/pub.dartlang.org/firebase_admob-0.11.0+1/ios/Classes/FLTFirebaseAdMobPlugin.m:140:16: warning: 'kGADAdSizeSmartBannerLandscape' is deprecated: Use GADLandscapeAnchoredAdaptiveBannerAdSizeWithWidth [-Wdeprecated-declarations]
adSize = kGADAdSizeSmartBannerLandscape;
^
In module 'GoogleMobileAds' imported from /Users/lk/files/projects/flutter/vocab_master/ios/Pods/Headers/Public/Firebase/Firebase.h:125:
/Users/lk/files/projects/flutter/vocab_master/build/ios/Debug-iphonesimulator/XCFrameworkIntermediates/GoogleMobileAds/GoogleMobileAds.framework/Headers/GADAdSize.h:131:5: note: 'kGADAdSizeSmartBannerLandscape' has been explicitly marked deprecated here
GAD_DEPRECATED_MSG_ATTRIBUTE("Use GADLandscapeAnchoredAdaptiveBannerAdSizeWithWidth");
^
In module 'GoogleMobileAds' imported from /Users/lk/files/projects/flutter/vocab_master/ios/Pods/Headers/Public/Firebase/Firebase.h:125:
/Users/lk/files/projects/flutter/vocab_master/build/ios/Debug-iphonesimulator/XCFrameworkIntermediates/GoogleMobileAds/GoogleMobileAds.framework/Headers/GoogleMobileAdsDefines.h:25:56: note: expanded from macro 'GAD_DEPRECATED_MSG_ATTRIBUTE'
#define GAD_DEPRECATED_MSG_ATTRIBUTE(s) __attribute__((deprecated(s)))
^
2 warnings and 4 errors generated.
In file included from /Users/lk/programs/flutter/.pub-cache/hosted/pub.dartlang.org/firebase_admob-0.11.0+1/ios/Classes/FLTMobileAd.m:5:
In file included from /Users/lk/programs/flutter/.pub-cache/hosted/pub.dartlang.org/firebase_admob-0.11.0+1/ios/Classes/FLTMobileAd.h:6:
/Users/lk/programs/flutter/.pub-cache/hosted/pub.dartlang.org/firebase_admob-0.11.0+1/ios/Classes/FLTFirebaseAdMobPlugin.h:28:4: error: expected a type
- (GADUnifiedNativeAdView *)createNativeAd:(GADUnifiedNativeAd *)nativeAd
^
/Users/lk/programs/flutter/.pub-cache/hosted/pub.dartlang.org/firebase_admob-0.11.0+1/ios/Classes/FLTFirebaseAdMobPlugin.h:28:45: error: expected a type
- (GADUnifiedNativeAdView *)createNativeAd:(GADUnifiedNativeAd *)nativeAd
^
In file included from /Users/lk/programs/flutter/.pub-cache/hosted/pub.dartlang.org/firebase_admob-0.11.0+1/ios/Classes/FLTMobileAd.m:5:
/Users/lk/programs/flutter/.pub-cache/hosted/pub.dartlang.org/firebase_admob-0.11.0+1/ios/Classes/FLTMobileAd.h:39:45: error: no type or protocol named 'GADInterstitialDelegate'
#interface FLTInterstitialAd : FLTMobileAd <GADInterstitialDelegate>
^
/Users/lk/programs/flutter/.pub-cache/hosted/pub.dartlang.org/firebase_admob-0.11.0+1/ios/Classes/FLTMobileAd.h:44:28: error: no type or protocol named 'GADUnifiedNativeAdLoaderDelegate'
: FLTMobileAdWithView <GADUnifiedNativeAdLoaderDelegate, GADUnifiedNativeAdDelegate>
^
/Users/lk/programs/flutter/.pub-cache/hosted/pub.dartlang.org/firebase_admob-0.11.0+1/ios/Classes/FLTMobileAd.m:39:17: error: no known class method for selector 'configureWithApplicationID:'
[GADMobileAds configureWithApplicationID:appId];
^~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/lk/programs/flutter/.pub-cache/hosted/pub.dartlang.org/firebase_admob-0.11.0+1/ios/Classes/FLTMobileAd.m:97:79: warning: implicit conversion loses integer precision: 'FLTMobileAdStatus' to 'int' [-Wshorten-64-to-32]
NSString *statusString = (NSString *)statusToString[[NSNumber numberWithInt:_status]];
~ ^~~~~~~
/Users/lk/programs/flutter/.pub-cache/hosted/pub.dartlang.org/firebase_admob-0.11.0+1/ios/Classes/FLTMobileAd.m:211:69: error: expected a type
- (void)adView:(GADBannerView *)adView didFailToReceiveAdWithError:(GADRequestError *)error {
^
/Users/lk/programs/flutter/.pub-cache/hosted/pub.dartlang.org/firebase_admob-0.11.0+1/ios/Classes/FLTMobileAd.m:242:3: error: unknown type name 'GADInterstitial'; did you mean 'GADInterstitialAd'?
GADInterstitial *_interstitial;
^~~~~~~~~~~~~~~
GADInterstitialAd
In module 'GoogleMobileAds' imported from /Users/lk/files/projects/flutter/vocab_master/ios/Pods/Headers/Public/Firebase/Firebase.h:125:
/Users/lk/files/projects/flutter/vocab_master/build/ios/Debug-iphonesimulator/XCFrameworkIntermediates/GoogleMobileAds/GoogleMobileAds.framework/Headers/GADInterstitialAd.h:28:12: note: 'GADInterstitialAd' declared here
#interface GADInterstitialAd : NSObject <GADFullScreenPresentingAd>
^
/Users/lk/programs/flutter/.pub-cache/hosted/pub.dartlang.org/firebase_admob-0.11.0+1/ios/Classes/FLTMobileAd.m:271:35: error: expected a type
- (void)interstitialDidReceiveAd:(GADInterstitial *)ad {
^
/Users/lk/programs/flutter/.pub-cache/hosted/pub.dartlang.org/firebase_admob-0.11.0+1/ios/Classes/FLTMobileAd.m:278:23: error: expected a type
- (void)interstitial:(GADInterstitial *)ad didFailToReceiveAdWithError:(GADRequestError *)error {
^
/Users/lk/programs/flutter/.pub-cache/hosted/pub.dartlang.org/firebase_admob-0.11.0+1/ios/Classes/FLTMobileAd.m:278:73: error: expected a type
- (void)interstitial:(GADInterstitial *)ad didFailToReceiveAdWithError:(GADRequestError *)error {
^
/Users/lk/programs/flutter/.pub-cache/hosted/pub.dartlang.org/firebase_admob-0.11.0+1/ios/Classes/FLTMobileAd.m:284:40: error: expected a type
- (void)interstitialWillPresentScreen:(GADInterstitial *)ad {
^
/Users/lk/programs/flutter/.pub-cache/hosted/pub.dartlang.org/firebase_admob-0.11.0+1/ios/Classes/FLTMobileAd.m:288:40: error: expected a type
- (void)interstitialWillDismissScreen:(GADInterstitial *)ad {
^
/Users/lk/programs/flutter/.pub-cache/hosted/pub.dartlang.org/firebase_admob-0.11.0+1/ios/Classes/FLTMobileAd.m:292:39: error: expected a type
- (void)interstitialDidDismissScreen:(GADInterstitial *)ad {
^
/Users/lk/programs/flutter/.pub-cache/hosted/pub.dartlang.org/firebase_admob-0.11.0+1/ios/Classes/FLTMobileAd.m:296:43: error: expected a type
- (void)interstitialWillLeaveApplication:(GADInterstitial *)ad {
^
/Users/lk/programs/flutter/.pub-cache/hosted/pub.dartlang.org/firebase_admob-0.11.0+1/ios/Classes/FLTMobileAd.m:255:21: error: unknown receiver 'GADInterstitial'; did you mean 'GADInterstitialAd'?
_interstitial = [[GADInterstitial alloc] initWithAdUnitID:adUnitId];
^~~~~~~~~~~~~~~
GADInterstitialAd
In module 'GoogleMobileAds' imported from /Users/lk/files/projects/flutter/vocab_master/ios/Pods/Headers/Public/Firebase/Firebase.h:125:
/Users/lk/files/projects/flutter/vocab_master/build/ios/Debug-iphonesimulator/XCFrameworkIntermediates/GoogleMobileAds/GoogleMobileAds.framework/Headers/GADInterstitialAd.h:28:12: note: 'GADInterstitialAd' declared here
#interface GADInterstitialAd : NSObject <GADFullScreenPresentingAd>
^
/Users/lk/programs/flutter/.pub-cache/hosted/pub.dartlang.org/firebase_admob-0.11.0+1/ios/Classes/FLTMobileAd.m:255:44: error: no visible #interface for 'GADInterstitialAd' declares the selector 'initWithAdUnitID:'
_interstitial = [[GADInterstitial alloc] initWithAdUnitID:adUnitId];
~~~~~~~~~~~~~~~~~~~~~~~ ^~~~~~~~~~~~~~~~
/Users/lk/programs/flutter/.pub-cache/hosted/pub.dartlang.org/firebase_admob-0.11.0+1/ios/Classes/FLTMobileAd.m:256:17: error: property 'delegate' not found on object of type 'GADInterstitialAd *'
_interstitial.delegate = self;
^
/Users/lk/programs/flutter/.pub-cache/hosted/pub.dartlang.org/firebase_admob-0.11.0+1/ios/Classes/FLTMobileAd.m:258:18: error: no visible #interface for 'GADInterstitialAd' declares the selector 'loadRequest:'
[_interstitial loadRequest:[factory createRequest]];
~~~~~~~~~~~~~ ^~~~~~~~~~~
/Users/lk/programs/flutter/.pub-cache/hosted/pub.dartlang.org/firebase_admob-0.11.0+1/ios/Classes/FLTMobileAd.m:313:3: error: unknown type name 'GADUnifiedNativeAdView'; did you mean 'GADNativeAdView'?
GADUnifiedNativeAdView *_nativeAd;
^~~~~~~~~~~~~~~~~~~~~~
GADNativeAdView
In module 'GoogleMobileAds' imported from /Users/lk/files/projects/flutter/vocab_master/ios/Pods/Headers/Public/Firebase/Firebase.h:125:
/Users/lk/files/projects/flutter/vocab_master/build/ios/Debug-iphonesimulator/XCFrameworkIntermediates/GoogleMobileAds/GoogleMobileAds.framework/Headers/GADNativeAd.h:114:12: note: 'GADNativeAdView' declared here
#interface GADNativeAdView : UIView
^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
1 warning and 20 errors generated.
/Users/lk/programs/flutter/.pub-cache/hosted/pub.dartlang.org/firebase_admob-0.11.0+1/ios/Classes/FLTRewardedVideoAdWrapper.m:61:5: error: use of undeclared identifier 'GADRewardBasedVideoAd'
[[GADRewardBasedVideoAd sharedInstance]
^
/Users/lk/programs/flutter/.pub-cache/hosted/pub.dartlang.org/firebase_admob-0.11.0+1/ios/Classes/FLTRewardedVideoAdWrapper.m:66:5: error: use of undeclared identifier 'GADRewardBasedVideoAd'
[[GADRewardBasedVideoAd sharedInstance] setUserIdentifier:userIdentifier];
^
/Users/lk/programs/flutter/.pub-cache/hosted/pub.dartlang.org/firebase_admob-0.11.0+1/ios/Classes/FLTRewardedVideoAdWrapper.m:70:5: error: use of undeclared identifier 'GADRewardBasedVideoAd'
[[GADRewardBasedVideoAd sharedInstance] setCustomRewardString:customRewardString];
^
/Users/lk/programs/flutter/.pub-cache/hosted/pub.dartlang.org/firebase_admob-0.11.0+1/ios/Classes/FLTRewardedVideoAdWrapper.m:75:66: warning: implicit conversion loses integer precision: 'FLTRewardedVideoAdStatus' to 'int' [-Wshorten-64-to-32]
(NSString *)rewardedStatusToString[[NSNumber numberWithInt:_rewardedStatus]];
~ ^~~~~~~~~~~~~~~
1 warning and 16 errors generated.
In file included from /Users/lk/programs/flutter/.pub-cache/hosted/pub.dartlang.org/firebase_admob-0.11.0+1/ios/Classes/FLTRequestFactory.m:6:
/Users/lk/programs/flutter/.pub-cache/hosted/pub.dartlang.org/firebase_admob-0.11.0+1/ios/Classes/FLTFirebaseAdMobPlugin.h:28:4: error: expected a type
- (GADUnifiedNativeAdView *)createNativeAd:(GADUnifiedNativeAd *)nativeAd
^
/Users/lk/programs/flutter/.pub-cache/hosted/pub.dartlang.org/firebase_admob-0.11.0+1/ios/Classes/FLTFirebaseAdMobPlugin.h:28:45: error: expected a type
- (GADUnifiedNativeAdView *)createNativeAd:(GADUnifiedNativeAd *)nativeAd
^
/Users/lk/programs/flutter/.pub-cache/hosted/pub.dartlang.org/firebase_admob-0.11.0+1/ios/Classes/FLTRequestFactory.m:71:13: error: property 'testDevices' not found on object of type 'GADRequest *'
request.testDevices = testDevices;
^
/Users/lk/programs/flutter/.pub-cache/hosted/pub.dartlang.org/firebase_admob-0.11.0+1/ios/Classes/FLTRequestFactory.m:91:15: error: property 'birthday' not found on object of type 'GADRequest *'
request.birthday =
^
/Users/lk/programs/flutter/.pub-cache/hosted/pub.dartlang.org/firebase_admob-0.11.0+1/ios/Classes/FLTRequestFactory.m:106:19: error: property 'gender' not found on object of type 'GADRequest *'
request.gender = genderValue;
^
/Users/lk/programs/flutter/.pub-cache/hosted/pub.dartlang.org/firebase_admob-0.11.0+1/ios/Classes/FLTRequestFactory.m:116:14: error: no visible #interface for 'GADRequest' declares the selector 'tagForChildDirectedTreatment:'
[request tagForChildDirectedTreatment:childDirected.boolValue];
~~~~~~~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
6 errors generated.
Add to Podfile:
target 'Runner' do
use_frameworks!
use_modular_headers!
flutter_install_all_ios_pods File.dirname(File.realpath(__FILE__))
# TODO: remove this once this issue is resolved:
# https://github.com/FirebaseExtended/flutterfire/issues/4931
pod 'Google-Mobile-Ads-SDK', '~> 7.69.0' # this line
end

Cached network image is throwing errors after using non-nullable in flutter

Currently using Non Nullable for flutter, all the dependencies work fine except for cached_network_image.
My pubspec.yaml:
environment:
sdk: ">=2.10.0 <3.0.0"
dependencies:
flutter:
sdk: flutter
cached_network_image: ^2.3.3
In my launch.json for VS code, I've included args:
"--enable-experiment=non-nullable",
"--no-sound-null-safety",
I've also added analysis_options.yaml:
analyzer:
enable-experiment:
- non-nullable
The errors I'm getting:
../../../Development/flutter/.pub-cache/hosted/pub.dartlang.org/sqflite-1.3.2+1/lib/src/compat.dart:1:1: Error: Null safe libraries are not allowed to export declarations from of opt-out libraries.
export 'package:sqflite_common/src/compat.dart';
^
../../../Development/flutter/.pub-cache/hosted/pub.dartlang.org/sqflite-1.3.2+1/lib/src/sqflite_import.dart:5:1: Error: Null safe libraries are not allowed to export declarations from of opt-out libraries.
export 'package:sqflite_common/src/compat.dart' show SqfliteOptions;
^
../../../Development/flutter/.pub-cache/hosted/pub.dartlang.org/sqflite-1.3.2+1/lib/src/constant.dart:1:1: Error: Null safe libraries are not allowed to export declarations from of opt-out libraries.
export 'package:sqflite_common/src/constant.dart';
^
../../../Development/flutter/.pub-cache/hosted/pub.dartlang.org/sqflite-1.3.2+1/lib/src/utils.dart:1:1: Error: Null safe libraries are not allowed to export declarations from of opt-out libraries.
export 'package:sqflite_common/src/utils.dart';
^
../../../Development/flutter/.pub-cache/hosted/pub.dartlang.org/sqflite-1.3.2+1/lib/utils/utils.dart:1:1: Error: Null safe libraries are not allowed to export declarations from of opt-out libraries.
export 'package:sqflite_common/utils/utils.dart';
^
../../../Development/flutter/.pub-cache/hosted/pub.dartlang.org/sqflite-1.3.2+1/lib/sqlite_api.dart:1:1: Error: Null safe libraries are not allowed to export declarations from of opt-out libraries.
export 'package:sqflite_common/sqlite_api.dart';
^
../../../Development/flutter/.pub-cache/hosted/pub.dartlang.org/sqflite-1.3.2+1/lib/src/sqflite_import.dart:18:1: Error: Null safe libraries are not allowed to export declarations from of opt-out libraries.
export 'package:sqflite_common/src/factory_mixin.dart'
^
../../../Development/flutter/.pub-cache/hosted/pub.dartlang.org/sqflite-1.3.2+1/lib/src/sqflite_import.dart:8:1: Error: Null safe libraries are not allowed to export declarations from of opt-out libraries.
export 'package:sqflite_common/src/database.dart' // ignore: implementation_imports
^
../../../Development/flutter/.pub-cache/hosted/pub.dartlang.org/sqflite-1.3.2+1/lib/src/sqflite_import.dart:12:1: Error: Null safe libraries are not allowed to export declarations from of opt-out libraries.
export 'package:sqflite_common/src/database_mixin.dart' // ignore: implementation_imports
^
../../../Development/flutter/.pub-cache/hosted/pub.dartlang.org/sqflite-1.3.2+1/lib/src/sqflite_import.dart:16:1: Error: Null safe libraries are not allowed to export declarations from of opt-out libraries.
export 'package:sqflite_common/src/exception.dart'
^
../../../Development/flutter/.pub-cache/hosted/pub.dartlang.org/sqflite-1.3.2+1/lib/src/sqflite_import.dart:20:1: Error: Null safe libraries are not allowed to export declarations from of opt-out libraries.
export 'package:sqflite_common/src/factory.dart' show SqfliteDatabaseFactory;
^
../../../Development/flutter/.pub-cache/hosted/pub.dartlang.org/sqflite-1.3.2+1/lib/src/sqflite_import.dart:21:1: Error: Null safe libraries are not allowed to export declarations from of opt-out libraries.
export 'package:sqflite_common/src/mixin/constant.dart'
^
../../../Development/flutter/.pub-cache/hosted/pub.dartlang.org/sqflite-1.3.2+1/lib/src/sqflite_import.dart:32:1: Error: Null safe libraries are not allowed to export declarations from of opt-out libraries.
export 'package:sqflite_common/src/mixin/factory.dart'
^
../../../Development/flutter/.pub-cache/hosted/pub.dartlang.org/sqflite-1.3.2+1/lib/src/sql_builder.dart:1:1: Error: Null safe libraries are not allowed to export declarations from of opt-out libraries.
export 'package:sqflite_common/src/sql_builder.dart';
^
../../../Development/flutter/.pub-cache/hosted/pub.dartlang.org/sqflite-1.3.2+1/lib/sqflite.dart:13:1: Error: Null safe libraries are not allowed to export declarations from of opt-out libraries.
export 'package:sqflite/src/compat.dart';
^
../../../Development/flutter/.pub-cache/hosted/pub.dartlang.org/sqflite-1.3.2+1/lib/sqflite.dart:16:1: Error: Null safe libraries are not allowed to export declarations from of opt-out libraries.
export 'sqlite_api.dart';
../../../Development/flutter/.pub-cache/hosted/pub.dartlang.org/sqflite-1.3.2+1/lib/sql.dart:5:1: Error: Null safe libraries are not allowed to export declarations from of opt-out libraries.
export 'package:sqflite/src/sql_builder.dart'
^
../../../Development/flutter/.pub-cache/hosted/pub.dartlang.org/sqflite-1.3.2+1/lib/sqflite.dart:12:1: Error: Null safe libraries are not allowed to export declarations from of opt-out libraries.
export 'package:sqflite/sql.dart' show ConflictAlgorithm;
^
../../../Development/flutter/.pub-cache/hosted/pub.dartlang.org/sqflite-1.3.2+1/lib/sqflite.dart:70:17: Error: Optional parameter 'duration' should have a default value because its type 'Duration' doesn't allow null.
- 'Duration' is from 'dart:core'.
{Duration duration, void Function() callback}) {
^^^^^^^^
../../../Development/flutter/.pub-cache/hosted/pub.dartlang.org/sqflite-1.3.2+1/lib/sqflite.dart:70:43: Error: Optional parameter 'callback' should have a default value because its type 'void Function()' doesn't allow null.
{Duration duration, void Function() callback}) {
^^^^^^^^
../../../Development/flutter/.pub-cache/hosted/pub.dartlang.org/sqflite-1.3.2+1/lib/sqflite.dart:128:10: Error: Optional parameter 'version' should have a default value because its type 'int' doesn't allow null.
{int version,
^^^^^^^
../../../Development/flutter/.pub-cache/hosted/pub.dartlang.org/sqflite-1.3.2+1/lib/sqflite.dart:129:27: Error: Optional parameter 'onConfigure' should have a default value because its type 'FutureOr<void> Function(Database)' doesn't allow null.
- 'Database' is from 'package:sqflite_common/sqlite_api.dart' ('../../../Development/flutter/.pub-cache/hosted/pub.dartlang.org/sqflite_common-1.0.2+1/lib/sqlite_api.dart').
OnDatabaseConfigureFn onConfigure,
^^^^^^^^^^^
../../../Development/flutter/.pub-cache/hosted/pub.dartlang.org/sqflite-1.3.2+1/lib/sqflite.dart:130:24: Error: Optional parameter 'onCreate' should have a default value because its type 'FutureOr<void> Function(Database, int)' doesn't allow null.
- 'Database' is from 'package:sqflite_common/sqlite_api.dart' ('../../../Development/flutter/.pub-cache/hosted/pub.dartlang.org/sqflite_common-1.0.2+1/lib/sqlite_api.dart').
OnDatabaseCreateFn onCreate,
^^^^^^^^
../../../Development/flutter/.pub-cache/hosted/pub.dartlang.org/sqflite-1.3.2+1/lib/sqflite.dart:131:31: Error: Optional parameter 'onUpgrade' should have a default value because its type 'FutureOr<void> Function(Database, int, int)' doesn't allow null.
- 'Database' is from 'package:sqflite_common/sqlite_api.dart' ('../../../Development/flutter/.pub-cache/hosted/pub.dartlang.org/sqflite_common-1.0.2+1/lib/sqlite_api.dart').
OnDatabaseVersionChangeFn onUpgrade,
^^^^^^^^^
../../../Development/flutter/.pub-cache/hosted/pub.dartlang.org/sqflite-1.3.2+1/lib/sqflite.dart:132:31: Error: Optional parameter 'onDowngrade' should have a default value because its type 'FutureOr<void> Function(Database, int, int)' doesn't allow null.
- 'Database' is from 'package:sqflite_common/sqlite_api.dart' ('../../../Development/flutter/.pub-cache/hosted/pub.dartlang.org/sqflite_common-1.0.2+1/lib/sqlite_api.dart').
OnDatabaseVersionChangeFn onDowngrade,
^^^^^^^^^^^
../../../Development/flutter/.pub-cache/hosted/pub.dartlang.org/sqflite-1.3.2+1/lib/sqflite.dart:133:22: Error: Optional parameter 'onOpen' should have a default value because its type 'FutureOr<void> Function(Database)' doesn't allow null.
- 'Database' is from 'package:sqflite_common/sqlite_api.dart' ('../../../Development/flutter/.pub-cache/hosted/pub.dartlang.org/sqflite_common-1.0.2+1/lib/sqlite_api.dart').
OnDatabaseOpenFn onOpen,
^^^^^^
../../../Development/flutter/.pub-cache/hosted/pub.dartlang.org/sqflite-1.3.2+1/lib/src/factory_impl.dart:10:24: Error: Field '_databaseFactory' should be initialized because its type 'SqfliteDatabaseFactory' doesn't allow null.
- 'SqfliteDatabaseFactory' is from 'package:sqflite_common/src/factory.dart' ('../../../Development/flutter/.pub-cache/hosted/pub.dartlang.org/sqflite_common-1.0.2+1/lib/src/factory.dart').
SqfliteDatabaseFactory _databaseFactory;
^^^^^^^^^^^^^^^^
../../../Development/flutter/.pub-cache/hosted/pub.dartlang.org/sqflite-1.3.2+1/lib/src/factory_impl.dart:42:30: Error: The value 'null' can't be assigned to a variable of type 'SqfliteDatabaseFactory' because 'SqfliteDatabaseFactory' is not nullable.
- 'SqfliteDatabaseFactory' is from 'package:sqflite_common/src/factory.dart' ('../../../Development/flutter/.pub-cache/hosted/pub.dartlang.org/sqflite_common-1.0.2+1/lib/src/factory.dart').
sqfliteDatabaseFactory = null;
../../../Development/flutter/.pub-cache/hosted/pub.dartlang.org/sqflite-1.3.2+1/lib/src/factory_impl.dart:53:5: Warning: Operand of null-aware operation '??=' has type 'SqfliteDatabaseFactory' which excludes null.
- 'SqfliteDatabaseFactory' is from 'package:sqflite_common/src/factory.dart' ('../../../Development/flutter/.pub-cache/hosted/pub.dartlang.org/sqflite_common-1.0.2+1/lib/src/factory.dart').
_databaseFactory ??= SqfliteDatabaseFactoryImpl();
^
../../../Development/flutter/.pub-cache/hosted/pub.dartlang.org/sqflite-1.3.2+1/lib/src/factory_impl.dart:67:5: Warning: Operand of null-aware operation '??=' has type 'SqfliteDatabaseFactory' which excludes null.
- 'SqfliteDatabaseFactory' is from 'package:sqflite_common/src/factory.dart' ('../../../Development/flutter/.pub-cache/hosted/pub.dartlang.org/sqflite_common-1.0.2+1/lib/src/factory.dart').
_databaseFactory ??= SqfliteDatabaseFactoryImpl();
^
../../../Development/flutter/.pub-cache/hosted/pub.dartlang.org/sqflite-1.3.2+1/lib/src/sqflite_impl.dart:17:13: Error: A value of type 'Future<T?>' can't be returned from a function with return type 'Future<T>' because 'T?' is nullable and 'T' isn't.
- 'Future' is from 'dart:async'.
channel.invokeMethod<T>(method, arguments);
FAILURE: Build failed with an exception.
* Where:
Script '/../flutter_tools/gradle/flutter.gradle' line: 900
* What went wrong:
Execution failed for task ':app:compileFlutterBuildDevDebug'.
> Process 'command '/../flutter/bin/flutter'' finished with non-zero exit value 1
cached_network_image doesn't seem to have a null safe release. If anyone has encountered this or has insights, please let me know. Greatly appreciated!
Remove Full Key of 'args':
"args": [
"--enable-experiment=non-nullable",
"--no-sound-null-safety",
]

Build of "aiy-vision-dkms" fails

I am trying to install the Google AIY Vision Bonnet on Raspian Stretch 4.14.79-v7+, as explained in https://github.com/google/aiyprojects-raspbian/blob/aiyprojects/HACKING.md, but the build of aiy-vision-dkms fails with lots of errors.
I did all the steps while in a Python virtual environment, so defined:
# virtualenv and virtualenvwrapper
export WORKON_HOME=$HOME/.virtualenvs
export VIRTUALENVWRAPPER_PYTHON=/usr/bin/python3
source /usr/local/bin/virtualenvwrapper.sh
I execute these commands:
echo "deb https://dl.google.com/aiyprojects/deb stable main" | sudo tee /etc/apt/sources.list.d/aiyprojects.list
wget -q -O - https://dl.google.com/linux/linux_signing_key.pub | sudo apt-key add -
sudo apt-get update
sudo apt-get upgrade
sudo reboot
sudo apt-get install dkms
sudo apt install raspberrypi-kernel-headers
sudo reboot
sudo apt-get install -y aiy-vision-dkms
At this point the build fails:
pi#raspberrypi:/var/lib/dkms $ sudo apt-get install -y aiy-vision-dkms
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following additional packages will be installed:
aiy-dkms aiy-vision-firmware
The following NEW packages will be installed:
aiy-dkms aiy-vision-dkms aiy-vision-firmware
0 upgraded, 3 newly installed, 0 to remove and 9 not upgraded.
Need to get 0 B/2,488 kB of archives.
After this operation, 6,983 kB of additional disk space will be used.
Selecting previously unselected package aiy-dkms.
(Reading database ... 172760 files and directories currently installed.)
Preparing to unpack .../aiy-dkms_1.1-2_all.deb ...
Unpacking aiy-dkms (1.1-2) ...
Selecting previously unselected package aiy-vision-firmware.
Preparing to unpack .../aiy-vision-firmware_1.2-0_all.deb ...
Unpacking aiy-vision-firmware (1.2-0) ...
Selecting previously unselected package aiy-vision-dkms.
Preparing to unpack .../aiy-vision-dkms_1.1-1_all.deb ...
Unpacking aiy-vision-dkms (1.1-1) ...
Setting up aiy-dkms (1.1-2) ...
Loading new aiy-1.1 DKMS files...
It is likely that 4.14.79-v7+ belongs to a chroot's host
Building for 3.6-trunk-rpi, 4.14.79+ and 4.14.79-v7+
Building initial module for 3.6-trunk-rpi
Error! Bad return status for module build on kernel: 3.6-trunk-rpi (armv7l)
Consult /var/lib/dkms/aiy/1.1/build/make.log for more information.
Setting up aiy-vision-firmware (1.2-0) ...
Setting up aiy-vision-dkms (1.1-1) ...
Loading new aiy-vision-1.1 DKMS files...
It is likely that 4.14.79-v7+ belongs to a chroot's host
Building for 3.6-trunk-rpi, 4.14.79+ and 4.14.79-v7+
Building initial module for 3.6-trunk-rpi
Error! Bad return status for module build on kernel: 3.6-trunk-rpi (armv7l)
Consult /var/lib/dkms/aiy-vision/1.1/build/make.log for more information.
Below is /var/lib/dkms/aiy/1.1/build/make.log :
DKMS make.log for aiy-1.1 for kernel 3.6-trunk-rpi (armv7l)
Wed 30 Jan 22:03:20 CET 2019
make: Entering directory '/usr/src/linux-headers-3.6-trunk-rpi'
LD /var/lib/dkms/aiy/1.1/build/aiy/mfd/built-in.o
LD /var/lib/dkms/aiy/1.1/build/aiy/gpio/built-in.o
LD /var/lib/dkms/aiy/1.1/build/aiy/pwm/built-in.o
CC [M] /var/lib/dkms/aiy/1.1/build/aiy/gpio/gpio-aiy-io.o
CC [M] /var/lib/dkms/aiy/1.1/build/aiy/mfd/aiy-io-i2c.o
LD /var/lib/dkms/aiy/1.1/build/aiy/iio/adc/built-in.o
CC [M] /var/lib/dkms/aiy/1.1/build/aiy/pwm/pwm-aiy-io.o
CC [M] /var/lib/dkms/aiy/1.1/build/aiy/iio/adc/aiy-adc.o
/var/lib/dkms/aiy/1.1/build/aiy/iio/adc/aiy-adc.c:157:2: error: unknown field ‘info_mask_separate’ specified in initializer
/var/lib/dkms/aiy/1.1/build/aiy/iio/adc/aiy-adc.c:157:2: error: unknown field ‘info_mask_separate’ specified in initializer
/var/lib/dkms/aiy/1.1/build/aiy/iio/adc/aiy-adc.c:158:2: error: unknown field ‘info_mask_separate’ specified in initializer
/var/lib/dkms/aiy/1.1/build/aiy/iio/adc/aiy-adc.c:158:2: error: unknown field ‘info_mask_separate’ specified in initializer
/var/lib/dkms/aiy/1.1/build/aiy/iio/adc/aiy-adc.c:159:2: error: unknown field ‘info_mask_separate’ specified in initializer
/var/lib/dkms/aiy/1.1/build/aiy/iio/adc/aiy-adc.c:159:2: error: unknown field ‘info_mask_separate’ specified in initializer
/var/lib/dkms/aiy/1.1/build/aiy/iio/adc/aiy-adc.c:160:2: error: unknown field ‘info_mask_separate’ specified in initializer
/var/lib/dkms/aiy/1.1/build/aiy/iio/adc/aiy-adc.c:160:2: error: unknown field ‘info_mask_separate’ specified in initializer
/var/lib/dkms/aiy/1.1/build/aiy/iio/adc/aiy-adc.c:163:2: error: unknown field ‘info_mask_separate’ specified in initializer
/var/lib/dkms/aiy/1.1/build/aiy/iio/adc/aiy-adc.c:163:2: error: unknown field ‘info_mask_separate’ specified in initializer
/var/lib/dkms/aiy/1.1/build/aiy/iio/adc/aiy-adc.c:164:2: error: unknown field ‘info_mask_separate’ specified in initializer
/var/lib/dkms/aiy/1.1/build/aiy/iio/adc/aiy-adc.c:164:2: error: unknown field ‘info_mask_separate’ specified in initializer
/var/lib/dkms/aiy/1.1/build/aiy/iio/adc/aiy-adc.c:165:2: error: unknown field ‘info_mask_separate’ specified in initializer
/var/lib/dkms/aiy/1.1/build/aiy/iio/adc/aiy-adc.c:165:2: error: unknown field ‘info_mask_separate’ specified in initializer
/var/lib/dkms/aiy/1.1/build/aiy/iio/adc/aiy-adc.c:166:2: error: unknown field ‘info_mask_separate’ specified in initializer
/var/lib/dkms/aiy/1.1/build/aiy/iio/adc/aiy-adc.c:166:2: error: unknown field ‘info_mask_separate’ specified in initializer
/var/lib/dkms/aiy/1.1/build/aiy/iio/adc/aiy-adc.c: In function ‘aiy_adc_probe’:
/var/lib/dkms/aiy/1.1/build/aiy/iio/adc/aiy-adc.c:176:2: error: implicit declaration of function ‘devm_iio_device_alloc’ [-Werror=implicit-function-declaration]
/var/lib/dkms/aiy/1.1/build/aiy/iio/adc/aiy-adc.c:176:10: warning: assignment makes pointer from integer without a cast [enabled by default]
cc1: some warnings being treated as errors
/usr/src/linux-headers-3.6-trunk-common/scripts/Makefile.build:313: recipe for target '/var/lib/dkms/aiy/1.1/build/aiy/iio/adc/aiy-adc.o' failed
make[6]: *** [/var/lib/dkms/aiy/1.1/build/aiy/iio/adc/aiy-adc.o] Error 1
/usr/src/linux-headers-3.6-trunk-common/scripts/Makefile.build:443: recipe for target '/var/lib/dkms/aiy/1.1/build/aiy/iio/adc' failed
make[5]: *** [/var/lib/dkms/aiy/1.1/build/aiy/iio/adc] Error 2
/usr/src/linux-headers-3.6-trunk-common/scripts/Makefile.build:443: recipe for target '/var/lib/dkms/aiy/1.1/build/aiy/iio' failed
make[4]: *** [/var/lib/dkms/aiy/1.1/build/aiy/iio] Error 2
make[4]: *** Waiting for unfinished jobs....
/var/lib/dkms/aiy/1.1/build/aiy/pwm/pwm-aiy-io.c:27:18: error: field ‘chip’ has incomplete type
/var/lib/dkms/aiy/1.1/build/aiy/pwm/pwm-aiy-io.c: In function ‘to_aiy’:
/var/lib/dkms/aiy/1.1/build/aiy/pwm/pwm-aiy-io.c:58:28: warning: initialization from incompatible pointer type [enabled by default]
/var/lib/dkms/aiy/1.1/build/aiy/pwm/pwm-aiy-io.c:58:28: warning: (near initialization for ‘aiy_pwm’) [enabled by default]
/var/lib/dkms/aiy/1.1/build/aiy/pwm/pwm-aiy-io.c: In function ‘aiy_calculate_8bit_settings’:
/var/lib/dkms/aiy/1.1/build/aiy/pwm/pwm-aiy-io.c:80:2: error: dereferencing pointer to incomplete type
/var/lib/dkms/aiy/1.1/build/aiy/gpio/gpio-aiy-io.c: In function ‘to_aiy’:
/var/lib/dkms/aiy/1.1/build/aiy/gpio/gpio-aiy-io.c:46:9: error: implicit declaration of function ‘gpiochip_get_data’ [-Werror=implicit-function-declaration]
/var/lib/dkms/aiy/1.1/build/aiy/gpio/gpio-aiy-io.c:46:27: warning: initialization makes pointer from integer without a cast [enabled by default]
/var/lib/dkms/aiy/1.1/build/aiy/pwm/pwm-aiy-io.c:89:16: error: dereferencing pointer to incomplete type
/var/lib/dkms/aiy/1.1/build/aiy/gpio/gpio-aiy-io.c: In function ‘aiy_gpio_request’:
/var/lib/dkms/aiy/1.1/build/aiy/gpio/gpio-aiy-io.c:55:2: error: ‘struct gpio_chip’ has no member named ‘parent’
/var/lib/dkms/aiy/1.1/build/aiy/gpio/gpio-aiy-io.c:58:15: error: ‘struct gpio_chip’ has no member named ‘parent’
/var/lib/dkms/aiy/1.1/build/aiy/gpio/gpio-aiy-io.c: In function ‘aiy_gpio_free’:
/var/lib/dkms/aiy/1.1/build/aiy/gpio/gpio-aiy-io.c:67:2: error: ‘struct gpio_chip’ has no member named ‘parent’
/var/lib/dkms/aiy/1.1/build/aiy/gpio/gpio-aiy-io.c:71:15: error: ‘struct gpio_chip’ has no member named ‘parent’
/var/lib/dkms/aiy/1.1/build/aiy/gpio/gpio-aiy-io.c:75:15: error: ‘struct gpio_chip’ has no member named ‘parent’
/var/lib/dkms/aiy/1.1/build/aiy/mfd/aiy-io-i2c.c: In function ‘aiy_io_mcu_write_direct’:
/var/lib/dkms/aiy/1.1/build/aiy/mfd/aiy-io-i2c.c:86:2: error: implicit declaration of function ‘__i2c_transfer’ [-Werror=implicit-function-declaration]
/var/lib/dkms/aiy/1.1/build/aiy/gpio/gpio-aiy-io.c: In function ‘aiy_gpio_direction_input’:
/var/lib/dkms/aiy/1.1/build/aiy/gpio/gpio-aiy-io.c:83:2: error: ‘struct gpio_chip’ has no member named ‘parent’
/var/lib/dkms/aiy/1.1/build/aiy/mfd/aiy-io-i2c.c: In function ‘aiy_io_mcu_wait_alive’:
/var/lib/dkms/aiy/1.1/build/aiy/mfd/aiy-io-i2c.c:98:3: error: implicit declaration of function ‘msleep’ [-Werror=implicit-function-declaration]
/var/lib/dkms/aiy/1.1/build/aiy/gpio/gpio-aiy-io.c:87:15: error: ‘struct gpio_chip’ has no member named ‘parent’
/var/lib/dkms/aiy/1.1/build/aiy/gpio/gpio-aiy-io.c: In function ‘aiy_gpio_get’:
/var/lib/dkms/aiy/1.1/build/aiy/gpio/gpio-aiy-io.c:100:2: error: ‘struct gpio_chip’ has no member named ‘parent’
/var/lib/dkms/aiy/1.1/build/aiy/gpio/gpio-aiy-io.c:104:15: error: ‘struct gpio_chip’ has no member named ‘parent’
/var/lib/dkms/aiy/1.1/build/aiy/gpio/gpio-aiy-io.c: In function ‘aiy_gpio_set_impl’:
/var/lib/dkms/aiy/1.1/build/aiy/gpio/gpio-aiy-io.c:121:15: error: ‘struct gpio_chip’ has no member named ‘parent’
/var/lib/dkms/aiy/1.1/build/aiy/gpio/gpio-aiy-io.c: In function ‘aiy_gpio_set’:
/var/lib/dkms/aiy/1.1/build/aiy/gpio/gpio-aiy-io.c:129:2: error: ‘struct gpio_chip’ has no member named ‘parent’
/var/lib/dkms/aiy/1.1/build/aiy/pwm/pwm-aiy-io.c:99:18: error: dereferencing pointer to incomplete type
/var/lib/dkms/aiy/1.1/build/aiy/gpio/gpio-aiy-io.c: In function ‘aiy_gpio_direction_output’:
/var/lib/dkms/aiy/1.1/build/aiy/gpio/gpio-aiy-io.c:139:2: error: ‘struct gpio_chip’ has no member named ‘parent’
/var/lib/dkms/aiy/1.1/build/aiy/gpio/gpio-aiy-io.c:144:15: error: ‘struct gpio_chip’ has no member named ‘parent’
/var/lib/dkms/aiy/1.1/build/aiy/mfd/aiy-io-i2c.c: In function ‘aiy_io_update_firmware’:
/var/lib/dkms/aiy/1.1/build/aiy/mfd/aiy-io-i2c.c:174:2: error: implicit declaration of function ‘request_firmware_direct’ [-Werror=implicit-function-declaration]
/var/lib/dkms/aiy/1.1/build/aiy/gpio/gpio-aiy-io.c: In function ‘aiy_gpio_probe’:
/var/lib/dkms/aiy/1.1/build/aiy/gpio/gpio-aiy-io.c:163:6: error: ‘struct gpio_chip’ has no member named ‘parent’
/var/lib/dkms/aiy/1.1/build/aiy/gpio/gpio-aiy-io.c:175:2: error: implicit declaration of function ‘devm_gpiochip_add_data’ [-Werror=implicit-function-declaration]
/var/lib/dkms/aiy/1.1/build/aiy/pwm/pwm-aiy-io.c:106:4: error: dereferencing pointer to incomplete type
/var/lib/dkms/aiy/1.1/build/aiy/mfd/aiy-io-i2c.c: At top level:
/var/lib/dkms/aiy/1.1/build/aiy/mfd/aiy-io-i2c.c:304:34: error: array type has incomplete element type
/var/lib/dkms/aiy/1.1/build/aiy/mfd/aiy-io-i2c.c:305:2: error: field name not in record or union initializer
/var/lib/dkms/aiy/1.1/build/aiy/mfd/aiy-io-i2c.c:305:2: error: (near initialization for ‘aiy_io_i2c_volatile_ranges’)
/var/lib/dkms/aiy/1.1/build/aiy/mfd/aiy-io-i2c.c:306:3: error: field name not in record or union initializer
/var/lib/dkms/aiy/1.1/build/aiy/mfd/aiy-io-i2c.c:306:3: error: (near initialization for ‘aiy_io_i2c_volatile_ranges’)
/var/lib/dkms/aiy/1.1/build/aiy/mfd/aiy-io-i2c.c:307:2: error: field name not in record or union initializer
/var/lib/dkms/aiy/1.1/build/aiy/mfd/aiy-io-i2c.c:307:2: error: (near initialization for ‘aiy_io_i2c_volatile_ranges’)
/var/lib/dkms/aiy/1.1/build/aiy/mfd/aiy-io-i2c.c:308:3: error: field name not in record or union initializer
/var/lib/dkms/aiy/1.1/build/aiy/mfd/aiy-io-i2c.c:308:3: error: (near initialization for ‘aiy_io_i2c_volatile_ranges’)
/var/lib/dkms/aiy/1.1/build/aiy/mfd/aiy-io-i2c.c:311:21: error: variable ‘aiy_io_i2c_volatile_table’ has initializer but incomplete type
/var/lib/dkms/aiy/1.1/build/aiy/mfd/aiy-io-i2c.c:312:2: error: unknown field ‘yes_ranges’ specified in initializer
/var/lib/dkms/aiy/1.1/build/aiy/mfd/aiy-io-i2c.c:312:2: warning: excess elements in struct initializer [enabled by default]
/var/lib/dkms/aiy/1.1/build/aiy/mfd/aiy-io-i2c.c:312:2: warning: (near initialization for ‘aiy_io_i2c_volatile_table’) [enabled by default]
/var/lib/dkms/aiy/1.1/build/aiy/mfd/aiy-io-i2c.c:313:2: error: unknown field ‘n_yes_ranges’ specified in initializer
/var/lib/dkms/aiy/1.1/build/aiy/mfd/aiy-io-i2c.c:313:18: error: negative width in bit-field ‘<anonymous>’
/var/lib/dkms/aiy/1.1/build/aiy/mfd/aiy-io-i2c.c:313:18: warning: excess elements in struct initializer [enabled by default]
/var/lib/dkms/aiy/1.1/build/aiy/mfd/aiy-io-i2c.c:313:18: warning: (near initialization for ‘aiy_io_i2c_volatile_table’) [enabled by default]
/var/lib/dkms/aiy/1.1/build/aiy/mfd/aiy-io-i2c.c:316:21: error: variable ‘aiy_io_i2c_regmap_config’ has initializer but incomplete type
/var/lib/dkms/aiy/1.1/build/aiy/mfd/aiy-io-i2c.c:317:2: error: unknown field ‘reg_bits’ specified in initializer
/var/lib/dkms/aiy/1.1/build/aiy/mfd/aiy-io-i2c.c:317:2: warning: excess elements in struct initializer [enabled by default]
/var/lib/dkms/aiy/1.1/build/aiy/mfd/aiy-io-i2c.c:317:2: warning: (near initialization for ‘aiy_io_i2c_regmap_config’) [enabled by default]
/var/lib/dkms/aiy/1.1/build/aiy/mfd/aiy-io-i2c.c:318:2: error: unknown field ‘val_bits’ specified in initializer
/var/lib/dkms/aiy/1.1/build/aiy/mfd/aiy-io-i2c.c:318:2: warning: excess elements in struct initializer [enabled by default]
/var/lib/dkms/aiy/1.1/build/aiy/mfd/aiy-io-i2c.c:318:2: warning: (near initialization for ‘aiy_io_i2c_regmap_config’) [enabled by default]
/var/lib/dkms/aiy/1.1/build/aiy/mfd/aiy-io-i2c.c:319:2: error: unknown field ‘max_register’ specified in initializer
/var/lib/dkms/aiy/1.1/build/aiy/mfd/aiy-io-i2c.c:319:2: warning: excess elements in struct initializer [enabled by default]
/var/lib/dkms/aiy/1.1/build/aiy/mfd/aiy-io-i2c.c:319:2: warning: (near initialization for ‘aiy_io_i2c_regmap_config’) [enabled by default]
/var/lib/dkms/aiy/1.1/build/aiy/mfd/aiy-io-i2c.c:320:2: error: unknown field ‘volatile_table’ specified in initializer
/var/lib/dkms/aiy/1.1/build/aiy/mfd/aiy-io-i2c.c:320:2: warning: excess elements in struct initializer [enabled by default]
/var/lib/dkms/aiy/1.1/build/aiy/mfd/aiy-io-i2c.c:320:2: warning: (near initialization for ‘aiy_io_i2c_regmap_config’) [enabled by default]
/var/lib/dkms/aiy/1.1/build/aiy/mfd/aiy-io-i2c.c:321:2: error: unknown field ‘cache_type’ specified in initializer
/var/lib/dkms/aiy/1.1/build/aiy/mfd/aiy-io-i2c.c:321:2: warning: excess elements in struct initializer [enabled by default]
/var/lib/dkms/aiy/1.1/build/aiy/mfd/aiy-io-i2c.c:321:2: warning: (near initialization for ‘aiy_io_i2c_regmap_config’) [enabled by default]
/var/lib/dkms/aiy/1.1/build/aiy/mfd/aiy-io-i2c.c:322:2: error: unknown field ‘can_multi_write’ specified in initializer
/var/lib/dkms/aiy/1.1/build/aiy/mfd/aiy-io-i2c.c:322:2: warning: excess elements in struct initializer [enabled by default]
/var/lib/dkms/aiy/1.1/build/aiy/mfd/aiy-io-i2c.c:322:2: warning: (near initialization for ‘aiy_io_i2c_regmap_config’) [enabled by default]
/var/lib/dkms/aiy/1.1/build/aiy/mfd/aiy-io-i2c.c: In function ‘aiy_io_i2c_probe’:
/var/lib/dkms/aiy/1.1/build/aiy/mfd/aiy-io-i2c.c:337:2: error: implicit declaration of function ‘devm_regmap_init_i2c’ [-Werror=implicit-function-declaration]
/var/lib/dkms/aiy/1.1/build/aiy/mfd/aiy-io-i2c.c:337:14: warning: assignment makes pointer from integer without a cast [enabled by default]
/var/lib/dkms/aiy/1.1/build/aiy/mfd/aiy-io-i2c.c:372:29: error: ‘PLATFORM_DEVID_NONE’ undeclared (first use in this function)
/var/lib/dkms/aiy/1.1/build/aiy/mfd/aiy-io-i2c.c:372:29: note: each undeclared identifier is reported only once for each function it appears in
/var/lib/dkms/aiy/1.1/build/aiy/mfd/aiy-io-i2c.c:373:10: warning: passing argument 3 of ‘mfd_add_devices’ discards ‘const’ qualifier from pointer target type [enabled by default]
/usr/src/linux-headers-3.6-trunk-common/include/linux/mfd/core.h:100:12: note: expected ‘struct mfd_cell *’ but argument is of type ‘const struct mfd_cell *’
/var/lib/dkms/aiy/1.1/build/aiy/mfd/aiy-io-i2c.c: At top level:
/var/lib/dkms/aiy/1.1/build/aiy/mfd/aiy-io-i2c.c:421:1: warning: data definition has no type or storage class [enabled by default]
/var/lib/dkms/aiy/1.1/build/aiy/mfd/aiy-io-i2c.c:421:1: warning: type defaults to ‘int’ in declaration of ‘module_i2c_driver’ [enabled by default]
/var/lib/dkms/aiy/1.1/build/aiy/mfd/aiy-io-i2c.c:421:1: warning: parameter names (without types) in function declaration [enabled by default]
/var/lib/dkms/aiy/1.1/build/aiy/pwm/pwm-aiy-io.c: In function ‘aiy_calculate_16bit_settings’:
/var/lib/dkms/aiy/1.1/build/aiy/pwm/pwm-aiy-io.c:134:2: error: dereferencing pointer to incomplete type
/var/lib/dkms/aiy/1.1/build/aiy/pwm/pwm-aiy-io.c: In function ‘aiy_pwm_request’:
/var/lib/dkms/aiy/1.1/build/aiy/pwm/pwm-aiy-io.c:141:32: error: dereferencing pointer to incomplete type
/var/lib/dkms/aiy/1.1/build/aiy/pwm/pwm-aiy-io.c:144:2: error: dereferencing pointer to incomplete type
/var/lib/dkms/aiy/1.1/build/aiy/pwm/pwm-aiy-io.c:144:2: error: dereferencing pointer to incomplete type
/var/lib/dkms/aiy/1.1/build/aiy/pwm/pwm-aiy-io.c:148:15: error: dereferencing pointer to incomplete type
/var/lib/dkms/aiy/1.1/build/aiy/pwm/pwm-aiy-io.c:150:7: error: dereferencing pointer to incomplete type
/var/lib/dkms/aiy/1.1/build/aiy/pwm/pwm-aiy-io.c: In function ‘aiy_pwm_free’:
/var/lib/dkms/aiy/1.1/build/aiy/pwm/pwm-aiy-io.c:157:32: error: dereferencing pointer to incomplete type
/var/lib/dkms/aiy/1.1/build/aiy/pwm/pwm-aiy-io.c:160:2: error: dereferencing pointer to incomplete type
/var/lib/dkms/aiy/1.1/build/aiy/pwm/pwm-aiy-io.c:160:2: error: dereferencing pointer to incomplete type
/var/lib/dkms/aiy/1.1/build/aiy/pwm/pwm-aiy-io.c:165:15: error: dereferencing pointer to incomplete type
/var/lib/dkms/aiy/1.1/build/aiy/pwm/pwm-aiy-io.c:168:15: error: dereferencing pointer to incomplete type
/var/lib/dkms/aiy/1.1/build/aiy/pwm/pwm-aiy-io.c: In function ‘aiy_pwm_write_setting’:
/var/lib/dkms/aiy/1.1/build/aiy/pwm/pwm-aiy-io.c:184:15: error: dereferencing pointer to incomplete type
/var/lib/dkms/aiy/1.1/build/aiy/pwm/pwm-aiy-io.c:192:15: error: dereferencing pointer to incomplete type
/var/lib/dkms/aiy/1.1/build/aiy/pwm/pwm-aiy-io.c:198:15: error: dereferencing pointer to incomplete type
/var/lib/dkms/aiy/1.1/build/aiy/pwm/pwm-aiy-io.c: In function ‘aiy_pwm_8bit_config’:
/var/lib/dkms/aiy/1.1/build/aiy/pwm/pwm-aiy-io.c:212:2: error: dereferencing pointer to incomplete type
/var/lib/dkms/aiy/1.1/build/aiy/pwm/pwm-aiy-io.c:219:15: error: dereferencing pointer to incomplete type
/var/lib/dkms/aiy/1.1/build/aiy/pwm/pwm-aiy-io.c:223:39: error: dereferencing pointer to incomplete type
/var/lib/dkms/aiy/1.1/build/aiy/pwm/pwm-aiy-io.c:226:15: error: dereferencing pointer to incomplete type
/var/lib/dkms/aiy/1.1/build/aiy/pwm/pwm-aiy-io.c: In function ‘aiy_pwm_16bit_config’:
/var/lib/dkms/aiy/1.1/build/aiy/pwm/pwm-aiy-io.c:241:2: error: dereferencing pointer to incomplete type
/var/lib/dkms/aiy/1.1/build/aiy/pwm/pwm-aiy-io.c:246:15: error: dereferencing pointer to incomplete type
/var/lib/dkms/aiy/1.1/build/aiy/pwm/pwm-aiy-io.c:250:39: error: dereferencing pointer to incomplete type
/var/lib/dkms/aiy/1.1/build/aiy/pwm/pwm-aiy-io.c:252:15: error: dereferencing pointer to incomplete type
/var/lib/dkms/aiy/1.1/build/aiy/mfd/aiy-io-i2c.c:304:34: warning: ‘aiy_io_i2c_volatile_ranges’ defined but not used [-Wunused-variable]
/var/lib/dkms/aiy/1.1/build/aiy/mfd/aiy-io-i2c.c:411:26: warning: ‘aiy_io_i2c_driver’ defined but not used [-Wunused-variable]
/var/lib/dkms/aiy/1.1/build/aiy/pwm/pwm-aiy-io.c: In function ‘aiy_pwm_config’:
/var/lib/dkms/aiy/1.1/build/aiy/pwm/pwm-aiy-io.c:263:36: error: dereferencing pointer to incomplete type
/var/lib/dkms/aiy/1.1/build/aiy/pwm/pwm-aiy-io.c:267:2: error: dereferencing pointer to incomplete type
/var/lib/dkms/aiy/1.1/build/aiy/pwm/pwm-aiy-io.c:270:9: error: dereferencing pointer to incomplete type
/var/lib/dkms/aiy/1.1/build/aiy/pwm/pwm-aiy-io.c:288:3: error: dereferencing pointer to incomplete type
/var/lib/dkms/aiy/1.1/build/aiy/pwm/pwm-aiy-io.c:292:9: error: dereferencing pointer to incomplete type
/var/lib/dkms/aiy/1.1/build/aiy/pwm/pwm-aiy-io.c: In function ‘aiy_pwm_enable’:
/var/lib/dkms/aiy/1.1/build/aiy/pwm/pwm-aiy-io.c:305:36: error: dereferencing pointer to incomplete type
/var/lib/dkms/aiy/1.1/build/aiy/pwm/pwm-aiy-io.c:310:9: error: dereferencing pointer to incomplete type
/var/lib/dkms/aiy/1.1/build/aiy/pwm/pwm-aiy-io.c:311:3: error: dereferencing pointer to incomplete type
/var/lib/dkms/aiy/1.1/build/aiy/pwm/pwm-aiy-io.c:314:3: error: dereferencing pointer to incomplete type
/var/lib/dkms/aiy/1.1/build/aiy/pwm/pwm-aiy-io.c:320:15: error: dereferencing pointer to incomplete type
/var/lib/dkms/aiy/1.1/build/aiy/pwm/pwm-aiy-io.c: In function ‘aiy_pwm_disable’:
/var/lib/dkms/aiy/1.1/build/aiy/pwm/pwm-aiy-io.c:328:36: error: dereferencing pointer to incomplete type
/var/lib/dkms/aiy/1.1/build/aiy/pwm/pwm-aiy-io.c:331:2: error: dereferencing pointer to incomplete type
/var/lib/dkms/aiy/1.1/build/aiy/pwm/pwm-aiy-io.c:331:2: error: dereferencing pointer to incomplete type
/var/lib/dkms/aiy/1.1/build/aiy/pwm/pwm-aiy-io.c:337:15: error: dereferencing pointer to incomplete type
/var/lib/dkms/aiy/1.1/build/aiy/pwm/pwm-aiy-io.c:337:54: error: dereferencing pointer to incomplete type
/var/lib/dkms/aiy/1.1/build/aiy/pwm/pwm-aiy-io.c: At top level:
/var/lib/dkms/aiy/1.1/build/aiy/pwm/pwm-aiy-io.c:341:21: error: variable ‘aiy_pwm_ops’ has initializer but incomplete type
/var/lib/dkms/aiy/1.1/build/aiy/pwm/pwm-aiy-io.c:342:2: error: unknown field ‘request’ specified in initializer
/var/lib/dkms/aiy/1.1/build/aiy/pwm/pwm-aiy-io.c:342:2: warning: excess elements in struct initializer [enabled by default]
/var/lib/dkms/aiy/1.1/build/aiy/pwm/pwm-aiy-io.c:342:2: warning: (near initialization for ‘aiy_pwm_ops’) [enabled by default]
/var/lib/dkms/aiy/1.1/build/aiy/pwm/pwm-aiy-io.c:343:2: error: unknown field ‘free’ specified in initializer
/var/lib/dkms/aiy/1.1/build/aiy/pwm/pwm-aiy-io.c:343:2: warning: excess elements in struct initializer [enabled by default]
/var/lib/dkms/aiy/1.1/build/aiy/pwm/pwm-aiy-io.c:343:2: warning: (near initialization for ‘aiy_pwm_ops’) [enabled by default]
/var/lib/dkms/aiy/1.1/build/aiy/pwm/pwm-aiy-io.c:344:2: error: unknown field ‘config’ specified in initializer
/var/lib/dkms/aiy/1.1/build/aiy/pwm/pwm-aiy-io.c:344:2: warning: excess elements in struct initializer [enabled by default]
/var/lib/dkms/aiy/1.1/build/aiy/pwm/pwm-aiy-io.c:344:2: warning: (near initialization for ‘aiy_pwm_ops’) [enabled by default]
/var/lib/dkms/aiy/1.1/build/aiy/pwm/pwm-aiy-io.c:345:2: error: unknown field ‘enable’ specified in initializer
/var/lib/dkms/aiy/1.1/build/aiy/pwm/pwm-aiy-io.c:345:2: warning: excess elements in struct initializer [enabled by default]
/var/lib/dkms/aiy/1.1/build/aiy/pwm/pwm-aiy-io.c:345:2: warning: (near initialization for ‘aiy_pwm_ops’) [enabled by default]
/var/lib/dkms/aiy/1.1/build/aiy/pwm/pwm-aiy-io.c:346:2: error: unknown field ‘disable’ specified in initializer
/var/lib/dkms/aiy/1.1/build/aiy/pwm/pwm-aiy-io.c:346:2: warning: excess elements in struct initializer [enabled by default]
/var/lib/dkms/aiy/1.1/build/aiy/pwm/pwm-aiy-io.c:346:2: warning: (near initialization for ‘aiy_pwm_ops’) [enabled by default]
/var/lib/dkms/aiy/1.1/build/aiy/pwm/pwm-aiy-io.c:347:2: error: unknown field ‘owner’ specified in initializer
/var/lib/dkms/aiy/1.1/build/aiy/pwm/pwm-aiy-io.c:347:2: warning: excess elements in struct initializer [enabled by default]
/var/lib/dkms/aiy/1.1/build/aiy/pwm/pwm-aiy-io.c:347:2: warning: (near initialization for ‘aiy_pwm_ops’) [enabled by default]
/var/lib/dkms/aiy/1.1/build/aiy/pwm/pwm-aiy-io.c: In function ‘aiy_pwm_probe’:
/var/lib/dkms/aiy/1.1/build/aiy/pwm/pwm-aiy-io.c:366:2: error: implicit declaration of function ‘pwmchip_add’ [-Werror=implicit-function-declaration]
/var/lib/dkms/aiy/1.1/build/aiy/pwm/pwm-aiy-io.c: In function ‘aiy_pwm_remove’:
/var/lib/dkms/aiy/1.1/build/aiy/pwm/pwm-aiy-io.c:380:2: error: implicit declaration of function ‘pwmchip_remove’ [-Werror=implicit-function-declaration]
cc1: some warnings being treated as errors
cc1: some warnings being treated as errors
cc1: some warnings being treated as errors
/usr/src/linux-headers-3.6-trunk-common/scripts/Makefile.build:313: recipe for target '/var/lib/dkms/aiy/1.1/build/aiy/gpio/gpio-aiy-io.o' failed
make[5]: *** [/var/lib/dkms/aiy/1.1/build/aiy/gpio/gpio-aiy-io.o] Error 1
/usr/src/linux-headers-3.6-trunk-common/scripts/Makefile.build:443: recipe for target '/var/lib/dkms/aiy/1.1/build/aiy/gpio' failed
make[4]: *** [/var/lib/dkms/aiy/1.1/build/aiy/gpio] Error 2
/usr/src/linux-headers-3.6-trunk-common/scripts/Makefile.build:313: recipe for target '/var/lib/dkms/aiy/1.1/build/aiy/mfd/aiy-io-i2c.o' failed
make[5]: *** [/var/lib/dkms/aiy/1.1/build/aiy/mfd/aiy-io-i2c.o] Error 1
/usr/src/linux-headers-3.6-trunk-common/scripts/Makefile.build:443: recipe for target '/var/lib/dkms/aiy/1.1/build/aiy/mfd' failed
make[4]: *** [/var/lib/dkms/aiy/1.1/build/aiy/mfd] Error 2
/usr/src/linux-headers-3.6-trunk-common/scripts/Makefile.build:313: recipe for target '/var/lib/dkms/aiy/1.1/build/aiy/pwm/pwm-aiy-io.o' failed
make[5]: *** [/var/lib/dkms/aiy/1.1/build/aiy/pwm/pwm-aiy-io.o] Error 1
/usr/src/linux-headers-3.6-trunk-common/scripts/Makefile.build:443: recipe for target '/var/lib/dkms/aiy/1.1/build/aiy/pwm' failed
make[4]: *** [/var/lib/dkms/aiy/1.1/build/aiy/pwm] Error 2
/usr/src/linux-headers-3.6-trunk-common/scripts/Makefile.build:443: recipe for target '/var/lib/dkms/aiy/1.1/build/aiy' failed
make[3]: *** [/var/lib/dkms/aiy/1.1/build/aiy] Error 2
/usr/src/linux-headers-3.6-trunk-common/Makefile:1208: recipe for target '_module_/var/lib/dkms/aiy/1.1/build' failed
make[2]: *** [_module_/var/lib/dkms/aiy/1.1/build] Error 2
Makefile:130: recipe for target 'sub-make' failed
make[1]: *** [sub-make] Error 2
Makefile:8: recipe for target 'all' failed
make: *** [all] Error 2
make: Leaving directory '/usr/src/linux-headers-3.6-trunk-rpi'
Below is /var/lib/dkms/aiy-vision/1.1/build/make.log :
DKMS make.log for aiy-vision-1.1 for kernel 3.6-trunk-rpi (armv7l)
Wed 30 Jan 22:03:35 CET 2019
make: Entering directory '/usr/src/linux-headers-3.6-trunk-rpi'
LD /var/lib/dkms/aiy-vision/1.1/build/built-in.o
CC [M] /var/lib/dkms/aiy-vision/1.1/build/aiy-vision.o
/var/lib/dkms/aiy-vision/1.1/build/aiy-vision.c:32:33: fatal error: linux/gpio/consumer.h: No such file or directory
compilation terminated.
/usr/src/linux-headers-3.6-trunk-common/scripts/Makefile.build:313: recipe for target '/var/lib/dkms/aiy-vision/1.1/build/aiy-vision.o' failed
make[3]: *** [/var/lib/dkms/aiy-vision/1.1/build/aiy-vision.o] Error 1
/usr/src/linux-headers-3.6-trunk-common/Makefile:1208: recipe for target '_module_/var/lib/dkms/aiy-vision/1.1/build' failed
make[2]: *** [_module_/var/lib/dkms/aiy-vision/1.1/build] Error 2
Makefile:130: recipe for target 'sub-make' failed
make[1]: *** [sub-make] Error 2
Makefile:8: recipe for target 'all' failed
make: *** [all] Error 2
make: Leaving directory '/usr/src/linux-headers-3.6-trunk-rpi'
Do you have an idea what could I do?
Thanks
Sincerely
Under /lib/module I noticed there was an old 3.6 kernel called "3.6.trunk-rpi". The aiy installation was compiling also for this kernel. Suspecting that this would not work because of the too old kernel, I removed it with sudo apt-get --purge remove linux-headers-3.6-trunk-common.
Then the aiy-vision-dkms build was succesfull.

PerfectSwift: Can't compile PerfectCrypto

I'm using PerfectSwift on Ubuntu 14.04.1, clang-3.8
I was using Perfect and all was working, but now, I can't compile anymore ( but it compiles on my mac )
Error log is
/home/celian/swift_server/Packages/PerfectCrypto-1.0.8/Sources/ByteIO.swift:282:43: error: cannot convert value of type 'UnsafeRawPointer?' to expected argument type 'UnsafeMutableRawPointer!'
super.init(bio: BIO_new_mem_buf(pointer.baseAddress, Int32(pointer.count)))
~~~~~~~~^~~~~~~~~~~
/home/celian/swift_server/Packages/PerfectCrypto-1.0.8/Sources/ByteIO.swift:363:34: error: cannot convert value of type 'String' to expected argument type 'UnsafeMutablePointer<Int8>!'
super.init(bio: BIO_new_accept(name))
^~~~
/home/celian/swift_server/Packages/PerfectCrypto-1.0.8/Sources/ByteIO.swift:394:35: error: cannot convert value of type 'String' to expected argument type 'UnsafeMutablePointer<Int8>!'
super.init(bio: BIO_new_connect(name))
^~~~
/home/celian/swift_server/Packages/PerfectCrypto-1.0.8/Sources/OpenSSLInternal.swift:357:64: error: cannot convert value of type 'UnsafePointer<UInt8>?' to expected argument type 'UnsafeMutablePointer<UInt8>!'
guard 1 == EVP_DigestVerifyFinal(ctx, signature.baseAddress?.assumingMemoryBound(to: UInt8.self), mdLen) else {
~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/openssl/bn.h:187:19: error: integer literal is too large to be represented in any integer type
#define BN_MASK (0xffffffffffffffffffffffffffffffffLL)
^
/home/celian/swift_server/Packages/PerfectCrypto-1.0.8/Sources/OpenSSLInternal.swift:385:31: error: use of unresolved identifier 'EVP_des_ede3_wrap'
case .des_ede3_wrap: return EVP_des_ede3_wrap()
^~~~~~~~~~~~~~~~~
/home/celian/swift_server/Packages/PerfectCrypto-1.0.8/Sources/OpenSSLInternal.swift:413:31: error: use of unresolved identifier 'EVP_aes_128_wrap'
case .aes_128_wrap: return EVP_aes_128_wrap()
^~~~~~~~~~~~~~~~
/home/celian/swift_server/Packages/PerfectCrypto-1.0.8/Sources/OpenSSLInternal.swift:423:31: error: use of unresolved identifier 'EVP_aes_192_wrap'
case .aes_192_wrap: return EVP_aes_192_wrap()
^~~~~~~~~~~~~~~~
/home/celian/swift_server/Packages/PerfectCrypto-1.0.8/Sources/OpenSSLInternal.swift:434:31: error: use of unresolved identifier 'EVP_aes_256_wrap'
case .aes_256_wrap: return EVP_aes_256_wrap()
^~~~~~~~~~~~~~~~
/home/celian/swift_server/Packages/PerfectCrypto-1.0.8/Sources/OpenSSLInternal.swift:437:41: error: use of unresolved identifier 'EVP_aes_128_cbc_hmac_sha256'
case .aes_128_cbc_hmac_sha256: return EVP_aes_128_cbc_hmac_sha256()
^~~~~~~~~~~~~~~~~~~~~~~~~~~
COpenSSL.EVP_aes_128_cbc_hmac_sha1:1:13: note: did you mean 'EVP_aes_128_cbc_hmac_sha1'?
public func EVP_aes_128_cbc_hmac_sha1() -> UnsafePointer<EVP_CIPHER>!
^
/home/celian/swift_server/Packages/PerfectCrypto-1.0.8/Sources/OpenSSLInternal.swift:438:41: error: use of unresolved identifier 'EVP_aes_256_cbc_hmac_sha256'
case .aes_256_cbc_hmac_sha256: return EVP_aes_256_cbc_hmac_sha256()
^~~~~~~~~~~~~~~~~~~~~~~~~~~
COpenSSL.EVP_aes_256_cbc_hmac_sha1:1:13: note: did you mean 'EVP_aes_256_cbc_hmac_sha1'?
public func EVP_aes_256_cbc_hmac_sha1() -> UnsafePointer<EVP_CIPHER>!
^
<unknown>:0: error: build had 1 command failures
error: exit(1): /swift/usr/bin/swift-build-tool -f /home/celian/swift_server/.build/debug.yaml -v
My dependencies are :
dependencies: [
.Package(url: "https://github.com/PerfectlySoft/Perfect-HTTPServer.git", majorVersion: 2),
.Package(url: "https://github.com/iamjono/SwiftString.git", majorVersion: 1),
.Package(url: "https://github.com/PerfectlySoft/Perfect-Curl.git", majorVersion: 2, minor: 0),
.Package(url:"https://github.com/PerfectlySoft/Perfect-XML.git", majorVersion: 2, minor: 0)
]
Can someone help me ?
Daniel added a comment - 12/Apr/17 7:43 AM
INTERNAL
Permalink Edit Delete
#Alessandro Piazza After some research, the apparent problem is that PerfectCrypto relies on openssl 1.0.2. The official repository only has v1.0.1. I followed this instructions to install openssl v 1.0.2 https://gist.github.com/mbejda/a1dabc45b32aaf8b25ae5e8d05923518 and I was able to compile PerfectCrypto.