-
Notifications
You must be signed in to change notification settings - Fork 479
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cannot build pcm-sensor-server for macOS #612
Comments
no, it is not. Patches welcome.. |
I found that building pcm-sensor-server on Mac OS was excluded in src/CMakeLists.txt. I also want to build pcm-sensor-server on Mac. |
@gogohaja @MatteoBax could you try this branch? https://github.com/intel/pcm/tree/opcm-patch-pcm-sensor-server-osx |
Infinite loop of:
|
'Segmentation Fault' error occurs due to unknown reasons.
|
did you run into this issue (signing/sip): #608 (comment) |
thanks for testing. Could you please run it in gdb and provide the callstack of the crash? |
Me too |
Callstack of the crash:
|
I turned off SIP and the loop no longer occurs. |
Thanks. Could you please type "bt" to see the full call stack of the crashing thread (with all frames)? |
Full call stack of the crashing thread:
|
That is very clearly a null pointer access... Not sure how that is possible with all the shared_ptrs, will need to look into that. |
Would it be possible to run pcm-sensor-server with all debug output enabled? It's a documented command line switch (--help), set it to 5, redirect the output to a file and attach it here please? |
|
Is this the full log before the errors come and that is it? Oh my... |
This is the entire log from the |
Thanks, this means the problem happens quite soon, if not immediately after startup, @opcm, I'm not sure what the cause is but this could be related to things not being properly initialized. What fix did you make for the other MacOSX problem? |
the other problem I remember did not require any fix in pcm: #608 (comment) |
I believe there is an issue with identification of CPU topology. @MatteoBax , would it be possible to run as root and set this environment variable: PCM_PRINT_TOPOLOGY=1 and run pcm? (Note: https://unix.stackexchange.com/questions/202383/how-to-pass-environment-variable-to-sudo-su) |
@opcm you are right, there was a problem with identifying the CPU topology:
|
@MatteoBax the https://github.com/intel/pcm/tree/opcm-patch-pcm-sensor-server-osx branch has been updated with the new topology code for OSX. Could you please
does the new version crash? Please share the complete output from pcm-sensor-server with all warning and information messages. |
It crash anyway
|
thank you for testing @MatteoBax I found an issue which should directly relate to the crash. I pushed a fix into https://github.com/intel/pcm/tree/opcm-patch-pcm-sensor-server-osx branch. Could you please download it again and test? |
It works! A thousand thanks @opcm. The only problem I have is that when I run
I've had this problem before. Should I open another issue? |
Woohoo!! Glad @opcm found the issue! |
thank you for testing.
Do you remember how you resolved that issue? Line 31 in f632877
help? You might also want to try setting DYLD_LIBRARY_PATH env variable to point to the directory with libPcmMsr.dylib: |
If I run pcm from /usr/local/sbin the error is generated, while if I run it from pcm/build/bin the error is not generated. |
"point the DYLD_LIBRARY_PATH environment variable to /usr/local/lib/" looks like a solution. Thank you. Perhaps there should be a pull request (MAC HOW TO) documenting it |
Isn't it possible to specify the path that the DYLD_LIBRARY_PATH environment variable points to during building? Regarding my previous statement, I stand corrected. All pcm executables fail to find the dynamic library when run from the /usr/local/sbin directory (i.e. the directory they are installed in). |
need to do some research if and how that is possible.
good to know. Please open a new issue. |
Hi,
if I try to compile pcm-sensor-server by running the following commands inside the build folder:
i receive:
Is pcm-sensor-server supported for macOS?
The text was updated successfully, but these errors were encountered: