Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build error by using the latest Flutter SDK #6

Open
HidenoriMatsubayashi opened this issue Mar 1, 2021 · 2 comments
Open

Build error by using the latest Flutter SDK #6

HidenoriMatsubayashi opened this issue Mar 1, 2021 · 2 comments
Assignees
Labels

Comments

@HidenoriMatsubayashi
Copy link

I got the following errors when I try to build with the latest Flutter sdk. I think the version of ffi which is used in lite is old.

ERROR: ../.pub-cache/git/pty-798e2ac6a56c6760a6cb8f985794d554e7b50a9b/lib/src/unistd.dart:5471:7: Error: Struct '__fsid_t' is empty. Empty structs are undefined behavior.
ERROR: class __fsid_t extends ffi.Struct {}                             
ERROR:       ^                                                          
ERROR: ../.pub-cache/git/pty-798e2ac6a56c6760a6cb8f985794d554e7b50a9b/lib/src/unistd.dart:5473:7: Error: Struct 'dirent' is empty. Empty structs are undefined behavior.
ERROR: class dirent extends ffi.Struct {}                               
ERROR:       ^                                                          
ERROR: ../.pub-cache/git/pty-798e2ac6a56c6760a6cb8f985794d554e7b50a9b/lib/src/unistd.dart:5475:7: Error: Struct '__dirstream' is empty. Empty structs are undefined behavior.
ERROR: class __dirstream extends ffi.Struct {}                          
ERROR:       ^                                                          
ERROR: ../.pub-cache/git/pty-798e2ac6a56c6760a6cb8f985794d554e7b50a9b/lib/src/unistd.dart:5502:7: Error: Struct 'stat' is empty. Empty structs are undefined behavior.
ERROR: class stat extends ffi.Struct {}                                 
ERROR:       ^                                                          
ERROR: ../.pub-cache/git/pty-798e2ac6a56c6760a6cb8f985794d554e7b50a9b/lib/src/unistd.dart:5504:7: Error: Struct 'siginfo_t' is empty. Empty structs are undefined behavior.
ERROR: class siginfo_t extends ffi.Struct {}                            
ERROR:       ^                                                          
ERROR: ../.pub-cache/git/pty-798e2ac6a56c6760a6cb8f985794d554e7b50a9b/lib/src/unistd.dart:5506:7: Error: Struct 'sigevent' is empty. Empty structs are undefined behavior.
ERROR: class sigevent extends ffi.Struct {}                             
ERROR:       ^                                                          
ERROR: ../.pub-cache/git/pty-798e2ac6a56c6760a6cb8f985794d554e7b50a9b/lib/src/unistd.dart:5508:7: Error: Struct 'sigevent_t' is empty. Empty structs are undefined behavior.
ERROR: class sigevent_t extends ffi.Struct {}                           
ERROR:       ^                                                          
ERROR: ../.pub-cache/git/pty-798e2ac6a56c6760a6cb8f985794d554e7b50a9b/lib/src/unistd.dart:5510:7: Error: Struct 'sigaction' is empty. Empty structs are undefined behavior.
ERROR: class sigaction extends ffi.Struct {}                            
ERROR:       ^                                                          
ERROR: ../.pub-cache/git/pty-798e2ac6a56c6760a6cb8f985794d554e7b50a9b/lib/src/unistd.dart:5512:7: Error: Struct '_fpx_sw_bytes' is empty. Empty structs are undefined behavior.
ERROR: class _fpx_sw_bytes extends ffi.Struct {}                        
ERROR:       ^                                                          
ERROR: ../.pub-cache/git/pty-798e2ac6a56c6760a6cb8f985794d554e7b50a9b/lib/src/unistd.dart:5514:7: Error: Struct '_fpreg' is empty. Empty structs are undefined behavior.
ERROR: class _fpreg extends ffi.Struct {}                               
ERROR:       ^                                                          
ERROR: ../.pub-cache/git/pty-798e2ac6a56c6760a6cb8f985794d554e7b50a9b/lib/src/unistd.dart:5516:7: Error: Struct '_fpxreg' is empty. Empty structs are undefined behavior.
ERROR: class _fpxreg extends ffi.Struct {}                              
ERROR:       ^                                                          
ERROR: ../.pub-cache/git/pty-798e2ac6a56c6760a6cb8f985794d554e7b50a9b/lib/src/unistd.dart:5518:7: Error: Struct '_xmmreg' is empty. Empty structs are undefined behavior.
ERROR: class _xmmreg extends ffi.Struct {}                              
ERROR:       ^                                                          
ERROR: ../.pub-cache/git/pty-798e2ac6a56c6760a6cb8f985794d554e7b50a9b/lib/src/unistd.dart:5520:7: Error: Struct '_fpstate' is empty. Empty structs are undefined behavior.
ERROR: class _fpstate extends ffi.Struct {}                             
ERROR:       ^                                                          
ERROR: ../.pub-cache/git/pty-798e2ac6a56c6760a6cb8f985794d554e7b50a9b/lib/src/unistd.dart:5522:7: Error: Struct 'sigcontext' is empty. Empty structs are undefined behavior.
ERROR: class sigcontext extends ffi.Struct {}                           
ERROR:       ^                                                          
ERROR: ../.pub-cache/git/pty-798e2ac6a56c6760a6cb8f985794d554e7b50a9b/lib/src/unistd.dart:5524:7: Error: Struct '_xsave_hdr' is empty. Empty structs are undefined behavior.
ERROR: class _xsave_hdr extends ffi.Struct {}                           
ERROR:       ^                                                          
ERROR: ../.pub-cache/git/pty-798e2ac6a56c6760a6cb8f985794d554e7b50a9b/lib/src/unistd.dart:5526:7: Error: Struct '_ymmh_state' is empty. Empty structs are undefined behavior.
ERROR: class _ymmh_state extends ffi.Struct {}                          
ERROR:       ^                                                          
ERROR: ../.pub-cache/git/pty-798e2ac6a56c6760a6cb8f985794d554e7b50a9b/lib/src/unistd.dart:5528:7: Error: Struct '_xstate' is empty. Empty structs are undefined behavior.
ERROR: class _xstate extends ffi.Struct {}                              
ERROR:       ^                                                          
ERROR: ../.pub-cache/git/pty-798e2ac6a56c6760a6cb8f985794d554e7b50a9b/lib/src/unistd.dart:5540:7: Error: Struct '_libc_fpxreg' is empty. Empty structs are undefined behavior.
ERROR: class _libc_fpxreg extends ffi.Struct {}                         
ERROR:       ^                                                          
ERROR: ../.pub-cache/git/pty-798e2ac6a56c6760a6cb8f985794d554e7b50a9b/lib/src/unistd.dart:5542:7: Error: Struct '_libc_xmmreg' is empty. Empty structs are undefined behavior.
ERROR: class _libc_xmmreg extends ffi.Struct {}                         
ERROR:       ^                                                          
ERROR: ../.pub-cache/git/pty-798e2ac6a56c6760a6cb8f985794d554e7b50a9b/lib/src/unistd.dart:5544:7: Error: Struct '_libc_fpstate' is empty. Empty structs are undefined behavior.
ERROR: class _libc_fpstate extends ffi.Struct {}                        
ERROR:       ^                                                          
ERROR: ../.pub-cache/git/pty-798e2ac6a56c6760a6cb8f985794d554e7b50a9b/lib/src/unistd.dart:5546:7: Error: Struct 'mcontext_t' is empty. Empty structs are undefined behavior.
ERROR: class mcontext_t extends ffi.Struct {}                           
ERROR:       ^                                                          
ERROR: ../.pub-cache/git/pty-798e2ac6a56c6760a6cb8f985794d554e7b50a9b/lib/src/unistd.dart:5559:7: Error: Struct 'ucontext_t' is empty. Empty structs are undefined behavior.
ERROR: class ucontext_t extends ffi.Struct {}                           
ERROR:       ^                                                          
ERROR: ../.pub-cache/git/pty-798e2ac6a56c6760a6cb8f985794d554e7b50a9b/lib/src/unistd.dart:5568:7: Error: Struct '__pthread_rwlock_arch_t' is empty. Empty structs are undefined behavior.
ERROR: class __pthread_rwlock_arch_t extends ffi.Struct {}              
ERROR:       ^                                                          
ERROR: ../.pub-cache/git/pty-798e2ac6a56c6760a6cb8f985794d554e7b50a9b/lib/src/unistd.dart:5582:7: Error: Struct '__pthread_mutex_s' is empty. Empty structs are undefined behavior.
ERROR: class __pthread_mutex_s extends ffi.Struct {}                    
ERROR:       ^                                                          
ERROR: ../.pub-cache/git/pty-798e2ac6a56c6760a6cb8f985794d554e7b50a9b/lib/src/unistd.dart:5584:7: Error: Struct '__pthread_cond_s' is empty. Empty structs are undefined behavior.
ERROR: class __pthread_cond_s extends ffi.Struct {}                     
ERROR:       ^                                                          
ERROR: ../.pub-cache/git/pty-798e2ac6a56c6760a6cb8f985794d554e7b50a9b/lib/src/unistd.dart:5586:7: Error: Struct '_IO_FILE' is empty. Empty structs are undefined behavior.
ERROR: class _IO_FILE extends ffi.Struct {}                             
ERROR:       ^                                                          
ERROR: ../.pub-cache/git/pty-798e2ac6a56c6760a6cb8f985794d554e7b50a9b/lib/src/unistd.dart:5588:7: Error: Struct '__mbstate_t' is empty. Empty structs are undefined behavior.
ERROR: class __mbstate_t extends ffi.Struct {}                          
ERROR:       ^                                                          
ERROR: ../.pub-cache/git/pty-798e2ac6a56c6760a6cb8f985794d554e7b50a9b/lib/src/unistd.dart:5590:7: Error: Struct '_G_fpos_t' is empty. Empty structs are undefined behavior.
ERROR: class _G_fpos_t extends ffi.Struct {}                            
ERROR:       ^                                                          
ERROR: ../.pub-cache/git/pty-798e2ac6a56c6760a6cb8f985794d554e7b50a9b/lib/src/unistd.dart:5592:7: Error: Struct '_G_fpos64_t' is empty. Empty structs are undefined behavior.
ERROR: class _G_fpos64_t extends ffi.Struct {}                          
ERROR:       ^                                                          
ERROR: ../.pub-cache/git/pty-798e2ac6a56c6760a6cb8f985794d554e7b50a9b/lib/src/unistd.dart:5594:7: Error: Struct '_IO_jump_t' is empty. Empty structs are undefined behavior.
ERROR: class _IO_jump_t extends ffi.Struct {}                           
ERROR:       ^                                                          
ERROR: ../.pub-cache/git/pty-798e2ac6a56c6760a6cb8f985794d554e7b50a9b/lib/src/unistd.dart:5612:7: Error: Struct '_IO_FILE_plus' is empty. Empty structs are undefined behavior.
ERROR: class _IO_FILE_plus extends ffi.Struct {}                        
ERROR:       ^                                                          
ERROR: ../.pub-cache/git/pty-798e2ac6a56c6760a6cb8f985794d554e7b50a9b/lib/src/unistd.dart:5652:7: Error: Struct 'fd_set' is empty. Empty structs are undefined behavior.
ERROR: class fd_set extends ffi.Struct {}                               
ERROR:       ^                                                          
ERROR: ../.pub-cache/git/pty-798e2ac6a56c6760a6cb8f985794d554e7b50a9b/lib/src/unistd.dart:5673:7: Error: Struct 'drand48_data' is empty. Empty structs are undefined behavior.
ERROR: class drand48_data extends ffi.Struct {}                         
ERROR:       ^                                                          
ERROR: ../.pub-cache/git/pty-798e2ac6a56c6760a6cb8f985794d554e7b50a9b/lib/src/unistd.dart:5675:7: Error: Struct '__locale_data' is empty. Empty structs are undefined behavior.
ERROR: class __locale_data extends ffi.Struct {}                        
ERROR:       ^                                                          
ERROR: ../.pub-cache/git/pty-798e2ac6a56c6760a6cb8f985794d554e7b50a9b/lib/src/unistd.dart:5677:7: Error: Struct '__locale_struct' is empty. Empty structs are undefined behavior.
ERROR: class __locale_struct extends ffi.Struct {}                      
ERROR:       ^                                                          
ERROR: ../.pub-cache/git/pty-798e2ac6a56c6760a6cb8f985794d554e7b50a9b/lib/src/unistd.dart:5693:7: Error: Struct 'termio' is empty. Empty structs are undefined behavior.
ERROR: class termio extends ffi.Struct {}                               
ERROR:       ^                                                          
ERROR: ../.pub-cache/git/pty-798e2ac6a56c6760a6cb8f985794d554e7b50a9b/lib/src/unistd.dart:5695:7: Error: Struct 'rusage' is empty. Empty structs are undefined behavior.
ERROR: class rusage extends ffi.Struct {}                               
ERROR:       ^                                                          
ERROR: ../.pub-cache/hosted/pub.dartlang.org/ffi-0.1.3/lib/src/utf8.dart:23:7: Error: Struct 'Utf8' is empty. Empty structs are undefined behavior.
ERROR: class Utf8 extends Struct {                                      
ERROR:       ^                                                          
ERROR: ../.pub-cache/hosted/pub.dartlang.org/ffi-0.1.3/lib/src/utf16.dart:16:7: Error: Struct 'Utf16' is empty. Empty structs are undefined behavior.
ERROR: class Utf16 extends Struct {                                     
ERROR:       ^                                                          
ERROR: ../.pub-cache/hosted/pub.dartlang.org/win32-1.7.3/lib/src/structs.dart:1083:7: Error: Struct 'ENUMLOGFONTEX' is empty. Empty structs are undefined behavior.
ERROR: class ENUMLOGFONTEX extends Struct {                             
ERROR:       ^                                                          
ERROR: ../.pub-cache/hosted/pub.dartlang.org/win32-1.7.3/lib/src/structs.dart:2807:7: Error: Struct 'BLUETOOTH_PIN_INFO' is empty. Empty structs are undefined behavior.
ERROR: class BLUETOOTH_PIN_INFO extends Struct {                        
ERROR:       ^                                                          
ERROR: ../.pub-cache/hosted/pub.dartlang.org/win32-1.7.3/lib/src/structs.dart:2932:7: Error: Struct 'EXCEPINFO' is empty. Empty structs are undefined behavior.
ERROR: class EXCEPINFO extends Struct {}                                
ERROR:       ^                                                          
ERROR: ../.pub-cache/hosted/pub.dartlang.org/win32-1.7.3/lib/src/structs.dart:2938:7: Error: Struct 'PROPERTYKEY' is empty. Empty structs are undefined behavior.
ERROR: class PROPERTYKEY extends Struct {}                              
ERROR:       ^                                                          
ERROR: ../.pub-cache/hosted/pub.dartlang.org/win32-1.7.3/lib/src/structs.dart:2945:7: Error: Struct 'PROPVARIANT' is empty. Empty structs are undefined behavior.
ERROR: class PROPVARIANT extends Struct {}                              
ERROR:       ^                                                          
ERROR: ../.pub-cache/hosted/pub.dartlang.org/win32-1.7.3/lib/src/structs.dart:2950:7: Error: Struct 'SAFEARRAY' is empty. Empty structs are undefined behavior.
ERROR: class SAFEARRAY extends Struct {}                                
ERROR:       ^                                                          
ERROR: ../.pub-cache/hosted/pub.dartlang.org/win32-1.7.3/lib/src/structs.dart:2957:7: Error: Struct 'CLSID' is empty. Empty structs are undefined behavior.
ERROR: class CLSID extends Struct {}                                    
ERROR:       ^                                                          
ERROR: ../.pub-cache/hosted/pub.dartlang.org/win32-1.7.3/lib/src/structs.dart:2964:7: Error: Struct 'STATSTG' is empty. Empty structs are undefined behavior.
ERROR: class STATSTG extends Struct {}                                  
ERROR:       ^                                                          
ERROR: ../.pub-cache/hosted/pub.dartlang.org/win32-1.7.3/lib/src/structs.dart:2971:7: Error: Struct 'NLM_SIMULATED_PROFILE_INFO' is empty. Empty structs are undefined behavior.
ERROR: class NLM_SIMULATED_PROFILE_INFO extends Struct {}               
ERROR:       ^                                                          
ERROR: ../.pub-cache/hosted/pub.dartlang.org/ffi-0.1.3/lib/src/allocation.dart:47:33: Error: Expected type 'T' to be a valid and instantiated subtype of 'NativeType'.
ERROR:   final int totalSize = count * sizeOf<T>();                     
ERROR:                                 ^                                
Building Linux application...                                           
Build process failed
@xtyxtyx xtyxtyx self-assigned this Mar 1, 2021
@xtyxtyx xtyxtyx added the wip label Mar 2, 2021
@xtyxtyx
Copy link
Member

xtyxtyx commented Mar 7, 2021

Thanks for reporting the problem.

This project has been migrated to support flutter 2 and now builds should run normally.

@HidenoriMatsubayashi
Copy link
Author

Thank you so much! I've confirmed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants