blacktop / darwin-xnu-build

XNU kernel, Kernel Collection and CodeQL build scripts
MIT License
204 stars 29 forks source link

Not able to generate xnu.kc file | One or more binaries has an error which prevented linking. Error Domain=KMErrorDomain Code=31 "Error occurred while building a collection: #19

Closed tumusudheer closed 1 month ago

tumusudheer commented 1 month ago

Hi,

I checked out the code using

git clone https://github.com/blacktop/darwin-xnu-build.git
cd darwin-xnu-build

My laptop is running mac os 15.0 (24A335). When I run the folliwng command: MACOS_VERSION='15.0' KERNEL_CONFIG=RELEASE ARCH_CONFIG=ARM64 MACHINE_CONFIG=VMAPPLE ./build.sh --kc

I'm getting the following errors:

/Users/x/Documents/Work/Research/Y/darwin-xnu-build_2.0/darwin-xnu-build/build/xnu.obj/SETUP/installfile/installfile -c -S -m 0444 /Users/X/Documents/Work/Research/Y/darwin-xnu-build_2.0/darwin-xnu-build/build/xnu.obj/RELEASE_ARM64_VMAPPLE//kernel.release.vmapple.link/kernel.release.vmapple.a /Users/x/Documents/Work/Research/Y/darwin-xnu-build_2.0/darwin-xnu-build/fakeroot//System/Library/Kernels/kernel.release.vmapple.link/kernel.release.vmapple.a
/usr/bin/touch /Users/x/Documents/Work/Research/Y/darwin-xnu-build_2.0/darwin-xnu-build/build/xnu.obj/.symbolset.timestamp
/usr/bin/touch /Users/x/Documents/Work/Research/Y/darwin-xnu-build_2.0/darwin-xnu-build/build/xnu.obj/.mach_kernel.timestamp
done building xnu
  🎉 XNU Build Done!
 ⇒ 📦 Building kernel collection for kernel.release.vmapple
   • Decompressing KernelManagement kernelcache
      • Filtered                  bundle=com.apple.driver.SEPHibernation
One or more binaries has an error which prevented linking.  See other errors.
Error Domain=KMErrorDomain Code=31 "Error occurred while building a collection: 
    1: One or more binaries has an error which prevented linking.  See other errors.
    2: Could not use 'com.apple.driver.AppleFirmwareKit' because: Failed to bind '_tb_endpoint_create_with_data' in 'com.apple.driver.AppleFirmwareKit' (at offset 0x380 in __DATA_CONST, __auth_got) as could not find a kext which exports this symbol
    3: Could not use 'com.apple.driver.ExclavesAudioKext' because: Failed to bind '_tb_client_connection_activate' in 'com.apple.driver.ExclavesAudioKext' (at offset 0x80 in __DATA_CONST, __auth_got) as could not find a kext which exports this symbolFailed to bind '_tb_client_connection_create_with_endpoint' in 'com.apple.driver.ExclavesAudioKext' (at offset 0x88 in __DATA_CONST, __auth_got) as could not find a kext which exports this symbolFailed to bind '_tb_client_connection_create_with_endpoint_static' in 'com.apple.driver.ExclavesAudioKext' (at offset 0x90 in __DATA_CONST, __auth_got) as could not find a kext which exports this symbolFailed to bind '_tb_client_connection_message_construct' in 'com.apple.driver.ExclavesAudioKext' (at offset 0x98 in __DATA_CONST, __auth_got) as could not find a kext which exports this symbolFailed to bind '_tb_client_connection_message_destruct' in 'com.apple.driver.ExclavesAudioKext' (at offset 0xa0 in __DATA_CONST, __auth_got) as could not find a kext which exports this symbolFailed to bind '_tb_connection_send_query' in 'com.apple.driver.ExclavesAudioKext' (at offset 0xa8 in __DATA_CONST, __auth_got) as could not find a kext which exports this symbolFailed to bind '_tb_endpoint_create_with_value' in 'com.apple.driver.ExclavesAudioKext' (at offset 0xb0 in __DATA_CONST, __auth_got) as could not find a kext which exports this symbolFailed to bind '_tb_endpoint_destruct' in 'com.apple.driver.ExclavesAudioKext' (at offset 0xb8 in __DATA_CONST, __auth_got) as could not find a kext which exports this symbolFailed to bind '_tb_message_complete' in 'com.apple.driver.ExclavesAudioKext' (at offset 0xc0 in __DATA_CONST, __auth_got) as could not find a kext which exports this symbolFailed to bind '_tb_message_configure_recieved' in 'com.apple.driver.ExclavesAudioKext' (at offset 0xc8 in __DATA_CONST, __auth_got) as could not find a kext which exports this symbolFailed to bind '_tb_message_construct' in 'com.apple.driver.ExclavesAudioKext' (at offset 0xd0 in __DATA_CONST, __auth_got) as could not find a kext which exports this symbolFailed to bind '_tb_message_decode_bool' in 'com.apple.driver.ExclavesAudioKext' (at offset 0xd8 in __DATA_CONST, __auth_got) as could not find a kext which exports this symbolFailed to bind '_tb_message_decode_u32' in 'com.apple.driver.ExclavesAudioKext' (at offset 0xe0 in __DATA_CONST, __auth_got) as could not find a kext which exports this symbolFailed to bind '_tb_message_decode_u64' in 'com.apple.driver.ExclavesAudioKext' (at offset 0xe8 in __DATA_CONST, __auth_got) as could not find a kext which exports this symbolFailed to bind '_tb_message_decode_u8' in 'com.apple.driver.ExclavesAudioKext' (at offset 0xf0 in __DATA_CONST, __auth_got) as could not find a kext which exports this symbolFailed to bind '_tb_message_destruct' in 'com.apple.driver.ExclavesAudioKext' (at offset 0xf8 in __DATA_CONST, __auth_got) as could not find a kext which exports this symbolFailed to bind '_tb_message_encode_bool' in 'com.apple.driver.ExclavesAudioKext' (at offset 0x100 in __DATA_CONST, __auth_got) as could not find a kext which exports this symbolFailed to bind '_tb_message_encode_u32' in 'com.apple.driver.ExclavesAudioKext' (at offset 0x108 in __DATA_CONST, __auth_got) as could not find a kext which exports this symbolFailed to bind '_tb_message_encode_u64' in 'com.apple.driver.ExclavesAudioKext' (at offset 0x110 in __DATA_CONST, __auth_got) as could not find a kext which exports this symbolFailed to bind '_tb_message_encode_u8' in 'com.apple.driver.ExclavesAudioKext' (at offset 0x118 in __DATA_CONST, __auth_got) as could not find a kext which exports this symbolFailed to bind '_tb_service_connection_activate' in 'com.apple.driver.ExclavesAudioKext' (at offset 0x120 in __DATA_CONST, __auth_got) as could not find a kext which exports this symbolFailed to bind '_tb_service_connection_create_with_endpoint' in 'com.apple.driver.ExclavesAudioKext' (at offset 0x128 in __DATA_CONST, __auth_got) as could not find a kext which exports this symbolFailed to bind '_tb_service_connection_message_configure_reply' in 'com.apple.driver.ExclavesAudioKext' (at offset 0x130 in __DATA_CONST, __auth_got) as could not find a kext which exports this symbolFailed to bind '_tb_transport_message_buffer_wrap_buffer' in 'com.apple.driver.ExclavesAudioKext' (at offset 0x138 in __DATA_CONST, __auth_got) as could not find a kext which exports this symbol
    4: Could not use 'com.apple.driver.AppleH11ANEInterface' because: Failed to bind '_tb_client_connection_activate' in 'com.apple.driver.AppleH11ANEInterface' (at offset 0x740 in __DATA_CONST, __auth_got) as could not find a kext which exports this symbolFailed to bind '_tb_client_connection_create_with_endpoint' in 'com.apple.driver.AppleH11ANEInterface' (at offset 0x748 in __DATA_CONST, __auth_got) as could not find a kext which exports this symbolFailed to bind '_tb_client_connection_create_with_endpoint_static' in 'com.apple.driver.AppleH11ANEInterface' (at offset 0x750 in __DATA_CONST, __auth_got) as could not find a kext which exports this symbolFailed to bind '_tb_client_connection_message_construct' in 'com.apple.driver.AppleH11ANEInterface' (at offset 0x758 in __DATA_CONST, __auth_got) as could not find a kext which exports this symbolFailed to bind '_tb_client_connection_message_destruct' in 'com.apple.driver.AppleH11ANEInterface' (at offset 0x760 in __DATA_CONST, __auth_got) as could not find a kext which exports this symbolFailed to bind '_tb_connection_send_query' in 'com.apple.driver.AppleH11ANEInterface' (at offset 0x768 in __DATA_CONST, __auth_got) as could not find a kext which exports this symbolFailed to bind '_tb_endpoint_create_with_value' in 'com.apple.driver.AppleH11ANEInterface' (at offset 0x770 in __DATA_CONST, __auth_got) as could not find a kext which exports this symbolFailed to bind '_tb_message_complete' in 'com.apple.driver.AppleH11ANEInterface' (at offset 0x778 in __DATA_CONST, __auth_got) as could not find a kext which exports this symbolFailed to bind '_tb_message_decode_bool' in 'com.apple.driver.AppleH11ANEInterface' (at offset 0x780 in __DATA_CONST, __auth_got) as could not find a kext which exports this symbolFailed to bind '_tb_message_decode_u32' in 'com.apple.driver.AppleH11ANEInterface' (at offset 0x788 in __DATA_CONST, __auth_got) as could not find a kext which exports this symbolFailed to bind '_tb_message_decode_u64' in 'com.apple.driver.AppleH11ANEInterface' (at offset 0x790 in __DATA_CONST, __auth_got) as could not find a kext which exports this symbolFailed to bind '_tb_message_decode_u8' in 'com.apple.driver.AppleH11ANEInterface' (at offset 0x798 in __DATA_CONST, __auth_got) as could not find a kext which exports this symbolFailed to bind '_tb_message_encode_bool' in 'com.apple.driver.AppleH11ANEInterface' (at offset 0x7a0 in __DATA_CONST, __auth_got) as could not find a kext which exports this symbolFailed to bind '_tb_message_encode_u32' in 'com.apple.driver.AppleH11ANEInterface' (at offset 0x7a8 in __DATA_CONST, __auth_got) as could not find a kext which exports this symbolFailed to bind '_tb_message_encode_u64' in 'com.apple.driver.AppleH11ANEInterface' (at offset 0x7b0 in __DATA_CONST, __auth_got) as could not find a kext which exports this symbolFailed to bind '_tb_message_encode_u8' in 'com.apple.driver.AppleH11ANEInterface' (at offset 0x7b8 in __DATA_CONST, __auth_got) as could not find a kext which exports this symbolFailed to bind '_tb_service_connection_activate' in 'com.apple.driver.AppleH11ANEInterface' (at offset 0x7c0 in __DATA_CONST, __auth_got) as could not find a kext which exports this symbolFailed to bind '_tb_service_connection_create_with_endpoint' in 'com.apple.driver.AppleH11ANEInterface' (at offset 0x7c8 in __DATA_CONST, __auth_got) as could not find a kext which exports this symbolFailed to bind '_tb_service_connection_message_configure_reply' in 'com.apple.driver.AppleH11ANEInterface' (at offset 0x7d0 in __DATA_CONST, __auth_got) as could not find a kext which exports this symbol
com.apple.driver.ExclavesAudioKext specific: 
    1: Failed to bind '_tb_client_connection_activate' in 'com.apple.driver.ExclavesAudioKext' (at offset 0x80 in __DATA_CONST, __auth_got) as could not find a kext which exports this symbolFailed to bind '_tb_client_connection_create_with_endpoint' in 'com.apple.driver.ExclavesAudioKext' (at offset 0x88 in __DATA_CONST, __auth_got) as could not find a kext which exports this symbolFailed to bind '_tb_client_connection_create_with_endpoint_static' in 'com.apple.driver.ExclavesAudioKext' (at offset 0x90 in __DATA_CONST, __auth_got) as could not find a kext which exports this symbolFailed to bind '_tb_client_connection_message_construct' in 'com.apple.driver.ExclavesAudioKext' (at offset 0x98 in __DATA_CONST, __auth_got) as could not find a kext which exports this symbolFailed to bind '_tb_client_connection_message_destruct' in 'com.apple.driver.ExclavesAudioKext' (at offset 0xa0 in __DATA_CONST, __auth_got) as could not find a kext which exports this symbolFailed to bind '_tb_connection_send_query' in 'com.apple.driver.ExclavesAudioKext' (at offset 0xa8 in __DATA_CONST, __auth_got) as could not find a kext which exports this symbolFailed to bind '_tb_endpoint_create_with_value' in 'com.apple.driver.ExclavesAudioKext' (at offset 0xb0 in __DATA_CONST, __auth_got) as could not find a kext which exports this symbolFailed to bind '_tb_endpoint_destruct' in 'com.apple.driver.ExclavesAudioKext' (at offset 0xb8 in __DATA_CONST, __auth_got) as could not find a kext which exports this symbolFailed to bind '_tb_message_complete' in 'com.apple.driver.ExclavesAudioKext' (at offset 0xc0 in __DATA_CONST, __auth_got) as could not find a kext which exports this symbolFailed to bind '_tb_message_configure_recieved' in 'com.apple.driver.ExclavesAudioKext' (at offset 0xc8 in __DATA_CONST, __auth_got) as could not find a kext which exports this symbolFailed to bind '_tb_message_construct' in 'com.apple.driver.ExclavesAudioKext' (at offset 0xd0 in __DATA_CONST, __auth_got) as could not find a kext which exports this symbolFailed to bind '_tb_message_decode_bool' in 'com.apple.driver.ExclavesAudioKext' (at offset 0xd8 in __DATA_CONST, __auth_got) as could not find a kext which exports this symbolFailed to bind '_tb_message_decode_u32' in 'com.apple.driver.ExclavesAudioKext' (at offset 0xe0 in __DATA_CONST, __auth_got) as could not find a kext which exports this symbolFailed to bind '_tb_message_decode_u64' in 'com.apple.driver.ExclavesAudioKext' (at offset 0xe8 in __DATA_CONST, __auth_got) as could not find a kext which exports this symbolFailed to bind '_tb_message_decode_u8' in 'com.apple.driver.ExclavesAudioKext' (at offset 0xf0 in __DATA_CONST, __auth_got) as could not find a kext which exports this symbolFailed to bind '_tb_message_destruct' in 'com.apple.driver.ExclavesAudioKext' (at offset 0xf8 in __DATA_CONST, __auth_got) as could not find a kext which exports this symbolFailed to bind '_tb_message_encode_bool' in 'com.apple.driver.ExclavesAudioKext' (at offset 0x100 in __DATA_CONST, __auth_got) as could not find a kext which exports this symbolFailed to bind '_tb_message_encode_u32' in 'com.apple.driver.ExclavesAudioKext' (at offset 0x108 in __DATA_CONST, __auth_got) as could not find a kext which exports this symbolFailed to bind '_tb_message_encode_u64' in 'com.apple.driver.ExclavesAudioKext' (at offset 0x110 in __DATA_CONST, __auth_got) as could not find a kext which exports this symbolFailed to bind '_tb_message_encode_u8' in 'com.apple.driver.ExclavesAudioKext' (at offset 0x118 in __DATA_CONST, __auth_got) as could not find a kext which exports this symbolFailed to bind '_tb_service_connection_activate' in 'com.apple.driver.ExclavesAudioKext' (at offset 0x120 in __DATA_CONST, __auth_got) as could not find a kext which exports this symbolFailed to bind '_tb_service_connection_create_with_endpoint' in 'com.apple.driver.ExclavesAudioKext' (at offset 0x128 in __DATA_CONST, __auth_got) as could not find a kext which exports this symbolFailed to bind '_tb_service_connection_message_configure_reply' in 'com.apple.driver.ExclavesAudioKext' (at offset 0x130 in __DATA_CONST, __auth_got) as could not find a kext which exports this symbolFailed to bind '_tb_transport_message_buffer_wrap_buffer' in 'com.apple.driver.ExclavesAudioKext' (at offset 0x138 in __DATA_CONST, __auth_got) as could not find a kext which exports this symbol
com.apple.driver.AppleFirmwareKit specific: 
    1: Failed to bind '_tb_endpoint_create_with_data' in 'com.apple.driver.AppleFirmwareKit' (at offset 0x380 in __DATA_CONST, __auth_got) as could not find a kext which exports this symbol
com.apple.driver.AppleH11ANEInterface specific: 
    1: Failed to bind '_tb_client_connection_activate' in 'com.apple.driver.AppleH11ANEInterface' (at offset 0x740 in __DATA_CONST, __auth_got) as could not find a kext which exports this symbolFailed to bind '_tb_client_connection_create_with_endpoint' in 'com.apple.driver.AppleH11ANEInterface' (at offset 0x748 in __DATA_CONST, __auth_got) as could not find a kext which exports this symbolFailed to bind '_tb_client_connection_create_with_endpoint_static' in 'com.apple.driver.AppleH11ANEInterface' (at offset 0x750 in __DATA_CONST, __auth_got) as could not find a kext which exports this symbolFailed to bind '_tb_client_connection_message_construct' in 'com.apple.driver.AppleH11ANEInterface' (at offset 0x758 in __DATA_CONST, __auth_got) as could not find a kext which exports this symbolFailed to bind '_tb_client_connection_message_destruct' in 'com.apple.driver.AppleH11ANEInterface' (at offset 0x760 in __DATA_CONST, __auth_got) as could not find a kext which exports this symbolFailed to bind '_tb_connection_send_query' in 'com.apple.driver.AppleH11ANEInterface' (at offset 0x768 in __DATA_CONST, __auth_got) as could not find a kext which exports this symbolFailed to bind '_tb_endpoint_create_with_value' in 'com.apple.driver.AppleH11ANEInterface' (at offset 0x770 in __DATA_CONST, __auth_got) as could not find a kext which exports this symbolFailed to bind '_tb_message_complete' in 'com.apple.driver.AppleH11ANEInterface' (at offset 0x778 in __DATA_CONST, __auth_got) as could not find a kext which exports this symbolFailed to bind '_tb_message_decode_bool' in 'com.apple.driver.AppleH11ANEInterface' (at offset 0x780 in __DATA_CONST, __auth_got) as could not find a kext which exports this symbolFailed to bind '_tb_message_decode_u32' in 'com.apple.driver.AppleH11ANEInterface' (at offset 0x788 in __DATA_CONST, __auth_got) as could not find a kext which exports this symbolFailed to bind '_tb_message_decode_u64' in 'com.apple.driver.AppleH11ANEInterface' (at offset 0x790 in __DATA_CONST, __auth_got) as could not find a kext which exports this symbolFailed to bind '_tb_message_decode_u8' in 'com.apple.driver.AppleH11ANEInterface' (at offset 0x798 in __DATA_CONST, __auth_got) as could not find a kext which exports this symbolFailed to bind '_tb_message_encode_bool' in 'com.apple.driver.AppleH11ANEInterface' (at offset 0x7a0 in __DATA_CONST, __auth_got) as could not find a kext which exports this symbolFailed to bind '_tb_message_encode_u32' in 'com.apple.driver.AppleH11ANEInterface' (at offset 0x7a8 in __DATA_CONST, __auth_got) as could not find a kext which exports this symbolFailed to bind '_tb_message_encode_u64' in 'com.apple.driver.AppleH11ANEInterface' (at offset 0x7b0 in __DATA_CONST, __auth_got) as could not find a kext which exports this symbolFailed to bind '_tb_message_encode_u8' in 'com.apple.driver.AppleH11ANEInterface' (at offset 0x7b8 in __DATA_CONST, __auth_got) as could not find a kext which exports this symbolFailed to bind '_tb_service_connection_activate' in 'com.apple.driver.AppleH11ANEInterface' (at offset 0x7c0 in __DATA_CONST, __auth_got) as could not find a kext which exports this symbolFailed to bind '_tb_service_connection_create_with_endpoint' in 'com.apple.driver.AppleH11ANEInterface' (at offset 0x7c8 in __DATA_CONST, __auth_got) as could not find a kext which exports this symbolFailed to bind '_tb_service_connection_message_configure_reply' in 'com.apple.driver.AppleH11ANEInterface' (at offset 0x7d0 in __DATA_CONST, __auth_got) as could not find a kext which exports this symbol
" UserInfo={NSLocalizedDescription=Error occurred while building a collection: 
    1: One or more binaries has an error which prevented linking.  See other errors.
    2: Could not use 'com.apple.driver.AppleFirmwareKit' because: Failed to bind '_tb_endpoint_create_with_data' in 'com.apple.driver.AppleFirmwareKit' (at offset 0x380 in __DATA_CONST, __auth_got) as could not find a kext which exports this symbol
    3: Could not use 'com.apple.driver.ExclavesAudioKext' because: Failed to bind '_tb_client_connection_activate' in 'com.apple.driver.ExclavesAudioKext' (at offset 0x80 in __DATA_CONST, __auth_got) as could not find a kext which exports this symbolFailed to bind '_tb_client_connection_create_with_endpoint' in 'com.apple.driver.ExclavesAudioKext' (at offset 0x88 in __DATA_CONST, __auth_got) as could not find a kext which exports this symbolFailed to bind '_tb_client_connection_create_with_endpoint_static' in 'com.apple.driver.ExclavesAudioKext' (at offset 0x90 in __DATA_CONST, __auth_got) as could not find a kext which exports this symbolFailed to bind '_tb_client_connection_message_construct' in 'com.apple.driver.ExclavesAudioKext' (at offset 0x98 in __DATA_CONST, __auth_got) as could not find a kext which exports this symbolFailed to bind '_tb_client_connection_message_destruct' in 'com.apple.driver.ExclavesAudioKext' (at offset 0xa0 in __DATA_CONST, __auth_got) as could not find a kext which exports this symbolFailed to bind '_tb_connection_send_query' in 'com.apple.driver.ExclavesAudioKext' (at offset 0xa8 in __DATA_CONST, __auth_got) as could not find a kext which exports this symbolFailed to bind '_tb_endpoint_create_with_value' in 'com.apple.driver.ExclavesAudioKext' (at offset 0xb0 in __DATA_CONST, __auth_got) as could not find a kext which exports this symbolFailed to bind '_tb_endpoint_destruct' in 'com.apple.driver.ExclavesAudioKext' (at offset 0xb8 in __DATA_CONST, __auth_got) as could not find a kext which exports this symbolFailed to bind '_tb_message_complete' in 'com.apple.driver.ExclavesAudioKext' (at offset 0xc0 in __DATA_CONST, __auth_got) as could not find a kext which exports this symbolFailed to bind '_tb_message_configure_recieved' in 'com.apple.driver.ExclavesAudioKext' (at offset 0xc8 in __DATA_CONST, __auth_got) as could not find a kext which exports this symbolFailed to bind '_tb_message_construct' in 'com.apple.driver.ExclavesAudioKext' (at offset 0xd0 in __DATA_CONST, __auth_got) as could not find a kext which exports this symbolFailed to bind '_tb_message_decode_bool' in 'com.apple.driver.ExclavesAudioKext' (at offset 0xd8 in __DATA_CONST, __auth_got) as could not find a kext which exports this symbolFailed to bind '_tb_message_decode_u32' in 'com.apple.driver.ExclavesAudioKext' (at offset 0xe0 in __DATA_CONST, __auth_got) as could not find a kext which exports this symbolFailed to bind '_tb_message_decode_u64' in 'com.apple.driver.ExclavesAudioKext' (at offset 0xe8 in __DATA_CONST, __auth_got) as could not find a kext which exports this symbolFailed to bind '_tb_message_decode_u8' in 'com.apple.driver.ExclavesAudioKext' (at offset 0xf0 in __DATA_CONST, __auth_got) as could not find a kext which exports this symbolFailed to bind '_tb_message_destruct' in 'com.apple.driver.ExclavesAudioKext' (at offset 0xf8 in __DATA_CONST, __auth_got) as could not find a kext which exports this symbolFailed to bind '_tb_message_encode_bool' in 'com.apple.driver.ExclavesAudioKext' (at offset 0x100 in __DATA_CONST, __auth_got) as could not find a kext which exports this symbolFailed to bind '_tb_message_encode_u32' in 'com.apple.driver.ExclavesAudioKext' (at offset 0x108 in __DATA_CONST, __auth_got) as could not find a kext which exports this symbolFailed to bind '_tb_message_encode_u64' in 'com.apple.driver.ExclavesAudioKext' (at offset 0x110 in __DATA_CONST, __auth_got) as could not find a kext which exports this symbolFailed to bind '_tb_message_encode_u8' in 'com.apple.driver.ExclavesAudioKext' (at offset 0x118 in __DATA_CONST, __auth_got) as could not find a kext which exports this symbolFailed to bind '_tb_service_connection_activate' in 'com.apple.driver.ExclavesAudioKext' (at offset 0x120 in __DATA_CONST, __auth_got) as could not find a kext which exports this symbolFailed to bind '_tb_service_connection_create_with_endpoint' in 'com.apple.driver.ExclavesAudioKext' (at offset 0x128 in __DATA_CONST, __auth_got) as could not find a kext which exports this symbolFailed to bind '_tb_service_connection_message_configure_reply' in 'com.apple.driver.ExclavesAudioKext' (at offset 0x130 in __DATA_CONST, __auth_got) as could not find a kext which exports this symbolFailed to bind '_tb_transport_message_buffer_wrap_buffer' in 'com.apple.driver.ExclavesAudioKext' (at offset 0x138 in __DATA_CONST, __auth_got) as could not find a kext which exports this symbol
    4: Could not use 'com.apple.driver.AppleH11ANEInterface' because: Failed to bind '_tb_client_connection_activate' in 'com.apple.driver.AppleH11ANEInterface' (at offset 0x740 in __DATA_CONST, __auth_got) as could not find a kext which exports this symbolFailed to bind '_tb_client_connection_create_with_endpoint' in 'com.apple.driver.AppleH11ANEInterface' (at offset 0x748 in __DATA_CONST, __auth_got) as could not find a kext which exports this symbolFailed to bind '_tb_client_connection_create_with_endpoint_static' in 'com.apple.driver.AppleH11ANEInterface' (at offset 0x750 in __DATA_CONST, __auth_got) as could not find a kext which exports this symbolFailed to bind '_tb_client_connection_message_construct' in 'com.apple.driver.AppleH11ANEInterface' (at offset 0x758 in __DATA_CONST, __auth_got) as could not find a kext which exports this symbolFailed to bind '_tb_client_connection_message_destruct' in 'com.apple.driver.AppleH11ANEInterface' (at offset 0x760 in __DATA_CONST, __auth_got) as could not find a kext which exports this symbolFailed to bind '_tb_connection_send_query' in 'com.apple.driver.AppleH11ANEInterface' (at offset 0x768 in __DATA_CONST, __auth_got) as could not find a kext which exports this symbolFailed to bind '_tb_endpoint_create_with_value' in 'com.apple.driver.AppleH11ANEInterface' (at offset 0x770 in __DATA_CONST, __auth_got) as could not find a kext which exports this symbolFailed to bind '_tb_message_complete' in 'com.apple.driver.AppleH11ANEInterface' (at offset 0x778 in __DATA_CONST, __auth_got) as could not find a kext which exports this symbolFailed to bind '_tb_message_decode_bool' in 'com.apple.driver.AppleH11ANEInterface' (at offset 0x780 in __DATA_CONST, __auth_got) as could not find a kext which exports this symbolFailed to bind '_tb_message_decode_u32' in 'com.apple.driver.AppleH11ANEInterface' (at offset 0x788 in __DATA_CONST, __auth_got) as could not find a kext which exports this symbolFailed to bind '_tb_message_decode_u64' in 'com.apple.driver.AppleH11ANEInterface' (at offset 0x790 in __DATA_CONST, __auth_got) as could not find a kext which exports this symbolFailed to bind '_tb_message_decode_u8' in 'com.apple.driver.AppleH11ANEInterface' (at offset 0x798 in __DATA_CONST, __auth_got) as could not find a kext which exports this symbolFailed to bind '_tb_message_encode_bool' in 'com.apple.driver.AppleH11ANEInterface' (at offset 0x7a0 in __DATA_CONST, __auth_got) as could not find a kext which exports this symbolFailed to bind '_tb_message_encode_u32' in 'com.apple.driver.AppleH11ANEInterface' (at offset 0x7a8 in __DATA_CONST, __auth_got) as could not find a kext which exports this symbolFailed to bind '_tb_message_encode_u64' in 'com.apple.driver.AppleH11ANEInterface' (at offset 0x7b0 in __DATA_CONST, __auth_got) as could not find a kext which exports this symbolFailed to bind '_tb_message_encode_u8' in 'com.apple.driver.AppleH11ANEInterface' (at offset 0x7b8 in __DATA_CONST, __auth_got) as could not find a kext which exports this symbolFailed to bind '_tb_service_connection_activate' in 'com.apple.driver.AppleH11ANEInterface' (at offset 0x7c0 in __DATA_CONST, __auth_got) as could not find a kext which exports this symbolFailed to bind '_tb_service_connection_create_with_endpoint' in 'com.apple.driver.AppleH11ANEInterface' (at offset 0x7c8 in __DATA_CONST, __auth_got) as could not find a kext which exports this symbolFailed to bind '_tb_service_connection_message_configure_reply' in 'com.apple.driver.AppleH11ANEInterface' (at offset 0x7d0 in __DATA_CONST, __auth_got) as could not find a kext which exports this symbol
com.apple.driver.ExclavesAudioKext specific: 
    1: Failed to bind '_tb_client_connection_activate' in 'com.apple.driver.ExclavesAudioKext' (at offset 0x80 in __DATA_CONST, __auth_got) as could not find a kext which exports this symbolFailed to bind '_tb_client_connection_create_with_endpoint' in 'com.apple.driver.ExclavesAudioKext' (at offset 0x88 in __DATA_CONST, __auth_got) as could not find a kext which exports this symbolFailed to bind '_tb_client_connection_create_with_endpoint_static' in 'com.apple.driver.ExclavesAudioKext' (at offset 0x90 in __DATA_CONST, __auth_got) as could not find a kext which exports this symbolFailed to bind '_tb_client_connection_message_construct' in 'com.apple.driver.ExclavesAudioKext' (at offset 0x98 in __DATA_CONST, __auth_got) as could not find a kext which exports this symbolFailed to bind '_tb_client_connection_message_destruct' in 'com.apple.driver.ExclavesAudioKext' (at offset 0xa0 in __DATA_CONST, __auth_got) as could not find a kext which exports this symbolFailed to bind '_tb_connection_send_query' in 'com.apple.driver.ExclavesAudioKext' (at offset 0xa8 in __DATA_CONST, __auth_got) as could not find a kext which exports this symbolFailed to bind '_tb_endpoint_create_with_value' in 'com.apple.driver.ExclavesAudioKext' (at offset 0xb0 in __DATA_CONST, __auth_got) as could not find a kext which exports this symbolFailed to bind '_tb_endpoint_destruct' in 'com.apple.driver.ExclavesAudioKext' (at offset 0xb8 in __DATA_CONST, __auth_got) as could not find a kext which exports this symbolFailed to bind '_tb_message_complete' in 'com.apple.driver.ExclavesAudioKext' (at offset 0xc0 in __DATA_CONST, __auth_got) as could not find a kext which exports this symbolFailed to bind '_tb_message_configure_recieved' in 'com.apple.driver.ExclavesAudioKext' (at offset 0xc8 in __DATA_CONST, __auth_got) as could not find a kext which exports this symbolFailed to bind '_tb_message_construct' in 'com.apple.driver.ExclavesAudioKext' (at offset 0xd0 in __DATA_CONST, __auth_got) as could not find a kext which exports this symbolFailed to bind '_tb_message_decode_bool' in 'com.apple.driver.ExclavesAudioKext' (at offset 0xd8 in __DATA_CONST, __auth_got) as could not find a kext which exports this symbolFailed to bind '_tb_message_decode_u32' in 'com.apple.driver.ExclavesAudioKext' (at offset 0xe0 in __DATA_CONST, __auth_got) as could not find a kext which exports this symbolFailed to bind '_tb_message_decode_u64' in 'com.apple.driver.ExclavesAudioKext' (at offset 0xe8 in __DATA_CONST, __auth_got) as could not find a kext which exports this symbolFailed to bind '_tb_message_decode_u8' in 'com.apple.driver.ExclavesAudioKext' (at offset 0xf0 in __DATA_CONST, __auth_got) as could not find a kext which exports this symbolFailed to bind '_tb_message_destruct' in 'com.apple.driver.ExclavesAudioKext' (at offset 0xf8 in __DATA_CONST, __auth_got) as could not find a kext which exports this symbolFailed to bind '_tb_message_encode_bool' in 'com.apple.driver.ExclavesAudioKext' (at offset 0x100 in __DATA_CONST, __auth_got) as could not find a kext which exports this symbolFailed to bind '_tb_message_encode_u32' in 'com.apple.driver.ExclavesAudioKext' (at offset 0x108 in __DATA_CONST, __auth_got) as could not find a kext which exports this symbolFailed to bind '_tb_message_encode_u64' in 'com.apple.driver.ExclavesAudioKext' (at offset 0x110 in __DATA_CONST, __auth_got) as could not find a kext which exports this symbolFailed to bind '_tb_message_encode_u8' in 'com.apple.driver.ExclavesAudioKext' (at offset 0x118 in __DATA_CONST, __auth_got) as could not find a kext which exports this symbolFailed to bind '_tb_service_connection_activate' in 'com.apple.driver.ExclavesAudioKext' (at offset 0x120 in __DATA_CONST, __auth_got) as could not find a kext which exports this symbolFailed to bind '_tb_service_connection_create_with_endpoint' in 'com.apple.driver.ExclavesAudioKext' (at offset 0x128 in __DATA_CONST, __auth_got) as could not find a kext which exports this symbolFailed to bind '_tb_service_connection_message_configure_reply' in 'com.apple.driver.ExclavesAudioKext' (at offset 0x130 in __DATA_CONST, __auth_got) as could not find a kext which exports this symbolFailed to bind '_tb_transport_message_buffer_wrap_buffer' in 'com.apple.driver.ExclavesAudioKext' (at offset 0x138 in __DATA_CONST, __auth_got) as could not find a kext which exports this symbol
com.apple.driver.AppleFirmwareKit specific: 
    1: Failed to bind '_tb_endpoint_create_with_data' in 'com.apple.driver.AppleFirmwareKit' (at offset 0x380 in __DATA_CONST, __auth_got) as could not find a kext which exports this symbol
com.apple.driver.AppleH11ANEInterface specific: 
    1: Failed to bind '_tb_client_connection_activate' in 'com.apple.driver.AppleH11ANEInterface' (at offset 0x740 in __DATA_CONST, __auth_got) as could not find a kext which exports this symbolFailed to bind '_tb_client_connection_create_with_endpoint' in 'com.apple.driver.AppleH11ANEInterface' (at offset 0x748 in __DATA_CONST, __auth_got) as could not find a kext which exports this symbolFailed to bind '_tb_client_connection_create_with_endpoint_static' in 'com.apple.driver.AppleH11ANEInterface' (at offset 0x750 in __DATA_CONST, __auth_got) as could not find a kext which exports this symbolFailed to bind '_tb_client_connection_message_construct' in 'com.apple.driver.AppleH11ANEInterface' (at offset 0x758 in __DATA_CONST, __auth_got) as could not find a kext which exports this symbolFailed to bind '_tb_client_connection_message_destruct' in 'com.apple.driver.AppleH11ANEInterface' (at offset 0x760 in __DATA_CONST, __auth_got) as could not find a kext which exports this symbolFailed to bind '_tb_connection_send_query' in 'com.apple.driver.AppleH11ANEInterface' (at offset 0x768 in __DATA_CONST, __auth_got) as could not find a kext which exports this symbolFailed to bind '_tb_endpoint_create_with_value' in 'com.apple.driver.AppleH11ANEInterface' (at offset 0x770 in __DATA_CONST, __auth_got) as could not find a kext which exports this symbolFailed to bind '_tb_message_complete' in 'com.apple.driver.AppleH11ANEInterface' (at offset 0x778 in __DATA_CONST, __auth_got) as could not find a kext which exports this symbolFailed to bind '_tb_message_decode_bool' in 'com.apple.driver.AppleH11ANEInterface' (at offset 0x780 in __DATA_CONST, __auth_got) as could not find a kext which exports this symbolFailed to bind '_tb_message_decode_u32' in 'com.apple.driver.AppleH11ANEInterface' (at offset 0x788 in __DATA_CONST, __auth_got) as could not find a kext which exports this symbolFailed to bind '_tb_message_decode_u64' in 'com.apple.driver.AppleH11ANEInterface' (at offset 0x790 in __DATA_CONST, __auth_got) as could not find a kext which exports this symbolFailed to bind '_tb_message_decode_u8' in 'com.apple.driver.AppleH11ANEInterface' (at offset 0x798 in __DATA_CONST, __auth_got) as could not find a kext which exports this symbolFailed to bind '_tb_message_encode_bool' in 'com.apple.driver.AppleH11ANEInterface' (at offset 0x7a0 in __DATA_CONST, __auth_got) as could not find a kext which exports this symbolFailed to bind '_tb_message_encode_u32' in 'com.apple.driver.AppleH11ANEInterface' (at offset 0x7a8 in __DATA_CONST, __auth_got) as could not find a kext which exports this symbolFailed to bind '_tb_message_encode_u64' in 'com.apple.driver.AppleH11ANEInterface' (at offset 0x7b0 in __DATA_CONST, __auth_got) as could not find a kext which exports this symbolFailed to bind '_tb_message_encode_u8' in 'com.apple.driver.AppleH11ANEInterface' (at offset 0x7b8 in __DATA_CONST, __auth_got) as could not find a kext which exports this symbolFailed to bind '_tb_service_connection_activate' in 'com.apple.driver.AppleH11ANEInterface' (at offset 0x7c0 in __DATA_CONST, __auth_got) as could not find a kext which exports this symbolFailed to bind '_tb_service_connection_create_with_endpoint' in 'com.apple.driver.AppleH11ANEInterface' (at offset 0x7c8 in __DATA_CONST, __auth_got) as could not find a kext which exports this symbolFailed to bind '_tb_service_connection_message_configure_reply' in 'com.apple.driver.AppleH11ANEInterface' (at offset 0x7d0 in __DATA_CONST, __auth_got) as could not find a kext which exports this symbol
}
blacktop commented 1 month ago

try now

tumusudheer commented 1 month ago

Hi @blacktop

Thank you very much. The build was successful

MACOS_VERSION='15.0' KERNEL_CONFIG=RELEASE ARCH_CONFIG=ARM64 MACHINE_CONFIG=VMAPPLE ./build.sh --kc

and I can see the oss-xnu.macOS.15.0.kc.vmapple file in the fakeroot directory.

Then I I tried the following command:

MACOS_VERSION='15.0' KERNEL_CONFIG=RELEASE ARCH_CONFIG=ARM64 MACHINE_CONFIG=T8103 ./build.sh --kc

as the uname -v on my machine is giving the following output: Darwin Kernel Version 24.0.0: Mon Aug 12 20:49:48 PDT 2024; root:xnu-11215.1.10~2/RELEASE_ARM64_T8103

But the build was not successful. Attached error trace file contains the total console output.

it is failing at this command:

/Applications/Xcode.app/Contents/Developer/usr/bin/make -f /Users/xx/Documents/Work/Research/yy/darwin-xnu-build_2.0/darwin-xnu-build/xnu/bsd/Makefile CURRENT_KERNEL_CONFIG=RELEASE CURRENT_ARCH_CONFIG=ARM64 CURRENT_MACHINE_CONFIG=T8103 CURRENT_BUILD_CONFIG=RELEASE^ARM64^T8103 SOURCE=/Users/xx/Documents/Work/Research/yy/darwin-xnu-build_2.0/darwin-xnu-build/xnu/bsd/ RELATIVE_SOURCE_PATH=./bsd TARGET=/Users/xx/Documents/Work/Research/yy/darwin-xnu-build_2.0/darwin-xnu-build/build/xnu.obj/RELEASE_ARM64_T8103/. OBJPATH=/Users/xx/Documents/Work/Research/yy/darwin-xnu-build_2.0/darwin-xnu-build/build/xnu.obj/RELEASE_ARM64_T8103 do_build_all
/Users/xx/Documents/Work/Research/yy/darwin-xnu-build_2.0/darwin-xnu-build/xnu/bsd/Makefile:6: /makedefs/MakeInc.cmd: No such file or directory
/Users/xx/Documents/Work/Research/yy/darwin-xnu-build_2.0/darwin-xnu-build/xnu/bsd/Makefile:7: /makedefs/MakeInc.def: No such file or directory
/Users/xx/Documents/Work/Research/yy/darwin-xnu-build_2.0/darwin-xnu-build/xnu/bsd/Makefile:86: /makedefs/MakeInc.rule: No such file or directory
/Users/xx/Documents/Work/Research/yy/darwin-xnu-build_2.0/darwin-xnu-build/xnu/bsd/Makefile:87: /makedefs/MakeInc.dir: No such file or directory

I think in the (following) contents of the Makefile:

export MakeInc_cmd=${SRCROOT}/makedefs/MakeInc.cmd
export MakeInc_def=${SRCROOT}/makedefs/MakeInc.def
export MakeInc_rule=${SRCROOT}/makedefs/MakeInc.rule
export MakeInc_dir=${SRCROOT}/makedefs/MakeInc.dir

The ${SRCROOT} is not being set properly in the make process. I tried to fix with some temporary fixes like hardcoing the aboslute path or defining the variable in this file again, but not able to build successfully. Similar issues were coming in the Makefiles under xnu/SETUP directory as well

It must be small fix some where.

[Uploading error_trace.txt…]()

blacktop commented 1 month ago

this is now a different issue than the original one. Please create a NEW issue (however, note I believe only VMAPPLE and X86 MACHINE_CONFIGs are currently supported for macOS 15.0

tumusudheer commented 1 month ago

Hi @blacktop

Thank you very much. Sure will create a new issue on this. Also, have a question on how to use this compiled kernel file for booting. Will post this. I'm testing on the same machine I compiled the code using qemu-system-aarch6