gluecodium
gluecodium copied to clipboard
Dart-related failures in CMake unit tests
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
CMake test needs to be updated.