Describe the issue
JRT causing linking failure on windows. Having -H:+AllowJRTFileSystem adds stdc++ in
|
beforeAnalysisAccess.getNativeLibraries().addDynamicNonJniLibrary("stdc++"); |
which then throws error during a build:
2023-01-30T18:28:51.6624600Z LINK : fatal error LNK1181: cannot open input file 'stdc++.lib'
Steps to reproduce the issue
- On windows use flag
-H:+AllowJRTFileSystem
Describe GraalVM and your environment:
- GraalVM version CE 22.3.0
- JDK major version: 17
- OS: Microsoft Windows Server 2022 on github hosted runner
More details
Similar to #1876 which was fixed by not using stdc++ if not a posix system.
Also JNIRegistrationAwt looks to have similar stdc++ issue.