intel / pcm

Intel® Performance Counter Monitor (Intel® PCM)
BSD 3-Clause "New" or "Revised" License
2.77k stars 472 forks source link

Could not use 'com.intel.driver.PcmMsr' by macOS #838

Open ZoeX-Zhang opened 1 week ago

ZoeX-Zhang commented 1 week ago

System OS: macOS Ventura (13.6.4)

Execute the installation command:

sudo make install

The error log is as follows:

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.intel.driver.PcmMsr' because: Failed to bind '___asan_init' in 'com.intel.driver.PcmMsr' (at offset 0x1605 in __TEXT, __text) as could not find a kext which exports this symbolFailed to bind '___asan_version_mismatch_check_apple_clang_1500' in 'com.intel.driver.PcmMsr' (at offset 0x160a in __TEXT, __text) as could not find a kext which exports this symbolFailed to bind '___asan_register_image_globals' in 'com.intel.driver.PcmMsr' (at offset 0x1616 in __TEXT, __text) as could not find a kext which exports this symbolFailed to bind '___asan_unregister_image_globals' in 'com.intel.driver.PcmMsr' (at offset 0x162c in __TEXT, __text) as could not find a kext which exports this symbolFailed to bind '___cxa_atexit' in 'com.intel.driver.PcmMsr' (at offset 0x1662 in __TEXT, __text) as could not find a kext which exports this symbol
com.intel.driver.PcmMsr specific:
    1: Failed to bind '___asan_init' in 'com.intel.driver.PcmMsr' (at offset 0x1605 in __TEXT, __text) as could not find a kext which exports this symbolFailed to bind '___asan_version_mismatch_check_apple_clang_1500' in 'com.intel.driver.PcmMsr' (at offset 0x160a in __TEXT, __text) as could not find a kext which exports this symbolFailed to bind '___asan_register_image_globals' in 'com.intel.driver.PcmMsr' (at offset 0x1616 in __TEXT, __text) as could not find a kext which exports this symbolFailed to bind '___asan_unregister_image_globals' in 'com.intel.driver.PcmMsr' (at offset 0x162c in __TEXT, __text) as could not find a kext which exports this symbolFailed to bind '___cxa_atexit' in 'com.intel.driver.PcmMsr' (at offset 0x1662 in __TEXT, __text) 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.intel.driver.PcmMsr' because: Failed to bind '___asan_init' in 'com.intel.driver.PcmMsr' (at offset 0x1605 in __TEXT, __text) as could not find a kext which exports this symbolFailed to bind '___asan_version_mismatch_check_apple_clang_1500' in 'com.intel.driver.PcmMsr' (at offset 0x160a in __TEXT, __text) as could not find a kext which exports this symbolFailed to bind '___asan_register_image_globals' in 'com.intel.driver.PcmMsr' (at offset 0x1616 in __TEXT, __text) as could not find a kext which exports this symbolFailed to bind '___asan_unregister_image_globals' in 'com.intel.driver.PcmMsr' (at offset 0x162c in __TEXT, __text) as could not find a kext which exports this symbolFailed to bind '___cxa_atexit' in 'com.intel.driver.PcmMsr' (at offset 0x1662 in __TEXT, __text) as could not find a kext which exports this symbol
com.intel.driver.PcmMsr specific:
    1: Failed to bind '___asan_init' in 'com.intel.driver.PcmMsr' (at offset 0x1605 in __TEXT, __text) as could not find a kext which exports this symbolFailed to bind '___asan_version_mismatch_check_apple_clang_1500' in 'com.intel.driver.PcmMsr' (at offset 0x160a in __TEXT, __text) as could not find a kext which exports this symbolFailed to bind '___asan_register_image_globals' in 'com.intel.driver.PcmMsr' (at offset 0x1616 in __TEXT, __text) as could not find a kext which exports this symbolFailed to bind '___asan_unregister_image_globals' in 'com.intel.driver.PcmMsr' (at offset 0x162c in __TEXT, __text) as could not find a kext which exports this symbolFailed to bind '___cxa_atexit' in 'com.intel.driver.PcmMsr' (at offset 0x1662 in __TEXT, __text) as could not find a kext which exports this symbol
}

I have a question 🤔️: Does PCM still support macOS?

liyuankunbix commented 1 week ago

You might need to disable sip in the macOS recovery environment. For security concerns, you can disable kext signing (0x1) and filesystem protections (0x2) only.

opcm commented 1 week ago

thanks for reporting this issue. I have just pushed a workaround in the master branch. please give it a try.