remobjects / SwiftBaseLibrary

Other
92 stars 13 forks source link

Does not build in Fire 10.0.0.2525 #15

Open mhavu opened 4 years ago

mhavu commented 4 years ago

The SwiftBaseLibrary does not build under Fire 10.0.0.2525. I get the following error messages:

E: undefined symbol: raise
E: undefined symbol: __aeabi_memclr4
E: undefined symbol: __aeabi_memset
E: undefined symbol: __aeabi_memcpy4
E: undefined symbol: __aeabi_memclr
E: undefined symbol: __aeabi_memcpy
E: undefined symbol: __aeabi_memset4
E: undefined symbol: sigsetjmp
E: undefined symbol: isspace
E: undefined symbol: snprintf
E: undefined symbol: readlink
E: undefined symbol: popen
E: undefined symbol: pclose
E: undefined symbol: strchr
E: undefined symbol: __pthread_cleanup_push
E: undefined symbol: __pthread_cleanup_pop
E: undefined symbol: __tls_get_addr
E: Output type 'Executable' is not supported for Island WebAssembly projects.
mhavu commented 4 years ago

These error messages are gone in Fire 10.0.0.2551. I get these instead:

E: No member "ToList" on type "ISequence<T>!" [SwiftBaseLibrary/Source/Array.swift (126)]
N: Unused namespace "com.remobjects.elements.linq" has an extension member called "ToList" [SwiftBaseLibrary/Source/Array.swift (126)]
E: Member "list.Count" of type "PlatformList<T>!" is a property but is used as a method [SwiftBaseLibrary/Source/Array.swift (326)]
N: Type "PlatformList<T>" was declared here [SwiftBaseLibrary/Source/Array.swift (15)]
E: No member "Skip" on type "PlatformList<T>!" [SwiftBaseLibrary/Source/Array.swift (360)]
N: Unused namespace "com.remobjects.elements.linq" has an extension member called "Skip" [SwiftBaseLibrary/Source/Array.swift (360)]
E: No member "ToList" on type "ISequence<T>!" [SwiftBaseLibrary/Source/Array.swift (454)]
N: Unused namespace "com.remobjects.elements.linq" has an extension member called "ToList" [SwiftBaseLibrary/Source/Array.swift (454)]
E: No member "Select" on type "PlatformList<T>!" [SwiftBaseLibrary/Source/Array.swift (656)]
N: Unused namespace "com.remobjects.elements.linq" has an extension member called "Select" [SwiftBaseLibrary/Source/Array.swift (656)]
E: No member "Where" on type "PlatformList<T>!" [SwiftBaseLibrary/Source/Array.swift (668)]
N: Unused namespace "com.remobjects.elements.linq" has an extension member called "Where" [SwiftBaseLibrary/Source/Array.swift (668)]
E: Member "dictionary.keySet().Count" of type "java.util.Set<Key>!" is a property but is used as a method [SwiftBaseLibrary/Source/Dictionary.swift (346)]
E: Unknown identifier "remobjects.elements" [SwiftBaseLibrary/Source/String.swift (183)]
E: Unknown identifier "remobjects.elements" [SwiftBaseLibrary/Source/String.Views.swift (234)]
E: Unknown identifier "remobjects.elements" [SwiftBaseLibrary/Source/String.Views.swift (310)]
E: Member "self.Count" of type "Iterable<T>!" is a property but is used as a method [SwiftBaseLibrary/Source/Sequence_Extensions.swift (49)]
E: No member "Skip" on type "Iterable<T>!" [SwiftBaseLibrary/Source/Sequence_Extensions.swift (53)]
N: Unused namespace "com.remobjects.elements.linq" has an extension member called "Skip" [SwiftBaseLibrary/Source/Sequence_Extensions.swift (53)]
E: No member "Skip" on type "Iterable<T>!" [SwiftBaseLibrary/Source/Sequence_Extensions.swift (57)]
N: Unused namespace "com.remobjects.elements.linq" has an extension member called "Skip" [SwiftBaseLibrary/Source/Sequence_Extensions.swift (57)]
E: No member "Where " on type "Iterable<T>!" [SwiftBaseLibrary/Source/Sequence_Extensions.swift (85)]
N: Unused namespace "com.remobjects.elements.linq" has an extension member called "Where" [SwiftBaseLibrary/Source/Sequence_Extensions.swift (85)]
E: No member "FirstOrDefault" on type "Iterable<T>!" [SwiftBaseLibrary/Source/Sequence_Extensions.swift (89)]
N: Unused namespace "com.remobjects.elements.linq" has an extension member called "FirstOrDefault" [SwiftBaseLibrary/Source/Sequence_Extensions.swift (89)]
E: No member "Any" on type "Iterable<T>!" [SwiftBaseLibrary/Source/Sequence_Extensions.swift (115)]
N: Unused namespace "com.remobjects.elements.linq" has an extension member called "Any" [SwiftBaseLibrary/Source/Sequence_Extensions.swift (115)]
E: No member "Select " on type "Iterable<T>!" [SwiftBaseLibrary/Source/Sequence_Extensions.swift (165)]
N: Unused namespace "com.remobjects.elements.linq" has an extension member called "Select" [SwiftBaseLibrary/Source/Sequence_Extensions.swift (165)]
E: No member "Take" on type "Iterable<T>!" [SwiftBaseLibrary/Source/Sequence_Extensions.swift (190)]
N: Unused namespace "com.remobjects.elements.linq" has an extension member called "Take" [SwiftBaseLibrary/Source/Sequence_Extensions.swift (190)]
E: No member "ToList" on type "Iterable<T>!" [SwiftBaseLibrary/Source/Sequence_Extensions.swift (208)]
N: Unused namespace "com.remobjects.elements.linq" has an extension member called "ToList" [SwiftBaseLibrary/Source/Sequence_Extensions.swift (208)]
E: Member "self.Count" of type "Iterable<T>!" is a property but is used as a method [SwiftBaseLibrary/Source/Sequence_Extensions.swift (354)]
E: Member "s.Count" of type "ISequence<T>!" is a property but is used as a method [SwiftBaseLibrary/Source/Sequence_Functions.swift (19)]
   Project 'Swift.Cooper' failed to build.
dwarfland commented 4 years ago

Does it build in 2555? It kinda has to, since we build it as part of shipping....

mhavu commented 4 years ago

I just tried 2557, and I get the same errors when building Swift.Tests/Cooper.

mhavu commented 4 years ago

After the latest commit, SBL compiles in 2557, but linker gives the errors mentioned in the first comment along with warning File 'libgc.a' does not exist. in Swift.Tests.

dwarfland commented 4 years ago

Is this possibly happening for watchOS? if so, watchOS is not supported by island yet, due to limitations on the GC.

mhavu commented 4 years ago

Just increased the verbosity of the build log to check this out. The warning seems to come from watchOS, but the errors are from Swift.Tests/Island.Android (except the last one that comes from Swift.Tests/Island.WebAssembly).

dwarfland commented 4 years ago

Curious. I get compiler errors, instead:

E: Internal error: Duplicate method with mismatching signature: ms_t21_Swiftd____$Extension$Double_t04$Newns

logged as: 84987: SBL Test.sln fails with IE

mhavu commented 4 years ago

Could this have something to do with Android SDK version? I have 24.0.3 and 28.0.3, and out of those, Elements seems to pick 24.0.3 (No exact Android SDK version was specified for target 'Island-Android', using 'Android 24'.).