-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
[Native Image] Got 2 unresolved external symbol while building Native Image #10426
Comments
Hi @MoritzArena, Thank you for reaching out to us about this. Could you please provide us with a reproducer alongside the steps needed to encounter the issue? |
No problem, the relevant code has been pushed to the official repository of nacos. You can build the GraalVM binary file by following the steps below:
I encountered a build problem in the following environment:
I have encountered this problem on Windows 11 before. Later, I reinstalled my operating system and reinstalled all the environments, but I still encountered this problem. |
I just tested on my machine using the sa,e visual studio version and GraalVM version as you did but I am getting a different error:
|
I am using Maven |
I just tested using Maven 3.9.9 yet I'm still getting the same error unfortunately |
Thank you for taking the time to test this issue. Based on what we know so far, it seems that the issue you encountered is not related to the Maven version. Additionally, we are using GraalVM JDK 17 downloaded from Oracle, with the version information: |
Describe the Issue
I am adapting GraalVM for Nacos. In the past, I was able to successfully package the Native Image binary program through GraalVM on the Windows 11 platform. However, after I upgraded Visual Studio, a build error occurred. Specifically, it was missing two link symbols:
__imp_SHGetFolderPathW
referenced in functiongetHomeFromShell32
SHGetKnownFolderPath
referenced in functiongetHomeFromShell32
These problems only occur on the Windows 11 platform. The binary file can be packaged normally on Linux. My environment information is as follows:
17.0.13+10-LTS
Oracle GraalVM 17.0.13+10.1
17.0.13+10-LTS-jvmci-23.0-b49
cl.exe (microsoft, x64, 19.42.34435)
Please confirm if you have tested with the latest available version.
Share the
svm_err_b_*.md
Filesvm_err_b_20250107T234343.404_pid9276.md
Additional Context
No response
The text was updated successfully, but these errors were encountered: