heremaps / gluecodium

Cross-language bindings generator for C++, Java, Swift, and Dart
Apache License 2.0
204 stars 27 forks source link

Dart-related failures in CMake unit tests #1149

Open Hsilgos opened 3 years ago

Hsilgos commented 3 years ago

While running Xcode-related unit tests for Xcode I met linking issues in two tests:

19:   Undefined symbols for architecture x86_64:
19: 
19:     "_library_execute_finalizer", referenced from:
19:         _library_unit_test_MainBar_register_finalizer in object.module.only.main_main_ffiglue.o
19:     "_Dart_NewFinalizableHandle_DL", referenced from:
19:         _library_unit_test_MainBar_register_finalizer in object.module.only.main_main_ffiglue.o
19:     "_library_uncache_dart_handle_by_raw_pointer", referenced from:
19:         _library_unit_test_MainBar_finalizer in object.module.only.main_main_ffiglue.o 

Failing tests:

     19 - cmake_test.gluecodium_generate/shared-modules-depend-on-object-libs/CMAKE_CXX_VISIBILITY_PRESET-hidden (Failed)
     39 - cmake_test.gluecodium_generate/two-shared-modules/CMAKE_CXX_VISIBILITY_PRESET-hidden (Failed)

Command to run all Xcode-related CMake unit tests: GLUECODIUM_VERSION_DEFAULT="10.1.7" GLUECODIUM_BUILD_ENVIRONMENT=ios-x86_64 ./run-cmake-unit-test.cmake

Commands to run only failing tests:

GLUECODIUM_VERSION_DEFAULT="10.1.7"  GLUECODIUM_BUILD_ENVIRONMENT=ios-x86_64 CTEST_FILTER="cmake_test.gluecodium_generate/shared-modules-depend-on-object-libs/CMAKE_CXX_VISIBILITY_PRESET-hidden" ./run-cmake-unit-test.cmake

GLUECODIUM_VERSION_DEFAULT="10.1.7"  GLUECODIUM_BUILD_ENVIRONMENT=ios-x86_64 CTEST_FILTER="cmake_test.gluecodium_generate/two-shared-modules/CMAKE_CXX_VISIBILITY_PRESET-hidden" ./run-cmake-unit-test.cmake
DanielKamkha commented 3 years ago

CMake test needs to be updated.