Skip to content

Conversation

@MBaesken
Copy link
Member

@MBaesken MBaesken commented Nov 28, 2025

When building the recent mainline JDK (26), I see the following warning messages:

warning: (arm64) /tmp/lto.o unable to open object file: No such file or directory
warning: no debug symbols in executable (-arch arm64)

The build completes normally even with these warnings.
I am on macos aarch64, but I see the same warning on macos x64 and aarch64 in our CI.
Seems we miss a linker flag for libs built with lto (libsplashscreen), because the Apple linker has the following issue

https://clang.llvm.org/docs/CommandGuide/clang.html
Note

On Darwin, when using [-flto](https://clang.llvm.org/docs/CommandGuide/clang.html#cmdoption-flto) along with [-g](https://clang.llvm.org/docs/CommandGuide/clang.html#cmdoption-g) and compiling and linking in separate steps, you also need to pass -Wl,-object_path_lto,<lto-filename>.o at the linking step to instruct the ld64 linker not to delete the temporary object file generated during Link Time Optimization (this flag is automatically passed to the linker by Clang if compilation and linking are done in a single step). This allows debugging the executable as well as generating the .dSYM bundle using dsymutil(1).


Progress

  • Change must be properly reviewed (1 review required, with at least 1 Reviewer)
  • Change must not contain extraneous whitespace
  • Commit message must refer to an issue

Issue

  • JDK-8372643: Warning message on macos when building the JDK - (arm64) /tmp/lto.o unable to open object file: No such file or directory (Bug - P4)

Reviewing

Using git

Checkout this PR locally:
$ git fetch https://git.openjdk.org/jdk.git pull/28559/head:pull/28559
$ git checkout pull/28559

Update a local copy of the PR:
$ git checkout pull/28559
$ git pull https://git.openjdk.org/jdk.git pull/28559/head

Using Skara CLI tools

Checkout this PR locally:
$ git pr checkout 28559

View PR using the GUI difftool:
$ git pr show -t 28559

Using diff file

Download this PR as a diff file:
https://git.openjdk.org/jdk/pull/28559.diff

Using Webrev

Link to Webrev Comment

@bridgekeeper
Copy link

bridgekeeper bot commented Nov 28, 2025

👋 Welcome back mbaesken! A progress list of the required criteria for merging this PR into master will be added to the body of your pull request. There are additional pull request commands available for use with this pull request.

@openjdk
Copy link

openjdk bot commented Nov 28, 2025

❗ This change is not yet ready to be integrated.
See the Progress checklist in the description for automated requirements.

@openjdk openjdk bot changed the title JDK-8372643: Warning message on macos when building the JDK - (arm64) /tmp/lto.o unable to open object file: No such file or directory 8372643: Warning message on macos when building the JDK - (arm64) /tmp/lto.o unable to open object file: No such file or directory Nov 28, 2025
@openjdk
Copy link

openjdk bot commented Nov 28, 2025

@MBaesken The following label will be automatically applied to this pull request:

  • build

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.

@openjdk openjdk bot added the rfr Pull request is ready for review label Nov 28, 2025
@mlbridge
Copy link

mlbridge bot commented Nov 28, 2025

Webrevs

@jaikiran
Copy link
Member

jaikiran commented Dec 1, 2025

Hello Matthias @MBaesken, I'll run this PR in our CI and see how it goes. I'll update here once I have the results.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

build [email protected] rfr Pull request is ready for review

Development

Successfully merging this pull request may close these issues.

2 participants