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
DTrace build fix on Mac proposal. #592
Conversation
thanks! Fwiw I have no mac right now, so no way to validate this. Would appreciate anyone with a mac who could give it a quick validation/check. |
Yeah, still need someone else with a Mac to come try this. Since you've been doing freebsd patches, I assume you've also tested on freebsd :) |
8026503
to
aad139b
Compare
Thx for the reminder :-) |
configure.ac
Outdated
@@ -177,6 +187,8 @@ if test "x$enable_dtrace" = "xyes"; then | |||
then | |||
dtrace_instrument_obj=yes | |||
rm conftest.h | |||
# on Mac probe id are generated with $ | |||
CFLAGS="$CFLAGS -Wno-dollar-in-identifier-extension" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this is enabling for freebsd too?
I want to close this out but I don't have the resources to validate it myself; it looks like it's changing the build around a bit for darwin, which might overlap with other dtrace-enabled OS's. Need someone else to +1 this. I can try again myself once I've gotten more of the new buildbots running as well, I guess. Either way I'd like to close this out in the next week as it's just hanging around. |
I can see this build failure now. Will take a more careful look when I get a moment. |
@devnexen rebase, address comment, and lets finish this? I have access to a recent mac so can validate. comment was about lack of DARWIN gating for the cflags change. maybe add some comments about why the other changes were done for darwin only? |
aad139b
to
92ec7b5
Compare
Fails on my mac:
(rebased on top of next and tried it, mac should be latest OS) |
It might need System Integrity disabled (at reboot time I think). |
I've no idea what that is :( I was testing with a VM. |
not sure why a system integrity thing would give a dtrace program syntax error though? |
The system integrity disallows dtrace to create object files. I found out however in the meantime you can "fine grain" the setting still enabling system integrity but fully enable dtrace capabilities. |
@devnexen mind rebasing this too? I'd like to either merge or close it today. it's still necessary, yes? |
The header generated comes with $ IDs thus breaking the build. The probes are set with const address arguments already which just add the qualifier again.
92ec7b5
to
abdb1a6
Compare
seems to be still needed. |
@devnexen point it at |
nevermind I could do it, heh |
@devnexen failing the whitespace test. |
abdb1a6
to
fbff5be
Compare
released in 1.6.17 |
The header generated comes with $ IDs thus breaking the build.
The probes are set with const address arguments already
which just add the qualifier again.