-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
freebsd/armv{6,7} lacks cpu profiler support (was: Doesn't install libprofiler and related files on armv6, armv7) #1355
Comments
I know nothing about whatever pkg-static thing is doing, but lets start debugging with config.log. Can you attach it? |
Unfortunately I only have access to failed build logs. |
The question is: Is it expected that libprofiler-related files aren't installed on armv7, or is this a bug in gperftools? |
Cannot rule out any bug(s). But could it be that bsd+armv7 doesn't have working pc_from_ucontext bits setup? Line 271 in bf8b714
again, config.log would prove/disprove this guess. |
I looked at a complete failed log and can confirm that on
Now the question is: why can't it find the PC on armv7? Is this expected or can be cured? |
The architecture armv6 has the same problem. |
Please feel free to close this bug if armv6, armv7 are too old to be bothered with. |
So the reason is ucontext bits are super-unportable. Means that in theory even different libcs on same OS and same cpu type could have different details there. That is why this autoconf bit has long list of things to try. I.e. what works for Linux+glibc might (but I have no idea if it really is) fail to work with other libcs. Let alone Linux vs bsd's. So what is definitely worth fixing is not installing .pc and include files when profiler is not enabled or not supported. As for fixing arm6/arm7 specifically for BSD I'm leaving it up to whoever cares. |
Option for CPU profiler is mostly to isolate situations when configure fails to enable it, like on armv6, armv7. Reference: gperftools/gperftools#1355 (comment)
Option for CPU profiler is mostly to isolate situations when configure fails to enable it, like on armv6, armv7. Reference: gperftools/gperftools#1355 (comment) (cherry picked from commit 35bf4d1)
I am not sure if this is intentional but these files aren't installed on armv7:
Please not that
libprofiler.pc
is still installed.Log: 2022-07-10T01:01:36.log
OS: FreeBSD 13.1
The text was updated successfully, but these errors were encountered: