Bug 42372 - MT3001 Could not AOT the assembly SQLitePCL.raw.dll
Summary: MT3001 Could not AOT the assembly SQLitePCL.raw.dll
Status: RESOLVED FIXED
Alias: None
Product: iOS
Classification: Xamarin
Component: Tools (show other bugs)
Version: XI 9.10 (C8)
Hardware: Macintosh Mac OS
: Normal normal
Target Milestone: Future Cycle (TBD)
Assignee: Rolf Bjarne Kvinge [MSFT]
URL:
Depends on:
Blocks:
 
Reported: 2016-07-06 00:30 UTC by John Miller [MSFT]
Modified: 2016-10-14 10:36 UTC (History)
3 users (show)

See Also:
Tags:
Is this bug a regression?: ---
Last known good build:


Attachments
Sample Project (15.63 KB, application/zip)
2016-07-06 00:30 UTC, John Miller [MSFT]
Details

Description John Miller [MSFT] 2016-07-06 00:30:07 UTC
Created attachment 16582 [details]
Sample Project

**Overview:**

   When using Akavache, which has a dependency on SQLitePCL.raw.dll, an unexpected MT3001 error occurs when compiling for devices.

**Steps to Reproduce:**

   1. Build the attached sample for a device.

**Actual Results:**

   >Error MT3001: Could not AOT the assembly '.../obj/iPhone/Debug/build-iphone8.1-9.3.2/mtouch-cache/Build/SQLitePCL.raw.dll' 

**Expected Results:**

   No build error.

**Build Date & Platform:**

   === Xamarin Studio Enterprise ===

Version 6.1 (build 5099)
Installation UUID: e01c3049-a2d2-4e0a-aad8-afe6fb627c4d
Runtime:
	Mono 4.4.0 (mono-4.4.0-branch/fcf7a6d) (64-bit)
	GTK+ 2.24.23 (Raleigh theme)

	Package version: 404000148

=== NuGet ===

Version: 3.4.3.0

=== Xamarin.Profiler ===

Not Installed

=== Xamarin.Android ===

Version: 6.1.99.224 (Xamarin Enterprise)
Android SDK: /Users/johnmiller/Library/Developer/Xamarin/android-sdk-macosx
	Supported Android versions:
		2.3   (API level 10)
		4.0.3 (API level 15)
		4.1   (API level 16)
		4.2   (API level 17)
		4.4   (API level 19)
		5.0   (API level 21)
		5.1   (API level 22)
		6.0   (API level 23)

SDK Tools Version: 25.1.2
SDK Platform Tools Version: 24.0.0
SDK Build Tools Version: 23.0.2

Java SDK: /usr
java version "1.8.0_60"
Java(TM) SE Runtime Environment (build 1.8.0_60-b27)
Java HotSpot(TM) 64-Bit Server VM (build 25.60-b23, mixed mode)

Android Designer EPL code available here:
https://github.com/xamarin/AndroidDesigner.EPL

=== Xamarin Android Player ===

Version: 0.6.5
Location: /Applications/Xamarin Android Player.app

=== Apple Developer Tools ===

Xcode 7.3 (10183.3)
Build 7D175

=== Xamarin.Mac ===

Version: 2.9.2.81 (Xamarin Enterprise)

=== Xamarin.iOS ===

Version: 9.9.0.288 (Xamarin Enterprise)
Hash: ef65ca5
Branch: master
Build date: 2016-06-07 21:27:36-0400

=== Xamarin Inspector ===

Version: 0.8.1.0
Hash: 95792d1
Branch: master
Build date: Thu May 12 22:20:04 UTC 2016

=== Build Information ===

Release ID: 601005099
Git revision: 90cd5b624ae09ab03666482981e30822caa7372e
Build date: 2016-07-01 10:03:50-04
Xamarin addins: d48fe7620678a6edeb3d23caad0b8b288a07e0c9
Build lane: monodevelop-lion-master

=== Operating System ===

Mac OS X 10.11.2

=== Enabled user installed addins ===

Xamarin Inspector 0.8.1.0

**Additional Information:**

   Does not happen when using this version of XI

Xamarin.iOS
Version: 9.8.1.4 (Xamarin Enterprise)
Hash: 3cf8aae
Branch: c7sr0
Build date: 2016-06-20 16:09:58-0400
Comment 1 Sebastien Pouliot 2016-07-07 00:36:04 UTC
An MT3001 means the AOT compiler did not produce an output, i.e. it's very general and the cause are printed by the AOT compiler itself (earlier in the log, which you should provide with the bug report).

		Undefined symbols for architecture arm64:
		  "_sqlite3_aggregate_context", referenced from:
		      wrapper_managed_to_native_SQLitePCL_SQLite3Provider_NativeMethods_sqlite3_aggregate_context_intptr_int in SQLitePCL-ab1ad6.o
		  "_sqlite3_aggregate_count", referenced from:
		      wrapper_managed_to_native_SQLitePCL_SQLite3Provider_NativeMethods_sqlite3_aggregate_count_intptr in SQLitePCL-ab1ad6.o
		  "_sqlite3_backup_finish", referenced from:
		      wrapper_managed_to_native_SQLitePCL_SQLite3Provider_NativeMethods_sqlite3_backup_finish_intptr in SQLitePCL-ab1ad6.o
		  "_sqlite3_backup_init", referenced from:
		      wrapper_managed_to_native_SQLitePCL_SQLite3Provider_NativeMethods_sqlite3_backup_init_intptr_byte___intptr_byte__ in SQLitePCL-ab1ad6.o
		  "_sqlite3_backup_pagecount", referenced from:
		      wrapper_managed_to_native_SQLitePCL_SQLite3Provider_NativeMethods_sqlite3_backup_pagecount_intptr in SQLitePCL-ab1ad6.o
		  "_sqlite3_backup_remaining", referenced from:
		      wrapper_managed_to_native_SQLitePCL_SQLite3Provider_NativeMethods_sqlite3_backup_remaining_intptr in SQLitePCL-ab1ad6.o
		  "_sqlite3_backup_step", referenced from:
		      wrapper_managed_to_native_SQLitePCL_SQLite3Provider_NativeMethods_sqlite3_backup_step_intptr_int in SQLitePCL-ab1ad6.o
		  "_sqlite3_bind_blob", referenced from:
		      wrapper_managed_to_native_SQLitePCL_SQLite3Provider_NativeMethods_sqlite3_bind_blob_intptr_int_byte___int_intptr in SQLitePCL-ab1ad6.o
		  "_sqlite3_bind_double", referenced from:
		      wrapper_managed_to_native_SQLitePCL_SQLite3Provider_NativeMethods_sqlite3_bind_double_intptr_int_double in SQLitePCL-ab1ad6.o
		  "_sqlite3_bind_int", referenced from:
		      wrapper_managed_to_native_SQLitePCL_SQLite3Provider_NativeMethods_sqlite3_bind_int_intptr_int_int in SQLitePCL-ab1ad6.o
		  "_sqlite3_bind_int64", referenced from:
		      wrapper_managed_to_native_SQLitePCL_SQLite3Provider_NativeMethods_sqlite3_bind_int64_intptr_int_long in SQLitePCL-ab1ad6.o
		  "_sqlite3_bind_null", referenced from:
		      wrapper_managed_to_native_SQLitePCL_SQLite3Provider_NativeMethods_sqlite3_bind_null_intptr_int in SQLitePCL-ab1ad6.o
		  "_sqlite3_bind_parameter_count", referenced from:
		      wrapper_managed_to_native_SQLitePCL_SQLite3Provider_NativeMethods_sqlite3_bind_parameter_count_intptr in SQLitePCL-ab1ad6.o
		  "_sqlite3_bind_parameter_index", referenced from:
		      wrapper_managed_to_native_SQLitePCL_SQLite3Provider_NativeMethods_sqlite3_bind_parameter_index_intptr_byte__ in SQLitePCL-ab1ad6.o
		  "_sqlite3_bind_parameter_name", referenced from:
		      wrapper_managed_to_native_SQLitePCL_SQLite3Provider_NativeMethods_sqlite3_bind_parameter_name_intptr_int in SQLitePCL-ab1ad6.o
		  "_sqlite3_bind_text", referenced from:
		      wrapper_managed_to_native_SQLitePCL_SQLite3Provider_NativeMethods_sqlite3_bind_text_intptr_int_byte___int_intptr in SQLitePCL-ab1ad6.o
		  "_sqlite3_bind_text16", referenced from:
		      wrapper_managed_to_native_SQLitePCL_SQLite3Provider_NativeMethods_sqlite3_bind_text16_intptr_int_string_int_intptr in SQLitePCL-ab1ad6.o
		  "_sqlite3_bind_zeroblob", referenced from:
		      wrapper_managed_to_native_SQLitePCL_SQLite3Provider_NativeMethods_sqlite3_bind_zeroblob_intptr_int_int in SQLitePCL-ab1ad6.o
		  "_sqlite3_blob_bytes", referenced from:
		      wrapper_managed_to_native_SQLitePCL_SQLite3Provider_NativeMethods_sqlite3_blob_bytes_intptr in SQLitePCL-ab1ad6.o
		  "_sqlite3_blob_close", referenced from:
		      wrapper_managed_to_native_SQLitePCL_SQLite3Provider_NativeMethods_sqlite3_blob_close_intptr in SQLitePCL-ab1ad6.o
		  "_sqlite3_blob_open", referenced from:
		      wrapper_managed_to_native_SQLitePCL_SQLite3Provider_NativeMethods_sqlite3_blob_open_intptr_byte___byte___byte___long_int_intptr_ in SQLitePCL-ab1ad6.o
		  "_sqlite3_blob_read", referenced from:
		      wrapper_managed_to_native_SQLitePCL_SQLite3Provider_NativeMethods_sqlite3_blob_read_intptr_byte___int_int in SQLitePCL-ab1ad6.o
		      wrapper_managed_to_native_SQLitePCL_SQLite3Provider_NativeMethods_other_sqlite3_blob_read_intptr_intptr_int_int in SQLitePCL-ab1ad6.o
		  "_sqlite3_blob_write", referenced from:
		      wrapper_managed_to_native_SQLitePCL_SQLite3Provider_NativeMethods_sqlite3_blob_write_intptr_byte___int_int in SQLitePCL-ab1ad6.o
		      wrapper_managed_to_native_SQLitePCL_SQLite3Provider_NativeMethods_other_sqlite3_blob_write_intptr_intptr_int_int in SQLitePCL-ab1ad6.o
		  "_sqlite3_busy_timeout", referenced from:
		      wrapper_managed_to_native_SQLitePCL_SQLite3Provider_NativeMethods_sqlite3_busy_timeout_intptr_int in SQLitePCL-ab1ad6.o
		  "_sqlite3_changes", referenced from:
		      wrapper_managed_to_native_SQLitePCL_SQLite3Provider_NativeMethods_sqlite3_changes_intptr in SQLitePCL-ab1ad6.o
		  "_sqlite3_clear_bindings", referenced from:
		      wrapper_managed_to_native_SQLitePCL_SQLite3Provider_NativeMethods_sqlite3_clear_bindings_intptr in SQLitePCL-ab1ad6.o
		  "_sqlite3_close", referenced from:
		      wrapper_managed_to_native_SQLitePCL_SQLite3Provider_NativeMethods_sqlite3_close_intptr in SQLitePCL-ab1ad6.o
		  "_sqlite3_close_v2", referenced from:
		      wrapper_managed_to_native_SQLitePCL_SQLite3Provider_NativeMethods_sqlite3_close_v2_intptr in SQLitePCL-ab1ad6.o
		  "_sqlite3_column_blob", referenced from:
		      wrapper_managed_to_native_SQLitePCL_SQLite3Provider_NativeMethods_sqlite3_column_blob_intptr_int in SQLitePCL-ab1ad6.o
		  "_sqlite3_column_bytes", referenced from:
		      wrapper_managed_to_native_SQLitePCL_SQLite3Provider_NativeMethods_sqlite3_column_bytes_intptr_int in SQLitePCL-ab1ad6.o
		  "_sqlite3_column_count", referenced from:
		      wrapper_managed_to_native_SQLitePCL_SQLite3Provider_NativeMethods_sqlite3_column_count_intptr in SQLitePCL-ab1ad6.o
		  "_sqlite3_column_database_name", referenced from:
		      wrapper_managed_to_native_SQLitePCL_SQLite3Provider_NativeMethods_sqlite3_column_database_name_intptr_int in SQLitePCL-ab1ad6.o
		  "_sqlite3_column_database_name16", referenced from:
		      wrapper_managed_to_native_SQLitePCL_SQLite3Provider_NativeMethods_sqlite3_column_database_name16_intptr_int in SQLitePCL-ab1ad6.o
		  "_sqlite3_column_decltype", referenced from:
		      wrapper_managed_to_native_SQLitePCL_SQLite3Provider_NativeMethods_sqlite3_column_decltype_intptr_int in SQLitePCL-ab1ad6.o
		  "_sqlite3_column_decltype16", referenced from:
		      wrapper_managed_to_native_SQLitePCL_SQLite3Provider_NativeMethods_sqlite3_column_decltype16_intptr_int in SQLitePCL-ab1ad6.o
		  "_sqlite3_column_double", referenced from:
		      wrapper_managed_to_native_SQLitePCL_SQLite3Provider_NativeMethods_sqlite3_column_double_intptr_int in SQLitePCL-ab1ad6.o
		  "_sqlite3_column_int", referenced from:
		      wrapper_managed_to_native_SQLitePCL_SQLite3Provider_NativeMethods_sqlite3_column_int_intptr_int in SQLitePCL-ab1ad6.o
		  "_sqlite3_column_int64", referenced from:
		      wrapper_managed_to_native_SQLitePCL_SQLite3Provider_NativeMethods_sqlite3_column_int64_intptr_int in SQLitePCL-ab1ad6.o
		  "_sqlite3_column_name", referenced from:
		      wrapper_managed_to_native_SQLitePCL_SQLite3Provider_NativeMethods_sqlite3_column_name_intptr_int in SQLitePCL-ab1ad6.o
		  "_sqlite3_column_name16", referenced from:
		      wrapper_managed_to_native_SQLitePCL_SQLite3Provider_NativeMethods_sqlite3_column_name16_intptr_int in SQLitePCL-ab1ad6.o
		  "_sqlite3_column_origin_name", referenced from:
		      wrapper_managed_to_native_SQLitePCL_SQLite3Provider_NativeMethods_sqlite3_column_origin_name_intptr_int in SQLitePCL-ab1ad6.o
		  "_sqlite3_column_origin_name16", referenced from:
		      wrapper_managed_to_native_SQLitePCL_SQLite3Provider_NativeMethods_sqlite3_column_origin_name16_intptr_int in SQLitePCL-ab1ad6.o
		  "_sqlite3_column_table_name", referenced from:
		      wrapper_managed_to_native_SQLitePCL_SQLite3Provider_NativeMethods_sqlite3_column_table_name_intptr_int in SQLitePCL-ab1ad6.o
		  "_sqlite3_column_table_name16", referenced from:
		      wrapper_managed_to_native_SQLitePCL_SQLite3Provider_NativeMethods_sqlite3_column_table_name16_intptr_int in SQLitePCL-ab1ad6.o
		  "_sqlite3_column_text", referenced from:
		      wrapper_managed_to_native_SQLitePCL_SQLite3Provider_NativeMethods_sqlite3_column_text_intptr_int in SQLitePCL-ab1ad6.o
		  "_sqlite3_column_text16", referenced from:
		      wrapper_managed_to_native_SQLitePCL_SQLite3Provider_NativeMethods_sqlite3_column_text16_intptr_int in SQLitePCL-ab1ad6.o
		  "_sqlite3_column_type", referenced from:
		      wrapper_managed_to_native_SQLitePCL_SQLite3Provider_NativeMethods_sqlite3_column_type_intptr_int in SQLitePCL-ab1ad6.o
		  "_sqlite3_commit_hook", referenced from:
		      wrapper_managed_to_native_SQLitePCL_SQLite3Provider_NativeMethods_sqlite3_commit_hook_intptr_SQLitePCL_SQLite3Provider_NativeMethods_callback_commit_intptr in SQLitePCL-ab1ad6.o
		  "_sqlite3_compileoption_get", referenced from:
		      wrapper_managed_to_native_SQLitePCL_SQLite3Provider_NativeMethods_sqlite3_compileoption_get_int in SQLitePCL-ab1ad6.o
		  "_sqlite3_compileoption_used", referenced from:
		      wrapper_managed_to_native_SQLitePCL_SQLite3Provider_NativeMethods_sqlite3_compileoption_used_byte__ in SQLitePCL-ab1ad6.o
		  "_sqlite3_complete", referenced from:
		      wrapper_managed_to_native_SQLitePCL_SQLite3Provider_NativeMethods_sqlite3_complete_byte__ in SQLitePCL-ab1ad6.o
		  "_sqlite3_config", referenced from:
		      wrapper_managed_to_native_SQLitePCL_SQLite3Provider_NativeMethods_sqlite3_config_none_int in SQLitePCL-ab1ad6.o
		      wrapper_managed_to_native_SQLitePCL_SQLite3Provider_NativeMethods_sqlite3_config_int_int_int in SQLitePCL-ab1ad6.o
		      wrapper_managed_to_native_SQLitePCL_SQLite3Provider_NativeMethods_sqlite3_config_log_int_SQLitePCL_SQLite3Provider_NativeMethods_callback_log_intptr in SQLitePCL-ab1ad6.o
		  "_sqlite3_create_collation", referenced from:
		      wrapper_managed_to_native_SQLitePCL_SQLite3Provider_NativeMethods_sqlite3_create_collation_intptr_byte___int_intptr_SQLitePCL_SQLite3Provider_NativeMethods_callback_collation in SQLitePCL-ab1ad6.o
		  "_sqlite3_create_function_v2", referenced from:
		      wrapper_managed_to_native_SQLitePCL_SQLite3Provider_NativeMethods_sqlite3_create_function_v2_intptr_byte___int_int_intptr_SQLitePCL_SQLite3Provider_NativeMethods_callback_scalar_function_SQLitePCL_SQLite3Provider_NativeMethods_callback_agg_function_step_SQLitePCL_SQLite3Provider_NativeMethods_callback_agg_function_final_SQLitePCL_SQLite3Provider_NativeMethods_callback_destroy in SQLitePCL-ab1ad6.o
		  "_sqlite3_data_count", referenced from:
		      wrapper_managed_to_native_SQLitePCL_SQLite3Provider_NativeMethods_sqlite3_data_count_intptr in SQLitePCL-ab1ad6.o
		  "_sqlite3_db_filename", referenced from:
		      wrapper_managed_to_native_SQLitePCL_SQLite3Provider_NativeMethods_sqlite3_db_filename_intptr_byte__ in SQLitePCL-ab1ad6.o
		  "_sqlite3_db_handle", referenced from:
		      wrapper_managed_to_native_SQLitePCL_SQLite3Provider_NativeMethods_sqlite3_db_handle_intptr in SQLitePCL-ab1ad6.o
		  "_sqlite3_db_readonly", referenced from:
		      wrapper_managed_to_native_SQLitePCL_SQLite3Provider_NativeMethods_sqlite3_db_readonly_intptr_byte__ in SQLitePCL-ab1ad6.o
		  "_sqlite3_enable_load_extension", referenced from:
		      wrapper_managed_to_native_SQLitePCL_SQLite3Provider_NativeMethods_sqlite3_enable_load_extension_intptr_int in SQLitePCL-ab1ad6.o
		  "_sqlite3_errcode", referenced from:
		      wrapper_managed_to_native_SQLitePCL_SQLite3Provider_NativeMethods_sqlite3_errcode_intptr in SQLitePCL-ab1ad6.o
		  "_sqlite3_errmsg", referenced from:
		      wrapper_managed_to_native_SQLitePCL_SQLite3Provider_NativeMethods_sqlite3_errmsg_intptr in SQLitePCL-ab1ad6.o
		  "_sqlite3_errstr", referenced from:
		      wrapper_managed_to_native_SQLitePCL_SQLite3Provider_NativeMethods_sqlite3_errstr_int in SQLitePCL-ab1ad6.o
		  "_sqlite3_exec", referenced from:
		      wrapper_managed_to_native_SQLitePCL_SQLite3Provider_NativeMethods_sqlite3_exec_intptr_byte___SQLitePCL_SQLite3Provider_NativeMethods_callback_exec_intptr_intptr_ in SQLitePCL-ab1ad6.o
		  "_sqlite3_extended_errcode", referenced from:
		      wrapper_managed_to_native_SQLitePCL_SQLite3Provider_NativeMethods_sqlite3_extended_errcode_intptr in SQLitePCL-ab1ad6.o
		  "_sqlite3_extended_result_codes", referenced from:
		      wrapper_managed_to_native_SQLitePCL_SQLite3Provider_NativeMethods_sqlite3_extended_result_codes_intptr_int in SQLitePCL-ab1ad6.o
		  "_sqlite3_file_control", referenced from:
		      wrapper_managed_to_native_SQLitePCL_SQLite3Provider_NativeMethods_sqlite3_file_control_intptr_byte___int_intptr in SQLitePCL-ab1ad6.o
		  "_sqlite3_finalize", referenced from:
		      wrapper_managed_to_native_SQLitePCL_SQLite3Provider_NativeMethods_sqlite3_finalize_intptr in SQLitePCL-ab1ad6.o
		  "_sqlite3_free", referenced from:
		      wrapper_managed_to_native_SQLitePCL_SQLite3Provider_NativeMethods_sqlite3_free_intptr in SQLitePCL-ab1ad6.o
		  "_sqlite3_get_autocommit", referenced from:
		      wrapper_managed_to_native_SQLitePCL_SQLite3Provider_NativeMethods_sqlite3_get_autocommit_intptr in SQLitePCL-ab1ad6.o
		  "_sqlite3_interrupt", referenced from:
		      wrapper_managed_to_native_SQLitePCL_SQLite3Provider_NativeMethods_sqlite3_interrupt_intptr in SQLitePCL-ab1ad6.o
		  "_sqlite3_last_insert_rowid", referenced from:
		      wrapper_managed_to_native_SQLitePCL_SQLite3Provider_NativeMethods_sqlite3_last_insert_rowid_intptr in SQLitePCL-ab1ad6.o
		  "_sqlite3_libversion", referenced from:
		      wrapper_managed_to_native_SQLitePCL_SQLite3Provider_NativeMethods_sqlite3_libversion in SQLitePCL-ab1ad6.o
		  "_sqlite3_libversion_number", referenced from:
		      wrapper_managed_to_native_SQLitePCL_SQLite3Provider_NativeMethods_sqlite3_libversion_number in SQLitePCL-ab1ad6.o
		  "_sqlite3_load_extension", referenced from:
		      wrapper_managed_to_native_SQLitePCL_SQLite3Provider_NativeMethods_sqlite3_load_extension_intptr_byte___byte___intptr_ in SQLitePCL-ab1ad6.o
		  "_sqlite3_log", referenced from:
		      wrapper_managed_to_native_SQLitePCL_SQLite3Provider_NativeMethods_sqlite3_log_int_byte__ in SQLitePCL-ab1ad6.o
		  "_sqlite3_malloc", referenced from:
		      wrapper_managed_to_native_SQLitePCL_SQLite3Provider_NativeMethods_sqlite3_malloc_int in SQLitePCL-ab1ad6.o
		  "_sqlite3_memory_highwater", referenced from:
		      wrapper_managed_to_native_SQLitePCL_SQLite3Provider_NativeMethods_sqlite3_memory_highwater_int in SQLitePCL-ab1ad6.o
		  "_sqlite3_memory_used", referenced from:
		      wrapper_managed_to_native_SQLitePCL_SQLite3Provider_NativeMethods_sqlite3_memory_used in SQLitePCL-ab1ad6.o
		  "_sqlite3_next_stmt", referenced from:
		      wrapper_managed_to_native_SQLitePCL_SQLite3Provider_NativeMethods_sqlite3_next_stmt_intptr_intptr in SQLitePCL-ab1ad6.o
		  "_sqlite3_open", referenced from:
		      wrapper_managed_to_native_SQLitePCL_SQLite3Provider_NativeMethods_sqlite3_open_byte___intptr_ in SQLitePCL-ab1ad6.o
		  "_sqlite3_open16", referenced from:
		      wrapper_managed_to_native_SQLitePCL_SQLite3Provider_NativeMethods_sqlite3_open16_string_intptr_ in SQLitePCL-ab1ad6.o
		  "_sqlite3_open_v2", referenced from:
		      wrapper_managed_to_native_SQLitePCL_SQLite3Provider_NativeMethods_sqlite3_open_v2_byte___intptr__int_byte__ in SQLitePCL-ab1ad6.o
		  "_sqlite3_prepare", referenced from:
		      wrapper_managed_to_native_SQLitePCL_SQLite3Provider_NativeMethods_sqlite3_prepare_intptr_intptr_int_intptr__intptr_ in SQLitePCL-ab1ad6.o
		  "_sqlite3_prepare_v2", referenced from:
		      wrapper_managed_to_native_SQLitePCL_SQLite3Provider_NativeMethods_sqlite3_prepare_v2_intptr_byte___int_intptr__intptr_ in SQLitePCL-ab1ad6.o
		  "_sqlite3_profile", referenced from:
		      wrapper_managed_to_native_SQLitePCL_SQLite3Provider_NativeMethods_sqlite3_profile_intptr_SQLitePCL_SQLite3Provider_NativeMethods_callback_profile_intptr in SQLitePCL-ab1ad6.o
		  "_sqlite3_realloc", referenced from:
		      wrapper_managed_to_native_SQLitePCL_SQLite3Provider_NativeMethods_sqlite3_realloc_intptr_int in SQLitePCL-ab1ad6.o
		  "_sqlite3_reset", referenced from:
		      wrapper_managed_to_native_SQLitePCL_SQLite3Provider_NativeMethods_sqlite3_reset_intptr in SQLitePCL-ab1ad6.o
		  "_sqlite3_result_blob", referenced from:
		      wrapper_managed_to_native_SQLitePCL_SQLite3Provider_NativeMethods_sqlite3_result_blob_intptr_byte___int_intptr in SQLitePCL-ab1ad6.o
		  "_sqlite3_result_double", referenced from:
		      wrapper_managed_to_native_SQLitePCL_SQLite3Provider_NativeMethods_sqlite3_result_double_intptr_double in SQLitePCL-ab1ad6.o
		  "_sqlite3_result_error", referenced from:
		      wrapper_managed_to_native_SQLitePCL_SQLite3Provider_NativeMethods_sqlite3_result_error_intptr_byte___int in SQLitePCL-ab1ad6.o
		  "_sqlite3_result_error16", referenced from:
		      wrapper_managed_to_native_SQLitePCL_SQLite3Provider_NativeMethods_sqlite3_result_error16_intptr_string_int in SQLitePCL-ab1ad6.o
		  "_sqlite3_result_int", referenced from:
		      wrapper_managed_to_native_SQLitePCL_SQLite3Provider_NativeMethods_sqlite3_result_int_intptr_int in SQLitePCL-ab1ad6.o
		  "_sqlite3_result_int64", referenced from:
		      wrapper_managed_to_native_SQLitePCL_SQLite3Provider_NativeMethods_sqlite3_result_int64_intptr_long in SQLitePCL-ab1ad6.o
		  "_sqlite3_result_null", referenced from:
		      wrapper_managed_to_native_SQLitePCL_SQLite3Provider_NativeMethods_sqlite3_result_null_intptr in SQLitePCL-ab1ad6.o
		  "_sqlite3_result_text", referenced from:
		      wrapper_managed_to_native_SQLitePCL_SQLite3Provider_NativeMethods_sqlite3_result_text_intptr_byte___int_intptr in SQLitePCL-ab1ad6.o
		  "_sqlite3_result_text16", referenced from:
		      wrapper_managed_to_native_SQLitePCL_SQLite3Provider_NativeMethods_sqlite3_result_text16_intptr_string_int_intptr in SQLitePCL-ab1ad6.o
		  "_sqlite3_rollback_hook", referenced from:
		      wrapper_managed_to_native_SQLitePCL_SQLite3Provider_NativeMethods_sqlite3_rollback_hook_intptr_SQLitePCL_SQLite3Provider_NativeMethods_callback_rollback_intptr in SQLitePCL-ab1ad6.o
		  "_sqlite3_shutdown", referenced from:
		      wrapper_managed_to_native_SQLitePCL_SQLite3Provider_NativeMethods_sqlite3_shutdown in SQLitePCL-ab1ad6.o
		  "_sqlite3_sourceid", referenced from:
		      wrapper_managed_to_native_SQLitePCL_SQLite3Provider_NativeMethods_sqlite3_sourceid in SQLitePCL-ab1ad6.o
		  "_sqlite3_sql", referenced from:
		      wrapper_managed_to_native_SQLitePCL_SQLite3Provider_NativeMethods_sqlite3_sql_intptr in SQLitePCL-ab1ad6.o
		  "_sqlite3_step", referenced from:
		      wrapper_managed_to_native_SQLitePCL_SQLite3Provider_NativeMethods_sqlite3_step_intptr in SQLitePCL-ab1ad6.o
		  "_sqlite3_stmt_busy", referenced from:
		      wrapper_managed_to_native_SQLitePCL_SQLite3Provider_NativeMethods_sqlite3_stmt_busy_intptr in SQLitePCL-ab1ad6.o
		  "_sqlite3_stmt_readonly", referenced from:
		      wrapper_managed_to_native_SQLitePCL_SQLite3Provider_NativeMethods_sqlite3_stmt_readonly_intptr in SQLitePCL-ab1ad6.o
		  "_sqlite3_table_column_metadata", referenced from:
		      wrapper_managed_to_native_SQLitePCL_SQLite3Provider_NativeMethods_sqlite3_table_column_metadata_intptr_byte___byte___byte___intptr__intptr__int__int__int_ in SQLitePCL-ab1ad6.o
		  "_sqlite3_total_changes", referenced from:
		      wrapper_managed_to_native_SQLitePCL_SQLite3Provider_NativeMethods_sqlite3_total_changes_intptr in SQLitePCL-ab1ad6.o
		  "_sqlite3_trace", referenced from:
		      wrapper_managed_to_native_SQLitePCL_SQLite3Provider_NativeMethods_sqlite3_trace_intptr_SQLitePCL_SQLite3Provider_NativeMethods_callback_trace_intptr in SQLitePCL-ab1ad6.o
		  "_sqlite3_update_hook", referenced from:
		      wrapper_managed_to_native_SQLitePCL_SQLite3Provider_NativeMethods_sqlite3_update_hook_intptr_SQLitePCL_SQLite3Provider_NativeMethods_callback_update_intptr in SQLitePCL-ab1ad6.o
		  "_sqlite3_user_data", referenced from:
		      wrapper_managed_to_native_SQLitePCL_SQLite3Provider_NativeMethods_sqlite3_user_data_intptr in SQLitePCL-ab1ad6.o
		  "_sqlite3_value_blob", referenced from:
		      wrapper_managed_to_native_SQLitePCL_SQLite3Provider_NativeMethods_sqlite3_value_blob_intptr in SQLitePCL-ab1ad6.o
		  "_sqlite3_value_bytes", referenced from:
		      wrapper_managed_to_native_SQLitePCL_SQLite3Provider_NativeMethods_sqlite3_value_bytes_intptr in SQLitePCL-ab1ad6.o
		  "_sqlite3_value_double", referenced from:
		      wrapper_managed_to_native_SQLitePCL_SQLite3Provider_NativeMethods_sqlite3_value_double_intptr in SQLitePCL-ab1ad6.o
		  "_sqlite3_value_int", referenced from:
		      wrapper_managed_to_native_SQLitePCL_SQLite3Provider_NativeMethods_sqlite3_value_int_intptr in SQLitePCL-ab1ad6.o
		  "_sqlite3_value_int64", referenced from:
		      wrapper_managed_to_native_SQLitePCL_SQLite3Provider_NativeMethods_sqlite3_value_int64_intptr in SQLitePCL-ab1ad6.o
		  "_sqlite3_value_text", referenced from:
		      wrapper_managed_to_native_SQLitePCL_SQLite3Provider_NativeMethods_sqlite3_value_text_intptr in SQLitePCL-ab1ad6.o
		  "_sqlite3_value_text16", referenced from:
		      wrapper_managed_to_native_SQLitePCL_SQLite3Provider_NativeMethods_sqlite3_value_text16_intptr in SQLitePCL-ab1ad6.o
		  "_sqlite3_value_type", referenced from:
		      wrapper_managed_to_native_SQLitePCL_SQLite3Provider_NativeMethods_sqlite3_value_type_intptr in SQLitePCL-ab1ad6.o
		  "_sqlite3_vfs_find", referenced from:
		      wrapper_managed_to_native_SQLitePCL_SQLite3Provider_NativeMethods_sqlite3_vfs_find_byte__ in SQLitePCL-ab1ad6.o
		ld: symbol(s) not found for architecture arm64
		clang: error: linker command failed with exit code 1 (use -v to see invocation)
Comment 2 Sebastien Pouliot 2016-07-07 00:57:56 UTC
There's a problem with the incremental build, it does not add `-lsqlite3` so it can't create a .dylib

c.c. Rolf
Comment 3 Sebastien Pouliot 2016-07-07 01:04:53 UTC
Once disabled the build will continue a bit further - and stop and the native linker phase.

	MTOUCH: error MT5210: Native linking failed, undefined symbol: _sqlite3_column_database_name. Please verify that all the necessary frameworks have been referenced and native libraries are properly linked in.
	MTOUCH: error MT5210: Native linking failed, undefined symbol: _sqlite3_column_database_name16. Please verify that all the necessary frameworks have been referenced and native libraries are properly linked in.
	MTOUCH: error MT5210: Native linking failed, undefined symbol: _sqlite3_column_origin_name. Please verify that all the necessary frameworks have been referenced and native libraries are properly linked in.
	MTOUCH: error MT5210: Native linking failed, undefined symbol: _sqlite3_column_origin_name16. Please verify that all the necessary frameworks have been referenced and native libraries are properly linked in.
	MTOUCH: error MT5210: Native linking failed, undefined symbol: _sqlite3_column_table_name. Please verify that all the necessary frameworks have been referenced and native libraries are properly linked in.
	MTOUCH: error MT5210: Native linking failed, undefined symbol: _sqlite3_column_table_name16. Please verify that all the necessary frameworks have been referenced and native libraries are properly linked in.
	MTOUCH: error MT5210: Native linking failed, undefined symbol: _sqlite3_enable_load_extension. Please verify that all the necessary frameworks have been referenced and native libraries are properly linked in.
	MTOUCH: error MT5210: Native linking failed, undefined symbol: _sqlite3_load_extension. Please verify that all the necessary frameworks have been referenced and native libraries are properly linked in.
	MTOUCH: error MT5202: Native linking failed. Please review the build log.

That's a different issue and happens because the .dll includes DllImport to functions that do not exists. This is not allowed by default as the native linker does not allow this for bitcode (e.g. tvOS and watchOS) which the new XI version supports.

You can opt-out of this (at least today for iOS) by providing the

> -dlsym=yes

option to the "Additional mtouch arguments". It will build and run fine - as long as you don't call the functions that do not exists on the platform.
Comment 4 Rolf Bjarne Kvinge [MSFT] 2016-10-14 10:32:15 UTC
The problem is that the P/Invokes say the dll name is "sqlite3" and not "libsqlite3".

PR: https://github.com/xamarin/xamarin-macios/pull/996

Note You need to log in before you can comment on or make changes to this bug.