-
Notifications
You must be signed in to change notification settings - Fork 5.8k
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
JDK-8312466: /bin/nm usage in AIX makes needs -X64 flag #15036
Conversation
👋 Welcome back ansteiner! A progress list of the required criteria for merging this PR into |
@ansteiner The following label will be automatically applied to this pull request:
When this pull request is ready to be reviewed, an "RFR" email will be sent to the corresponding mailing list. If you would like to change these labels, use the /label pull request command. |
Webrevs
|
Hi Andreas, thanks for addressing this. Btw did you look at the naming of the mangled symbols we check for (SetupOperatorNewDeleteCheck) , are those names really the same on AIX ? |
I am fairly certain there is a better spot for this, but I cannot remember where at the moment. Is this for JvmMapfile.gmk where we dump the symbols of object files, or for something else? |
It is needed for the SetupOperatorNewDeleteCheck some lines below this change (check for unwanted global new/delete operators in HS objects). |
Right, thanks for jolting my memory |
|
@ansteiner This change now passes all automated pre-integration checks. ℹ️ This project also has non-automated pre-integration requirements. Please see the file CONTRIBUTING.md for details. After integration, the commit message for the final commit will be:
You can use pull request commands such as /summary, /contributor and /issue to adjust it as needed. At the time when this comment was updated there had been 43 new commits pushed to the
As there are no conflicts, your changes will automatically be rebased on top of these commits when integrating. If you prefer to avoid this automatic rebasing, please check the documentation for the /integrate command for further details. As you do not have Committer status in this project an existing Committer must agree to sponsor your change. Possible candidates are the reviewers of this PR (@MBaesken, @tstuefe, @dholmes-ora, @TheShermanTanker) but any other Committer may sponsor as well. ➡️ To flag this PR as ready for integration with the above commit message, type |
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.
+1
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.
I don't think this is the right place to make this change. Shouldn't it be handled at configure time in ./autoconf/toolchain.m4 ? There is also a BUILD_NM variable that will not be fixed by the proposed change.
I agree, this should be handled in toochain.m4 |
Currently all needed flags for calling NM are set directly in the makefile, see common/NativeCompilation.gmk hotspot/lib/CompileJvm.gmk hotspot/lib/JvmMapfile.gmk so Andreas was just following the current practise. Regarding BUILD_NM , I cannot find usage of it in the makefiles, so probably nothing to fix at the moment. |
Rather than toolchain.m4, this might actually be better suited for flags-other.m4, if there isn't already a flag for nm set there. This might be only in one location, but it might help future ports to have an nm flag that can be conveniently set, much like strip and rc already have their flags set there. That's my humble opinion, at least |
No, I don't think flags-other.m4 is suited. If at all, it should be handled in toolchain.m4 if we understand the -X64 flag on AIX as unconditional for every nm call. Then we could also remove -X64 in JvmMapFile.gmk. Also, maybe we should check if we can remove BUILD_NM and/or unify BUILD_NM and NM - as I see it now, BUILD_NM is not used anywhere. But I don't know all the history and maybe I'm overseeing something. OTOH, this cleanup could be done in another PR. For now, the code as it is would be ok, too. |
I agree, let's do the flags / macro adjustment in another issue. Andreas, I can open one for you if you want. |
I would prefer to integrate this as is. To get the check working on AIX at all and do the BUILD_NM/NM cleanup in another PR. |
There might be room for improvement for the general handling of NM flags, I opened |
/integrate |
@ansteiner |
/sponsor |
Going to push as commit 44576a7.
Your commit was automatically rebased without conflicts. |
@RealCLanger @ansteiner Pushed as commit 44576a7. 💡 You may see a message that your pull request was closed with unmerged commits. This can be safely ignored. |
On AIX the 'nm' needs -X64 option.
Progress
Issue
Reviewers
Reviewing
Using
git
Checkout this PR locally:
$ git fetch https://git.openjdk.org/jdk.git pull/15036/head:pull/15036
$ git checkout pull/15036
Update a local copy of the PR:
$ git checkout pull/15036
$ git pull https://git.openjdk.org/jdk.git pull/15036/head
Using Skara CLI tools
Checkout this PR locally:
$ git pr checkout 15036
View PR using the GUI difftool:
$ git pr show -t 15036
Using diff file
Download this PR as a diff file:
https://git.openjdk.org/jdk/pull/15036.diff
Webrev
Link to Webrev Comment