Skip to content
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

Attempt to link before libmmtk_openjdk.so is built #233

Open
qinsoon opened this issue Aug 22, 2023 · 0 comments
Open

Attempt to link before libmmtk_openjdk.so is built #233

qinsoon opened this issue Aug 22, 2023 · 0 comments
Labels
bug Something isn't working

Comments

@qinsoon
Copy link
Member

qinsoon commented Aug 22, 2023

See the discussion here: https://mmtk.zulipchat.com/#narrow/stream/262674-mmtk-openjdk/topic/Link.20before.20ready.3F/near/367539761

Basically we will see the error /usr/bin/ld: cannot find -lmmtk_openjdk: No such file or directory, if the build script attempts to link with libmmtk_openjdk.so before it is built. It happens if it takes long to build the Rust crate.

We also noticed this in our CI build:

gmake[2]: *** [make/Main.gmk:272: hotspot-server-libs] Error 2

ERROR: Build failed for target 'default (exploded-image)' in configuration 'linux-x86_64-normal-server-release' (exit code 2) 
Stopping sjavac server

=== Output from failing command(s) repeated here ===
* For target hotspot_variant-server_libjvm_gtest_objs_BUILD_GTEST_LIBJVM_link:
/usr/bin/ld: cannot find -lmmtk_openjdk: No such file or directory
collect2: error: ld returned 1 exit status
* For target hotspot_variant-server_libjvm_objs_BUILD_LIBJVM_link:
/usr/bin/ld: cannot find -lmmtk_openjdk: No such file or directory
collect2: error: ld returned 1 exit status
@qinsoon qinsoon added the bug Something isn't working label Aug 22, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant